diff --git a/docs-devsite/_toc.yaml b/docs-devsite/_toc.yaml
index 665222edb9d..542b8d5f856 100644
--- a/docs-devsite/_toc.yaml
+++ b/docs-devsite/_toc.yaml
@@ -469,144 +469,106 @@ toc:
path: /docs/reference/js/storage.uploadtask.md
- title: UploadTaskSnapshot
path: /docs/reference/js/storage.uploadtasksnapshot.md
-- title: vertexai
- path: /docs/reference/js/vertexai.md
+- title: vertexai-preview
+ path: /docs/reference/js/vertexai-preview.md
section:
- - title: ArraySchema
- path: /docs/reference/js/vertexai.arrayschema.md
- title: BaseParams
- path: /docs/reference/js/vertexai.baseparams.md
- - title: BooleanSchema
- path: /docs/reference/js/vertexai.booleanschema.md
+ path: /docs/reference/js/vertexai-preview.baseparams.md
- title: ChatSession
- path: /docs/reference/js/vertexai.chatsession.md
+ path: /docs/reference/js/vertexai-preview.chatsession.md
- title: Citation
- path: /docs/reference/js/vertexai.citation.md
+ path: /docs/reference/js/vertexai-preview.citation.md
- title: CitationMetadata
- path: /docs/reference/js/vertexai.citationmetadata.md
+ path: /docs/reference/js/vertexai-preview.citationmetadata.md
- title: Content
- path: /docs/reference/js/vertexai.content.md
+ path: /docs/reference/js/vertexai-preview.content.md
- title: CountTokensRequest
- path: /docs/reference/js/vertexai.counttokensrequest.md
+ path: /docs/reference/js/vertexai-preview.counttokensrequest.md
- title: CountTokensResponse
- path: /docs/reference/js/vertexai.counttokensresponse.md
+ path: /docs/reference/js/vertexai-preview.counttokensresponse.md
- title: CustomErrorData
- path: /docs/reference/js/vertexai.customerrordata.md
+ path: /docs/reference/js/vertexai-preview.customerrordata.md
- title: Date_2
- path: /docs/reference/js/vertexai.date_2.md
+ path: /docs/reference/js/vertexai-preview.date_2.md
- title: EnhancedGenerateContentResponse
- path: /docs/reference/js/vertexai.enhancedgeneratecontentresponse.md
+ path: /docs/reference/js/vertexai-preview.enhancedgeneratecontentresponse.md
- title: ErrorDetails
- path: /docs/reference/js/vertexai.errordetails.md
+ path: /docs/reference/js/vertexai-preview.errordetails.md
- title: FileData
- path: /docs/reference/js/vertexai.filedata.md
+ path: /docs/reference/js/vertexai-preview.filedata.md
- title: FileDataPart
- path: /docs/reference/js/vertexai.filedatapart.md
+ path: /docs/reference/js/vertexai-preview.filedatapart.md
- title: FunctionCall
- path: /docs/reference/js/vertexai.functioncall.md
+ path: /docs/reference/js/vertexai-preview.functioncall.md
- title: FunctionCallingConfig
- path: /docs/reference/js/vertexai.functioncallingconfig.md
+ path: /docs/reference/js/vertexai-preview.functioncallingconfig.md
- title: FunctionCallPart
- path: /docs/reference/js/vertexai.functioncallpart.md
+ path: /docs/reference/js/vertexai-preview.functioncallpart.md
- title: FunctionDeclaration
- path: /docs/reference/js/vertexai.functiondeclaration.md
+ path: /docs/reference/js/vertexai-preview.functiondeclaration.md
+ - title: FunctionDeclarationSchema
+ path: /docs/reference/js/vertexai-preview.functiondeclarationschema.md
+ - title: FunctionDeclarationSchemaProperty
+ path: /docs/reference/js/vertexai-preview.functiondeclarationschemaproperty.md
- title: FunctionDeclarationsTool
- path: /docs/reference/js/vertexai.functiondeclarationstool.md
+ path: /docs/reference/js/vertexai-preview.functiondeclarationstool.md
- title: FunctionResponse
- path: /docs/reference/js/vertexai.functionresponse.md
+ path: /docs/reference/js/vertexai-preview.functionresponse.md
- title: FunctionResponsePart
- path: /docs/reference/js/vertexai.functionresponsepart.md
+ path: /docs/reference/js/vertexai-preview.functionresponsepart.md
- title: GenerateContentCandidate
- path: /docs/reference/js/vertexai.generatecontentcandidate.md
+ path: /docs/reference/js/vertexai-preview.generatecontentcandidate.md
- title: GenerateContentRequest
- path: /docs/reference/js/vertexai.generatecontentrequest.md
+ path: /docs/reference/js/vertexai-preview.generatecontentrequest.md
- title: GenerateContentResponse
- path: /docs/reference/js/vertexai.generatecontentresponse.md
+ path: /docs/reference/js/vertexai-preview.generatecontentresponse.md
- title: GenerateContentResult
- path: /docs/reference/js/vertexai.generatecontentresult.md
+ path: /docs/reference/js/vertexai-preview.generatecontentresult.md
- title: GenerateContentStreamResult
- path: /docs/reference/js/vertexai.generatecontentstreamresult.md
+ path: /docs/reference/js/vertexai-preview.generatecontentstreamresult.md
- title: GenerationConfig
- path: /docs/reference/js/vertexai.generationconfig.md
+ path: /docs/reference/js/vertexai-preview.generationconfig.md
- title: GenerativeContentBlob
- path: /docs/reference/js/vertexai.generativecontentblob.md
+ path: /docs/reference/js/vertexai-preview.generativecontentblob.md
- title: GenerativeModel
- path: /docs/reference/js/vertexai.generativemodel.md
+ path: /docs/reference/js/vertexai-preview.generativemodel.md
- title: GroundingAttribution
- path: /docs/reference/js/vertexai.groundingattribution.md
+ path: /docs/reference/js/vertexai-preview.groundingattribution.md
- title: GroundingMetadata
- path: /docs/reference/js/vertexai.groundingmetadata.md
- - title: ImagenGCSImage
- path: /docs/reference/js/vertexai.imagengcsimage.md
- - title: ImagenGenerationConfig
- path: /docs/reference/js/vertexai.imagengenerationconfig.md
- - title: ImagenGenerationResponse
- path: /docs/reference/js/vertexai.imagengenerationresponse.md
- - title: ImagenImageFormat
- path: /docs/reference/js/vertexai.imagenimageformat.md
- - title: ImagenInlineImage
- path: /docs/reference/js/vertexai.imageninlineimage.md
- - title: ImagenModel
- path: /docs/reference/js/vertexai.imagenmodel.md
- - title: ImagenModelParams
- path: /docs/reference/js/vertexai.imagenmodelparams.md
- - title: ImagenSafetySettings
- path: /docs/reference/js/vertexai.imagensafetysettings.md
+ path: /docs/reference/js/vertexai-preview.groundingmetadata.md
+ - title: HybridParams
+ path: /docs/reference/js/vertexai-preview.hybridparams.md
- title: InlineDataPart
- path: /docs/reference/js/vertexai.inlinedatapart.md
- - title: IntegerSchema
- path: /docs/reference/js/vertexai.integerschema.md
- - title: ModalityTokenCount
- path: /docs/reference/js/vertexai.modalitytokencount.md
+ path: /docs/reference/js/vertexai-preview.inlinedatapart.md
- title: ModelParams
- path: /docs/reference/js/vertexai.modelparams.md
- - title: NumberSchema
- path: /docs/reference/js/vertexai.numberschema.md
- - title: ObjectSchema
- path: /docs/reference/js/vertexai.objectschema.md
- - title: ObjectSchemaInterface
- path: /docs/reference/js/vertexai.objectschemainterface.md
+ path: /docs/reference/js/vertexai-preview.modelparams.md
- title: PromptFeedback
- path: /docs/reference/js/vertexai.promptfeedback.md
+ path: /docs/reference/js/vertexai-preview.promptfeedback.md
- title: RequestOptions
- path: /docs/reference/js/vertexai.requestoptions.md
+ path: /docs/reference/js/vertexai-preview.requestoptions.md
- title: RetrievedContextAttribution
- path: /docs/reference/js/vertexai.retrievedcontextattribution.md
+ path: /docs/reference/js/vertexai-preview.retrievedcontextattribution.md
- title: SafetyRating
- path: /docs/reference/js/vertexai.safetyrating.md
+ path: /docs/reference/js/vertexai-preview.safetyrating.md
- title: SafetySetting
- path: /docs/reference/js/vertexai.safetysetting.md
- - title: Schema
- path: /docs/reference/js/vertexai.schema.md
- - title: SchemaInterface
- path: /docs/reference/js/vertexai.schemainterface.md
- - title: SchemaParams
- path: /docs/reference/js/vertexai.schemaparams.md
- - title: SchemaRequest
- path: /docs/reference/js/vertexai.schemarequest.md
- - title: SchemaShared
- path: /docs/reference/js/vertexai.schemashared.md
+ path: /docs/reference/js/vertexai-preview.safetysetting.md
- title: Segment
- path: /docs/reference/js/vertexai.segment.md
+ path: /docs/reference/js/vertexai-preview.segment.md
- title: StartChatParams
- path: /docs/reference/js/vertexai.startchatparams.md
- - title: StringSchema
- path: /docs/reference/js/vertexai.stringschema.md
+ path: /docs/reference/js/vertexai-preview.startchatparams.md
- title: TextPart
- path: /docs/reference/js/vertexai.textpart.md
+ path: /docs/reference/js/vertexai-preview.textpart.md
- title: ToolConfig
- path: /docs/reference/js/vertexai.toolconfig.md
+ path: /docs/reference/js/vertexai-preview.toolconfig.md
- title: UsageMetadata
- path: /docs/reference/js/vertexai.usagemetadata.md
+ path: /docs/reference/js/vertexai-preview.usagemetadata.md
- title: VertexAI
- path: /docs/reference/js/vertexai.vertexai.md
+ path: /docs/reference/js/vertexai-preview.vertexai.md
- title: VertexAIError
- path: /docs/reference/js/vertexai.vertexaierror.md
- - title: VertexAIModel
- path: /docs/reference/js/vertexai.vertexaimodel.md
+ path: /docs/reference/js/vertexai-preview.vertexaierror.md
- title: VertexAIOptions
- path: /docs/reference/js/vertexai.vertexaioptions.md
+ path: /docs/reference/js/vertexai-preview.vertexaioptions.md
- title: VideoMetadata
- path: /docs/reference/js/vertexai.videometadata.md
+ path: /docs/reference/js/vertexai-preview.videometadata.md
- title: WebAttribution
- path: /docs/reference/js/vertexai.webattribution.md
+ path: /docs/reference/js/vertexai-preview.webattribution.md
diff --git a/docs-devsite/index.md b/docs-devsite/index.md
index 82fdb36f076..0064652e792 100644
--- a/docs-devsite/index.md
+++ b/docs-devsite/index.md
@@ -27,5 +27,5 @@ https://github.com/firebase/firebase-js-sdk
| [@firebase/performance](./performance.md#performance_package) | The Firebase Performance Monitoring Web SDK. This SDK does not work in a Node.js environment. |
| [@firebase/remote-config](./remote-config.md#remote-config_package) | The Firebase Remote Config Web SDK. This SDK does not work in a Node.js environment. |
| [@firebase/storage](./storage.md#storage_package) | Cloud Storage for Firebase |
-| [@firebase/vertexai](./vertexai.md#vertexai_package) | The Vertex AI in Firebase Web SDK. |
+| [@firebase/vertexai-preview](./vertexai-preview.md#vertexai-preview_package) | The Vertex AI in Firebase Web SDK. |
diff --git a/docs-devsite/vertexai.baseparams.md b/docs-devsite/vertexai-preview.baseparams.md
similarity index 67%
rename from docs-devsite/vertexai.baseparams.md
rename to docs-devsite/vertexai-preview.baseparams.md
index 382ec825210..6756c919ccc 100644
--- a/docs-devsite/vertexai.baseparams.md
+++ b/docs-devsite/vertexai-preview.baseparams.md
@@ -22,8 +22,8 @@ export interface BaseParams
| Property | Type | Description |
| --- | --- | --- |
-| [generationConfig](./vertexai.baseparams.md#baseparamsgenerationconfig) | [GenerationConfig](./vertexai.generationconfig.md#generationconfig_interface) | |
-| [safetySettings](./vertexai.baseparams.md#baseparamssafetysettings) | [SafetySetting](./vertexai.safetysetting.md#safetysetting_interface)\[\] | |
+| [generationConfig](./vertexai-preview.baseparams.md#baseparamsgenerationconfig) | [GenerationConfig](./vertexai-preview.generationconfig.md#generationconfig_interface) | |
+| [safetySettings](./vertexai-preview.baseparams.md#baseparamssafetysettings) | [SafetySetting](./vertexai-preview.safetysetting.md#safetysetting_interface)\[\] | |
## BaseParams.generationConfig
diff --git a/docs-devsite/vertexai-preview.chatsession.md b/docs-devsite/vertexai-preview.chatsession.md
new file mode 100644
index 00000000000..a1bdf81f2b7
--- /dev/null
+++ b/docs-devsite/vertexai-preview.chatsession.md
@@ -0,0 +1,139 @@
+Project: /docs/reference/js/_project.yaml
+Book: /docs/reference/_book.yaml
+page_type: reference
+
+{% comment %}
+DO NOT EDIT THIS FILE!
+This is generated by the JS SDK team, and any local changes will be
+overwritten. Changes should be made in the source code at
+https://github.com/firebase/firebase-js-sdk
+{% endcomment %}
+
+# ChatSession class
+ChatSession class that enables sending chat messages and stores history of sent and received messages so far.
+
+Signature:
+
+```typescript
+export declare class ChatSession
+```
+
+## Constructors
+
+| Constructor | Modifiers | Description |
+| --- | --- | --- |
+| [(constructor)(apiSettings, model, chromeAdapter, params, requestOptions)](./vertexai-preview.chatsession.md#chatsessionconstructor) | | Constructs a new instance of the ChatSession
class |
+
+## Properties
+
+| Property | Modifiers | Type | Description |
+| --- | --- | --- | --- |
+| [model](./vertexai-preview.chatsession.md#chatsessionmodel) | | string | |
+| [params](./vertexai-preview.chatsession.md#chatsessionparams) | | [StartChatParams](./vertexai-preview.startchatparams.md#startchatparams_interface) \| undefined | |
+| [requestOptions](./vertexai-preview.chatsession.md#chatsessionrequestoptions) | | [RequestOptions](./vertexai-preview.requestoptions.md#requestoptions_interface) \| undefined | |
+
+## Methods
+
+| Method | Modifiers | Description |
+| --- | --- | --- |
+| [getHistory()](./vertexai-preview.chatsession.md#chatsessiongethistory) | | Gets the chat history so far. Blocked prompts are not added to history. Neither blocked candidates nor the prompts that generated them are added to history. |
+| [sendMessage(request)](./vertexai-preview.chatsession.md#chatsessionsendmessage) | | Sends a chat message and receives a non-streaming [GenerateContentResult](./vertexai-preview.generatecontentresult.md#generatecontentresult_interface) |
+| [sendMessageStream(request)](./vertexai-preview.chatsession.md#chatsessionsendmessagestream) | | Sends a chat message and receives the response as a [GenerateContentStreamResult](./vertexai-preview.generatecontentstreamresult.md#generatecontentstreamresult_interface) containing an iterable stream and a response promise. |
+
+## ChatSession.(constructor)
+
+Constructs a new instance of the `ChatSession` class
+
+Signature:
+
+```typescript
+constructor(apiSettings: ApiSettings, model: string, chromeAdapter: ChromeAdapter, params?: StartChatParams | undefined, requestOptions?: RequestOptions | undefined);
+```
+
+#### Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| apiSettings | ApiSettings | |
+| model | string | |
+| chromeAdapter | ChromeAdapter | |
+| params | [StartChatParams](./vertexai-preview.startchatparams.md#startchatparams_interface) \| undefined | |
+| requestOptions | [RequestOptions](./vertexai-preview.requestoptions.md#requestoptions_interface) \| undefined | |
+
+## ChatSession.model
+
+Signature:
+
+```typescript
+model: string;
+```
+
+## ChatSession.params
+
+Signature:
+
+```typescript
+params?: StartChatParams | undefined;
+```
+
+## ChatSession.requestOptions
+
+Signature:
+
+```typescript
+requestOptions?: RequestOptions | undefined;
+```
+
+## ChatSession.getHistory()
+
+Gets the chat history so far. Blocked prompts are not added to history. Neither blocked candidates nor the prompts that generated them are added to history.
+
+Signature:
+
+```typescript
+getHistory(): Promise;
+```
+Returns:
+
+Promise<[Content](./vertexai-preview.content.md#content_interface)\[\]>
+
+## ChatSession.sendMessage()
+
+Sends a chat message and receives a non-streaming [GenerateContentResult](./vertexai-preview.generatecontentresult.md#generatecontentresult_interface)
+
+Signature:
+
+```typescript
+sendMessage(request: string | Array): Promise;
+```
+
+#### Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| request | string \| Array<string \| [Part](./vertexai-preview.md#part)> | |
+
+Returns:
+
+Promise<[GenerateContentResult](./vertexai-preview.generatecontentresult.md#generatecontentresult_interface)>
+
+## ChatSession.sendMessageStream()
+
+Sends a chat message and receives the response as a [GenerateContentStreamResult](./vertexai-preview.generatecontentstreamresult.md#generatecontentstreamresult_interface) containing an iterable stream and a response promise.
+
+Signature:
+
+```typescript
+sendMessageStream(request: string | Array): Promise;
+```
+
+#### Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| request | string \| Array<string \| [Part](./vertexai-preview.md#part)> | |
+
+Returns:
+
+Promise<[GenerateContentStreamResult](./vertexai-preview.generatecontentstreamresult.md#generatecontentstreamresult_interface)>
+
diff --git a/docs-devsite/vertexai.citation.md b/docs-devsite/vertexai-preview.citation.md
similarity index 68%
rename from docs-devsite/vertexai.citation.md
rename to docs-devsite/vertexai-preview.citation.md
index b5f5a19f231..10a615ee247 100644
--- a/docs-devsite/vertexai.citation.md
+++ b/docs-devsite/vertexai-preview.citation.md
@@ -22,12 +22,12 @@ export interface Citation
| Property | Type | Description |
| --- | --- | --- |
-| [endIndex](./vertexai.citation.md#citationendindex) | number | |
-| [license](./vertexai.citation.md#citationlicense) | string | |
-| [publicationDate](./vertexai.citation.md#citationpublicationdate) | Date | |
-| [startIndex](./vertexai.citation.md#citationstartindex) | number | |
-| [title](./vertexai.citation.md#citationtitle) | string | |
-| [uri](./vertexai.citation.md#citationuri) | string | |
+| [endIndex](./vertexai-preview.citation.md#citationendindex) | number | |
+| [license](./vertexai-preview.citation.md#citationlicense) | string | |
+| [publicationDate](./vertexai-preview.citation.md#citationpublicationdate) | Date | |
+| [startIndex](./vertexai-preview.citation.md#citationstartindex) | number | |
+| [title](./vertexai-preview.citation.md#citationtitle) | string | |
+| [uri](./vertexai-preview.citation.md#citationuri) | string | |
## Citation.endIndex
diff --git a/docs-devsite/vertexai.citationmetadata.md b/docs-devsite/vertexai-preview.citationmetadata.md
similarity index 64%
rename from docs-devsite/vertexai.citationmetadata.md
rename to docs-devsite/vertexai-preview.citationmetadata.md
index e3d41a37d98..fa740ca1af7 100644
--- a/docs-devsite/vertexai.citationmetadata.md
+++ b/docs-devsite/vertexai-preview.citationmetadata.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# CitationMetadata interface
-Citation metadata that may be found on a [GenerateContentCandidate](./vertexai.generatecontentcandidate.md#generatecontentcandidate_interface)
.
+Citation metadata that may be found on a [GenerateContentCandidate](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidate_interface).
Signature:
@@ -22,7 +22,7 @@ export interface CitationMetadata
| Property | Type | Description |
| --- | --- | --- |
-| [citations](./vertexai.citationmetadata.md#citationmetadatacitations) | [Citation](./vertexai.citation.md#citation_interface)\[\] | |
+| [citations](./vertexai-preview.citationmetadata.md#citationmetadatacitations) | [Citation](./vertexai-preview.citation.md#citation_interface)\[\] | |
## CitationMetadata.citations
diff --git a/docs-devsite/vertexai.content.md b/docs-devsite/vertexai-preview.content.md
similarity index 76%
rename from docs-devsite/vertexai.content.md
rename to docs-devsite/vertexai-preview.content.md
index 7a4634a62bc..26198a3951f 100644
--- a/docs-devsite/vertexai.content.md
+++ b/docs-devsite/vertexai-preview.content.md
@@ -22,8 +22,8 @@ export interface Content
| Property | Type | Description |
| --- | --- | --- |
-| [parts](./vertexai.content.md#contentparts) | [Part](./vertexai.md#part)\[\] | |
-| [role](./vertexai.content.md#contentrole) | [Role](./vertexai.md#role) | |
+| [parts](./vertexai-preview.content.md#contentparts) | [Part](./vertexai-preview.md#part)\[\] | |
+| [role](./vertexai-preview.content.md#contentrole) | [Role](./vertexai-preview.md#role) | |
## Content.parts
diff --git a/docs-devsite/vertexai-preview.counttokensrequest.md b/docs-devsite/vertexai-preview.counttokensrequest.md
new file mode 100644
index 00000000000..07e5f0d85f3
--- /dev/null
+++ b/docs-devsite/vertexai-preview.counttokensrequest.md
@@ -0,0 +1,33 @@
+Project: /docs/reference/js/_project.yaml
+Book: /docs/reference/_book.yaml
+page_type: reference
+
+{% comment %}
+DO NOT EDIT THIS FILE!
+This is generated by the JS SDK team, and any local changes will be
+overwritten. Changes should be made in the source code at
+https://github.com/firebase/firebase-js-sdk
+{% endcomment %}
+
+# CountTokensRequest interface
+Params for calling [GenerativeModel.countTokens()](./vertexai-preview.generativemodel.md#generativemodelcounttokens)
+
+Signature:
+
+```typescript
+export interface CountTokensRequest
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [contents](./vertexai-preview.counttokensrequest.md#counttokensrequestcontents) | [Content](./vertexai-preview.content.md#content_interface)\[\] | |
+
+## CountTokensRequest.contents
+
+Signature:
+
+```typescript
+contents: Content[];
+```
diff --git a/docs-devsite/vertexai.counttokensresponse.md b/docs-devsite/vertexai-preview.counttokensresponse.md
similarity index 50%
rename from docs-devsite/vertexai.counttokensresponse.md
rename to docs-devsite/vertexai-preview.counttokensresponse.md
index d67cc99fab2..d097d5aacff 100644
--- a/docs-devsite/vertexai.counttokensresponse.md
+++ b/docs-devsite/vertexai-preview.counttokensresponse.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# CountTokensResponse interface
-Response from calling [GenerativeModel.countTokens()](./vertexai.generativemodel.md#generativemodelcounttokens).
+Response from calling [GenerativeModel.countTokens()](./vertexai-preview.generativemodel.md#generativemodelcounttokens).
Signature:
@@ -22,19 +22,8 @@ export interface CountTokensResponse
| Property | Type | Description |
| --- | --- | --- |
-| [promptTokensDetails](./vertexai.counttokensresponse.md#counttokensresponseprompttokensdetails) | [ModalityTokenCount](./vertexai.modalitytokencount.md#modalitytokencount_interface)\[\] | The breakdown, by modality, of how many tokens are consumed by the prompt. |
-| [totalBillableCharacters](./vertexai.counttokensresponse.md#counttokensresponsetotalbillablecharacters) | number | The total number of billable characters counted across all instances from the request. |
-| [totalTokens](./vertexai.counttokensresponse.md#counttokensresponsetotaltokens) | number | The total number of tokens counted across all instances from the request. |
-
-## CountTokensResponse.promptTokensDetails
-
-The breakdown, by modality, of how many tokens are consumed by the prompt.
-
-Signature:
-
-```typescript
-promptTokensDetails?: ModalityTokenCount[];
-```
+| [totalBillableCharacters](./vertexai-preview.counttokensresponse.md#counttokensresponsetotalbillablecharacters) | number | The total number of billable characters counted across all instances from the request. |
+| [totalTokens](./vertexai-preview.counttokensresponse.md#counttokensresponsetotaltokens) | number | The total number of tokens counted across all instances from the request. |
## CountTokensResponse.totalBillableCharacters
diff --git a/docs-devsite/vertexai.customerrordata.md b/docs-devsite/vertexai-preview.customerrordata.md
similarity index 54%
rename from docs-devsite/vertexai.customerrordata.md
rename to docs-devsite/vertexai-preview.customerrordata.md
index 701b1b84c49..f0af0574161 100644
--- a/docs-devsite/vertexai.customerrordata.md
+++ b/docs-devsite/vertexai-preview.customerrordata.md
@@ -22,10 +22,10 @@ export interface CustomErrorData
| Property | Type | Description |
| --- | --- | --- |
-| [errorDetails](./vertexai.customerrordata.md#customerrordataerrordetails) | [ErrorDetails](./vertexai.errordetails.md#errordetails_interface)\[\] | Optional additional details about the error. |
-| [response](./vertexai.customerrordata.md#customerrordataresponse) | [GenerateContentResponse](./vertexai.generatecontentresponse.md#generatecontentresponse_interface) | Response from a [GenerateContentRequest](./vertexai.generatecontentrequest.md#generatecontentrequest_interface)
|
-| [status](./vertexai.customerrordata.md#customerrordatastatus) | number | HTTP status code of the error response. |
-| [statusText](./vertexai.customerrordata.md#customerrordatastatustext) | string | HTTP status text of the error response. |
+| [errorDetails](./vertexai-preview.customerrordata.md#customerrordataerrordetails) | [ErrorDetails](./vertexai-preview.errordetails.md#errordetails_interface)\[\] | Optional additional details about the error. |
+| [response](./vertexai-preview.customerrordata.md#customerrordataresponse) | [GenerateContentResponse](./vertexai-preview.generatecontentresponse.md#generatecontentresponse_interface) | Response from a [GenerateContentRequest](./vertexai-preview.generatecontentrequest.md#generatecontentrequest_interface) |
+| [status](./vertexai-preview.customerrordata.md#customerrordatastatus) | number | HTTP status code of the error response. |
+| [statusText](./vertexai-preview.customerrordata.md#customerrordatastatustext) | string | HTTP status text of the error response. |
## CustomErrorData.errorDetails
@@ -39,7 +39,7 @@ errorDetails?: ErrorDetails[];
## CustomErrorData.response
-Response from a [GenerateContentRequest](./vertexai.generatecontentrequest.md#generatecontentrequest_interface)
+Response from a [GenerateContentRequest](./vertexai-preview.generatecontentrequest.md#generatecontentrequest_interface)
Signature:
diff --git a/docs-devsite/vertexai.date_2.md b/docs-devsite/vertexai-preview.date_2.md
similarity index 78%
rename from docs-devsite/vertexai.date_2.md
rename to docs-devsite/vertexai-preview.date_2.md
index cf073bb86fe..5af031447c4 100644
--- a/docs-devsite/vertexai.date_2.md
+++ b/docs-devsite/vertexai-preview.date_2.md
@@ -22,9 +22,9 @@ export interface Date
| Property | Type | Description |
| --- | --- | --- |
-| [day](./vertexai.date_2.md#date_2day) | number | |
-| [month](./vertexai.date_2.md#date_2month) | number | |
-| [year](./vertexai.date_2.md#date_2year) | number | |
+| [day](./vertexai-preview.date_2.md#date_2day) | number | |
+| [month](./vertexai-preview.date_2.md#date_2month) | number | |
+| [year](./vertexai-preview.date_2.md#date_2year) | number | |
## Date\_2.day
diff --git a/docs-devsite/vertexai.enhancedgeneratecontentresponse.md b/docs-devsite/vertexai-preview.enhancedgeneratecontentresponse.md
similarity index 61%
rename from docs-devsite/vertexai.enhancedgeneratecontentresponse.md
rename to docs-devsite/vertexai-preview.enhancedgeneratecontentresponse.md
index 535fb9def8f..132c5ed0be2 100644
--- a/docs-devsite/vertexai.enhancedgeneratecontentresponse.md
+++ b/docs-devsite/vertexai-preview.enhancedgeneratecontentresponse.md
@@ -17,14 +17,14 @@ Response object wrapped with helper methods.
```typescript
export interface EnhancedGenerateContentResponse extends GenerateContentResponse
```
-Extends: [GenerateContentResponse](./vertexai.generatecontentresponse.md#generatecontentresponse_interface)
+Extends: [GenerateContentResponse](./vertexai-preview.generatecontentresponse.md#generatecontentresponse_interface)
## Properties
| Property | Type | Description |
| --- | --- | --- |
-| [functionCalls](./vertexai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponsefunctioncalls) | () => [FunctionCall](./vertexai.functioncall.md#functioncall_interface)\[\] \| undefined | |
-| [text](./vertexai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponsetext) | () => string | Returns the text string from the response, if available. Throws if the prompt or candidate was blocked. |
+| [functionCalls](./vertexai-preview.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponsefunctioncalls) | () => [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface)\[\] \| undefined | |
+| [text](./vertexai-preview.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponsetext) | () => string | Returns the text string from the response, if available. Throws if the prompt or candidate was blocked. |
## EnhancedGenerateContentResponse.functionCalls
diff --git a/docs-devsite/vertexai.errordetails.md b/docs-devsite/vertexai-preview.errordetails.md
similarity index 68%
rename from docs-devsite/vertexai.errordetails.md
rename to docs-devsite/vertexai-preview.errordetails.md
index 68959343439..45e84a618ab 100644
--- a/docs-devsite/vertexai.errordetails.md
+++ b/docs-devsite/vertexai-preview.errordetails.md
@@ -22,10 +22,10 @@ export interface ErrorDetails
| Property | Type | Description |
| --- | --- | --- |
-| ["@type"](./vertexai.errordetails.md#errordetails"@type") | string | |
-| [domain](./vertexai.errordetails.md#errordetailsdomain) | string | The domain where the error occurred. |
-| [metadata](./vertexai.errordetails.md#errordetailsmetadata) | Record<string, unknown> | Additional metadata about the error. |
-| [reason](./vertexai.errordetails.md#errordetailsreason) | string | The reason for the error. |
+| ["@type"](./vertexai-preview.errordetails.md#errordetails"@type") | string | |
+| [domain](./vertexai-preview.errordetails.md#errordetailsdomain) | string | The domain where the error occurred. |
+| [metadata](./vertexai-preview.errordetails.md#errordetailsmetadata) | Record<string, unknown> | Additional metadata about the error. |
+| [reason](./vertexai-preview.errordetails.md#errordetailsreason) | string | The reason for the error. |
## ErrorDetails."@type"
diff --git a/docs-devsite/vertexai.filedata.md b/docs-devsite/vertexai-preview.filedata.md
similarity index 81%
rename from docs-devsite/vertexai.filedata.md
rename to docs-devsite/vertexai-preview.filedata.md
index 7e000174692..577b4b1910d 100644
--- a/docs-devsite/vertexai.filedata.md
+++ b/docs-devsite/vertexai-preview.filedata.md
@@ -22,8 +22,8 @@ export interface FileData
| Property | Type | Description |
| --- | --- | --- |
-| [fileUri](./vertexai.filedata.md#filedatafileuri) | string | |
-| [mimeType](./vertexai.filedata.md#filedatamimetype) | string | |
+| [fileUri](./vertexai-preview.filedata.md#filedatafileuri) | string | |
+| [mimeType](./vertexai-preview.filedata.md#filedatamimetype) | string | |
## FileData.fileUri
diff --git a/docs-devsite/vertexai.filedatapart.md b/docs-devsite/vertexai-preview.filedatapart.md
similarity index 60%
rename from docs-devsite/vertexai.filedatapart.md
rename to docs-devsite/vertexai-preview.filedatapart.md
index 74512fa6d29..e03c056f588 100644
--- a/docs-devsite/vertexai.filedatapart.md
+++ b/docs-devsite/vertexai-preview.filedatapart.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# FileDataPart interface
-Content part interface if the part represents [FileData](./vertexai.filedata.md#filedata_interface)
+Content part interface if the part represents [FileData](./vertexai-preview.filedata.md#filedata_interface)
Signature:
@@ -22,11 +22,11 @@ export interface FileDataPart
| Property | Type | Description |
| --- | --- | --- |
-| [fileData](./vertexai.filedatapart.md#filedatapartfiledata) | [FileData](./vertexai.filedata.md#filedata_interface) | |
-| [functionCall](./vertexai.filedatapart.md#filedatapartfunctioncall) | never | |
-| [functionResponse](./vertexai.filedatapart.md#filedatapartfunctionresponse) | never | |
-| [inlineData](./vertexai.filedatapart.md#filedatapartinlinedata) | never | |
-| [text](./vertexai.filedatapart.md#filedataparttext) | never | |
+| [fileData](./vertexai-preview.filedatapart.md#filedatapartfiledata) | [FileData](./vertexai-preview.filedata.md#filedata_interface) | |
+| [functionCall](./vertexai-preview.filedatapart.md#filedatapartfunctioncall) | never | |
+| [functionResponse](./vertexai-preview.filedatapart.md#filedatapartfunctionresponse) | never | |
+| [inlineData](./vertexai-preview.filedatapart.md#filedatapartinlinedata) | never | |
+| [text](./vertexai-preview.filedatapart.md#filedataparttext) | never | |
## FileDataPart.fileData
diff --git a/docs-devsite/vertexai.functioncall.md b/docs-devsite/vertexai-preview.functioncall.md
similarity index 57%
rename from docs-devsite/vertexai.functioncall.md
rename to docs-devsite/vertexai-preview.functioncall.md
index ca7bc015438..60e0ea50dc4 100644
--- a/docs-devsite/vertexai.functioncall.md
+++ b/docs-devsite/vertexai-preview.functioncall.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# FunctionCall interface
-A predicted [FunctionCall](./vertexai.functioncall.md#functioncall_interface)
returned from the model that contains a string representing the [FunctionDeclaration.name](./vertexai.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing the parameters and their values.
+A predicted [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface) returned from the model that contains a string representing the [FunctionDeclaration.name](./vertexai-preview.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing the parameters and their values.
Signature:
@@ -22,8 +22,8 @@ export interface FunctionCall
| Property | Type | Description |
| --- | --- | --- |
-| [args](./vertexai.functioncall.md#functioncallargs) | object | |
-| [name](./vertexai.functioncall.md#functioncallname) | string | |
+| [args](./vertexai-preview.functioncall.md#functioncallargs) | object | |
+| [name](./vertexai-preview.functioncall.md#functioncallname) | string | |
## FunctionCall.args
diff --git a/docs-devsite/vertexai.functioncallingconfig.md b/docs-devsite/vertexai-preview.functioncallingconfig.md
similarity index 71%
rename from docs-devsite/vertexai.functioncallingconfig.md
rename to docs-devsite/vertexai-preview.functioncallingconfig.md
index 3724fec5bf7..1965fb76e95 100644
--- a/docs-devsite/vertexai.functioncallingconfig.md
+++ b/docs-devsite/vertexai-preview.functioncallingconfig.md
@@ -21,8 +21,8 @@ export interface FunctionCallingConfig
| Property | Type | Description |
| --- | --- | --- |
-| [allowedFunctionNames](./vertexai.functioncallingconfig.md#functioncallingconfigallowedfunctionnames) | string\[\] | |
-| [mode](./vertexai.functioncallingconfig.md#functioncallingconfigmode) | [FunctionCallingMode](./vertexai.md#functioncallingmode) | |
+| [allowedFunctionNames](./vertexai-preview.functioncallingconfig.md#functioncallingconfigallowedfunctionnames) | string\[\] | |
+| [mode](./vertexai-preview.functioncallingconfig.md#functioncallingconfigmode) | [FunctionCallingMode](./vertexai-preview.md#functioncallingmode) | |
## FunctionCallingConfig.allowedFunctionNames
diff --git a/docs-devsite/vertexai.functioncallpart.md b/docs-devsite/vertexai-preview.functioncallpart.md
similarity index 59%
rename from docs-devsite/vertexai.functioncallpart.md
rename to docs-devsite/vertexai-preview.functioncallpart.md
index af8ccf1109a..5da204692f9 100644
--- a/docs-devsite/vertexai.functioncallpart.md
+++ b/docs-devsite/vertexai-preview.functioncallpart.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# FunctionCallPart interface
-Content part interface if the part represents a [FunctionCall](./vertexai.functioncall.md#functioncall_interface)
.
+Content part interface if the part represents a [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface).
Signature:
@@ -22,10 +22,10 @@ export interface FunctionCallPart
| Property | Type | Description |
| --- | --- | --- |
-| [functionCall](./vertexai.functioncallpart.md#functioncallpartfunctioncall) | [FunctionCall](./vertexai.functioncall.md#functioncall_interface) | |
-| [functionResponse](./vertexai.functioncallpart.md#functioncallpartfunctionresponse) | never | |
-| [inlineData](./vertexai.functioncallpart.md#functioncallpartinlinedata) | never | |
-| [text](./vertexai.functioncallpart.md#functioncallparttext) | never | |
+| [functionCall](./vertexai-preview.functioncallpart.md#functioncallpartfunctioncall) | [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface) | |
+| [functionResponse](./vertexai-preview.functioncallpart.md#functioncallpartfunctionresponse) | never | |
+| [inlineData](./vertexai-preview.functioncallpart.md#functioncallpartinlinedata) | never | |
+| [text](./vertexai-preview.functioncallpart.md#functioncallparttext) | never | |
## FunctionCallPart.functionCall
diff --git a/docs-devsite/vertexai.functiondeclaration.md b/docs-devsite/vertexai-preview.functiondeclaration.md
similarity index 57%
rename from docs-devsite/vertexai.functiondeclaration.md
rename to docs-devsite/vertexai-preview.functiondeclaration.md
index 211c1dd868d..e178c7e8bc3 100644
--- a/docs-devsite/vertexai.functiondeclaration.md
+++ b/docs-devsite/vertexai-preview.functiondeclaration.md
@@ -22,18 +22,18 @@ export declare interface FunctionDeclaration
| Property | Type | Description |
| --- | --- | --- |
-| [description](./vertexai.functiondeclaration.md#functiondeclarationdescription) | string | Description and purpose of the function. Model uses it to decide how and whether to call the function. |
-| [name](./vertexai.functiondeclaration.md#functiondeclarationname) | string | The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a max length of 64. |
-| [parameters](./vertexai.functiondeclaration.md#functiondeclarationparameters) | [ObjectSchemaInterface](./vertexai.objectschemainterface.md#objectschemainterface_interface) | Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. Parameter names are case-sensitive. For a function with no parameters, this can be left unset. |
+| [description](./vertexai-preview.functiondeclaration.md#functiondeclarationdescription) | string | Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function. |
+| [name](./vertexai-preview.functiondeclaration.md#functiondeclarationname) | string | The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a max length of 64. |
+| [parameters](./vertexai-preview.functiondeclaration.md#functiondeclarationparameters) | [FunctionDeclarationSchema](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschema_interface) | Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. Parameter names are case-sensitive. For a function with no parameters, this can be left unset. |
## FunctionDeclaration.description
-Description and purpose of the function. Model uses it to decide how and whether to call the function.
+Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
Signature:
```typescript
-description: string;
+description?: string;
```
## FunctionDeclaration.name
@@ -53,5 +53,5 @@ Optional. Describes the parameters to this function in JSON Schema Object format
Signature:
```typescript
-parameters?: ObjectSchemaInterface;
+parameters?: FunctionDeclarationSchema;
```
diff --git a/docs-devsite/vertexai-preview.functiondeclarationschema.md b/docs-devsite/vertexai-preview.functiondeclarationschema.md
new file mode 100644
index 00000000000..7d0e5809d41
--- /dev/null
+++ b/docs-devsite/vertexai-preview.functiondeclarationschema.md
@@ -0,0 +1,70 @@
+Project: /docs/reference/js/_project.yaml
+Book: /docs/reference/_book.yaml
+page_type: reference
+
+{% comment %}
+DO NOT EDIT THIS FILE!
+This is generated by the JS SDK team, and any local changes will be
+overwritten. Changes should be made in the source code at
+https://github.com/firebase/firebase-js-sdk
+{% endcomment %}
+
+# FunctionDeclarationSchema interface
+Schema for parameters passed to [FunctionDeclaration.parameters](./vertexai-preview.functiondeclaration.md#functiondeclarationparameters).
+
+Signature:
+
+```typescript
+export interface FunctionDeclarationSchema
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [description](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschemadescription) | string | Optional. Description of the parameter. |
+| [properties](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschemaproperties) | { \[k: string\]: [FunctionDeclarationSchemaProperty](./vertexai-preview.functiondeclarationschemaproperty.md#functiondeclarationschemaproperty_interface); } | The format of the parameter. |
+| [required](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschemarequired) | string\[\] | Optional. Array of required parameters. |
+| [type](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschematype) | [FunctionDeclarationSchemaType](./vertexai-preview.md#functiondeclarationschematype) | The type of the parameter. |
+
+## FunctionDeclarationSchema.description
+
+Optional. Description of the parameter.
+
+Signature:
+
+```typescript
+description?: string;
+```
+
+## FunctionDeclarationSchema.properties
+
+The format of the parameter.
+
+Signature:
+
+```typescript
+properties: {
+ [k: string]: FunctionDeclarationSchemaProperty;
+ };
+```
+
+## FunctionDeclarationSchema.required
+
+Optional. Array of required parameters.
+
+Signature:
+
+```typescript
+required?: string[];
+```
+
+## FunctionDeclarationSchema.type
+
+The type of the parameter.
+
+Signature:
+
+```typescript
+type: FunctionDeclarationSchemaType;
+```
diff --git a/docs-devsite/vertexai-preview.functiondeclarationschemaproperty.md b/docs-devsite/vertexai-preview.functiondeclarationschemaproperty.md
new file mode 100644
index 00000000000..ac2e1262dd0
--- /dev/null
+++ b/docs-devsite/vertexai-preview.functiondeclarationschemaproperty.md
@@ -0,0 +1,125 @@
+Project: /docs/reference/js/_project.yaml
+Book: /docs/reference/_book.yaml
+page_type: reference
+
+{% comment %}
+DO NOT EDIT THIS FILE!
+This is generated by the JS SDK team, and any local changes will be
+overwritten. Changes should be made in the source code at
+https://github.com/firebase/firebase-js-sdk
+{% endcomment %}
+
+# FunctionDeclarationSchemaProperty interface
+Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed.
+
+Signature:
+
+```typescript
+export interface FunctionDeclarationSchemaProperty
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [description](./vertexai-preview.functiondeclarationschemaproperty.md#functiondeclarationschemapropertydescription) | string | Optional. The description of the property. |
+| [enum](./vertexai-preview.functiondeclarationschemaproperty.md#functiondeclarationschemapropertyenum) | string\[\] | Optional. The enum of the property. |
+| [example](./vertexai-preview.functiondeclarationschemaproperty.md#functiondeclarationschemapropertyexample) | unknown | Optional. The example of the property. |
+| [format](./vertexai-preview.functiondeclarationschemaproperty.md#functiondeclarationschemapropertyformat) | string | Optional. The format of the property. |
+| [items](./vertexai-preview.functiondeclarationschemaproperty.md#functiondeclarationschemapropertyitems) | [FunctionDeclarationSchema](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschema_interface) | Optional. The items of the property. [FunctionDeclarationSchema](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschema_interface) |
+| [nullable](./vertexai-preview.functiondeclarationschemaproperty.md#functiondeclarationschemapropertynullable) | boolean | Optional. Whether the property is nullable. |
+| [properties](./vertexai-preview.functiondeclarationschemaproperty.md#functiondeclarationschemapropertyproperties) | { \[k: string\]: [FunctionDeclarationSchema](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschema_interface); } | Optional. Map of [FunctionDeclarationSchema](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschema_interface). |
+| [required](./vertexai-preview.functiondeclarationschemaproperty.md#functiondeclarationschemapropertyrequired) | string\[\] | Optional. Array of required property. |
+| [type](./vertexai-preview.functiondeclarationschemaproperty.md#functiondeclarationschemapropertytype) | [FunctionDeclarationSchemaType](./vertexai-preview.md#functiondeclarationschematype) | Optional. The type of the property. [FunctionDeclarationSchemaType](./vertexai-preview.md#functiondeclarationschematype). |
+
+## FunctionDeclarationSchemaProperty.description
+
+Optional. The description of the property.
+
+Signature:
+
+```typescript
+description?: string;
+```
+
+## FunctionDeclarationSchemaProperty.enum
+
+Optional. The enum of the property.
+
+Signature:
+
+```typescript
+enum?: string[];
+```
+
+## FunctionDeclarationSchemaProperty.example
+
+Optional. The example of the property.
+
+Signature:
+
+```typescript
+example?: unknown;
+```
+
+## FunctionDeclarationSchemaProperty.format
+
+Optional. The format of the property.
+
+Signature:
+
+```typescript
+format?: string;
+```
+
+## FunctionDeclarationSchemaProperty.items
+
+Optional. The items of the property. [FunctionDeclarationSchema](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschema_interface)
+
+Signature:
+
+```typescript
+items?: FunctionDeclarationSchema;
+```
+
+## FunctionDeclarationSchemaProperty.nullable
+
+Optional. Whether the property is nullable.
+
+Signature:
+
+```typescript
+nullable?: boolean;
+```
+
+## FunctionDeclarationSchemaProperty.properties
+
+Optional. Map of [FunctionDeclarationSchema](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschema_interface).
+
+Signature:
+
+```typescript
+properties?: {
+ [k: string]: FunctionDeclarationSchema;
+ };
+```
+
+## FunctionDeclarationSchemaProperty.required
+
+Optional. Array of required property.
+
+Signature:
+
+```typescript
+required?: string[];
+```
+
+## FunctionDeclarationSchemaProperty.type
+
+Optional. The type of the property. [FunctionDeclarationSchemaType](./vertexai-preview.md#functiondeclarationschematype).
+
+Signature:
+
+```typescript
+type?: FunctionDeclarationSchemaType;
+```
diff --git a/docs-devsite/vertexai-preview.functiondeclarationstool.md b/docs-devsite/vertexai-preview.functiondeclarationstool.md
new file mode 100644
index 00000000000..d1af4351a23
--- /dev/null
+++ b/docs-devsite/vertexai-preview.functiondeclarationstool.md
@@ -0,0 +1,35 @@
+Project: /docs/reference/js/_project.yaml
+Book: /docs/reference/_book.yaml
+page_type: reference
+
+{% comment %}
+DO NOT EDIT THIS FILE!
+This is generated by the JS SDK team, and any local changes will be
+overwritten. Changes should be made in the source code at
+https://github.com/firebase/firebase-js-sdk
+{% endcomment %}
+
+# FunctionDeclarationsTool interface
+A `FunctionDeclarationsTool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
+
+Signature:
+
+```typescript
+export declare interface FunctionDeclarationsTool
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [functionDeclarations](./vertexai-preview.functiondeclarationstool.md#functiondeclarationstoolfunctiondeclarations) | [FunctionDeclaration](./vertexai-preview.functiondeclaration.md#functiondeclaration_interface)\[\] | Optional. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface) in the response. User should provide a [FunctionResponse](./vertexai-preview.functionresponse.md#functionresponse_interface) for each function call in the next turn. Based on the function responses, the model will generate the final response back to the user. Maximum 64 function declarations can be provided. |
+
+## FunctionDeclarationsTool.functionDeclarations
+
+Optional. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface) in the response. User should provide a [FunctionResponse](./vertexai-preview.functionresponse.md#functionresponse_interface) for each function call in the next turn. Based on the function responses, the model will generate the final response back to the user. Maximum 64 function declarations can be provided.
+
+Signature:
+
+```typescript
+functionDeclarations?: FunctionDeclaration[];
+```
diff --git a/docs-devsite/vertexai.functionresponse.md b/docs-devsite/vertexai-preview.functionresponse.md
similarity index 50%
rename from docs-devsite/vertexai.functionresponse.md
rename to docs-devsite/vertexai-preview.functionresponse.md
index 0ca553e0e6b..d89ace08df1 100644
--- a/docs-devsite/vertexai.functionresponse.md
+++ b/docs-devsite/vertexai-preview.functionresponse.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# FunctionResponse interface
-The result output from a [FunctionCall](./vertexai.functioncall.md#functioncall_interface)
that contains a string representing the [FunctionDeclaration.name](./vertexai.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a [FunctionCall](./vertexai.functioncall.md#functioncall_interface)
made based on model prediction.
+The result output from a [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface) that contains a string representing the [FunctionDeclaration.name](./vertexai-preview.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface) made based on model prediction.
Signature:
@@ -22,8 +22,8 @@ export interface FunctionResponse
| Property | Type | Description |
| --- | --- | --- |
-| [name](./vertexai.functionresponse.md#functionresponsename) | string | |
-| [response](./vertexai.functionresponse.md#functionresponseresponse) | object | |
+| [name](./vertexai-preview.functionresponse.md#functionresponsename) | string | |
+| [response](./vertexai-preview.functionresponse.md#functionresponseresponse) | object | |
## FunctionResponse.name
diff --git a/docs-devsite/vertexai.functionresponsepart.md b/docs-devsite/vertexai-preview.functionresponsepart.md
similarity index 58%
rename from docs-devsite/vertexai.functionresponsepart.md
rename to docs-devsite/vertexai-preview.functionresponsepart.md
index 1905c98cdc7..4e246d625f6 100644
--- a/docs-devsite/vertexai.functionresponsepart.md
+++ b/docs-devsite/vertexai-preview.functionresponsepart.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# FunctionResponsePart interface
-Content part interface if the part represents [FunctionResponse](./vertexai.functionresponse.md#functionresponse_interface)
.
+Content part interface if the part represents [FunctionResponse](./vertexai-preview.functionresponse.md#functionresponse_interface).
Signature:
@@ -22,10 +22,10 @@ export interface FunctionResponsePart
| Property | Type | Description |
| --- | --- | --- |
-| [functionCall](./vertexai.functionresponsepart.md#functionresponsepartfunctioncall) | never | |
-| [functionResponse](./vertexai.functionresponsepart.md#functionresponsepartfunctionresponse) | [FunctionResponse](./vertexai.functionresponse.md#functionresponse_interface) | |
-| [inlineData](./vertexai.functionresponsepart.md#functionresponsepartinlinedata) | never | |
-| [text](./vertexai.functionresponsepart.md#functionresponseparttext) | never | |
+| [functionCall](./vertexai-preview.functionresponsepart.md#functionresponsepartfunctioncall) | never | |
+| [functionResponse](./vertexai-preview.functionresponsepart.md#functionresponsepartfunctionresponse) | [FunctionResponse](./vertexai-preview.functionresponse.md#functionresponse_interface) | |
+| [inlineData](./vertexai-preview.functionresponsepart.md#functionresponsepartinlinedata) | never | |
+| [text](./vertexai-preview.functionresponsepart.md#functionresponseparttext) | never | |
## FunctionResponsePart.functionCall
diff --git a/docs-devsite/vertexai-preview.generatecontentcandidate.md b/docs-devsite/vertexai-preview.generatecontentcandidate.md
new file mode 100644
index 00000000000..9f36fab1e87
--- /dev/null
+++ b/docs-devsite/vertexai-preview.generatecontentcandidate.md
@@ -0,0 +1,87 @@
+Project: /docs/reference/js/_project.yaml
+Book: /docs/reference/_book.yaml
+page_type: reference
+
+{% comment %}
+DO NOT EDIT THIS FILE!
+This is generated by the JS SDK team, and any local changes will be
+overwritten. Changes should be made in the source code at
+https://github.com/firebase/firebase-js-sdk
+{% endcomment %}
+
+# GenerateContentCandidate interface
+A candidate returned as part of a [GenerateContentResponse](./vertexai-preview.generatecontentresponse.md#generatecontentresponse_interface).
+
+Signature:
+
+```typescript
+export interface GenerateContentCandidate
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [citationMetadata](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidatecitationmetadata) | [CitationMetadata](./vertexai-preview.citationmetadata.md#citationmetadata_interface) | |
+| [content](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidatecontent) | [Content](./vertexai-preview.content.md#content_interface) | |
+| [finishMessage](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidatefinishmessage) | string | |
+| [finishReason](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidatefinishreason) | [FinishReason](./vertexai-preview.md#finishreason) | |
+| [groundingMetadata](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidategroundingmetadata) | [GroundingMetadata](./vertexai-preview.groundingmetadata.md#groundingmetadata_interface) | |
+| [index](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidateindex) | number | |
+| [safetyRatings](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidatesafetyratings) | [SafetyRating](./vertexai-preview.safetyrating.md#safetyrating_interface)\[\] | |
+
+## GenerateContentCandidate.citationMetadata
+
+Signature:
+
+```typescript
+citationMetadata?: CitationMetadata;
+```
+
+## GenerateContentCandidate.content
+
+Signature:
+
+```typescript
+content: Content;
+```
+
+## GenerateContentCandidate.finishMessage
+
+Signature:
+
+```typescript
+finishMessage?: string;
+```
+
+## GenerateContentCandidate.finishReason
+
+Signature:
+
+```typescript
+finishReason?: FinishReason;
+```
+
+## GenerateContentCandidate.groundingMetadata
+
+Signature:
+
+```typescript
+groundingMetadata?: GroundingMetadata;
+```
+
+## GenerateContentCandidate.index
+
+Signature:
+
+```typescript
+index: number;
+```
+
+## GenerateContentCandidate.safetyRatings
+
+Signature:
+
+```typescript
+safetyRatings?: SafetyRating[];
+```
diff --git a/docs-devsite/vertexai.generatecontentrequest.md b/docs-devsite/vertexai-preview.generatecontentrequest.md
similarity index 54%
rename from docs-devsite/vertexai.generatecontentrequest.md
rename to docs-devsite/vertexai-preview.generatecontentrequest.md
index 31f1103a2e2..68ce52340e8 100644
--- a/docs-devsite/vertexai.generatecontentrequest.md
+++ b/docs-devsite/vertexai-preview.generatecontentrequest.md
@@ -10,23 +10,23 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# GenerateContentRequest interface
-Request sent through [GenerativeModel.generateContent()](./vertexai.generativemodel.md#generativemodelgeneratecontent)
+Request sent through [GenerativeModel.generateContent()](./vertexai-preview.generativemodel.md#generativemodelgeneratecontent)
Signature:
```typescript
export interface GenerateContentRequest extends BaseParams
```
-Extends: [BaseParams](./vertexai.baseparams.md#baseparams_interface)
+Extends: [BaseParams](./vertexai-preview.baseparams.md#baseparams_interface)
## Properties
| Property | Type | Description |
| --- | --- | --- |
-| [contents](./vertexai.generatecontentrequest.md#generatecontentrequestcontents) | [Content](./vertexai.content.md#content_interface)\[\] | |
-| [systemInstruction](./vertexai.generatecontentrequest.md#generatecontentrequestsysteminstruction) | string \| [Part](./vertexai.md#part) \| [Content](./vertexai.content.md#content_interface) | |
-| [toolConfig](./vertexai.generatecontentrequest.md#generatecontentrequesttoolconfig) | [ToolConfig](./vertexai.toolconfig.md#toolconfig_interface) | |
-| [tools](./vertexai.generatecontentrequest.md#generatecontentrequesttools) | [Tool](./vertexai.md#tool)\[\] | |
+| [contents](./vertexai-preview.generatecontentrequest.md#generatecontentrequestcontents) | [Content](./vertexai-preview.content.md#content_interface)\[\] | |
+| [systemInstruction](./vertexai-preview.generatecontentrequest.md#generatecontentrequestsysteminstruction) | string \| [Part](./vertexai-preview.md#part) \| [Content](./vertexai-preview.content.md#content_interface) | |
+| [toolConfig](./vertexai-preview.generatecontentrequest.md#generatecontentrequesttoolconfig) | [ToolConfig](./vertexai-preview.toolconfig.md#toolconfig_interface) | |
+| [tools](./vertexai-preview.generatecontentrequest.md#generatecontentrequesttools) | [Tool](./vertexai-preview.md#tool)\[\] | |
## GenerateContentRequest.contents
diff --git a/docs-devsite/vertexai.generatecontentresponse.md b/docs-devsite/vertexai-preview.generatecontentresponse.md
similarity index 50%
rename from docs-devsite/vertexai.generatecontentresponse.md
rename to docs-devsite/vertexai-preview.generatecontentresponse.md
index 304674c9b6f..cb0fb0e3209 100644
--- a/docs-devsite/vertexai.generatecontentresponse.md
+++ b/docs-devsite/vertexai-preview.generatecontentresponse.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# GenerateContentResponse interface
-Individual response from [GenerativeModel.generateContent()](./vertexai.generativemodel.md#generativemodelgeneratecontent) and [GenerativeModel.generateContentStream()](./vertexai.generativemodel.md#generativemodelgeneratecontentstream). `generateContentStream()` will return one in each chunk until the stream is done.
+Individual response from [GenerativeModel.generateContent()](./vertexai-preview.generativemodel.md#generativemodelgeneratecontent) and [GenerativeModel.generateContentStream()](./vertexai-preview.generativemodel.md#generativemodelgeneratecontentstream). `generateContentStream()` will return one in each chunk until the stream is done.
Signature:
@@ -22,9 +22,9 @@ export interface GenerateContentResponse
| Property | Type | Description |
| --- | --- | --- |
-| [candidates](./vertexai.generatecontentresponse.md#generatecontentresponsecandidates) | [GenerateContentCandidate](./vertexai.generatecontentcandidate.md#generatecontentcandidate_interface)\[\] | |
-| [promptFeedback](./vertexai.generatecontentresponse.md#generatecontentresponsepromptfeedback) | [PromptFeedback](./vertexai.promptfeedback.md#promptfeedback_interface) | |
-| [usageMetadata](./vertexai.generatecontentresponse.md#generatecontentresponseusagemetadata) | [UsageMetadata](./vertexai.usagemetadata.md#usagemetadata_interface) | |
+| [candidates](./vertexai-preview.generatecontentresponse.md#generatecontentresponsecandidates) | [GenerateContentCandidate](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidate_interface)\[\] | |
+| [promptFeedback](./vertexai-preview.generatecontentresponse.md#generatecontentresponsepromptfeedback) | [PromptFeedback](./vertexai-preview.promptfeedback.md#promptfeedback_interface) | |
+| [usageMetadata](./vertexai-preview.generatecontentresponse.md#generatecontentresponseusagemetadata) | [UsageMetadata](./vertexai-preview.usagemetadata.md#usagemetadata_interface) | |
## GenerateContentResponse.candidates
diff --git a/docs-devsite/vertexai.generatecontentresult.md b/docs-devsite/vertexai-preview.generatecontentresult.md
similarity index 69%
rename from docs-devsite/vertexai.generatecontentresult.md
rename to docs-devsite/vertexai-preview.generatecontentresult.md
index 3e162f9ebb2..87249a5bc55 100644
--- a/docs-devsite/vertexai.generatecontentresult.md
+++ b/docs-devsite/vertexai-preview.generatecontentresult.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# GenerateContentResult interface
-Result object returned from [GenerativeModel.generateContent()](./vertexai.generativemodel.md#generativemodelgeneratecontent) call.
+Result object returned from [GenerativeModel.generateContent()](./vertexai-preview.generativemodel.md#generativemodelgeneratecontent) call.
Signature:
@@ -22,7 +22,7 @@ export interface GenerateContentResult
| Property | Type | Description |
| --- | --- | --- |
-| [response](./vertexai.generatecontentresult.md#generatecontentresultresponse) | [EnhancedGenerateContentResponse](./vertexai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponse_interface) | |
+| [response](./vertexai-preview.generatecontentresult.md#generatecontentresultresponse) | [EnhancedGenerateContentResponse](./vertexai-preview.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponse_interface) | |
## GenerateContentResult.response
diff --git a/docs-devsite/vertexai.generatecontentstreamresult.md b/docs-devsite/vertexai-preview.generatecontentstreamresult.md
similarity index 52%
rename from docs-devsite/vertexai.generatecontentstreamresult.md
rename to docs-devsite/vertexai-preview.generatecontentstreamresult.md
index 340abb1d0bd..6fd46600079 100644
--- a/docs-devsite/vertexai.generatecontentstreamresult.md
+++ b/docs-devsite/vertexai-preview.generatecontentstreamresult.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# GenerateContentStreamResult interface
-Result object returned from [GenerativeModel.generateContentStream()](./vertexai.generativemodel.md#generativemodelgeneratecontentstream) call. Iterate over `stream` to get chunks as they come in and/or use the `response` promise to get the aggregated response when the stream is done.
+Result object returned from [GenerativeModel.generateContentStream()](./vertexai-preview.generativemodel.md#generativemodelgeneratecontentstream) call. Iterate over `stream` to get chunks as they come in and/or use the `response` promise to get the aggregated response when the stream is done.
Signature:
@@ -22,8 +22,8 @@ export interface GenerateContentStreamResult
| Property | Type | Description |
| --- | --- | --- |
-| [response](./vertexai.generatecontentstreamresult.md#generatecontentstreamresultresponse) | Promise<[EnhancedGenerateContentResponse](./vertexai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponse_interface)> | |
-| [stream](./vertexai.generatecontentstreamresult.md#generatecontentstreamresultstream) | AsyncGenerator<[EnhancedGenerateContentResponse](./vertexai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponse_interface)> | |
+| [response](./vertexai-preview.generatecontentstreamresult.md#generatecontentstreamresultresponse) | Promise<[EnhancedGenerateContentResponse](./vertexai-preview.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponse_interface)> | |
+| [stream](./vertexai-preview.generatecontentstreamresult.md#generatecontentstreamresultstream) | AsyncGenerator<[EnhancedGenerateContentResponse](./vertexai-preview.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponse_interface)> | |
## GenerateContentStreamResult.response
diff --git a/docs-devsite/vertexai-preview.generationconfig.md b/docs-devsite/vertexai-preview.generationconfig.md
new file mode 100644
index 00000000000..b14dfea053b
--- /dev/null
+++ b/docs-devsite/vertexai-preview.generationconfig.md
@@ -0,0 +1,107 @@
+Project: /docs/reference/js/_project.yaml
+Book: /docs/reference/_book.yaml
+page_type: reference
+
+{% comment %}
+DO NOT EDIT THIS FILE!
+This is generated by the JS SDK team, and any local changes will be
+overwritten. Changes should be made in the source code at
+https://github.com/firebase/firebase-js-sdk
+{% endcomment %}
+
+# GenerationConfig interface
+Config options for content-related requests
+
+Signature:
+
+```typescript
+export interface GenerationConfig
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [candidateCount](./vertexai-preview.generationconfig.md#generationconfigcandidatecount) | number | |
+| [frequencyPenalty](./vertexai-preview.generationconfig.md#generationconfigfrequencypenalty) | number | |
+| [maxOutputTokens](./vertexai-preview.generationconfig.md#generationconfigmaxoutputtokens) | number | |
+| [presencePenalty](./vertexai-preview.generationconfig.md#generationconfigpresencepenalty) | number | |
+| [responseMimeType](./vertexai-preview.generationconfig.md#generationconfigresponsemimetype) | string | Output response mimetype of the generated candidate text. Supported mimetypes are text/plain
(default, text output) and application/json
(JSON response in the candidates). The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature. |
+| [stopSequences](./vertexai-preview.generationconfig.md#generationconfigstopsequences) | string\[\] | |
+| [temperature](./vertexai-preview.generationconfig.md#generationconfigtemperature) | number | |
+| [topK](./vertexai-preview.generationconfig.md#generationconfigtopk) | number | |
+| [topP](./vertexai-preview.generationconfig.md#generationconfigtopp) | number | |
+
+## GenerationConfig.candidateCount
+
+Signature:
+
+```typescript
+candidateCount?: number;
+```
+
+## GenerationConfig.frequencyPenalty
+
+Signature:
+
+```typescript
+frequencyPenalty?: number;
+```
+
+## GenerationConfig.maxOutputTokens
+
+Signature:
+
+```typescript
+maxOutputTokens?: number;
+```
+
+## GenerationConfig.presencePenalty
+
+Signature:
+
+```typescript
+presencePenalty?: number;
+```
+
+## GenerationConfig.responseMimeType
+
+Output response mimetype of the generated candidate text. Supported mimetypes are `text/plain` (default, text output) and `application/json` (JSON response in the candidates). The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
+
+Signature:
+
+```typescript
+responseMimeType?: string;
+```
+
+## GenerationConfig.stopSequences
+
+Signature:
+
+```typescript
+stopSequences?: string[];
+```
+
+## GenerationConfig.temperature
+
+Signature:
+
+```typescript
+temperature?: number;
+```
+
+## GenerationConfig.topK
+
+Signature:
+
+```typescript
+topK?: number;
+```
+
+## GenerationConfig.topP
+
+Signature:
+
+```typescript
+topP?: number;
+```
diff --git a/docs-devsite/vertexai.generativecontentblob.md b/docs-devsite/vertexai-preview.generativecontentblob.md
similarity index 76%
rename from docs-devsite/vertexai.generativecontentblob.md
rename to docs-devsite/vertexai-preview.generativecontentblob.md
index dfcd098291f..b5dcb272027 100644
--- a/docs-devsite/vertexai.generativecontentblob.md
+++ b/docs-devsite/vertexai-preview.generativecontentblob.md
@@ -22,8 +22,8 @@ export interface GenerativeContentBlob
| Property | Type | Description |
| --- | --- | --- |
-| [data](./vertexai.generativecontentblob.md#generativecontentblobdata) | string | Image as a base64 string. |
-| [mimeType](./vertexai.generativecontentblob.md#generativecontentblobmimetype) | string | |
+| [data](./vertexai-preview.generativecontentblob.md#generativecontentblobdata) | string | Image as a base64 string. |
+| [mimeType](./vertexai-preview.generativecontentblob.md#generativecontentblobmimetype) | string | |
## GenerativeContentBlob.data
diff --git a/docs-devsite/vertexai-preview.generativemodel.md b/docs-devsite/vertexai-preview.generativemodel.md
new file mode 100644
index 00000000000..10dee5082b5
--- /dev/null
+++ b/docs-devsite/vertexai-preview.generativemodel.md
@@ -0,0 +1,202 @@
+Project: /docs/reference/js/_project.yaml
+Book: /docs/reference/_book.yaml
+page_type: reference
+
+{% comment %}
+DO NOT EDIT THIS FILE!
+This is generated by the JS SDK team, and any local changes will be
+overwritten. Changes should be made in the source code at
+https://github.com/firebase/firebase-js-sdk
+{% endcomment %}
+
+# GenerativeModel class
+Class for generative model APIs.
+
+Signature:
+
+```typescript
+export declare class GenerativeModel
+```
+
+## Constructors
+
+| Constructor | Modifiers | Description |
+| --- | --- | --- |
+| [(constructor)(vertexAI, modelParams, chromeAdapter, requestOptions)](./vertexai-preview.generativemodel.md#generativemodelconstructor) | | Constructs a new instance of the GenerativeModel
class |
+
+## Properties
+
+| Property | Modifiers | Type | Description |
+| --- | --- | --- | --- |
+| [generationConfig](./vertexai-preview.generativemodel.md#generativemodelgenerationconfig) | | [GenerationConfig](./vertexai-preview.generationconfig.md#generationconfig_interface) | |
+| [model](./vertexai-preview.generativemodel.md#generativemodelmodel) | | string | |
+| [requestOptions](./vertexai-preview.generativemodel.md#generativemodelrequestoptions) | | [RequestOptions](./vertexai-preview.requestoptions.md#requestoptions_interface) | |
+| [safetySettings](./vertexai-preview.generativemodel.md#generativemodelsafetysettings) | | [SafetySetting](./vertexai-preview.safetysetting.md#safetysetting_interface)\[\] | |
+| [systemInstruction](./vertexai-preview.generativemodel.md#generativemodelsysteminstruction) | | [Content](./vertexai-preview.content.md#content_interface) | |
+| [toolConfig](./vertexai-preview.generativemodel.md#generativemodeltoolconfig) | | [ToolConfig](./vertexai-preview.toolconfig.md#toolconfig_interface) | |
+| [tools](./vertexai-preview.generativemodel.md#generativemodeltools) | | [Tool](./vertexai-preview.md#tool)\[\] | |
+
+## Methods
+
+| Method | Modifiers | Description |
+| --- | --- | --- |
+| [countTokens(request)](./vertexai-preview.generativemodel.md#generativemodelcounttokens) | | Counts the tokens in the provided request. |
+| [generateContent(request)](./vertexai-preview.generativemodel.md#generativemodelgeneratecontent) | | Makes a single non-streaming call to the model and returns an object containing a single [GenerateContentResponse](./vertexai-preview.generatecontentresponse.md#generatecontentresponse_interface). |
+| [generateContentStream(request)](./vertexai-preview.generativemodel.md#generativemodelgeneratecontentstream) | | Makes a single streaming call to the model and returns an object containing an iterable stream that iterates over all chunks in the streaming response as well as a promise that returns the final aggregated response. |
+| [startChat(startChatParams)](./vertexai-preview.generativemodel.md#generativemodelstartchat) | | Gets a new [ChatSession](./vertexai-preview.chatsession.md#chatsession_class) instance which can be used for multi-turn chats. |
+
+## GenerativeModel.(constructor)
+
+Constructs a new instance of the `GenerativeModel` class
+
+Signature:
+
+```typescript
+constructor(vertexAI: VertexAI, modelParams: ModelParams, chromeAdapter: ChromeAdapter, requestOptions?: RequestOptions);
+```
+
+#### Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| vertexAI | [VertexAI](./vertexai-preview.vertexai.md#vertexai_interface) | |
+| modelParams | [ModelParams](./vertexai-preview.modelparams.md#modelparams_interface) | |
+| chromeAdapter | ChromeAdapter | |
+| requestOptions | [RequestOptions](./vertexai-preview.requestoptions.md#requestoptions_interface) | |
+
+## GenerativeModel.generationConfig
+
+Signature:
+
+```typescript
+generationConfig: GenerationConfig;
+```
+
+## GenerativeModel.model
+
+Signature:
+
+```typescript
+model: string;
+```
+
+## GenerativeModel.requestOptions
+
+Signature:
+
+```typescript
+requestOptions?: RequestOptions;
+```
+
+## GenerativeModel.safetySettings
+
+Signature:
+
+```typescript
+safetySettings: SafetySetting[];
+```
+
+## GenerativeModel.systemInstruction
+
+Signature:
+
+```typescript
+systemInstruction?: Content;
+```
+
+## GenerativeModel.toolConfig
+
+Signature:
+
+```typescript
+toolConfig?: ToolConfig;
+```
+
+## GenerativeModel.tools
+
+Signature:
+
+```typescript
+tools?: Tool[];
+```
+
+## GenerativeModel.countTokens()
+
+Counts the tokens in the provided request.
+
+Signature:
+
+```typescript
+countTokens(request: CountTokensRequest | string | Array): Promise;
+```
+
+#### Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| request | [CountTokensRequest](./vertexai-preview.counttokensrequest.md#counttokensrequest_interface) \| string \| Array<string \| [Part](./vertexai-preview.md#part)> | |
+
+Returns:
+
+Promise<[CountTokensResponse](./vertexai-preview.counttokensresponse.md#counttokensresponse_interface)>
+
+## GenerativeModel.generateContent()
+
+Makes a single non-streaming call to the model and returns an object containing a single [GenerateContentResponse](./vertexai-preview.generatecontentresponse.md#generatecontentresponse_interface).
+
+Signature:
+
+```typescript
+generateContent(request: GenerateContentRequest | string | Array): Promise;
+```
+
+#### Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| request | [GenerateContentRequest](./vertexai-preview.generatecontentrequest.md#generatecontentrequest_interface) \| string \| Array<string \| [Part](./vertexai-preview.md#part)> | |
+
+Returns:
+
+Promise<[GenerateContentResult](./vertexai-preview.generatecontentresult.md#generatecontentresult_interface)>
+
+## GenerativeModel.generateContentStream()
+
+Makes a single streaming call to the model and returns an object containing an iterable stream that iterates over all chunks in the streaming response as well as a promise that returns the final aggregated response.
+
+Signature:
+
+```typescript
+generateContentStream(request: GenerateContentRequest | string | Array): Promise;
+```
+
+#### Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| request | [GenerateContentRequest](./vertexai-preview.generatecontentrequest.md#generatecontentrequest_interface) \| string \| Array<string \| [Part](./vertexai-preview.md#part)> | |
+
+Returns:
+
+Promise<[GenerateContentStreamResult](./vertexai-preview.generatecontentstreamresult.md#generatecontentstreamresult_interface)>
+
+## GenerativeModel.startChat()
+
+Gets a new [ChatSession](./vertexai-preview.chatsession.md#chatsession_class) instance which can be used for multi-turn chats.
+
+Signature:
+
+```typescript
+startChat(startChatParams?: StartChatParams): ChatSession;
+```
+
+#### Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| startChatParams | [StartChatParams](./vertexai-preview.startchatparams.md#startchatparams_interface) | |
+
+Returns:
+
+[ChatSession](./vertexai-preview.chatsession.md#chatsession_class)
+
diff --git a/docs-devsite/vertexai.groundingattribution.md b/docs-devsite/vertexai-preview.groundingattribution.md
similarity index 58%
rename from docs-devsite/vertexai.groundingattribution.md
rename to docs-devsite/vertexai-preview.groundingattribution.md
index b3a3b6257c3..2c7d2f09e0b 100644
--- a/docs-devsite/vertexai.groundingattribution.md
+++ b/docs-devsite/vertexai-preview.groundingattribution.md
@@ -10,9 +10,6 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# GroundingAttribution interface
-> Warning: This API is now obsolete.
->
->
Signature:
@@ -24,10 +21,10 @@ export interface GroundingAttribution
| Property | Type | Description |
| --- | --- | --- |
-| [confidenceScore](./vertexai.groundingattribution.md#groundingattributionconfidencescore) | number | |
-| [retrievedContext](./vertexai.groundingattribution.md#groundingattributionretrievedcontext) | [RetrievedContextAttribution](./vertexai.retrievedcontextattribution.md#retrievedcontextattribution_interface) | |
-| [segment](./vertexai.groundingattribution.md#groundingattributionsegment) | [Segment](./vertexai.segment.md#segment_interface) | |
-| [web](./vertexai.groundingattribution.md#groundingattributionweb) | [WebAttribution](./vertexai.webattribution.md#webattribution_interface) | |
+| [confidenceScore](./vertexai-preview.groundingattribution.md#groundingattributionconfidencescore) | number | |
+| [retrievedContext](./vertexai-preview.groundingattribution.md#groundingattributionretrievedcontext) | [RetrievedContextAttribution](./vertexai-preview.retrievedcontextattribution.md#retrievedcontextattribution_interface) | |
+| [segment](./vertexai-preview.groundingattribution.md#groundingattributionsegment) | [Segment](./vertexai-preview.segment.md#segment_interface) | |
+| [web](./vertexai-preview.groundingattribution.md#groundingattributionweb) | [WebAttribution](./vertexai-preview.webattribution.md#webattribution_interface) | |
## GroundingAttribution.confidenceScore
diff --git a/docs-devsite/vertexai.groundingmetadata.md b/docs-devsite/vertexai-preview.groundingmetadata.md
similarity index 65%
rename from docs-devsite/vertexai.groundingmetadata.md
rename to docs-devsite/vertexai-preview.groundingmetadata.md
index 24686da39ba..5f40a00457d 100644
--- a/docs-devsite/vertexai.groundingmetadata.md
+++ b/docs-devsite/vertexai-preview.groundingmetadata.md
@@ -22,16 +22,12 @@ export interface GroundingMetadata
| Property | Type | Description |
| --- | --- | --- |
-| [groundingAttributions](./vertexai.groundingmetadata.md#groundingmetadatagroundingattributions) | [GroundingAttribution](./vertexai.groundingattribution.md#groundingattribution_interface)\[\] | |
-| [retrievalQueries](./vertexai.groundingmetadata.md#groundingmetadataretrievalqueries) | string\[\] | |
-| [webSearchQueries](./vertexai.groundingmetadata.md#groundingmetadatawebsearchqueries) | string\[\] | |
+| [groundingAttributions](./vertexai-preview.groundingmetadata.md#groundingmetadatagroundingattributions) | [GroundingAttribution](./vertexai-preview.groundingattribution.md#groundingattribution_interface)\[\] | |
+| [retrievalQueries](./vertexai-preview.groundingmetadata.md#groundingmetadataretrievalqueries) | string\[\] | |
+| [webSearchQueries](./vertexai-preview.groundingmetadata.md#groundingmetadatawebsearchqueries) | string\[\] | |
## GroundingMetadata.groundingAttributions
-> Warning: This API is now obsolete.
->
->
-
Signature:
```typescript
diff --git a/docs-devsite/vertexai-preview.hybridparams.md b/docs-devsite/vertexai-preview.hybridparams.md
new file mode 100644
index 00000000000..7aff1084a23
--- /dev/null
+++ b/docs-devsite/vertexai-preview.hybridparams.md
@@ -0,0 +1,57 @@
+Project: /docs/reference/js/_project.yaml
+Book: /docs/reference/_book.yaml
+page_type: reference
+
+{% comment %}
+DO NOT EDIT THIS FILE!
+This is generated by the JS SDK team, and any local changes will be
+overwritten. Changes should be made in the source code at
+https://github.com/firebase/firebase-js-sdk
+{% endcomment %}
+
+# HybridParams interface
+Configures on-device and on-cloud inference.
+
+Signature:
+
+```typescript
+export interface HybridParams
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [mode](./vertexai-preview.hybridparams.md#hybridparamsmode) | [InferenceMode](./vertexai-preview.md#inferencemode) | Optional. Specifies on-device or on-cloud inference. Defaults to prefer on-device. |
+| [onCloudParams](./vertexai-preview.hybridparams.md#hybridparamsoncloudparams) | [ModelParams](./vertexai-preview.modelparams.md#modelparams_interface) | Optional. Specifies advanced params for on-cloud inference. |
+| [onDeviceParams](./vertexai-preview.hybridparams.md#hybridparamsondeviceparams) | AILanguageModelCreateOptionsWithSystemPrompt | Optional. Specifies advanced params for on-device inference |
+
+## HybridParams.mode
+
+Optional. Specifies on-device or on-cloud inference. Defaults to prefer on-device.
+
+Signature:
+
+```typescript
+mode?: InferenceMode;
+```
+
+## HybridParams.onCloudParams
+
+Optional. Specifies advanced params for on-cloud inference.
+
+Signature:
+
+```typescript
+onCloudParams?: ModelParams;
+```
+
+## HybridParams.onDeviceParams
+
+Optional. Specifies advanced params for on-device inference
+
+Signature:
+
+```typescript
+onDeviceParams?: AILanguageModelCreateOptionsWithSystemPrompt;
+```
diff --git a/docs-devsite/vertexai.inlinedatapart.md b/docs-devsite/vertexai-preview.inlinedatapart.md
similarity index 60%
rename from docs-devsite/vertexai.inlinedatapart.md
rename to docs-devsite/vertexai-preview.inlinedatapart.md
index 0cb064fc357..ae05f80ddb7 100644
--- a/docs-devsite/vertexai.inlinedatapart.md
+++ b/docs-devsite/vertexai-preview.inlinedatapart.md
@@ -22,11 +22,11 @@ export interface InlineDataPart
| Property | Type | Description |
| --- | --- | --- |
-| [functionCall](./vertexai.inlinedatapart.md#inlinedatapartfunctioncall) | never | |
-| [functionResponse](./vertexai.inlinedatapart.md#inlinedatapartfunctionresponse) | never | |
-| [inlineData](./vertexai.inlinedatapart.md#inlinedatapartinlinedata) | [GenerativeContentBlob](./vertexai.generativecontentblob.md#generativecontentblob_interface) | |
-| [text](./vertexai.inlinedatapart.md#inlinedataparttext) | never | |
-| [videoMetadata](./vertexai.inlinedatapart.md#inlinedatapartvideometadata) | [VideoMetadata](./vertexai.videometadata.md#videometadata_interface) | Applicable if inlineData
is a video. |
+| [functionCall](./vertexai-preview.inlinedatapart.md#inlinedatapartfunctioncall) | never | |
+| [functionResponse](./vertexai-preview.inlinedatapart.md#inlinedatapartfunctionresponse) | never | |
+| [inlineData](./vertexai-preview.inlinedatapart.md#inlinedatapartinlinedata) | [GenerativeContentBlob](./vertexai-preview.generativecontentblob.md#generativecontentblob_interface) | |
+| [text](./vertexai-preview.inlinedatapart.md#inlinedataparttext) | never | |
+| [videoMetadata](./vertexai-preview.inlinedatapart.md#inlinedatapartvideometadata) | [VideoMetadata](./vertexai-preview.videometadata.md#videometadata_interface) | Applicable if inlineData
is a video. |
## InlineDataPart.functionCall
diff --git a/docs-devsite/vertexai-preview.md b/docs-devsite/vertexai-preview.md
new file mode 100644
index 00000000000..d164a3ce95d
--- /dev/null
+++ b/docs-devsite/vertexai-preview.md
@@ -0,0 +1,417 @@
+Project: /docs/reference/js/_project.yaml
+Book: /docs/reference/_book.yaml
+page_type: reference
+
+{% comment %}
+DO NOT EDIT THIS FILE!
+This is generated by the JS SDK team, and any local changes will be
+overwritten. Changes should be made in the source code at
+https://github.com/firebase/firebase-js-sdk
+{% endcomment %}
+
+# vertexai-preview package
+The Vertex AI in Firebase Web SDK.
+
+## Functions
+
+| Function | Description |
+| --- | --- |
+| function(app, ...) |
+| [getVertexAI(app, options)](./vertexai-preview.md#getvertexai_04094cf) | Returns a [VertexAI](./vertexai-preview.vertexai.md#vertexai_interface) instance for the given app. |
+| function(vertexAI, ...) |
+| [getGenerativeModel(vertexAI, onCloudOrHybridParams, requestOptions)](./vertexai-preview.md#getgenerativemodel_202434f) | Returns a [GenerativeModel](./vertexai-preview.generativemodel.md#generativemodel_class) class with methods for inference and other functionality. |
+
+## Classes
+
+| Class | Description |
+| --- | --- |
+| [ChatSession](./vertexai-preview.chatsession.md#chatsession_class) | ChatSession class that enables sending chat messages and stores history of sent and received messages so far. |
+| [GenerativeModel](./vertexai-preview.generativemodel.md#generativemodel_class) | Class for generative model APIs. |
+| [VertexAIError](./vertexai-preview.vertexaierror.md#vertexaierror_class) | Error class for the Vertex AI in Firebase SDK. |
+
+## Enumerations
+
+| Enumeration | Description |
+| --- | --- |
+| [BlockReason](./vertexai-preview.md#blockreason) | Reason that a prompt was blocked. |
+| [FinishReason](./vertexai-preview.md#finishreason) | Reason that a candidate finished. |
+| [FunctionCallingMode](./vertexai-preview.md#functioncallingmode) | |
+| [FunctionDeclarationSchemaType](./vertexai-preview.md#functiondeclarationschematype) | Contains the list of OpenAPI data types as defined by https://swagger.io/docs/specification/data-models/data-types/ |
+| [HarmBlockMethod](./vertexai-preview.md#harmblockmethod) | |
+| [HarmBlockThreshold](./vertexai-preview.md#harmblockthreshold) | Threshold above which a prompt or candidate will be blocked. |
+| [HarmCategory](./vertexai-preview.md#harmcategory) | Harm categories that would cause prompts or candidates to be blocked. |
+| [HarmProbability](./vertexai-preview.md#harmprobability) | Probability that a prompt or candidate matches a harm category. |
+| [HarmSeverity](./vertexai-preview.md#harmseverity) | Harm severity levels. |
+| [InferenceMode](./vertexai-preview.md#inferencemode) | Determines whether inference happens on-device or on-cloud. |
+| [VertexAIErrorCode](./vertexai-preview.md#vertexaierrorcode) | Standardized error codes that [VertexAIError](./vertexai-preview.vertexaierror.md#vertexaierror_class) can have. |
+
+## Interfaces
+
+| Interface | Description |
+| --- | --- |
+| [BaseParams](./vertexai-preview.baseparams.md#baseparams_interface) | Base parameters for a number of methods. |
+| [Citation](./vertexai-preview.citation.md#citation_interface) | A single citation. |
+| [CitationMetadata](./vertexai-preview.citationmetadata.md#citationmetadata_interface) | Citation metadata that may be found on a [GenerateContentCandidate](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidate_interface). |
+| [Content](./vertexai-preview.content.md#content_interface) | Content type for both prompts and response candidates. |
+| [CountTokensRequest](./vertexai-preview.counttokensrequest.md#counttokensrequest_interface) | Params for calling [GenerativeModel.countTokens()](./vertexai-preview.generativemodel.md#generativemodelcounttokens) |
+| [CountTokensResponse](./vertexai-preview.counttokensresponse.md#counttokensresponse_interface) | Response from calling [GenerativeModel.countTokens()](./vertexai-preview.generativemodel.md#generativemodelcounttokens). |
+| [CustomErrorData](./vertexai-preview.customerrordata.md#customerrordata_interface) | Details object that contains data originating from a bad HTTP response. |
+| [Date\_2](./vertexai-preview.date_2.md#date_2_interface) | Protobuf google.type.Date |
+| [EnhancedGenerateContentResponse](./vertexai-preview.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponse_interface) | Response object wrapped with helper methods. |
+| [ErrorDetails](./vertexai-preview.errordetails.md#errordetails_interface) | Details object that may be included in an error response. |
+| [FileData](./vertexai-preview.filedata.md#filedata_interface) | Data pointing to a file uploaded on Google Cloud Storage. |
+| [FileDataPart](./vertexai-preview.filedatapart.md#filedatapart_interface) | Content part interface if the part represents [FileData](./vertexai-preview.filedata.md#filedata_interface) |
+| [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface) | A predicted [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface) returned from the model that contains a string representing the [FunctionDeclaration.name](./vertexai-preview.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing the parameters and their values. |
+| [FunctionCallingConfig](./vertexai-preview.functioncallingconfig.md#functioncallingconfig_interface) | |
+| [FunctionCallPart](./vertexai-preview.functioncallpart.md#functioncallpart_interface) | Content part interface if the part represents a [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface). |
+| [FunctionDeclaration](./vertexai-preview.functiondeclaration.md#functiondeclaration_interface) | Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration
is a representation of a block of code that can be used as a Tool by the model and executed by the client. |
+| [FunctionDeclarationSchema](./vertexai-preview.functiondeclarationschema.md#functiondeclarationschema_interface) | Schema for parameters passed to [FunctionDeclaration.parameters](./vertexai-preview.functiondeclaration.md#functiondeclarationparameters). |
+| [FunctionDeclarationSchemaProperty](./vertexai-preview.functiondeclarationschemaproperty.md#functiondeclarationschemaproperty_interface) | Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed. |
+| [FunctionDeclarationsTool](./vertexai-preview.functiondeclarationstool.md#functiondeclarationstool_interface) | A FunctionDeclarationsTool
is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. |
+| [FunctionResponse](./vertexai-preview.functionresponse.md#functionresponse_interface) | The result output from a [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface) that contains a string representing the [FunctionDeclaration.name](./vertexai-preview.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a [FunctionCall](./vertexai-preview.functioncall.md#functioncall_interface) made based on model prediction. |
+| [FunctionResponsePart](./vertexai-preview.functionresponsepart.md#functionresponsepart_interface) | Content part interface if the part represents [FunctionResponse](./vertexai-preview.functionresponse.md#functionresponse_interface). |
+| [GenerateContentCandidate](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidate_interface) | A candidate returned as part of a [GenerateContentResponse](./vertexai-preview.generatecontentresponse.md#generatecontentresponse_interface). |
+| [GenerateContentRequest](./vertexai-preview.generatecontentrequest.md#generatecontentrequest_interface) | Request sent through [GenerativeModel.generateContent()](./vertexai-preview.generativemodel.md#generativemodelgeneratecontent) |
+| [GenerateContentResponse](./vertexai-preview.generatecontentresponse.md#generatecontentresponse_interface) | Individual response from [GenerativeModel.generateContent()](./vertexai-preview.generativemodel.md#generativemodelgeneratecontent) and [GenerativeModel.generateContentStream()](./vertexai-preview.generativemodel.md#generativemodelgeneratecontentstream). generateContentStream()
will return one in each chunk until the stream is done. |
+| [GenerateContentResult](./vertexai-preview.generatecontentresult.md#generatecontentresult_interface) | Result object returned from [GenerativeModel.generateContent()](./vertexai-preview.generativemodel.md#generativemodelgeneratecontent) call. |
+| [GenerateContentStreamResult](./vertexai-preview.generatecontentstreamresult.md#generatecontentstreamresult_interface) | Result object returned from [GenerativeModel.generateContentStream()](./vertexai-preview.generativemodel.md#generativemodelgeneratecontentstream) call. Iterate over stream
to get chunks as they come in and/or use the response
promise to get the aggregated response when the stream is done. |
+| [GenerationConfig](./vertexai-preview.generationconfig.md#generationconfig_interface) | Config options for content-related requests |
+| [GenerativeContentBlob](./vertexai-preview.generativecontentblob.md#generativecontentblob_interface) | Interface for sending an image. |
+| [GroundingAttribution](./vertexai-preview.groundingattribution.md#groundingattribution_interface) | |
+| [GroundingMetadata](./vertexai-preview.groundingmetadata.md#groundingmetadata_interface) | Metadata returned to client when grounding is enabled. |
+| [HybridParams](./vertexai-preview.hybridparams.md#hybridparams_interface) | Configures on-device and on-cloud inference. |
+| [InlineDataPart](./vertexai-preview.inlinedatapart.md#inlinedatapart_interface) | Content part interface if the part represents an image. |
+| [ModelParams](./vertexai-preview.modelparams.md#modelparams_interface) | Params passed to [getGenerativeModel()](./vertexai-preview.md#getgenerativemodel_202434f). |
+| [PromptFeedback](./vertexai-preview.promptfeedback.md#promptfeedback_interface) | If the prompt was blocked, this will be populated with blockReason
and the relevant safetyRatings
. |
+| [RequestOptions](./vertexai-preview.requestoptions.md#requestoptions_interface) | Params passed to [getGenerativeModel()](./vertexai-preview.md#getgenerativemodel_202434f). |
+| [RetrievedContextAttribution](./vertexai-preview.retrievedcontextattribution.md#retrievedcontextattribution_interface) | |
+| [SafetyRating](./vertexai-preview.safetyrating.md#safetyrating_interface) | A safety rating associated with a [GenerateContentCandidate](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidate_interface) |
+| [SafetySetting](./vertexai-preview.safetysetting.md#safetysetting_interface) | Safety setting that can be sent as part of request parameters. |
+| [Segment](./vertexai-preview.segment.md#segment_interface) | |
+| [StartChatParams](./vertexai-preview.startchatparams.md#startchatparams_interface) | Params for [GenerativeModel.startChat()](./vertexai-preview.generativemodel.md#generativemodelstartchat). |
+| [TextPart](./vertexai-preview.textpart.md#textpart_interface) | Content part interface if the part represents a text string. |
+| [ToolConfig](./vertexai-preview.toolconfig.md#toolconfig_interface) | Tool config. This config is shared for all tools provided in the request. |
+| [UsageMetadata](./vertexai-preview.usagemetadata.md#usagemetadata_interface) | Usage metadata about a [GenerateContentResponse](./vertexai-preview.generatecontentresponse.md#generatecontentresponse_interface). |
+| [VertexAI](./vertexai-preview.vertexai.md#vertexai_interface) | An instance of the Vertex AI in Firebase SDK. |
+| [VertexAIOptions](./vertexai-preview.vertexaioptions.md#vertexaioptions_interface) | Options when initializing the Vertex AI in Firebase SDK. |
+| [VideoMetadata](./vertexai-preview.videometadata.md#videometadata_interface) | Describes the input video content. |
+| [WebAttribution](./vertexai-preview.webattribution.md#webattribution_interface) | |
+
+## Variables
+
+| Variable | Description |
+| --- | --- |
+| [POSSIBLE\_ROLES](./vertexai-preview.md#possible_roles) | Possible roles. |
+
+## Type Aliases
+
+| Type Alias | Description |
+| --- | --- |
+| [Part](./vertexai-preview.md#part) | Content part - includes text, image/video, or function call/response part types. |
+| [Role](./vertexai-preview.md#role) | Role is the producer of the content. |
+| [Tool](./vertexai-preview.md#tool) | Defines a tool that model can call to access external knowledge. |
+
+## function(app, ...)
+
+### getVertexAI(app, options) {:#getvertexai_04094cf}
+
+Returns a [VertexAI](./vertexai-preview.vertexai.md#vertexai_interface) instance for the given app.
+
+Signature:
+
+```typescript
+export declare function getVertexAI(app?: FirebaseApp, options?: VertexAIOptions): VertexAI;
+```
+
+#### Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| app | [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) | The [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) to use. |
+| options | [VertexAIOptions](./vertexai-preview.vertexaioptions.md#vertexaioptions_interface) | |
+
+Returns:
+
+[VertexAI](./vertexai-preview.vertexai.md#vertexai_interface)
+
+## function(vertexAI, ...)
+
+### getGenerativeModel(vertexAI, onCloudOrHybridParams, requestOptions) {:#getgenerativemodel_202434f}
+
+Returns a [GenerativeModel](./vertexai-preview.generativemodel.md#generativemodel_class) class with methods for inference and other functionality.
+
+Signature:
+
+```typescript
+export declare function getGenerativeModel(vertexAI: VertexAI, onCloudOrHybridParams: ModelParams | HybridParams, requestOptions?: RequestOptions): GenerativeModel;
+```
+
+#### Parameters
+
+| Parameter | Type | Description |
+| --- | --- | --- |
+| vertexAI | [VertexAI](./vertexai-preview.vertexai.md#vertexai_interface) | |
+| onCloudOrHybridParams | [ModelParams](./vertexai-preview.modelparams.md#modelparams_interface) \| [HybridParams](./vertexai-preview.hybridparams.md#hybridparams_interface) | |
+| requestOptions | [RequestOptions](./vertexai-preview.requestoptions.md#requestoptions_interface) | |
+
+Returns:
+
+[GenerativeModel](./vertexai-preview.generativemodel.md#generativemodel_class)
+
+## POSSIBLE\_ROLES
+
+Possible roles.
+
+Signature:
+
+```typescript
+POSSIBLE_ROLES: readonly ["user", "model", "function", "system"]
+```
+
+## Part
+
+Content part - includes text, image/video, or function call/response part types.
+
+Signature:
+
+```typescript
+export declare type Part = TextPart | InlineDataPart | FunctionCallPart | FunctionResponsePart | FileDataPart;
+```
+
+## Role
+
+Role is the producer of the content.
+
+Signature:
+
+```typescript
+export declare type Role = (typeof POSSIBLE_ROLES)[number];
+```
+
+## Tool
+
+Defines a tool that model can call to access external knowledge.
+
+Signature:
+
+```typescript
+export declare type Tool = FunctionDeclarationsTool;
+```
+
+## BlockReason
+
+Reason that a prompt was blocked.
+
+Signature:
+
+```typescript
+export declare enum BlockReason
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| BLOCKED\_REASON\_UNSPECIFIED | "BLOCKED_REASON_UNSPECIFIED"
| |
+| OTHER | "OTHER"
| |
+| SAFETY | "SAFETY"
| |
+
+## FinishReason
+
+Reason that a candidate finished.
+
+Signature:
+
+```typescript
+export declare enum FinishReason
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| FINISH\_REASON\_UNSPECIFIED | "FINISH_REASON_UNSPECIFIED"
| |
+| MAX\_TOKENS | "MAX_TOKENS"
| |
+| OTHER | "OTHER"
| |
+| RECITATION | "RECITATION"
| |
+| SAFETY | "SAFETY"
| |
+| STOP | "STOP"
| |
+
+## FunctionCallingMode
+
+
+Signature:
+
+```typescript
+export declare enum FunctionCallingMode
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| ANY | "ANY"
| |
+| AUTO | "AUTO"
| |
+| MODE\_UNSPECIFIED | "MODE_UNSPECIFIED"
| |
+| NONE | "NONE"
| |
+
+## FunctionDeclarationSchemaType
+
+Contains the list of OpenAPI data types as defined by https://swagger.io/docs/specification/data-models/data-types/
+
+Signature:
+
+```typescript
+export declare enum FunctionDeclarationSchemaType
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| ARRAY | "ARRAY"
| Array type. |
+| BOOLEAN | "BOOLEAN"
| Boolean type. |
+| INTEGER | "INTEGER"
| Integer type. |
+| NUMBER | "NUMBER"
| Number type. |
+| OBJECT | "OBJECT"
| Object type. |
+| STRING | "STRING"
| String type. |
+
+## HarmBlockMethod
+
+
+Signature:
+
+```typescript
+export declare enum HarmBlockMethod
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| HARM\_BLOCK\_METHOD\_UNSPECIFIED | "HARM_BLOCK_METHOD_UNSPECIFIED"
| |
+| PROBABILITY | "PROBABILITY"
| |
+| SEVERITY | "SEVERITY"
| |
+
+## HarmBlockThreshold
+
+Threshold above which a prompt or candidate will be blocked.
+
+Signature:
+
+```typescript
+export declare enum HarmBlockThreshold
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| BLOCK\_LOW\_AND\_ABOVE | "BLOCK_LOW_AND_ABOVE"
| |
+| BLOCK\_MEDIUM\_AND\_ABOVE | "BLOCK_MEDIUM_AND_ABOVE"
| |
+| BLOCK\_NONE | "BLOCK_NONE"
| |
+| BLOCK\_ONLY\_HIGH | "BLOCK_ONLY_HIGH"
| |
+| HARM\_BLOCK\_THRESHOLD\_UNSPECIFIED | "HARM_BLOCK_THRESHOLD_UNSPECIFIED"
| |
+
+## HarmCategory
+
+Harm categories that would cause prompts or candidates to be blocked.
+
+Signature:
+
+```typescript
+export declare enum HarmCategory
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| HARM\_CATEGORY\_DANGEROUS\_CONTENT | "HARM_CATEGORY_DANGEROUS_CONTENT"
| |
+| HARM\_CATEGORY\_HARASSMENT | "HARM_CATEGORY_HARASSMENT"
| |
+| HARM\_CATEGORY\_HATE\_SPEECH | "HARM_CATEGORY_HATE_SPEECH"
| |
+| HARM\_CATEGORY\_SEXUALLY\_EXPLICIT | "HARM_CATEGORY_SEXUALLY_EXPLICIT"
| |
+| HARM\_CATEGORY\_UNSPECIFIED | "HARM_CATEGORY_UNSPECIFIED"
| |
+
+## HarmProbability
+
+Probability that a prompt or candidate matches a harm category.
+
+Signature:
+
+```typescript
+export declare enum HarmProbability
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| HARM\_PROBABILITY\_UNSPECIFIED | "HARM_PROBABILITY_UNSPECIFIED"
| |
+| HIGH | "HIGH"
| |
+| LOW | "LOW"
| |
+| MEDIUM | "MEDIUM"
| |
+| NEGLIGIBLE | "NEGLIGIBLE"
| |
+
+## HarmSeverity
+
+Harm severity levels.
+
+Signature:
+
+```typescript
+export declare enum HarmSeverity
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| HARM\_SEVERITY\_HIGH | "HARM_SEVERITY_HIGH"
| |
+| HARM\_SEVERITY\_LOW | "HARM_SEVERITY_LOW"
| |
+| HARM\_SEVERITY\_MEDIUM | "HARM_SEVERITY_MEDIUM"
| |
+| HARM\_SEVERITY\_NEGLIGIBLE | "HARM_SEVERITY_NEGLIGIBLE"
| |
+| HARM\_SEVERITY\_UNSPECIFIED | "HARM_SEVERITY_UNSPECIFIED"
| |
+
+## InferenceMode
+
+Determines whether inference happens on-device or on-cloud.
+
+Signature:
+
+```typescript
+export declare enum InferenceMode
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| ONLY\_ON\_CLOUD | "ONLY_ON_CLOUD"
| |
+| ONLY\_ON\_DEVICE | "ONLY_ON_DEVICE"
| |
+| PREFER\_ON\_DEVICE | "PREFER_ON_DEVICE"
| |
+
+## VertexAIErrorCode
+
+Standardized error codes that [VertexAIError](./vertexai-preview.vertexaierror.md#vertexaierror_class) can have.
+
+Signature:
+
+```typescript
+export declare const enum VertexAIErrorCode
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| ERROR | "error"
| A generic error occurred. |
+| FETCH\_ERROR | "fetch-error"
| An error occurred while performing a fetch. |
+| INVALID\_CONTENT | "invalid-content"
| An error associated with a Content object. |
+| NO\_API\_KEY | "no-api-key"
| An error occurred due to a missing Firebase API key. |
+| NO\_MODEL | "no-model"
| An error occurred due to a model name not being specified during initialization. |
+| NO\_PROJECT\_ID | "no-project-id"
| An error occurred due to a missing project ID. |
+| PARSE\_FAILED | "parse-failed"
| An error occurred while parsing. |
+| REQUEST\_ERROR | "request-error"
| An error occurred in a request. |
+| RESPONSE\_ERROR | "response-error"
| An error occurred in a response. |
+
diff --git a/docs-devsite/vertexai.modelparams.md b/docs-devsite/vertexai-preview.modelparams.md
similarity index 54%
rename from docs-devsite/vertexai.modelparams.md
rename to docs-devsite/vertexai-preview.modelparams.md
index 590bc14e435..5a6bad0d65a 100644
--- a/docs-devsite/vertexai.modelparams.md
+++ b/docs-devsite/vertexai-preview.modelparams.md
@@ -10,23 +10,23 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# ModelParams interface
-Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_e3037c9)
.
+Params passed to [getGenerativeModel()](./vertexai-preview.md#getgenerativemodel_202434f).
Signature:
```typescript
export interface ModelParams extends BaseParams
```
-Extends: [BaseParams](./vertexai.baseparams.md#baseparams_interface)
+Extends: [BaseParams](./vertexai-preview.baseparams.md#baseparams_interface)
## Properties
| Property | Type | Description |
| --- | --- | --- |
-| [model](./vertexai.modelparams.md#modelparamsmodel) | string | |
-| [systemInstruction](./vertexai.modelparams.md#modelparamssysteminstruction) | string \| [Part](./vertexai.md#part) \| [Content](./vertexai.content.md#content_interface) | |
-| [toolConfig](./vertexai.modelparams.md#modelparamstoolconfig) | [ToolConfig](./vertexai.toolconfig.md#toolconfig_interface) | |
-| [tools](./vertexai.modelparams.md#modelparamstools) | [Tool](./vertexai.md#tool)\[\] | |
+| [model](./vertexai-preview.modelparams.md#modelparamsmodel) | string | |
+| [systemInstruction](./vertexai-preview.modelparams.md#modelparamssysteminstruction) | string \| [Part](./vertexai-preview.md#part) \| [Content](./vertexai-preview.content.md#content_interface) | |
+| [toolConfig](./vertexai-preview.modelparams.md#modelparamstoolconfig) | [ToolConfig](./vertexai-preview.toolconfig.md#toolconfig_interface) | |
+| [tools](./vertexai-preview.modelparams.md#modelparamstools) | [Tool](./vertexai-preview.md#tool)\[\] | |
## ModelParams.model
diff --git a/docs-devsite/vertexai.promptfeedback.md b/docs-devsite/vertexai-preview.promptfeedback.md
similarity index 66%
rename from docs-devsite/vertexai.promptfeedback.md
rename to docs-devsite/vertexai-preview.promptfeedback.md
index 369ef02051d..cb27f10c8c3 100644
--- a/docs-devsite/vertexai.promptfeedback.md
+++ b/docs-devsite/vertexai-preview.promptfeedback.md
@@ -22,16 +22,16 @@ export interface PromptFeedback
| Property | Type | Description |
| --- | --- | --- |
-| [blockReason](./vertexai.promptfeedback.md#promptfeedbackblockreason) | [BlockReason](./vertexai.md#blockreason) | |
-| [blockReasonMessage](./vertexai.promptfeedback.md#promptfeedbackblockreasonmessage) | string | |
-| [safetyRatings](./vertexai.promptfeedback.md#promptfeedbacksafetyratings) | [SafetyRating](./vertexai.safetyrating.md#safetyrating_interface)\[\] | |
+| [blockReason](./vertexai-preview.promptfeedback.md#promptfeedbackblockreason) | [BlockReason](./vertexai-preview.md#blockreason) | |
+| [blockReasonMessage](./vertexai-preview.promptfeedback.md#promptfeedbackblockreasonmessage) | string | |
+| [safetyRatings](./vertexai-preview.promptfeedback.md#promptfeedbacksafetyratings) | [SafetyRating](./vertexai-preview.safetyrating.md#safetyrating_interface)\[\] | |
## PromptFeedback.blockReason
Signature:
```typescript
-blockReason?: BlockReason;
+blockReason: BlockReason;
```
## PromptFeedback.blockReasonMessage
diff --git a/docs-devsite/vertexai.requestoptions.md b/docs-devsite/vertexai-preview.requestoptions.md
similarity index 55%
rename from docs-devsite/vertexai.requestoptions.md
rename to docs-devsite/vertexai-preview.requestoptions.md
index 6d074775520..dbd25b7a962 100644
--- a/docs-devsite/vertexai.requestoptions.md
+++ b/docs-devsite/vertexai-preview.requestoptions.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# RequestOptions interface
-Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_e3037c9)
.
+Params passed to [getGenerativeModel()](./vertexai-preview.md#getgenerativemodel_202434f).
Signature:
@@ -22,12 +22,12 @@ export interface RequestOptions
| Property | Type | Description |
| --- | --- | --- |
-| [baseUrl](./vertexai.requestoptions.md#requestoptionsbaseurl) | string | Base url for endpoint. Defaults to https://firebasevertexai.googleapis.com |
-| [timeout](./vertexai.requestoptions.md#requestoptionstimeout) | number | Request timeout in milliseconds. Defaults to 180 seconds (180000ms). |
+| [baseUrl](./vertexai-preview.requestoptions.md#requestoptionsbaseurl) | string | Base url for endpoint. Defaults to https://firebaseml.googleapis.com |
+| [timeout](./vertexai-preview.requestoptions.md#requestoptionstimeout) | number | Request timeout in milliseconds. |
## RequestOptions.baseUrl
-Base url for endpoint. Defaults to https://firebasevertexai.googleapis.com
+Base url for endpoint. Defaults to https://firebaseml.googleapis.com
Signature:
@@ -37,7 +37,7 @@ baseUrl?: string;
## RequestOptions.timeout
-Request timeout in milliseconds. Defaults to 180 seconds (180000ms).
+Request timeout in milliseconds.
Signature:
diff --git a/docs-devsite/vertexai.retrievedcontextattribution.md b/docs-devsite/vertexai-preview.retrievedcontextattribution.md
similarity index 76%
rename from docs-devsite/vertexai.retrievedcontextattribution.md
rename to docs-devsite/vertexai-preview.retrievedcontextattribution.md
index e36bfacb3ec..0a121cdc004 100644
--- a/docs-devsite/vertexai.retrievedcontextattribution.md
+++ b/docs-devsite/vertexai-preview.retrievedcontextattribution.md
@@ -21,8 +21,8 @@ export interface RetrievedContextAttribution
| Property | Type | Description |
| --- | --- | --- |
-| [title](./vertexai.retrievedcontextattribution.md#retrievedcontextattributiontitle) | string | |
-| [uri](./vertexai.retrievedcontextattribution.md#retrievedcontextattributionuri) | string | |
+| [title](./vertexai-preview.retrievedcontextattribution.md#retrievedcontextattributiontitle) | string | |
+| [uri](./vertexai-preview.retrievedcontextattribution.md#retrievedcontextattributionuri) | string | |
## RetrievedContextAttribution.title
diff --git a/docs-devsite/vertexai.safetyrating.md b/docs-devsite/vertexai-preview.safetyrating.md
similarity index 55%
rename from docs-devsite/vertexai.safetyrating.md
rename to docs-devsite/vertexai-preview.safetyrating.md
index b5f204bef2c..65b1bc8fb42 100644
--- a/docs-devsite/vertexai.safetyrating.md
+++ b/docs-devsite/vertexai-preview.safetyrating.md
@@ -10,7 +10,7 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# SafetyRating interface
-A safety rating associated with a [GenerateContentCandidate](./vertexai.generatecontentcandidate.md#generatecontentcandidate_interface)
+A safety rating associated with a [GenerateContentCandidate](./vertexai-preview.generatecontentcandidate.md#generatecontentcandidate_interface)
Signature:
@@ -22,12 +22,12 @@ export interface SafetyRating
| Property | Type | Description |
| --- | --- | --- |
-| [blocked](./vertexai.safetyrating.md#safetyratingblocked) | boolean | |
-| [category](./vertexai.safetyrating.md#safetyratingcategory) | [HarmCategory](./vertexai.md#harmcategory) | |
-| [probability](./vertexai.safetyrating.md#safetyratingprobability) | [HarmProbability](./vertexai.md#harmprobability) | |
-| [probabilityScore](./vertexai.safetyrating.md#safetyratingprobabilityscore) | number | |
-| [severity](./vertexai.safetyrating.md#safetyratingseverity) | [HarmSeverity](./vertexai.md#harmseverity) | |
-| [severityScore](./vertexai.safetyrating.md#safetyratingseverityscore) | number | |
+| [blocked](./vertexai-preview.safetyrating.md#safetyratingblocked) | boolean | |
+| [category](./vertexai-preview.safetyrating.md#safetyratingcategory) | [HarmCategory](./vertexai-preview.md#harmcategory) | |
+| [probability](./vertexai-preview.safetyrating.md#safetyratingprobability) | [HarmProbability](./vertexai-preview.md#harmprobability) | |
+| [probabilityScore](./vertexai-preview.safetyrating.md#safetyratingprobabilityscore) | number | |
+| [severity](./vertexai-preview.safetyrating.md#safetyratingseverity) | [HarmSeverity](./vertexai-preview.md#harmseverity) | |
+| [severityScore](./vertexai-preview.safetyrating.md#safetyratingseverityscore) | number | |
## SafetyRating.blocked
diff --git a/docs-devsite/vertexai.safetysetting.md b/docs-devsite/vertexai-preview.safetysetting.md
similarity index 64%
rename from docs-devsite/vertexai.safetysetting.md
rename to docs-devsite/vertexai-preview.safetysetting.md
index 17fa1cff839..78678315805 100644
--- a/docs-devsite/vertexai.safetysetting.md
+++ b/docs-devsite/vertexai-preview.safetysetting.md
@@ -22,9 +22,9 @@ export interface SafetySetting
| Property | Type | Description |
| --- | --- | --- |
-| [category](./vertexai.safetysetting.md#safetysettingcategory) | [HarmCategory](./vertexai.md#harmcategory) | |
-| [method](./vertexai.safetysetting.md#safetysettingmethod) | [HarmBlockMethod](./vertexai.md#harmblockmethod) | |
-| [threshold](./vertexai.safetysetting.md#safetysettingthreshold) | [HarmBlockThreshold](./vertexai.md#harmblockthreshold) | |
+| [category](./vertexai-preview.safetysetting.md#safetysettingcategory) | [HarmCategory](./vertexai-preview.md#harmcategory) | |
+| [method](./vertexai-preview.safetysetting.md#safetysettingmethod) | [HarmBlockMethod](./vertexai-preview.md#harmblockmethod) | |
+| [threshold](./vertexai-preview.safetysetting.md#safetysettingthreshold) | [HarmBlockThreshold](./vertexai-preview.md#harmblockthreshold) | |
## SafetySetting.category
@@ -39,7 +39,7 @@ category: HarmCategory;
Signature:
```typescript
-method?: HarmBlockMethod;
+method: HarmBlockMethod;
```
## SafetySetting.threshold
diff --git a/docs-devsite/vertexai.segment.md b/docs-devsite/vertexai-preview.segment.md
similarity index 75%
rename from docs-devsite/vertexai.segment.md
rename to docs-devsite/vertexai-preview.segment.md
index db61f00a149..c64bc3ffcda 100644
--- a/docs-devsite/vertexai.segment.md
+++ b/docs-devsite/vertexai-preview.segment.md
@@ -21,9 +21,9 @@ export interface Segment
| Property | Type | Description |
| --- | --- | --- |
-| [endIndex](./vertexai.segment.md#segmentendindex) | number | |
-| [partIndex](./vertexai.segment.md#segmentpartindex) | number | |
-| [startIndex](./vertexai.segment.md#segmentstartindex) | number | |
+| [endIndex](./vertexai-preview.segment.md#segmentendindex) | number | |
+| [partIndex](./vertexai-preview.segment.md#segmentpartindex) | number | |
+| [startIndex](./vertexai-preview.segment.md#segmentstartindex) | number | |
## Segment.endIndex
diff --git a/docs-devsite/vertexai.startchatparams.md b/docs-devsite/vertexai-preview.startchatparams.md
similarity index 51%
rename from docs-devsite/vertexai.startchatparams.md
rename to docs-devsite/vertexai-preview.startchatparams.md
index e07bbd91d82..f422f7a1ff0 100644
--- a/docs-devsite/vertexai.startchatparams.md
+++ b/docs-devsite/vertexai-preview.startchatparams.md
@@ -10,23 +10,23 @@ https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# StartChatParams interface
-Params for [GenerativeModel.startChat()](./vertexai.generativemodel.md#generativemodelstartchat).
+Params for [GenerativeModel.startChat()](./vertexai-preview.generativemodel.md#generativemodelstartchat).
Signature:
```typescript
export interface StartChatParams extends BaseParams
```
-Extends: [BaseParams](./vertexai.baseparams.md#baseparams_interface)
+Extends: [BaseParams](./vertexai-preview.baseparams.md#baseparams_interface)
## Properties
| Property | Type | Description |
| --- | --- | --- |
-| [history](./vertexai.startchatparams.md#startchatparamshistory) | [Content](./vertexai.content.md#content_interface)\[\] | |
-| [systemInstruction](./vertexai.startchatparams.md#startchatparamssysteminstruction) | string \| [Part](./vertexai.md#part) \| [Content](./vertexai.content.md#content_interface) | |
-| [toolConfig](./vertexai.startchatparams.md#startchatparamstoolconfig) | [ToolConfig](./vertexai.toolconfig.md#toolconfig_interface) | |
-| [tools](./vertexai.startchatparams.md#startchatparamstools) | [Tool](./vertexai.md#tool)\[\] | |
+| [history](./vertexai-preview.startchatparams.md#startchatparamshistory) | [Content](./vertexai-preview.content.md#content_interface)\[\] | |
+| [systemInstruction](./vertexai-preview.startchatparams.md#startchatparamssysteminstruction) | string \| [Part](./vertexai-preview.md#part) \| [Content](./vertexai-preview.content.md#content_interface) | |
+| [toolConfig](./vertexai-preview.startchatparams.md#startchatparamstoolconfig) | [ToolConfig](./vertexai-preview.toolconfig.md#toolconfig_interface) | |
+| [tools](./vertexai-preview.startchatparams.md#startchatparamstools) | [Tool](./vertexai-preview.md#tool)\[\] | |
## StartChatParams.history
diff --git a/docs-devsite/vertexai.textpart.md b/docs-devsite/vertexai-preview.textpart.md
similarity index 72%
rename from docs-devsite/vertexai.textpart.md
rename to docs-devsite/vertexai-preview.textpart.md
index afee40a369d..206168180b2 100644
--- a/docs-devsite/vertexai.textpart.md
+++ b/docs-devsite/vertexai-preview.textpart.md
@@ -22,10 +22,10 @@ export interface TextPart
| Property | Type | Description |
| --- | --- | --- |
-| [functionCall](./vertexai.textpart.md#textpartfunctioncall) | never | |
-| [functionResponse](./vertexai.textpart.md#textpartfunctionresponse) | never | |
-| [inlineData](./vertexai.textpart.md#textpartinlinedata) | never | |
-| [text](./vertexai.textpart.md#textparttext) | string | |
+| [functionCall](./vertexai-preview.textpart.md#textpartfunctioncall) | never | |
+| [functionResponse](./vertexai-preview.textpart.md#textpartfunctionresponse) | never | |
+| [inlineData](./vertexai-preview.textpart.md#textpartinlinedata) | never | |
+| [text](./vertexai-preview.textpart.md#textparttext) | string | |
## TextPart.functionCall
diff --git a/docs-devsite/vertexai.toolconfig.md b/docs-devsite/vertexai-preview.toolconfig.md
similarity index 71%
rename from docs-devsite/vertexai.toolconfig.md
rename to docs-devsite/vertexai-preview.toolconfig.md
index 30c62c17c01..4278eef509b 100644
--- a/docs-devsite/vertexai.toolconfig.md
+++ b/docs-devsite/vertexai-preview.toolconfig.md
@@ -22,12 +22,12 @@ export interface ToolConfig
| Property | Type | Description |
| --- | --- | --- |
-| [functionCallingConfig](./vertexai.toolconfig.md#toolconfigfunctioncallingconfig) | [FunctionCallingConfig](./vertexai.functioncallingconfig.md#functioncallingconfig_interface) | |
+| [functionCallingConfig](./vertexai-preview.toolconfig.md#toolconfigfunctioncallingconfig) | [FunctionCallingConfig](./vertexai-preview.functioncallingconfig.md#functioncallingconfig_interface) | |
## ToolConfig.functionCallingConfig
Signature:
```typescript
-functionCallingConfig?: FunctionCallingConfig;
+functionCallingConfig: FunctionCallingConfig;
```
diff --git a/docs-devsite/vertexai-preview.usagemetadata.md b/docs-devsite/vertexai-preview.usagemetadata.md
new file mode 100644
index 00000000000..2829c9dbd5d
--- /dev/null
+++ b/docs-devsite/vertexai-preview.usagemetadata.md
@@ -0,0 +1,51 @@
+Project: /docs/reference/js/_project.yaml
+Book: /docs/reference/_book.yaml
+page_type: reference
+
+{% comment %}
+DO NOT EDIT THIS FILE!
+This is generated by the JS SDK team, and any local changes will be
+overwritten. Changes should be made in the source code at
+https://github.com/firebase/firebase-js-sdk
+{% endcomment %}
+
+# UsageMetadata interface
+Usage metadata about a [GenerateContentResponse](./vertexai-preview.generatecontentresponse.md#generatecontentresponse_interface).
+
+Signature:
+
+```typescript
+export interface UsageMetadata
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [candidatesTokenCount](./vertexai-preview.usagemetadata.md#usagemetadatacandidatestokencount) | number | |
+| [promptTokenCount](./vertexai-preview.usagemetadata.md#usagemetadataprompttokencount) | number | |
+| [totalTokenCount](./vertexai-preview.usagemetadata.md#usagemetadatatotaltokencount) | number | |
+
+## UsageMetadata.candidatesTokenCount
+
+Signature:
+
+```typescript
+candidatesTokenCount: number;
+```
+
+## UsageMetadata.promptTokenCount
+
+Signature:
+
+```typescript
+promptTokenCount: number;
+```
+
+## UsageMetadata.totalTokenCount
+
+Signature:
+
+```typescript
+totalTokenCount: number;
+```
diff --git a/docs-devsite/vertexai.vertexai.md b/docs-devsite/vertexai-preview.vertexai.md
similarity index 62%
rename from docs-devsite/vertexai.vertexai.md
rename to docs-devsite/vertexai-preview.vertexai.md
index 4797bf8bada..46c13416370 100644
--- a/docs-devsite/vertexai.vertexai.md
+++ b/docs-devsite/vertexai-preview.vertexai.md
@@ -22,12 +22,12 @@ export interface VertexAI
| Property | Type | Description |
| --- | --- | --- |
-| [app](./vertexai.vertexai.md#vertexaiapp) | [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) | The [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) this [VertexAI](./vertexai.vertexai.md#vertexai_interface)
instance is associated with. |
-| [location](./vertexai.vertexai.md#vertexailocation) | string | |
+| [app](./vertexai-preview.vertexai.md#vertexaiapp) | [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) | The [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) this [VertexAI](./vertexai-preview.vertexai.md#vertexai_interface) instance is associated with. |
+| [location](./vertexai-preview.vertexai.md#vertexailocation) | string | |
## VertexAI.app
-The [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) this [VertexAI](./vertexai.vertexai.md#vertexai_interface)
instance is associated with.
+The [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) this [VertexAI](./vertexai-preview.vertexai.md#vertexai_interface) instance is associated with.
Signature:
diff --git a/docs-devsite/vertexai.vertexaierror.md b/docs-devsite/vertexai-preview.vertexaierror.md
similarity index 57%
rename from docs-devsite/vertexai.vertexaierror.md
rename to docs-devsite/vertexai-preview.vertexaierror.md
index 86532ac6018..8ad434d0988 100644
--- a/docs-devsite/vertexai.vertexaierror.md
+++ b/docs-devsite/vertexai-preview.vertexaierror.md
@@ -23,14 +23,15 @@ export declare class VertexAIError extends FirebaseError
| Constructor | Modifiers | Description |
| --- | --- | --- |
-| [(constructor)(code, message, customErrorData)](./vertexai.vertexaierror.md#vertexaierrorconstructor) | | Constructs a new instance of the VertexAIError
class. |
+| [(constructor)(code, message, customErrorData)](./vertexai-preview.vertexaierror.md#vertexaierrorconstructor) | | Constructs a new instance of the VertexAIError
class. |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
-| [code](./vertexai.vertexaierror.md#vertexaierrorcode) | | [VertexAIErrorCode](./vertexai.md#vertexaierrorcode) | |
-| [customErrorData](./vertexai.vertexaierror.md#vertexaierrorcustomerrordata) | | [CustomErrorData](./vertexai.customerrordata.md#customerrordata_interface) \| undefined | |
+| [code](./vertexai-preview.vertexaierror.md#vertexaierrorcode) | | [VertexAIErrorCode](./vertexai-preview.md#vertexaierrorcode) | |
+| [customErrorData](./vertexai-preview.vertexaierror.md#vertexaierrorcustomerrordata) | | [CustomErrorData](./vertexai-preview.customerrordata.md#customerrordata_interface) \| undefined | |
+| [message](./vertexai-preview.vertexaierror.md#vertexaierrormessage) | | string | |
## VertexAIError.(constructor)
@@ -46,9 +47,9 @@ constructor(code: VertexAIErrorCode, message: string, customErrorData?: CustomEr
| Parameter | Type | Description |
| --- | --- | --- |
-| code | [VertexAIErrorCode](./vertexai.md#vertexaierrorcode) | The error code from [VertexAIErrorCode](./vertexai.md#vertexaierrorcode)
. |
+| code | [VertexAIErrorCode](./vertexai-preview.md#vertexaierrorcode) | The error code from [VertexAIErrorCode](./vertexai-preview.md#vertexaierrorcode). |
| message | string | A human-readable message describing the error. |
-| customErrorData | [CustomErrorData](./vertexai.customerrordata.md#customerrordata_interface) \| undefined | Optional error data. |
+| customErrorData | [CustomErrorData](./vertexai-preview.customerrordata.md#customerrordata_interface) \| undefined | Optional error data. |
## VertexAIError.code
@@ -65,3 +66,11 @@ readonly code: VertexAIErrorCode;
```typescript
readonly customErrorData?: CustomErrorData | undefined;
```
+
+## VertexAIError.message
+
+Signature:
+
+```typescript
+readonly message: string;
+```
diff --git a/docs-devsite/vertexai.vertexaioptions.md b/docs-devsite/vertexai-preview.vertexaioptions.md
similarity index 87%
rename from docs-devsite/vertexai.vertexaioptions.md
rename to docs-devsite/vertexai-preview.vertexaioptions.md
index e15b525bfed..4b42406eb95 100644
--- a/docs-devsite/vertexai.vertexaioptions.md
+++ b/docs-devsite/vertexai-preview.vertexaioptions.md
@@ -22,7 +22,7 @@ export interface VertexAIOptions
| Property | Type | Description |
| --- | --- | --- |
-| [location](./vertexai.vertexaioptions.md#vertexaioptionslocation) | string | |
+| [location](./vertexai-preview.vertexaioptions.md#vertexaioptionslocation) | string | |
## VertexAIOptions.location
diff --git a/docs-devsite/vertexai.videometadata.md b/docs-devsite/vertexai-preview.videometadata.md
similarity index 66%
rename from docs-devsite/vertexai.videometadata.md
rename to docs-devsite/vertexai-preview.videometadata.md
index b4f872c4e3d..04d8883bae9 100644
--- a/docs-devsite/vertexai.videometadata.md
+++ b/docs-devsite/vertexai-preview.videometadata.md
@@ -22,8 +22,8 @@ export interface VideoMetadata
| Property | Type | Description |
| --- | --- | --- |
-| [endOffset](./vertexai.videometadata.md#videometadataendoffset) | string | The end offset of the video in protobuf [Duration](https://cloud.google.com/ruby/docs/reference/google-cloud-workflows-v1/latest/Google-Protobuf-Duration#json-mapping) format. |
-| [startOffset](./vertexai.videometadata.md#videometadatastartoffset) | string | The start offset of the video in protobuf [Duration](https://cloud.google.com/ruby/docs/reference/google-cloud-workflows-v1/latest/Google-Protobuf-Duration#json-mapping) format. |
+| [endOffset](./vertexai-preview.videometadata.md#videometadataendoffset) | string | The end offset of the video in protobuf [Duration](https://cloud.google.com/ruby/docs/reference/google-cloud-workflows-v1/latest/Google-Protobuf-Duration#json-mapping) format. |
+| [startOffset](./vertexai-preview.videometadata.md#videometadatastartoffset) | string | The start offset of the video in protobuf [Duration](https://cloud.google.com/ruby/docs/reference/google-cloud-workflows-v1/latest/Google-Protobuf-Duration#json-mapping) format. |
## VideoMetadata.endOffset
diff --git a/docs-devsite/vertexai.webattribution.md b/docs-devsite/vertexai-preview.webattribution.md
similarity index 79%
rename from docs-devsite/vertexai.webattribution.md
rename to docs-devsite/vertexai-preview.webattribution.md
index bb4fecf874d..5db6f94b82e 100644
--- a/docs-devsite/vertexai.webattribution.md
+++ b/docs-devsite/vertexai-preview.webattribution.md
@@ -21,8 +21,8 @@ export interface WebAttribution
| Property | Type | Description |
| --- | --- | --- |
-| [title](./vertexai.webattribution.md#webattributiontitle) | string | |
-| [uri](./vertexai.webattribution.md#webattributionuri) | string | |
+| [title](./vertexai-preview.webattribution.md#webattributiontitle) | string | |
+| [uri](./vertexai-preview.webattribution.md#webattributionuri) | string | |
## WebAttribution.title
diff --git a/docs-devsite/vertexai.arrayschema.md b/docs-devsite/vertexai.arrayschema.md
deleted file mode 100644
index 8f228baf9e8..00000000000
--- a/docs-devsite/vertexai.arrayschema.md
+++ /dev/null
@@ -1,57 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ArraySchema class
-Schema class for "array" types. The `items` param should refer to the type of item that can be a member of the array.
-
-Signature:
-
-```typescript
-export declare class ArraySchema extends Schema
-```
-Extends: [Schema](./vertexai.schema.md#schema_class)
-
-## Constructors
-
-| Constructor | Modifiers | Description |
-| --- | --- | --- |
-| [(constructor)(schemaParams, items)](./vertexai.arrayschema.md#arrayschemaconstructor) | | Constructs a new instance of the ArraySchema
class |
-
-## Properties
-
-| Property | Modifiers | Type | Description |
-| --- | --- | --- | --- |
-| [items](./vertexai.arrayschema.md#arrayschemaitems) | | [TypedSchema](./vertexai.md#typedschema) | |
-
-## ArraySchema.(constructor)
-
-Constructs a new instance of the `ArraySchema` class
-
-Signature:
-
-```typescript
-constructor(schemaParams: SchemaParams, items: TypedSchema);
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| schemaParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) | |
-| items | [TypedSchema](./vertexai.md#typedschema) | |
-
-## ArraySchema.items
-
-Signature:
-
-```typescript
-items: TypedSchema;
-```
diff --git a/docs-devsite/vertexai.booleanschema.md b/docs-devsite/vertexai.booleanschema.md
deleted file mode 100644
index 89449f26142..00000000000
--- a/docs-devsite/vertexai.booleanschema.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# BooleanSchema class
-Schema class for "boolean" types.
-
-Signature:
-
-```typescript
-export declare class BooleanSchema extends Schema
-```
-Extends: [Schema](./vertexai.schema.md#schema_class)
-
-## Constructors
-
-| Constructor | Modifiers | Description |
-| --- | --- | --- |
-| [(constructor)(schemaParams)](./vertexai.booleanschema.md#booleanschemaconstructor) | | Constructs a new instance of the BooleanSchema
class |
-
-## BooleanSchema.(constructor)
-
-Constructs a new instance of the `BooleanSchema` class
-
-Signature:
-
-```typescript
-constructor(schemaParams?: SchemaParams);
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| schemaParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) | |
-
diff --git a/docs-devsite/vertexai.chatsession.md b/docs-devsite/vertexai.chatsession.md
deleted file mode 100644
index cc5a75ace16..00000000000
--- a/docs-devsite/vertexai.chatsession.md
+++ /dev/null
@@ -1,138 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ChatSession class
-ChatSession class that enables sending chat messages and stores history of sent and received messages so far.
-
-Signature:
-
-```typescript
-export declare class ChatSession
-```
-
-## Constructors
-
-| Constructor | Modifiers | Description |
-| --- | --- | --- |
-| [(constructor)(apiSettings, model, params, requestOptions)](./vertexai.chatsession.md#chatsessionconstructor) | | Constructs a new instance of the ChatSession
class |
-
-## Properties
-
-| Property | Modifiers | Type | Description |
-| --- | --- | --- | --- |
-| [model](./vertexai.chatsession.md#chatsessionmodel) | | string | |
-| [params](./vertexai.chatsession.md#chatsessionparams) | | [StartChatParams](./vertexai.startchatparams.md#startchatparams_interface) \| undefined | |
-| [requestOptions](./vertexai.chatsession.md#chatsessionrequestoptions) | | [RequestOptions](./vertexai.requestoptions.md#requestoptions_interface) \| undefined | |
-
-## Methods
-
-| Method | Modifiers | Description |
-| --- | --- | --- |
-| [getHistory()](./vertexai.chatsession.md#chatsessiongethistory) | | Gets the chat history so far. Blocked prompts are not added to history. Neither blocked candidates nor the prompts that generated them are added to history. |
-| [sendMessage(request)](./vertexai.chatsession.md#chatsessionsendmessage) | | Sends a chat message and receives a non-streaming [GenerateContentResult](./vertexai.generatecontentresult.md#generatecontentresult_interface)
|
-| [sendMessageStream(request)](./vertexai.chatsession.md#chatsessionsendmessagestream) | | Sends a chat message and receives the response as a [GenerateContentStreamResult](./vertexai.generatecontentstreamresult.md#generatecontentstreamresult_interface)
containing an iterable stream and a response promise. |
-
-## ChatSession.(constructor)
-
-Constructs a new instance of the `ChatSession` class
-
-Signature:
-
-```typescript
-constructor(apiSettings: ApiSettings, model: string, params?: StartChatParams | undefined, requestOptions?: RequestOptions | undefined);
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| apiSettings | ApiSettings | |
-| model | string | |
-| params | [StartChatParams](./vertexai.startchatparams.md#startchatparams_interface) \| undefined | |
-| requestOptions | [RequestOptions](./vertexai.requestoptions.md#requestoptions_interface) \| undefined | |
-
-## ChatSession.model
-
-Signature:
-
-```typescript
-model: string;
-```
-
-## ChatSession.params
-
-Signature:
-
-```typescript
-params?: StartChatParams | undefined;
-```
-
-## ChatSession.requestOptions
-
-Signature:
-
-```typescript
-requestOptions?: RequestOptions | undefined;
-```
-
-## ChatSession.getHistory()
-
-Gets the chat history so far. Blocked prompts are not added to history. Neither blocked candidates nor the prompts that generated them are added to history.
-
-Signature:
-
-```typescript
-getHistory(): Promise;
-```
-Returns:
-
-Promise<[Content](./vertexai.content.md#content_interface)\[\]>
-
-## ChatSession.sendMessage()
-
-Sends a chat message and receives a non-streaming [GenerateContentResult](./vertexai.generatecontentresult.md#generatecontentresult_interface)
-
-Signature:
-
-```typescript
-sendMessage(request: string | Array): Promise;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| request | string \| Array<string \| [Part](./vertexai.md#part)> | |
-
-Returns:
-
-Promise<[GenerateContentResult](./vertexai.generatecontentresult.md#generatecontentresult_interface)>
-
-## ChatSession.sendMessageStream()
-
-Sends a chat message and receives the response as a [GenerateContentStreamResult](./vertexai.generatecontentstreamresult.md#generatecontentstreamresult_interface)
containing an iterable stream and a response promise.
-
-Signature:
-
-```typescript
-sendMessageStream(request: string | Array): Promise;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| request | string \| Array<string \| [Part](./vertexai.md#part)> | |
-
-Returns:
-
-Promise<[GenerateContentStreamResult](./vertexai.generatecontentstreamresult.md#generatecontentstreamresult_interface)>
-
diff --git a/docs-devsite/vertexai.counttokensrequest.md b/docs-devsite/vertexai.counttokensrequest.md
deleted file mode 100644
index f5875564588..00000000000
--- a/docs-devsite/vertexai.counttokensrequest.md
+++ /dev/null
@@ -1,66 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# CountTokensRequest interface
-Params for calling [GenerativeModel.countTokens()](./vertexai.generativemodel.md#generativemodelcounttokens)
-
-Signature:
-
-```typescript
-export interface CountTokensRequest
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [contents](./vertexai.counttokensrequest.md#counttokensrequestcontents) | [Content](./vertexai.content.md#content_interface)\[\] | |
-| [generationConfig](./vertexai.counttokensrequest.md#counttokensrequestgenerationconfig) | [GenerationConfig](./vertexai.generationconfig.md#generationconfig_interface) | Configuration options that control how the model generates a response. |
-| [systemInstruction](./vertexai.counttokensrequest.md#counttokensrequestsysteminstruction) | string \| [Part](./vertexai.md#part) \| [Content](./vertexai.content.md#content_interface) | Instructions that direct the model to behave a certain way. |
-| [tools](./vertexai.counttokensrequest.md#counttokensrequesttools) | [Tool](./vertexai.md#tool)\[\] | [Tool](./vertexai.md#tool)
configuration. |
-
-## CountTokensRequest.contents
-
-Signature:
-
-```typescript
-contents: Content[];
-```
-
-## CountTokensRequest.generationConfig
-
-Configuration options that control how the model generates a response.
-
-Signature:
-
-```typescript
-generationConfig?: GenerationConfig;
-```
-
-## CountTokensRequest.systemInstruction
-
-Instructions that direct the model to behave a certain way.
-
-Signature:
-
-```typescript
-systemInstruction?: string | Part | Content;
-```
-
-## CountTokensRequest.tools
-
-[Tool](./vertexai.md#tool)
configuration.
-
-Signature:
-
-```typescript
-tools?: Tool[];
-```
diff --git a/docs-devsite/vertexai.functiondeclarationstool.md b/docs-devsite/vertexai.functiondeclarationstool.md
deleted file mode 100644
index 5e728046639..00000000000
--- a/docs-devsite/vertexai.functiondeclarationstool.md
+++ /dev/null
@@ -1,35 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# FunctionDeclarationsTool interface
-A `FunctionDeclarationsTool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
-
-Signature:
-
-```typescript
-export declare interface FunctionDeclarationsTool
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [functionDeclarations](./vertexai.functiondeclarationstool.md#functiondeclarationstoolfunctiondeclarations) | [FunctionDeclaration](./vertexai.functiondeclaration.md#functiondeclaration_interface)\[\] | Optional. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating [FunctionCall](./vertexai.functioncall.md#functioncall_interface)
in the response. User should provide a [FunctionResponse](./vertexai.functionresponse.md#functionresponse_interface)
for each function call in the next turn. Based on the function responses, the model will generate the final response back to the user. Maximum 64 function declarations can be provided. |
-
-## FunctionDeclarationsTool.functionDeclarations
-
-Optional. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating [FunctionCall](./vertexai.functioncall.md#functioncall_interface)
in the response. User should provide a [FunctionResponse](./vertexai.functionresponse.md#functionresponse_interface)
for each function call in the next turn. Based on the function responses, the model will generate the final response back to the user. Maximum 64 function declarations can be provided.
-
-Signature:
-
-```typescript
-functionDeclarations?: FunctionDeclaration[];
-```
diff --git a/docs-devsite/vertexai.generatecontentcandidate.md b/docs-devsite/vertexai.generatecontentcandidate.md
deleted file mode 100644
index a30eef55485..00000000000
--- a/docs-devsite/vertexai.generatecontentcandidate.md
+++ /dev/null
@@ -1,87 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# GenerateContentCandidate interface
-A candidate returned as part of a [GenerateContentResponse](./vertexai.generatecontentresponse.md#generatecontentresponse_interface)
.
-
-Signature:
-
-```typescript
-export interface GenerateContentCandidate
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [citationMetadata](./vertexai.generatecontentcandidate.md#generatecontentcandidatecitationmetadata) | [CitationMetadata](./vertexai.citationmetadata.md#citationmetadata_interface) | |
-| [content](./vertexai.generatecontentcandidate.md#generatecontentcandidatecontent) | [Content](./vertexai.content.md#content_interface) | |
-| [finishMessage](./vertexai.generatecontentcandidate.md#generatecontentcandidatefinishmessage) | string | |
-| [finishReason](./vertexai.generatecontentcandidate.md#generatecontentcandidatefinishreason) | [FinishReason](./vertexai.md#finishreason) | |
-| [groundingMetadata](./vertexai.generatecontentcandidate.md#generatecontentcandidategroundingmetadata) | [GroundingMetadata](./vertexai.groundingmetadata.md#groundingmetadata_interface) | |
-| [index](./vertexai.generatecontentcandidate.md#generatecontentcandidateindex) | number | |
-| [safetyRatings](./vertexai.generatecontentcandidate.md#generatecontentcandidatesafetyratings) | [SafetyRating](./vertexai.safetyrating.md#safetyrating_interface)\[\] | |
-
-## GenerateContentCandidate.citationMetadata
-
-Signature:
-
-```typescript
-citationMetadata?: CitationMetadata;
-```
-
-## GenerateContentCandidate.content
-
-Signature:
-
-```typescript
-content: Content;
-```
-
-## GenerateContentCandidate.finishMessage
-
-Signature:
-
-```typescript
-finishMessage?: string;
-```
-
-## GenerateContentCandidate.finishReason
-
-Signature:
-
-```typescript
-finishReason?: FinishReason;
-```
-
-## GenerateContentCandidate.groundingMetadata
-
-Signature:
-
-```typescript
-groundingMetadata?: GroundingMetadata;
-```
-
-## GenerateContentCandidate.index
-
-Signature:
-
-```typescript
-index: number;
-```
-
-## GenerateContentCandidate.safetyRatings
-
-Signature:
-
-```typescript
-safetyRatings?: SafetyRating[];
-```
diff --git a/docs-devsite/vertexai.generationconfig.md b/docs-devsite/vertexai.generationconfig.md
deleted file mode 100644
index 3c3d0a14ffa..00000000000
--- a/docs-devsite/vertexai.generationconfig.md
+++ /dev/null
@@ -1,118 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# GenerationConfig interface
-Config options for content-related requests
-
-Signature:
-
-```typescript
-export interface GenerationConfig
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [candidateCount](./vertexai.generationconfig.md#generationconfigcandidatecount) | number | |
-| [frequencyPenalty](./vertexai.generationconfig.md#generationconfigfrequencypenalty) | number | |
-| [maxOutputTokens](./vertexai.generationconfig.md#generationconfigmaxoutputtokens) | number | |
-| [presencePenalty](./vertexai.generationconfig.md#generationconfigpresencepenalty) | number | |
-| [responseMimeType](./vertexai.generationconfig.md#generationconfigresponsemimetype) | string | Output response MIME type of the generated candidate text. Supported MIME types are text/plain
(default, text output), application/json
(JSON response in the candidates), and text/x.enum
. |
-| [responseSchema](./vertexai.generationconfig.md#generationconfigresponseschema) | [TypedSchema](./vertexai.md#typedschema) \| [SchemaRequest](./vertexai.schemarequest.md#schemarequest_interface) | Output response schema of the generated candidate text. This value can be a class generated with a [Schema](./vertexai.schema.md#schema_class)
static method like Schema.string()
or Schema.object()
or it can be a plain JS object matching the [SchemaRequest](./vertexai.schemarequest.md#schemarequest_interface)
interface.
Note: This only applies when the specified responseMIMEType
supports a schema; currently this is limited to application/json
and text/x.enum
. |
-| [stopSequences](./vertexai.generationconfig.md#generationconfigstopsequences) | string\[\] | |
-| [temperature](./vertexai.generationconfig.md#generationconfigtemperature) | number | |
-| [topK](./vertexai.generationconfig.md#generationconfigtopk) | number | |
-| [topP](./vertexai.generationconfig.md#generationconfigtopp) | number | |
-
-## GenerationConfig.candidateCount
-
-Signature:
-
-```typescript
-candidateCount?: number;
-```
-
-## GenerationConfig.frequencyPenalty
-
-Signature:
-
-```typescript
-frequencyPenalty?: number;
-```
-
-## GenerationConfig.maxOutputTokens
-
-Signature:
-
-```typescript
-maxOutputTokens?: number;
-```
-
-## GenerationConfig.presencePenalty
-
-Signature:
-
-```typescript
-presencePenalty?: number;
-```
-
-## GenerationConfig.responseMimeType
-
-Output response MIME type of the generated candidate text. Supported MIME types are `text/plain` (default, text output), `application/json` (JSON response in the candidates), and `text/x.enum`.
-
-Signature:
-
-```typescript
-responseMimeType?: string;
-```
-
-## GenerationConfig.responseSchema
-
-Output response schema of the generated candidate text. This value can be a class generated with a [Schema](./vertexai.schema.md#schema_class)
static method like `Schema.string()` or `Schema.object()` or it can be a plain JS object matching the [SchemaRequest](./vertexai.schemarequest.md#schemarequest_interface)
interface.
Note: This only applies when the specified `responseMIMEType` supports a schema; currently this is limited to `application/json` and `text/x.enum`.
-
-Signature:
-
-```typescript
-responseSchema?: TypedSchema | SchemaRequest;
-```
-
-## GenerationConfig.stopSequences
-
-Signature:
-
-```typescript
-stopSequences?: string[];
-```
-
-## GenerationConfig.temperature
-
-Signature:
-
-```typescript
-temperature?: number;
-```
-
-## GenerationConfig.topK
-
-Signature:
-
-```typescript
-topK?: number;
-```
-
-## GenerationConfig.topP
-
-Signature:
-
-```typescript
-topP?: number;
-```
diff --git a/docs-devsite/vertexai.generativemodel.md b/docs-devsite/vertexai.generativemodel.md
deleted file mode 100644
index b734e241e78..00000000000
--- a/docs-devsite/vertexai.generativemodel.md
+++ /dev/null
@@ -1,193 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# GenerativeModel class
-Class for generative model APIs.
-
-Signature:
-
-```typescript
-export declare class GenerativeModel extends VertexAIModel
-```
-Extends: [VertexAIModel](./vertexai.vertexaimodel.md#vertexaimodel_class)
-
-## Constructors
-
-| Constructor | Modifiers | Description |
-| --- | --- | --- |
-| [(constructor)(vertexAI, modelParams, requestOptions)](./vertexai.generativemodel.md#generativemodelconstructor) | | Constructs a new instance of the GenerativeModel
class |
-
-## Properties
-
-| Property | Modifiers | Type | Description |
-| --- | --- | --- | --- |
-| [generationConfig](./vertexai.generativemodel.md#generativemodelgenerationconfig) | | [GenerationConfig](./vertexai.generationconfig.md#generationconfig_interface) | |
-| [requestOptions](./vertexai.generativemodel.md#generativemodelrequestoptions) | | [RequestOptions](./vertexai.requestoptions.md#requestoptions_interface) | |
-| [safetySettings](./vertexai.generativemodel.md#generativemodelsafetysettings) | | [SafetySetting](./vertexai.safetysetting.md#safetysetting_interface)\[\] | |
-| [systemInstruction](./vertexai.generativemodel.md#generativemodelsysteminstruction) | | [Content](./vertexai.content.md#content_interface) | |
-| [toolConfig](./vertexai.generativemodel.md#generativemodeltoolconfig) | | [ToolConfig](./vertexai.toolconfig.md#toolconfig_interface) | |
-| [tools](./vertexai.generativemodel.md#generativemodeltools) | | [Tool](./vertexai.md#tool)\[\] | |
-
-## Methods
-
-| Method | Modifiers | Description |
-| --- | --- | --- |
-| [countTokens(request)](./vertexai.generativemodel.md#generativemodelcounttokens) | | Counts the tokens in the provided request. |
-| [generateContent(request)](./vertexai.generativemodel.md#generativemodelgeneratecontent) | | Makes a single non-streaming call to the model and returns an object containing a single [GenerateContentResponse](./vertexai.generatecontentresponse.md#generatecontentresponse_interface)
. |
-| [generateContentStream(request)](./vertexai.generativemodel.md#generativemodelgeneratecontentstream) | | Makes a single streaming call to the model and returns an object containing an iterable stream that iterates over all chunks in the streaming response as well as a promise that returns the final aggregated response. |
-| [startChat(startChatParams)](./vertexai.generativemodel.md#generativemodelstartchat) | | Gets a new [ChatSession](./vertexai.chatsession.md#chatsession_class)
instance which can be used for multi-turn chats. |
-
-## GenerativeModel.(constructor)
-
-Constructs a new instance of the `GenerativeModel` class
-
-Signature:
-
-```typescript
-constructor(vertexAI: VertexAI, modelParams: ModelParams, requestOptions?: RequestOptions);
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| vertexAI | [VertexAI](./vertexai.vertexai.md#vertexai_interface) | |
-| modelParams | [ModelParams](./vertexai.modelparams.md#modelparams_interface) | |
-| requestOptions | [RequestOptions](./vertexai.requestoptions.md#requestoptions_interface) | |
-
-## GenerativeModel.generationConfig
-
-Signature:
-
-```typescript
-generationConfig: GenerationConfig;
-```
-
-## GenerativeModel.requestOptions
-
-Signature:
-
-```typescript
-requestOptions?: RequestOptions;
-```
-
-## GenerativeModel.safetySettings
-
-Signature:
-
-```typescript
-safetySettings: SafetySetting[];
-```
-
-## GenerativeModel.systemInstruction
-
-Signature:
-
-```typescript
-systemInstruction?: Content;
-```
-
-## GenerativeModel.toolConfig
-
-Signature:
-
-```typescript
-toolConfig?: ToolConfig;
-```
-
-## GenerativeModel.tools
-
-Signature:
-
-```typescript
-tools?: Tool[];
-```
-
-## GenerativeModel.countTokens()
-
-Counts the tokens in the provided request.
-
-Signature:
-
-```typescript
-countTokens(request: CountTokensRequest | string | Array): Promise;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| request | [CountTokensRequest](./vertexai.counttokensrequest.md#counttokensrequest_interface) \| string \| Array<string \| [Part](./vertexai.md#part)> | |
-
-Returns:
-
-Promise<[CountTokensResponse](./vertexai.counttokensresponse.md#counttokensresponse_interface)>
-
-## GenerativeModel.generateContent()
-
-Makes a single non-streaming call to the model and returns an object containing a single [GenerateContentResponse](./vertexai.generatecontentresponse.md#generatecontentresponse_interface)
.
-
-Signature:
-
-```typescript
-generateContent(request: GenerateContentRequest | string | Array): Promise;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| request | [GenerateContentRequest](./vertexai.generatecontentrequest.md#generatecontentrequest_interface) \| string \| Array<string \| [Part](./vertexai.md#part)> | |
-
-Returns:
-
-Promise<[GenerateContentResult](./vertexai.generatecontentresult.md#generatecontentresult_interface)>
-
-## GenerativeModel.generateContentStream()
-
-Makes a single streaming call to the model and returns an object containing an iterable stream that iterates over all chunks in the streaming response as well as a promise that returns the final aggregated response.
-
-Signature:
-
-```typescript
-generateContentStream(request: GenerateContentRequest | string | Array): Promise;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| request | [GenerateContentRequest](./vertexai.generatecontentrequest.md#generatecontentrequest_interface) \| string \| Array<string \| [Part](./vertexai.md#part)> | |
-
-Returns:
-
-Promise<[GenerateContentStreamResult](./vertexai.generatecontentstreamresult.md#generatecontentstreamresult_interface)>
-
-## GenerativeModel.startChat()
-
-Gets a new [ChatSession](./vertexai.chatsession.md#chatsession_class)
instance which can be used for multi-turn chats.
-
-Signature:
-
-```typescript
-startChat(startChatParams?: StartChatParams): ChatSession;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| startChatParams | [StartChatParams](./vertexai.startchatparams.md#startchatparams_interface) | |
-
-Returns:
-
-[ChatSession](./vertexai.chatsession.md#chatsession_class)
-
diff --git a/docs-devsite/vertexai.imagengcsimage.md b/docs-devsite/vertexai.imagengcsimage.md
deleted file mode 100644
index b094e63c1d8..00000000000
--- a/docs-devsite/vertexai.imagengcsimage.md
+++ /dev/null
@@ -1,54 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ImagenGCSImage interface
-An image generated by Imagen, stored in a Cloud Storage for Firebase bucket.
-
-This feature is not available yet.
-
-Signature:
-
-```typescript
-export interface ImagenGCSImage
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [gcsURI](./vertexai.imagengcsimage.md#imagengcsimagegcsuri) | string | The URI of the file stored in a Cloud Storage for Firebase bucket. |
-| [mimeType](./vertexai.imagengcsimage.md#imagengcsimagemimetype) | string | The MIME type of the image; either "image/png"
or "image/jpeg"
.To request a different format, set the imageFormat
property in your [ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface)
. |
-
-## ImagenGCSImage.gcsURI
-
-The URI of the file stored in a Cloud Storage for Firebase bucket.
-
-Signature:
-
-```typescript
-gcsURI: string;
-```
-
-### Example
-
-`"gs://bucket-name/path/sample_0.jpg"`.
-
-## ImagenGCSImage.mimeType
-
-The MIME type of the image; either `"image/png"` or `"image/jpeg"`.
-
-To request a different format, set the `imageFormat` property in your [ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface)
.
-
-Signature:
-
-```typescript
-mimeType: string;
-```
diff --git a/docs-devsite/vertexai.imagengenerationconfig.md b/docs-devsite/vertexai.imagengenerationconfig.md
deleted file mode 100644
index cee7734f789..00000000000
--- a/docs-devsite/vertexai.imagengenerationconfig.md
+++ /dev/null
@@ -1,111 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ImagenGenerationConfig interface
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Configuration options for generating images with Imagen.
-
-See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images-imagen) for more details.
-
-Signature:
-
-```typescript
-export interface ImagenGenerationConfig
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [addWatermark](./vertexai.imagengenerationconfig.md#imagengenerationconfigaddwatermark) | boolean | (Public Preview) Whether to add an invisible watermark to generated images.If set to true
, an invisible SynthID watermark is embedded in generated images to indicate that they are AI generated. If set to false
, watermarking will be disabled.For Imagen 3 models, the default value is true
; see the addWatermark
documentation for more details. |
-| [aspectRatio](./vertexai.imagengenerationconfig.md#imagengenerationconfigaspectratio) | [ImagenAspectRatio](./vertexai.md#imagenaspectratio) | (Public Preview) The aspect ratio of the generated images. The default value is square 1:1. Supported aspect ratios depend on the Imagen model, see [ImagenAspectRatio](./vertexai.md#imagenaspectratio)
for more details. |
-| [imageFormat](./vertexai.imagengenerationconfig.md#imagengenerationconfigimageformat) | [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class) | (Public Preview) The image format of the generated images. The default is PNG.See [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
for more details. |
-| [negativePrompt](./vertexai.imagengenerationconfig.md#imagengenerationconfignegativeprompt) | string | (Public Preview) A description of what should be omitted from the generated images.Support for negative prompts depends on the Imagen model.See the [documentation](http://firebase.google.com/docs/vertex-ai/model-parameters#imagen) for more details. |
-| [numberOfImages](./vertexai.imagengenerationconfig.md#imagengenerationconfignumberofimages) | number | (Public Preview) The number of images to generate. The default value is 1.The number of sample images that may be generated in each request depends on the model (typically up to 4); see the sampleCount
documentation for more details. |
-
-## ImagenGenerationConfig.addWatermark
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Whether to add an invisible watermark to generated images.
-
-If set to `true`, an invisible SynthID watermark is embedded in generated images to indicate that they are AI generated. If set to `false`, watermarking will be disabled.
-
-For Imagen 3 models, the default value is `true`; see the addWatermark
documentation for more details.
-
-Signature:
-
-```typescript
-addWatermark?: boolean;
-```
-
-## ImagenGenerationConfig.aspectRatio
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The aspect ratio of the generated images. The default value is square 1:1. Supported aspect ratios depend on the Imagen model, see [ImagenAspectRatio](./vertexai.md#imagenaspectratio)
for more details.
-
-Signature:
-
-```typescript
-aspectRatio?: ImagenAspectRatio;
-```
-
-## ImagenGenerationConfig.imageFormat
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The image format of the generated images. The default is PNG.
-
-See [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
for more details.
-
-Signature:
-
-```typescript
-imageFormat?: ImagenImageFormat;
-```
-
-## ImagenGenerationConfig.negativePrompt
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-A description of what should be omitted from the generated images.
-
-Support for negative prompts depends on the Imagen model.
-
-See the [documentation](http://firebase.google.com/docs/vertex-ai/model-parameters#imagen) for more details.
-
-Signature:
-
-```typescript
-negativePrompt?: string;
-```
-
-## ImagenGenerationConfig.numberOfImages
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The number of images to generate. The default value is 1.
-
-The number of sample images that may be generated in each request depends on the model (typically up to 4); see the sampleCount
documentation for more details.
-
-Signature:
-
-```typescript
-numberOfImages?: number;
-```
diff --git a/docs-devsite/vertexai.imagengenerationresponse.md b/docs-devsite/vertexai.imagengenerationresponse.md
deleted file mode 100644
index 32ed69718f9..00000000000
--- a/docs-devsite/vertexai.imagengenerationresponse.md
+++ /dev/null
@@ -1,61 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ImagenGenerationResponse interface
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The response from a request to generate images with Imagen.
-
-Signature:
-
-```typescript
-export interface ImagenGenerationResponse
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [filteredReason](./vertexai.imagengenerationresponse.md#imagengenerationresponsefilteredreason) | string | (Public Preview) The reason that images were filtered out. This property will only be defined if one or more images were filtered.Images may be filtered out due to the [ImagenSafetyFilterLevel](./vertexai.md#imagensafetyfilterlevel)
, [ImagenPersonFilterLevel](./vertexai.md#imagenpersonfilterlevel)
, or filtering included in the model. The filter levels may be adjusted in your [ImagenSafetySettings](./vertexai.imagensafetysettings.md#imagensafetysettings_interface)
.See the [Responsible AI and usage guidelines for Imagen](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen) for more details. |
-| [images](./vertexai.imagengenerationresponse.md#imagengenerationresponseimages) | T\[\] | (Public Preview) The images generated by Imagen.The number of images generated may be fewer than the number requested if one or more were filtered out; see filteredReason
. |
-
-## ImagenGenerationResponse.filteredReason
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The reason that images were filtered out. This property will only be defined if one or more images were filtered.
-
-Images may be filtered out due to the [ImagenSafetyFilterLevel](./vertexai.md#imagensafetyfilterlevel)
, [ImagenPersonFilterLevel](./vertexai.md#imagenpersonfilterlevel)
, or filtering included in the model. The filter levels may be adjusted in your [ImagenSafetySettings](./vertexai.imagensafetysettings.md#imagensafetysettings_interface)
.
-
-See the [Responsible AI and usage guidelines for Imagen](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen) for more details.
-
-Signature:
-
-```typescript
-filteredReason?: string;
-```
-
-## ImagenGenerationResponse.images
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The images generated by Imagen.
-
-The number of images generated may be fewer than the number requested if one or more were filtered out; see `filteredReason`.
-
-Signature:
-
-```typescript
-images: T[];
-```
diff --git a/docs-devsite/vertexai.imagenimageformat.md b/docs-devsite/vertexai.imagenimageformat.md
deleted file mode 100644
index 785c7c726fc..00000000000
--- a/docs-devsite/vertexai.imagenimageformat.md
+++ /dev/null
@@ -1,119 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ImagenImageFormat class
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Defines the image format for images generated by Imagen.
-
-Use this class to specify the desired format (JPEG or PNG) and compression quality for images generated by Imagen. This is typically included as part of [ImagenModelParams](./vertexai.imagenmodelparams.md#imagenmodelparams_interface)
.
-
-Signature:
-
-```typescript
-export declare class ImagenImageFormat
-```
-
-## Properties
-
-| Property | Modifiers | Type | Description |
-| --- | --- | --- | --- |
-| [compressionQuality](./vertexai.imagenimageformat.md#imagenimageformatcompressionquality) | | number | (Public Preview) The level of compression (a number between 0 and 100). |
-| [mimeType](./vertexai.imagenimageformat.md#imagenimageformatmimetype) | | string | (Public Preview) The MIME type. |
-
-## Methods
-
-| Method | Modifiers | Description |
-| --- | --- | --- |
-| [jpeg(compressionQuality)](./vertexai.imagenimageformat.md#imagenimageformatjpeg) | static
| (Public Preview) Creates an [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
for a JPEG image. |
-| [png()](./vertexai.imagenimageformat.md#imagenimageformatpng) | static
| (Public Preview) Creates an [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
for a PNG image. |
-
-## ImagenImageFormat.compressionQuality
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The level of compression (a number between 0 and 100).
-
-Signature:
-
-```typescript
-compressionQuality?: number;
-```
-
-## ImagenImageFormat.mimeType
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The MIME type.
-
-Signature:
-
-```typescript
-mimeType: string;
-```
-
-## ImagenImageFormat.jpeg()
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Creates an [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
for a JPEG image.
-
-Signature:
-
-```typescript
-static jpeg(compressionQuality?: number): ImagenImageFormat;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| compressionQuality | number | The level of compression (a number between 0 and 100). |
-
-Returns:
-
-[ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
-
-An [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
object for a JPEG image.
-
-## ImagenImageFormat.png()
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Creates an [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
for a PNG image.
-
-Signature:
-
-```typescript
-static png(): ImagenImageFormat;
-```
-Returns:
-
-[ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
-
-An [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
object for a PNG image.
-
-### Example
-
-
-```javascript
-const imagenModelParams = {
- // ... other ImagenModelParams
- imageFormat: ImagenImageFormat.jpeg(75) // JPEG with a compression level of 75.
-}
-
-```
-
diff --git a/docs-devsite/vertexai.imageninlineimage.md b/docs-devsite/vertexai.imageninlineimage.md
deleted file mode 100644
index 19fe8a67764..00000000000
--- a/docs-devsite/vertexai.imageninlineimage.md
+++ /dev/null
@@ -1,57 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ImagenInlineImage interface
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-An image generated by Imagen, represented as inline data.
-
-Signature:
-
-```typescript
-export interface ImagenInlineImage
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [bytesBase64Encoded](./vertexai.imageninlineimage.md#imageninlineimagebytesbase64encoded) | string | (Public Preview) The base64-encoded image data. |
-| [mimeType](./vertexai.imageninlineimage.md#imageninlineimagemimetype) | string | (Public Preview) The MIME type of the image; either "image/png"
or "image/jpeg"
.To request a different format, set the imageFormat
property in your [ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface)
. |
-
-## ImagenInlineImage.bytesBase64Encoded
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The base64-encoded image data.
-
-Signature:
-
-```typescript
-bytesBase64Encoded: string;
-```
-
-## ImagenInlineImage.mimeType
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The MIME type of the image; either `"image/png"` or `"image/jpeg"`.
-
-To request a different format, set the `imageFormat` property in your [ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface)
.
-
-Signature:
-
-```typescript
-mimeType: string;
-```
diff --git a/docs-devsite/vertexai.imagenmodel.md b/docs-devsite/vertexai.imagenmodel.md
deleted file mode 100644
index 63e15ff133a..00000000000
--- a/docs-devsite/vertexai.imagenmodel.md
+++ /dev/null
@@ -1,157 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ImagenModel class
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Class for Imagen model APIs.
-
-This class provides methods for generating images using the Imagen model.
-
-Signature:
-
-```typescript
-export declare class ImagenModel extends VertexAIModel
-```
-Extends: [VertexAIModel](./vertexai.vertexaimodel.md#vertexaimodel_class)
-
-## Constructors
-
-| Constructor | Modifiers | Description |
-| --- | --- | --- |
-| [(constructor)(vertexAI, modelParams, requestOptions)](./vertexai.imagenmodel.md#imagenmodelconstructor) | | (Public Preview) Constructs a new instance of the [ImagenModel](./vertexai.imagenmodel.md#imagenmodel_class)
class. |
-
-## Properties
-
-| Property | Modifiers | Type | Description |
-| --- | --- | --- | --- |
-| [generationConfig](./vertexai.imagenmodel.md#imagenmodelgenerationconfig) | | [ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface) | (Public Preview) The Imagen generation configuration. |
-| [requestOptions](./vertexai.imagenmodel.md#imagenmodelrequestoptions) | | [RequestOptions](./vertexai.requestoptions.md#requestoptions_interface) \| undefined | (Public Preview) |
-| [safetySettings](./vertexai.imagenmodel.md#imagenmodelsafetysettings) | | [ImagenSafetySettings](./vertexai.imagensafetysettings.md#imagensafetysettings_interface) | (Public Preview) Safety settings for filtering inappropriate content. |
-
-## Methods
-
-| Method | Modifiers | Description |
-| --- | --- | --- |
-| [generateImages(prompt)](./vertexai.imagenmodel.md#imagenmodelgenerateimages) | | (Public Preview) Generates images using the Imagen model and returns them as base64-encoded strings. |
-
-## ImagenModel.(constructor)
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Constructs a new instance of the [ImagenModel](./vertexai.imagenmodel.md#imagenmodel_class)
class.
-
-Signature:
-
-```typescript
-constructor(vertexAI: VertexAI, modelParams: ImagenModelParams, requestOptions?: RequestOptions | undefined);
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| vertexAI | [VertexAI](./vertexai.vertexai.md#vertexai_interface) | An instance of the Vertex AI in Firebase SDK. |
-| modelParams | [ImagenModelParams](./vertexai.imagenmodelparams.md#imagenmodelparams_interface) | Parameters to use when making requests to Imagen. |
-| requestOptions | [RequestOptions](./vertexai.requestoptions.md#requestoptions_interface) \| undefined | Additional options to use when making requests. |
-
-#### Exceptions
-
-If the `apiKey` or `projectId` fields are missing in your Firebase config.
-
-## ImagenModel.generationConfig
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The Imagen generation configuration.
-
-Signature:
-
-```typescript
-generationConfig?: ImagenGenerationConfig;
-```
-
-## ImagenModel.requestOptions
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Signature:
-
-```typescript
-requestOptions?: RequestOptions | undefined;
-```
-
-## ImagenModel.safetySettings
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Safety settings for filtering inappropriate content.
-
-Signature:
-
-```typescript
-safetySettings?: ImagenSafetySettings;
-```
-
-## ImagenModel.generateImages()
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Generates images using the Imagen model and returns them as base64-encoded strings.
-
-If the prompt was not blocked, but one or more of the generated images were filtered, the returned object will have a `filteredReason` property. If all images are filtered, the `images` array will be empty.
-
-Signature:
-
-```typescript
-generateImages(prompt: string): Promise>;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| prompt | string | A text prompt describing the image(s) to generate. |
-
-Returns:
-
-Promise<[ImagenGenerationResponse](./vertexai.imagengenerationresponse.md#imagengenerationresponse_interface)<[ImagenInlineImage](./vertexai.imageninlineimage.md#imageninlineimage_interface)>>
-
-A promise that resolves to an [ImagenGenerationResponse](./vertexai.imagengenerationresponse.md#imagengenerationresponse_interface)
object containing the generated images.
-
-#### Exceptions
-
-If the request to generate images fails. This happens if the prompt is blocked.
-
-### Example
-
-
-```javascript
-const imagen = new ImagenModel(
- vertexAI,
- {
- model: 'imagen-3.0-generate-002'
- }
-);
-
-const response = await imagen.generateImages('A photo of a cat');
-if (response.images.length > 0) {
- console.log(response.images[0].bytesBase64Encoded);
-}
-
-```
-
diff --git a/docs-devsite/vertexai.imagenmodelparams.md b/docs-devsite/vertexai.imagenmodelparams.md
deleted file mode 100644
index 66c4bb0bfe6..00000000000
--- a/docs-devsite/vertexai.imagenmodelparams.md
+++ /dev/null
@@ -1,73 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ImagenModelParams interface
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Parameters for configuring an [ImagenModel](./vertexai.imagenmodel.md#imagenmodel_class)
.
-
-Signature:
-
-```typescript
-export interface ImagenModelParams
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [generationConfig](./vertexai.imagenmodelparams.md#imagenmodelparamsgenerationconfig) | [ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface) | (Public Preview) Configuration options for generating images with Imagen. |
-| [model](./vertexai.imagenmodelparams.md#imagenmodelparamsmodel) | string | (Public Preview) The Imagen model to use for generating images. For example: imagen-3.0-generate-002
.Only Imagen 3 models (named imagen-3.0-*
) are supported.See [model versions](https://firebase.google.com/docs/vertex-ai/models) for a full list of supported Imagen 3 models. |
-| [safetySettings](./vertexai.imagenmodelparams.md#imagenmodelparamssafetysettings) | [ImagenSafetySettings](./vertexai.imagensafetysettings.md#imagensafetysettings_interface) | (Public Preview) Safety settings for filtering potentially inappropriate content. |
-
-## ImagenModelParams.generationConfig
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Configuration options for generating images with Imagen.
-
-Signature:
-
-```typescript
-generationConfig?: ImagenGenerationConfig;
-```
-
-## ImagenModelParams.model
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-The Imagen model to use for generating images. For example: `imagen-3.0-generate-002`.
-
-Only Imagen 3 models (named `imagen-3.0-*`) are supported.
-
-See [model versions](https://firebase.google.com/docs/vertex-ai/models) for a full list of supported Imagen 3 models.
-
-Signature:
-
-```typescript
-model: string;
-```
-
-## ImagenModelParams.safetySettings
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Safety settings for filtering potentially inappropriate content.
-
-Signature:
-
-```typescript
-safetySettings?: ImagenSafetySettings;
-```
diff --git a/docs-devsite/vertexai.imagensafetysettings.md b/docs-devsite/vertexai.imagensafetysettings.md
deleted file mode 100644
index 3cf7931a959..00000000000
--- a/docs-devsite/vertexai.imagensafetysettings.md
+++ /dev/null
@@ -1,57 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ImagenSafetySettings interface
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Settings for controlling the aggressiveness of filtering out sensitive content.
-
-See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details.
-
-Signature:
-
-```typescript
-export interface ImagenSafetySettings
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [personFilterLevel](./vertexai.imagensafetysettings.md#imagensafetysettingspersonfilterlevel) | [ImagenPersonFilterLevel](./vertexai.md#imagenpersonfilterlevel) | (Public Preview) A filter level controlling whether generation of images containing people or faces is allowed. |
-| [safetyFilterLevel](./vertexai.imagensafetysettings.md#imagensafetysettingssafetyfilterlevel) | [ImagenSafetyFilterLevel](./vertexai.md#imagensafetyfilterlevel) | (Public Preview) A filter level controlling how aggressive to filter out sensitive content from generated images. |
-
-## ImagenSafetySettings.personFilterLevel
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-A filter level controlling whether generation of images containing people or faces is allowed.
-
-Signature:
-
-```typescript
-personFilterLevel?: ImagenPersonFilterLevel;
-```
-
-## ImagenSafetySettings.safetyFilterLevel
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-A filter level controlling how aggressive to filter out sensitive content from generated images.
-
-Signature:
-
-```typescript
-safetyFilterLevel?: ImagenSafetyFilterLevel;
-```
diff --git a/docs-devsite/vertexai.integerschema.md b/docs-devsite/vertexai.integerschema.md
deleted file mode 100644
index 4822bdd618b..00000000000
--- a/docs-devsite/vertexai.integerschema.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# IntegerSchema class
-Schema class for "integer" types.
-
-Signature:
-
-```typescript
-export declare class IntegerSchema extends Schema
-```
-Extends: [Schema](./vertexai.schema.md#schema_class)
-
-## Constructors
-
-| Constructor | Modifiers | Description |
-| --- | --- | --- |
-| [(constructor)(schemaParams)](./vertexai.integerschema.md#integerschemaconstructor) | | Constructs a new instance of the IntegerSchema
class |
-
-## IntegerSchema.(constructor)
-
-Constructs a new instance of the `IntegerSchema` class
-
-Signature:
-
-```typescript
-constructor(schemaParams?: SchemaParams);
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| schemaParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) | |
-
diff --git a/docs-devsite/vertexai.md b/docs-devsite/vertexai.md
deleted file mode 100644
index fca51b42f4f..00000000000
--- a/docs-devsite/vertexai.md
+++ /dev/null
@@ -1,560 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# vertexai package
-The Vertex AI in Firebase Web SDK.
-
-## Functions
-
-| Function | Description |
-| --- | --- |
-| function(app, ...) |
-| [getVertexAI(app, options)](./vertexai.md#getvertexai_04094cf) | Returns a [VertexAI](./vertexai.vertexai.md#vertexai_interface)
instance for the given app. |
-| function(vertexAI, ...) |
-| [getGenerativeModel(vertexAI, modelParams, requestOptions)](./vertexai.md#getgenerativemodel_e3037c9) | Returns a [GenerativeModel](./vertexai.generativemodel.md#generativemodel_class)
class with methods for inference and other functionality. |
-| [getImagenModel(vertexAI, modelParams, requestOptions)](./vertexai.md#getimagenmodel_812c375) | (Public Preview) Returns an [ImagenModel](./vertexai.imagenmodel.md#imagenmodel_class)
class with methods for using Imagen.Only Imagen 3 models (named imagen-3.0-*
) are supported. |
-
-## Classes
-
-| Class | Description |
-| --- | --- |
-| [ArraySchema](./vertexai.arrayschema.md#arrayschema_class) | Schema class for "array" types. The items
param should refer to the type of item that can be a member of the array. |
-| [BooleanSchema](./vertexai.booleanschema.md#booleanschema_class) | Schema class for "boolean" types. |
-| [ChatSession](./vertexai.chatsession.md#chatsession_class) | ChatSession class that enables sending chat messages and stores history of sent and received messages so far. |
-| [GenerativeModel](./vertexai.generativemodel.md#generativemodel_class) | Class for generative model APIs. |
-| [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class) | (Public Preview) Defines the image format for images generated by Imagen.Use this class to specify the desired format (JPEG or PNG) and compression quality for images generated by Imagen. This is typically included as part of [ImagenModelParams](./vertexai.imagenmodelparams.md#imagenmodelparams_interface)
. |
-| [ImagenModel](./vertexai.imagenmodel.md#imagenmodel_class) | (Public Preview) Class for Imagen model APIs.This class provides methods for generating images using the Imagen model. |
-| [IntegerSchema](./vertexai.integerschema.md#integerschema_class) | Schema class for "integer" types. |
-| [NumberSchema](./vertexai.numberschema.md#numberschema_class) | Schema class for "number" types. |
-| [ObjectSchema](./vertexai.objectschema.md#objectschema_class) | Schema class for "object" types. The properties
param must be a map of Schema
objects. |
-| [Schema](./vertexai.schema.md#schema_class) | Parent class encompassing all Schema types, with static methods that allow building specific Schema types. This class can be converted with JSON.stringify()
into a JSON string accepted by Vertex AI REST endpoints. (This string conversion is automatically done when calling SDK methods.) |
-| [StringSchema](./vertexai.stringschema.md#stringschema_class) | Schema class for "string" types. Can be used with or without enum values. |
-| [VertexAIError](./vertexai.vertexaierror.md#vertexaierror_class) | Error class for the Vertex AI in Firebase SDK. |
-| [VertexAIModel](./vertexai.vertexaimodel.md#vertexaimodel_class) | Base class for Vertex AI in Firebase model APIs. |
-
-## Enumerations
-
-| Enumeration | Description |
-| --- | --- |
-| [BlockReason](./vertexai.md#blockreason) | Reason that a prompt was blocked. |
-| [FinishReason](./vertexai.md#finishreason) | Reason that a candidate finished. |
-| [FunctionCallingMode](./vertexai.md#functioncallingmode) | |
-| [HarmBlockMethod](./vertexai.md#harmblockmethod) | |
-| [HarmBlockThreshold](./vertexai.md#harmblockthreshold) | Threshold above which a prompt or candidate will be blocked. |
-| [HarmCategory](./vertexai.md#harmcategory) | Harm categories that would cause prompts or candidates to be blocked. |
-| [HarmProbability](./vertexai.md#harmprobability) | Probability that a prompt or candidate matches a harm category. |
-| [HarmSeverity](./vertexai.md#harmseverity) | Harm severity levels. |
-| [ImagenAspectRatio](./vertexai.md#imagenaspectratio) | (Public Preview) Aspect ratios for Imagen images.To specify an aspect ratio for generated images, set the aspectRatio
property in your [ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface)
.See the the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details and examples of the supported aspect ratios. |
-| [ImagenPersonFilterLevel](./vertexai.md#imagenpersonfilterlevel) | (Public Preview) A filter level controlling whether generation of images containing people or faces is allowed.See the personGeneration
documentation for more details. |
-| [ImagenSafetyFilterLevel](./vertexai.md#imagensafetyfilterlevel) | (Public Preview) A filter level controlling how aggressively to filter sensitive content.Text prompts provided as inputs and images (generated or uploaded) through Imagen on Vertex AI are assessed against a list of safety filters, which include 'harmful categories' (for example, violence
, sexual
, derogatory
, and toxic
). This filter level controls how aggressively to filter out potentially harmful content from responses. See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) and the [Responsible AI and usage guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#safety-filters) for more details. |
-| [Modality](./vertexai.md#modality) | Content part modality. |
-| [SchemaType](./vertexai.md#schematype) | Contains the list of OpenAPI data types as defined by the [OpenAPI specification](https://swagger.io/docs/specification/data-models/data-types/) |
-| [VertexAIErrorCode](./vertexai.md#vertexaierrorcode) | Standardized error codes that [VertexAIError](./vertexai.vertexaierror.md#vertexaierror_class)
can have. |
-
-## Interfaces
-
-| Interface | Description |
-| --- | --- |
-| [BaseParams](./vertexai.baseparams.md#baseparams_interface) | Base parameters for a number of methods. |
-| [Citation](./vertexai.citation.md#citation_interface) | A single citation. |
-| [CitationMetadata](./vertexai.citationmetadata.md#citationmetadata_interface) | Citation metadata that may be found on a [GenerateContentCandidate](./vertexai.generatecontentcandidate.md#generatecontentcandidate_interface)
. |
-| [Content](./vertexai.content.md#content_interface) | Content type for both prompts and response candidates. |
-| [CountTokensRequest](./vertexai.counttokensrequest.md#counttokensrequest_interface) | Params for calling [GenerativeModel.countTokens()](./vertexai.generativemodel.md#generativemodelcounttokens) |
-| [CountTokensResponse](./vertexai.counttokensresponse.md#counttokensresponse_interface) | Response from calling [GenerativeModel.countTokens()](./vertexai.generativemodel.md#generativemodelcounttokens). |
-| [CustomErrorData](./vertexai.customerrordata.md#customerrordata_interface) | Details object that contains data originating from a bad HTTP response. |
-| [Date\_2](./vertexai.date_2.md#date_2_interface) | Protobuf google.type.Date |
-| [EnhancedGenerateContentResponse](./vertexai.enhancedgeneratecontentresponse.md#enhancedgeneratecontentresponse_interface) | Response object wrapped with helper methods. |
-| [ErrorDetails](./vertexai.errordetails.md#errordetails_interface) | Details object that may be included in an error response. |
-| [FileData](./vertexai.filedata.md#filedata_interface) | Data pointing to a file uploaded on Google Cloud Storage. |
-| [FileDataPart](./vertexai.filedatapart.md#filedatapart_interface) | Content part interface if the part represents [FileData](./vertexai.filedata.md#filedata_interface)
|
-| [FunctionCall](./vertexai.functioncall.md#functioncall_interface) | A predicted [FunctionCall](./vertexai.functioncall.md#functioncall_interface)
returned from the model that contains a string representing the [FunctionDeclaration.name](./vertexai.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing the parameters and their values. |
-| [FunctionCallingConfig](./vertexai.functioncallingconfig.md#functioncallingconfig_interface) | |
-| [FunctionCallPart](./vertexai.functioncallpart.md#functioncallpart_interface) | Content part interface if the part represents a [FunctionCall](./vertexai.functioncall.md#functioncall_interface)
. |
-| [FunctionDeclaration](./vertexai.functiondeclaration.md#functiondeclaration_interface) | Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration
is a representation of a block of code that can be used as a Tool by the model and executed by the client. |
-| [FunctionDeclarationsTool](./vertexai.functiondeclarationstool.md#functiondeclarationstool_interface) | A FunctionDeclarationsTool
is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. |
-| [FunctionResponse](./vertexai.functionresponse.md#functionresponse_interface) | The result output from a [FunctionCall](./vertexai.functioncall.md#functioncall_interface)
that contains a string representing the [FunctionDeclaration.name](./vertexai.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a [FunctionCall](./vertexai.functioncall.md#functioncall_interface)
made based on model prediction. |
-| [FunctionResponsePart](./vertexai.functionresponsepart.md#functionresponsepart_interface) | Content part interface if the part represents [FunctionResponse](./vertexai.functionresponse.md#functionresponse_interface)
. |
-| [GenerateContentCandidate](./vertexai.generatecontentcandidate.md#generatecontentcandidate_interface) | A candidate returned as part of a [GenerateContentResponse](./vertexai.generatecontentresponse.md#generatecontentresponse_interface)
. |
-| [GenerateContentRequest](./vertexai.generatecontentrequest.md#generatecontentrequest_interface) | Request sent through [GenerativeModel.generateContent()](./vertexai.generativemodel.md#generativemodelgeneratecontent) |
-| [GenerateContentResponse](./vertexai.generatecontentresponse.md#generatecontentresponse_interface) | Individual response from [GenerativeModel.generateContent()](./vertexai.generativemodel.md#generativemodelgeneratecontent) and [GenerativeModel.generateContentStream()](./vertexai.generativemodel.md#generativemodelgeneratecontentstream). generateContentStream()
will return one in each chunk until the stream is done. |
-| [GenerateContentResult](./vertexai.generatecontentresult.md#generatecontentresult_interface) | Result object returned from [GenerativeModel.generateContent()](./vertexai.generativemodel.md#generativemodelgeneratecontent) call. |
-| [GenerateContentStreamResult](./vertexai.generatecontentstreamresult.md#generatecontentstreamresult_interface) | Result object returned from [GenerativeModel.generateContentStream()](./vertexai.generativemodel.md#generativemodelgeneratecontentstream) call. Iterate over stream
to get chunks as they come in and/or use the response
promise to get the aggregated response when the stream is done. |
-| [GenerationConfig](./vertexai.generationconfig.md#generationconfig_interface) | Config options for content-related requests |
-| [GenerativeContentBlob](./vertexai.generativecontentblob.md#generativecontentblob_interface) | Interface for sending an image. |
-| [GroundingAttribution](./vertexai.groundingattribution.md#groundingattribution_interface) | |
-| [GroundingMetadata](./vertexai.groundingmetadata.md#groundingmetadata_interface) | Metadata returned to client when grounding is enabled. |
-| [ImagenGCSImage](./vertexai.imagengcsimage.md#imagengcsimage_interface) | An image generated by Imagen, stored in a Cloud Storage for Firebase bucket.This feature is not available yet. |
-| [ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface) | (Public Preview) Configuration options for generating images with Imagen.See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images-imagen) for more details. |
-| [ImagenGenerationResponse](./vertexai.imagengenerationresponse.md#imagengenerationresponse_interface) | (Public Preview) The response from a request to generate images with Imagen. |
-| [ImagenInlineImage](./vertexai.imageninlineimage.md#imageninlineimage_interface) | (Public Preview) An image generated by Imagen, represented as inline data. |
-| [ImagenModelParams](./vertexai.imagenmodelparams.md#imagenmodelparams_interface) | (Public Preview) Parameters for configuring an [ImagenModel](./vertexai.imagenmodel.md#imagenmodel_class)
. |
-| [ImagenSafetySettings](./vertexai.imagensafetysettings.md#imagensafetysettings_interface) | (Public Preview) Settings for controlling the aggressiveness of filtering out sensitive content.See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details. |
-| [InlineDataPart](./vertexai.inlinedatapart.md#inlinedatapart_interface) | Content part interface if the part represents an image. |
-| [ModalityTokenCount](./vertexai.modalitytokencount.md#modalitytokencount_interface) | Represents token counting info for a single modality. |
-| [ModelParams](./vertexai.modelparams.md#modelparams_interface) | Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_e3037c9)
. |
-| [ObjectSchemaInterface](./vertexai.objectschemainterface.md#objectschemainterface_interface) | Interface for [ObjectSchema](./vertexai.objectschema.md#objectschema_class)
class. |
-| [PromptFeedback](./vertexai.promptfeedback.md#promptfeedback_interface) | If the prompt was blocked, this will be populated with blockReason
and the relevant safetyRatings
. |
-| [RequestOptions](./vertexai.requestoptions.md#requestoptions_interface) | Params passed to [getGenerativeModel()](./vertexai.md#getgenerativemodel_e3037c9)
. |
-| [RetrievedContextAttribution](./vertexai.retrievedcontextattribution.md#retrievedcontextattribution_interface) | |
-| [SafetyRating](./vertexai.safetyrating.md#safetyrating_interface) | A safety rating associated with a [GenerateContentCandidate](./vertexai.generatecontentcandidate.md#generatecontentcandidate_interface)
|
-| [SafetySetting](./vertexai.safetysetting.md#safetysetting_interface) | Safety setting that can be sent as part of request parameters. |
-| [SchemaInterface](./vertexai.schemainterface.md#schemainterface_interface) | Interface for [Schema](./vertexai.schema.md#schema_class)
class. |
-| [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) | Params passed to [Schema](./vertexai.schema.md#schema_class)
static methods to create specific [Schema](./vertexai.schema.md#schema_class)
classes. |
-| [SchemaRequest](./vertexai.schemarequest.md#schemarequest_interface) | Final format for [Schema](./vertexai.schema.md#schema_class)
params passed to backend requests. |
-| [SchemaShared](./vertexai.schemashared.md#schemashared_interface) | Basic [Schema](./vertexai.schema.md#schema_class)
properties shared across several Schema-related types. |
-| [Segment](./vertexai.segment.md#segment_interface) | |
-| [StartChatParams](./vertexai.startchatparams.md#startchatparams_interface) | Params for [GenerativeModel.startChat()](./vertexai.generativemodel.md#generativemodelstartchat). |
-| [TextPart](./vertexai.textpart.md#textpart_interface) | Content part interface if the part represents a text string. |
-| [ToolConfig](./vertexai.toolconfig.md#toolconfig_interface) | Tool config. This config is shared for all tools provided in the request. |
-| [UsageMetadata](./vertexai.usagemetadata.md#usagemetadata_interface) | Usage metadata about a [GenerateContentResponse](./vertexai.generatecontentresponse.md#generatecontentresponse_interface)
. |
-| [VertexAI](./vertexai.vertexai.md#vertexai_interface) | An instance of the Vertex AI in Firebase SDK. |
-| [VertexAIOptions](./vertexai.vertexaioptions.md#vertexaioptions_interface) | Options when initializing the Vertex AI in Firebase SDK. |
-| [VideoMetadata](./vertexai.videometadata.md#videometadata_interface) | Describes the input video content. |
-| [WebAttribution](./vertexai.webattribution.md#webattribution_interface) | |
-
-## Variables
-
-| Variable | Description |
-| --- | --- |
-| [POSSIBLE\_ROLES](./vertexai.md#possible_roles) | Possible roles. |
-
-## Type Aliases
-
-| Type Alias | Description |
-| --- | --- |
-| [Part](./vertexai.md#part) | Content part - includes text, image/video, or function call/response part types. |
-| [Role](./vertexai.md#role) | Role is the producer of the content. |
-| [Tool](./vertexai.md#tool) | Defines a tool that model can call to access external knowledge. |
-| [TypedSchema](./vertexai.md#typedschema) | A type that includes all specific Schema types. |
-
-## function(app, ...)
-
-### getVertexAI(app, options) {:#getvertexai_04094cf}
-
-Returns a [VertexAI](./vertexai.vertexai.md#vertexai_interface)
instance for the given app.
-
-Signature:
-
-```typescript
-export declare function getVertexAI(app?: FirebaseApp, options?: VertexAIOptions): VertexAI;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| app | [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) | The [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface) to use. |
-| options | [VertexAIOptions](./vertexai.vertexaioptions.md#vertexaioptions_interface) | |
-
-Returns:
-
-[VertexAI](./vertexai.vertexai.md#vertexai_interface)
-
-## function(vertexAI, ...)
-
-### getGenerativeModel(vertexAI, modelParams, requestOptions) {:#getgenerativemodel_e3037c9}
-
-Returns a [GenerativeModel](./vertexai.generativemodel.md#generativemodel_class)
class with methods for inference and other functionality.
-
-Signature:
-
-```typescript
-export declare function getGenerativeModel(vertexAI: VertexAI, modelParams: ModelParams, requestOptions?: RequestOptions): GenerativeModel;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| vertexAI | [VertexAI](./vertexai.vertexai.md#vertexai_interface) | |
-| modelParams | [ModelParams](./vertexai.modelparams.md#modelparams_interface) | |
-| requestOptions | [RequestOptions](./vertexai.requestoptions.md#requestoptions_interface) | |
-
-Returns:
-
-[GenerativeModel](./vertexai.generativemodel.md#generativemodel_class)
-
-### getImagenModel(vertexAI, modelParams, requestOptions) {:#getimagenmodel_812c375}
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Returns an [ImagenModel](./vertexai.imagenmodel.md#imagenmodel_class)
class with methods for using Imagen.
-
-Only Imagen 3 models (named `imagen-3.0-*`) are supported.
-
-Signature:
-
-```typescript
-export declare function getImagenModel(vertexAI: VertexAI, modelParams: ImagenModelParams, requestOptions?: RequestOptions): ImagenModel;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| vertexAI | [VertexAI](./vertexai.vertexai.md#vertexai_interface) | An instance of the Vertex AI in Firebase SDK. |
-| modelParams | [ImagenModelParams](./vertexai.imagenmodelparams.md#imagenmodelparams_interface) | Parameters to use when making Imagen requests. |
-| requestOptions | [RequestOptions](./vertexai.requestoptions.md#requestoptions_interface) | Additional options to use when making requests. |
-
-Returns:
-
-[ImagenModel](./vertexai.imagenmodel.md#imagenmodel_class)
-
-#### Exceptions
-
-If the `apiKey` or `projectId` fields are missing in your Firebase config.
-
-## POSSIBLE\_ROLES
-
-Possible roles.
-
-Signature:
-
-```typescript
-POSSIBLE_ROLES: readonly ["user", "model", "function", "system"]
-```
-
-## Part
-
-Content part - includes text, image/video, or function call/response part types.
-
-Signature:
-
-```typescript
-export type Part = TextPart | InlineDataPart | FunctionCallPart | FunctionResponsePart | FileDataPart;
-```
-
-## Role
-
-Role is the producer of the content.
-
-Signature:
-
-```typescript
-export type Role = (typeof POSSIBLE_ROLES)[number];
-```
-
-## Tool
-
-Defines a tool that model can call to access external knowledge.
-
-Signature:
-
-```typescript
-export declare type Tool = FunctionDeclarationsTool;
-```
-
-## TypedSchema
-
-A type that includes all specific Schema types.
-
-Signature:
-
-```typescript
-export type TypedSchema = IntegerSchema | NumberSchema | StringSchema | BooleanSchema | ObjectSchema | ArraySchema;
-```
-
-## BlockReason
-
-Reason that a prompt was blocked.
-
-Signature:
-
-```typescript
-export declare enum BlockReason
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| BLOCKLIST | "BLOCKLIST"
| Content was blocked because it contained terms from the terminology blocklist. |
-| OTHER | "OTHER"
| Content was blocked, but the reason is uncategorized. |
-| PROHIBITED\_CONTENT | "PROHIBITED_CONTENT"
| Content was blocked due to prohibited content. |
-| SAFETY | "SAFETY"
| Content was blocked by safety settings. |
-
-## FinishReason
-
-Reason that a candidate finished.
-
-Signature:
-
-```typescript
-export declare enum FinishReason
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| BLOCKLIST | "BLOCKLIST"
| The candidate content contained forbidden terms. |
-| MALFORMED\_FUNCTION\_CALL | "MALFORMED_FUNCTION_CALL"
| The function call generated by the model was invalid. |
-| MAX\_TOKENS | "MAX_TOKENS"
| The maximum number of tokens as specified in the request was reached. |
-| OTHER | "OTHER"
| Unknown reason. |
-| PROHIBITED\_CONTENT | "PROHIBITED_CONTENT"
| The candidate content potentially contained prohibited content. |
-| RECITATION | "RECITATION"
| The candidate content was flagged for recitation reasons. |
-| SAFETY | "SAFETY"
| The candidate content was flagged for safety reasons. |
-| SPII | "SPII"
| The candidate content potentially contained Sensitive Personally Identifiable Information (SPII). |
-| STOP | "STOP"
| Natural stop point of the model or provided stop sequence. |
-
-## FunctionCallingMode
-
-
-Signature:
-
-```typescript
-export declare enum FunctionCallingMode
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| ANY | "ANY"
| Model is constrained to always predicting a function call only. If allowed_function_names
is set, the predicted function call will be limited to any one of allowed_function_names
, else the predicted function call will be any one of the provided function_declarations
. |
-| AUTO | "AUTO"
| Default model behavior; model decides to predict either a function call or a natural language response. |
-| NONE | "NONE"
| Model will not predict any function call. Model behavior is same as when not passing any function declarations. |
-
-## HarmBlockMethod
-
-
-Signature:
-
-```typescript
-export declare enum HarmBlockMethod
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| PROBABILITY | "PROBABILITY"
| The harm block method uses the probability score. |
-| SEVERITY | "SEVERITY"
| The harm block method uses both probability and severity scores. |
-
-## HarmBlockThreshold
-
-Threshold above which a prompt or candidate will be blocked.
-
-Signature:
-
-```typescript
-export declare enum HarmBlockThreshold
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| BLOCK\_LOW\_AND\_ABOVE | "BLOCK_LOW_AND_ABOVE"
| Content with NEGLIGIBLE
will be allowed. |
-| BLOCK\_MEDIUM\_AND\_ABOVE | "BLOCK_MEDIUM_AND_ABOVE"
| Content with NEGLIGIBLE
and LOW
will be allowed. |
-| BLOCK\_NONE | "BLOCK_NONE"
| All content will be allowed. |
-| BLOCK\_ONLY\_HIGH | "BLOCK_ONLY_HIGH"
| Content with NEGLIGIBLE
, LOW
, and MEDIUM
will be allowed. |
-
-## HarmCategory
-
-Harm categories that would cause prompts or candidates to be blocked.
-
-Signature:
-
-```typescript
-export declare enum HarmCategory
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| HARM\_CATEGORY\_DANGEROUS\_CONTENT | "HARM_CATEGORY_DANGEROUS_CONTENT"
| |
-| HARM\_CATEGORY\_HARASSMENT | "HARM_CATEGORY_HARASSMENT"
| |
-| HARM\_CATEGORY\_HATE\_SPEECH | "HARM_CATEGORY_HATE_SPEECH"
| |
-| HARM\_CATEGORY\_SEXUALLY\_EXPLICIT | "HARM_CATEGORY_SEXUALLY_EXPLICIT"
| |
-
-## HarmProbability
-
-Probability that a prompt or candidate matches a harm category.
-
-Signature:
-
-```typescript
-export declare enum HarmProbability
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| HIGH | "HIGH"
| Content has a high chance of being unsafe. |
-| LOW | "LOW"
| Content has a low chance of being unsafe. |
-| MEDIUM | "MEDIUM"
| Content has a medium chance of being unsafe. |
-| NEGLIGIBLE | "NEGLIGIBLE"
| Content has a negligible chance of being unsafe. |
-
-## HarmSeverity
-
-Harm severity levels.
-
-Signature:
-
-```typescript
-export declare enum HarmSeverity
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| HARM\_SEVERITY\_HIGH | "HARM_SEVERITY_HIGH"
| High level of harm severity. |
-| HARM\_SEVERITY\_LOW | "HARM_SEVERITY_LOW"
| Low level of harm severity. |
-| HARM\_SEVERITY\_MEDIUM | "HARM_SEVERITY_MEDIUM"
| Medium level of harm severity. |
-| HARM\_SEVERITY\_NEGLIGIBLE | "HARM_SEVERITY_NEGLIGIBLE"
| Negligible level of harm severity. |
-
-## ImagenAspectRatio
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-Aspect ratios for Imagen images.
-
-To specify an aspect ratio for generated images, set the `aspectRatio` property in your [ImagenGenerationConfig](./vertexai.imagengenerationconfig.md#imagengenerationconfig_interface)
.
-
-See the the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details and examples of the supported aspect ratios.
-
-Signature:
-
-```typescript
-export declare enum ImagenAspectRatio
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| LANDSCAPE\_16x9 | "16:9"
| (Public Preview) Landscape (16:9) aspect ratio. |
-| LANDSCAPE\_3x4 | "3:4"
| (Public Preview) Landscape (3:4) aspect ratio. |
-| PORTRAIT\_4x3 | "4:3"
| (Public Preview) Portrait (4:3) aspect ratio. |
-| PORTRAIT\_9x16 | "9:16"
| (Public Preview) Portrait (9:16) aspect ratio. |
-| SQUARE | "1:1"
| (Public Preview) Square (1:1) aspect ratio. |
-
-## ImagenPersonFilterLevel
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-A filter level controlling whether generation of images containing people or faces is allowed.
-
-See the personGeneration
documentation for more details.
-
-Signature:
-
-```typescript
-export declare enum ImagenPersonFilterLevel
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| ALLOW\_ADULT | "allow_adult"
| (Public Preview) Allow generation of images containing adults only; images of children are filtered out.Generation of images containing people or faces may require your use case to be reviewed and approved by Cloud support; see the [Responsible AI and usage guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen) for more details. |
-| ALLOW\_ALL | "allow_all"
| (Public Preview) Allow generation of images containing adults only; images of children are filtered out.Generation of images containing people or faces may require your use case to be reviewed and approved by Cloud support; see the [Responsible AI and usage guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen) for more details. |
-| BLOCK\_ALL | "dont_allow"
| (Public Preview) Disallow generation of images containing people or faces; images of people are filtered out. |
-
-## ImagenSafetyFilterLevel
-
-> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
->
-
-A filter level controlling how aggressively to filter sensitive content.
-
-Text prompts provided as inputs and images (generated or uploaded) through Imagen on Vertex AI are assessed against a list of safety filters, which include 'harmful categories' (for example, `violence`, `sexual`, `derogatory`, and `toxic`). This filter level controls how aggressively to filter out potentially harmful content from responses. See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) and the [Responsible AI and usage guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#safety-filters) for more details.
-
-Signature:
-
-```typescript
-export declare enum ImagenSafetyFilterLevel
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| BLOCK\_LOW\_AND\_ABOVE | "block_low_and_above"
| (Public Preview) The most aggressive filtering level; most strict blocking. |
-| BLOCK\_MEDIUM\_AND\_ABOVE | "block_medium_and_above"
| (Public Preview) Blocks some sensitive prompts and responses. |
-| BLOCK\_NONE | "block_none"
| (Public Preview) The least aggressive filtering level; blocks very few sensitive prompts and responses.Access to this feature is restricted and may require your case to be reviewed and approved by Cloud support. |
-| BLOCK\_ONLY\_HIGH | "block_only_high"
| (Public Preview) Blocks few sensitive prompts and responses. |
-
-## Modality
-
-Content part modality.
-
-Signature:
-
-```typescript
-export declare enum Modality
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| AUDIO | "AUDIO"
| Audio. |
-| DOCUMENT | "DOCUMENT"
| Document (for example, PDF). |
-| IMAGE | "IMAGE"
| Image. |
-| MODALITY\_UNSPECIFIED | "MODALITY_UNSPECIFIED"
| Unspecified modality. |
-| TEXT | "TEXT"
| Plain text. |
-| VIDEO | "VIDEO"
| Video. |
-
-## SchemaType
-
-Contains the list of OpenAPI data types as defined by the [OpenAPI specification](https://swagger.io/docs/specification/data-models/data-types/)
-
-Signature:
-
-```typescript
-export declare enum SchemaType
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| ARRAY | "array"
| Array type. |
-| BOOLEAN | "boolean"
| Boolean type. |
-| INTEGER | "integer"
| Integer type. |
-| NUMBER | "number"
| Number type. |
-| OBJECT | "object"
| Object type. |
-| STRING | "string"
| String type. |
-
-## VertexAIErrorCode
-
-Standardized error codes that [VertexAIError](./vertexai.vertexaierror.md#vertexaierror_class)
can have.
-
-Signature:
-
-```typescript
-export declare const enum VertexAIErrorCode
-```
-
-## Enumeration Members
-
-| Member | Value | Description |
-| --- | --- | --- |
-| API\_NOT\_ENABLED | "api-not-enabled"
| An error due to the Firebase API not being enabled in the Console. |
-| ERROR | "error"
| A generic error occurred. |
-| FETCH\_ERROR | "fetch-error"
| An error occurred while performing a fetch. |
-| INVALID\_CONTENT | "invalid-content"
| An error associated with a Content object. |
-| INVALID\_SCHEMA | "invalid-schema"
| An error due to invalid Schema input. |
-| NO\_API\_KEY | "no-api-key"
| An error occurred due to a missing Firebase API key. |
-| NO\_APP\_ID | "no-app-id"
| An error occured due to a missing Firebase app ID. |
-| NO\_MODEL | "no-model"
| An error occurred due to a model name not being specified during initialization. |
-| NO\_PROJECT\_ID | "no-project-id"
| An error occurred due to a missing project ID. |
-| PARSE\_FAILED | "parse-failed"
| An error occurred while parsing. |
-| REQUEST\_ERROR | "request-error"
| An error occurred in a request. |
-| RESPONSE\_ERROR | "response-error"
| An error occurred in a response. |
-
diff --git a/docs-devsite/vertexai.modalitytokencount.md b/docs-devsite/vertexai.modalitytokencount.md
deleted file mode 100644
index d710b51fba6..00000000000
--- a/docs-devsite/vertexai.modalitytokencount.md
+++ /dev/null
@@ -1,46 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ModalityTokenCount interface
-Represents token counting info for a single modality.
-
-Signature:
-
-```typescript
-export interface ModalityTokenCount
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [modality](./vertexai.modalitytokencount.md#modalitytokencountmodality) | [Modality](./vertexai.md#modality) | The modality associated with this token count. |
-| [tokenCount](./vertexai.modalitytokencount.md#modalitytokencounttokencount) | number | The number of tokens counted. |
-
-## ModalityTokenCount.modality
-
-The modality associated with this token count.
-
-Signature:
-
-```typescript
-modality: Modality;
-```
-
-## ModalityTokenCount.tokenCount
-
-The number of tokens counted.
-
-Signature:
-
-```typescript
-tokenCount: number;
-```
diff --git a/docs-devsite/vertexai.numberschema.md b/docs-devsite/vertexai.numberschema.md
deleted file mode 100644
index 8fdd9374652..00000000000
--- a/docs-devsite/vertexai.numberschema.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# NumberSchema class
-Schema class for "number" types.
-
-Signature:
-
-```typescript
-export declare class NumberSchema extends Schema
-```
-Extends: [Schema](./vertexai.schema.md#schema_class)
-
-## Constructors
-
-| Constructor | Modifiers | Description |
-| --- | --- | --- |
-| [(constructor)(schemaParams)](./vertexai.numberschema.md#numberschemaconstructor) | | Constructs a new instance of the NumberSchema
class |
-
-## NumberSchema.(constructor)
-
-Constructs a new instance of the `NumberSchema` class
-
-Signature:
-
-```typescript
-constructor(schemaParams?: SchemaParams);
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| schemaParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) | |
-
diff --git a/docs-devsite/vertexai.objectschema.md b/docs-devsite/vertexai.objectschema.md
deleted file mode 100644
index 8731960b220..00000000000
--- a/docs-devsite/vertexai.objectschema.md
+++ /dev/null
@@ -1,71 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ObjectSchema class
-Schema class for "object" types. The `properties` param must be a map of `Schema` objects.
-
-Signature:
-
-```typescript
-export declare class ObjectSchema extends Schema
-```
-Extends: [Schema](./vertexai.schema.md#schema_class)
-
-## Constructors
-
-| Constructor | Modifiers | Description |
-| --- | --- | --- |
-| [(constructor)(schemaParams, properties, optionalProperties)](./vertexai.objectschema.md#objectschemaconstructor) | | Constructs a new instance of the ObjectSchema
class |
-
-## Properties
-
-| Property | Modifiers | Type | Description |
-| --- | --- | --- | --- |
-| [optionalProperties](./vertexai.objectschema.md#objectschemaoptionalproperties) | | string\[\] | |
-| [properties](./vertexai.objectschema.md#objectschemaproperties) | | { \[k: string\]: [TypedSchema](./vertexai.md#typedschema); } | |
-
-## ObjectSchema.(constructor)
-
-Constructs a new instance of the `ObjectSchema` class
-
-Signature:
-
-```typescript
-constructor(schemaParams: SchemaParams, properties: {
- [k: string]: TypedSchema;
- }, optionalProperties?: string[]);
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| schemaParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) | |
-| properties | { \[k: string\]: [TypedSchema](./vertexai.md#typedschema); } | |
-| optionalProperties | string\[\] | |
-
-## ObjectSchema.optionalProperties
-
-Signature:
-
-```typescript
-optionalProperties: string[];
-```
-
-## ObjectSchema.properties
-
-Signature:
-
-```typescript
-properties: {
- [k: string]: TypedSchema;
- };
-```
diff --git a/docs-devsite/vertexai.objectschemainterface.md b/docs-devsite/vertexai.objectschemainterface.md
deleted file mode 100644
index 6a4e052d183..00000000000
--- a/docs-devsite/vertexai.objectschemainterface.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# ObjectSchemaInterface interface
-Interface for [ObjectSchema](./vertexai.objectschema.md#objectschema_class)
class.
-
-Signature:
-
-```typescript
-export interface ObjectSchemaInterface extends SchemaInterface
-```
-Extends: [SchemaInterface](./vertexai.schemainterface.md#schemainterface_interface)
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [optionalProperties](./vertexai.objectschemainterface.md#objectschemainterfaceoptionalproperties) | string\[\] | |
-| [type](./vertexai.objectschemainterface.md#objectschemainterfacetype) | [SchemaType.OBJECT](./vertexai.md#schematypeobject_enummember) | |
-
-## ObjectSchemaInterface.optionalProperties
-
-Signature:
-
-```typescript
-optionalProperties?: string[];
-```
-
-## ObjectSchemaInterface.type
-
-Signature:
-
-```typescript
-type: SchemaType.OBJECT;
-```
diff --git a/docs-devsite/vertexai.schema.md b/docs-devsite/vertexai.schema.md
deleted file mode 100644
index f4a36c3c506..00000000000
--- a/docs-devsite/vertexai.schema.md
+++ /dev/null
@@ -1,250 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# Schema class
-Parent class encompassing all Schema types, with static methods that allow building specific Schema types. This class can be converted with `JSON.stringify()` into a JSON string accepted by Vertex AI REST endpoints. (This string conversion is automatically done when calling SDK methods.)
-
-Signature:
-
-```typescript
-export declare abstract class Schema implements SchemaInterface
-```
-Implements: [SchemaInterface](./vertexai.schemainterface.md#schemainterface_interface)
-
-## Constructors
-
-| Constructor | Modifiers | Description |
-| --- | --- | --- |
-| [(constructor)(schemaParams)](./vertexai.schema.md#schemaconstructor) | | Constructs a new instance of the Schema
class |
-
-## Properties
-
-| Property | Modifiers | Type | Description |
-| --- | --- | --- | --- |
-| [description](./vertexai.schema.md#schemadescription) | | string | Optional. The description of the property. |
-| [example](./vertexai.schema.md#schemaexample) | | unknown | Optional. The example of the property. |
-| [format](./vertexai.schema.md#schemaformat) | | string | Optional. The format of the property. Supported formats:
- for NUMBER type: "float", "double"
- for INTEGER type: "int32", "int64"
- for STRING type: "email", "byte", etc
|
-| [nullable](./vertexai.schema.md#schemanullable) | | boolean | Optional. Whether the property is nullable. Defaults to false. |
-| [type](./vertexai.schema.md#schematype) | | [SchemaType](./vertexai.md#schematype) | Optional. The type of the property. [SchemaType](./vertexai.md#schematype). |
-
-## Methods
-
-| Method | Modifiers | Description |
-| --- | --- | --- |
-| [array(arrayParams)](./vertexai.schema.md#schemaarray) | static
| |
-| [boolean(booleanParams)](./vertexai.schema.md#schemaboolean) | static
| |
-| [enumString(stringParams)](./vertexai.schema.md#schemaenumstring) | static
| |
-| [integer(integerParams)](./vertexai.schema.md#schemainteger) | static
| |
-| [number(numberParams)](./vertexai.schema.md#schemanumber) | static
| |
-| [object(objectParams)](./vertexai.schema.md#schemaobject) | static
| |
-| [string(stringParams)](./vertexai.schema.md#schemastring) | static
| |
-
-## Schema.(constructor)
-
-Constructs a new instance of the `Schema` class
-
-Signature:
-
-```typescript
-constructor(schemaParams: SchemaInterface);
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| schemaParams | [SchemaInterface](./vertexai.schemainterface.md#schemainterface_interface) | |
-
-## Schema.description
-
-Optional. The description of the property.
-
-Signature:
-
-```typescript
-description?: string;
-```
-
-## Schema.example
-
-Optional. The example of the property.
-
-Signature:
-
-```typescript
-example?: unknown;
-```
-
-## Schema.format
-
-Optional. The format of the property. Supported formats:
- for NUMBER type: "float", "double"
- for INTEGER type: "int32", "int64"
- for STRING type: "email", "byte", etc
-
-Signature:
-
-```typescript
-format?: string;
-```
-
-## Schema.nullable
-
-Optional. Whether the property is nullable. Defaults to false.
-
-Signature:
-
-```typescript
-nullable: boolean;
-```
-
-## Schema.type
-
-Optional. The type of the property. [SchemaType](./vertexai.md#schematype).
-
-Signature:
-
-```typescript
-type: SchemaType;
-```
-
-## Schema.array()
-
-Signature:
-
-```typescript
-static array(arrayParams: SchemaParams & {
- items: Schema;
- }): ArraySchema;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| arrayParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) & { items: [Schema](./vertexai.schema.md#schema_class); } | |
-
-Returns:
-
-[ArraySchema](./vertexai.arrayschema.md#arrayschema_class)
-
-## Schema.boolean()
-
-Signature:
-
-```typescript
-static boolean(booleanParams?: SchemaParams): BooleanSchema;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| booleanParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) | |
-
-Returns:
-
-[BooleanSchema](./vertexai.booleanschema.md#booleanschema_class)
-
-## Schema.enumString()
-
-Signature:
-
-```typescript
-static enumString(stringParams: SchemaParams & {
- enum: string[];
- }): StringSchema;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| stringParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) & { enum: string\[\]; } | |
-
-Returns:
-
-[StringSchema](./vertexai.stringschema.md#stringschema_class)
-
-## Schema.integer()
-
-Signature:
-
-```typescript
-static integer(integerParams?: SchemaParams): IntegerSchema;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| integerParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) | |
-
-Returns:
-
-[IntegerSchema](./vertexai.integerschema.md#integerschema_class)
-
-## Schema.number()
-
-Signature:
-
-```typescript
-static number(numberParams?: SchemaParams): NumberSchema;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| numberParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) | |
-
-Returns:
-
-[NumberSchema](./vertexai.numberschema.md#numberschema_class)
-
-## Schema.object()
-
-Signature:
-
-```typescript
-static object(objectParams: SchemaParams & {
- properties: {
- [k: string]: Schema;
- };
- optionalProperties?: string[];
- }): ObjectSchema;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| objectParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) & { properties: { \[k: string\]: [Schema](./vertexai.schema.md#schema_class); }; optionalProperties?: string\[\]; } | |
-
-Returns:
-
-[ObjectSchema](./vertexai.objectschema.md#objectschema_class)
-
-## Schema.string()
-
-Signature:
-
-```typescript
-static string(stringParams?: SchemaParams): StringSchema;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| stringParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) | |
-
-Returns:
-
-[StringSchema](./vertexai.stringschema.md#stringschema_class)
-
diff --git a/docs-devsite/vertexai.schemainterface.md b/docs-devsite/vertexai.schemainterface.md
deleted file mode 100644
index 3992c9e5116..00000000000
--- a/docs-devsite/vertexai.schemainterface.md
+++ /dev/null
@@ -1,36 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# SchemaInterface interface
-Interface for [Schema](./vertexai.schema.md#schema_class)
class.
-
-Signature:
-
-```typescript
-export interface SchemaInterface extends SchemaShared
-```
-Extends: [SchemaShared](./vertexai.schemashared.md#schemashared_interface)<[SchemaInterface](./vertexai.schemainterface.md#schemainterface_interface)>
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [type](./vertexai.schemainterface.md#schemainterfacetype) | [SchemaType](./vertexai.md#schematype) | The type of the property. [SchemaType](./vertexai.md#schematype). |
-
-## SchemaInterface.type
-
-The type of the property. [SchemaType](./vertexai.md#schematype).
-
-Signature:
-
-```typescript
-type: SchemaType;
-```
diff --git a/docs-devsite/vertexai.schemaparams.md b/docs-devsite/vertexai.schemaparams.md
deleted file mode 100644
index 3c6d9f385fd..00000000000
--- a/docs-devsite/vertexai.schemaparams.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# SchemaParams interface
-Params passed to [Schema](./vertexai.schema.md#schema_class)
static methods to create specific [Schema](./vertexai.schema.md#schema_class)
classes.
-
-Signature:
-
-```typescript
-export interface SchemaParams extends SchemaShared
-```
-Extends: [SchemaShared](./vertexai.schemashared.md#schemashared_interface)<[SchemaInterface](./vertexai.schemainterface.md#schemainterface_interface)>
-
diff --git a/docs-devsite/vertexai.schemarequest.md b/docs-devsite/vertexai.schemarequest.md
deleted file mode 100644
index f12259b1608..00000000000
--- a/docs-devsite/vertexai.schemarequest.md
+++ /dev/null
@@ -1,47 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# SchemaRequest interface
-Final format for [Schema](./vertexai.schema.md#schema_class)
params passed to backend requests.
-
-Signature:
-
-```typescript
-export interface SchemaRequest extends SchemaShared
-```
-Extends: [SchemaShared](./vertexai.schemashared.md#schemashared_interface)<[SchemaRequest](./vertexai.schemarequest.md#schemarequest_interface)>
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [required](./vertexai.schemarequest.md#schemarequestrequired) | string\[\] | Optional. Array of required property. |
-| [type](./vertexai.schemarequest.md#schemarequesttype) | [SchemaType](./vertexai.md#schematype) | The type of the property. [SchemaType](./vertexai.md#schematype). |
-
-## SchemaRequest.required
-
-Optional. Array of required property.
-
-Signature:
-
-```typescript
-required?: string[];
-```
-
-## SchemaRequest.type
-
-The type of the property. [SchemaType](./vertexai.md#schematype).
-
-Signature:
-
-```typescript
-type: SchemaType;
-```
diff --git a/docs-devsite/vertexai.schemashared.md b/docs-devsite/vertexai.schemashared.md
deleted file mode 100644
index 50cc6464ecf..00000000000
--- a/docs-devsite/vertexai.schemashared.md
+++ /dev/null
@@ -1,103 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# SchemaShared interface
-Basic [Schema](./vertexai.schema.md#schema_class)
properties shared across several Schema-related types.
-
-Signature:
-
-```typescript
-export interface SchemaShared
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [description](./vertexai.schemashared.md#schemashareddescription) | string | Optional. The description of the property. |
-| [enum](./vertexai.schemashared.md#schemasharedenum) | string\[\] | Optional. The enum of the property. |
-| [example](./vertexai.schemashared.md#schemasharedexample) | unknown | Optional. The example of the property. |
-| [format](./vertexai.schemashared.md#schemasharedformat) | string | Optional. The format of the property. |
-| [items](./vertexai.schemashared.md#schemashareditems) | T | Optional. The items of the property. |
-| [nullable](./vertexai.schemashared.md#schemasharednullable) | boolean | Optional. Whether the property is nullable. |
-| [properties](./vertexai.schemashared.md#schemasharedproperties) | { \[k: string\]: T; } | Optional. Map of Schema
objects. |
-
-## SchemaShared.description
-
-Optional. The description of the property.
-
-Signature:
-
-```typescript
-description?: string;
-```
-
-## SchemaShared.enum
-
-Optional. The enum of the property.
-
-Signature:
-
-```typescript
-enum?: string[];
-```
-
-## SchemaShared.example
-
-Optional. The example of the property.
-
-Signature:
-
-```typescript
-example?: unknown;
-```
-
-## SchemaShared.format
-
-Optional. The format of the property.
-
-Signature:
-
-```typescript
-format?: string;
-```
-
-## SchemaShared.items
-
-Optional. The items of the property.
-
-Signature:
-
-```typescript
-items?: T;
-```
-
-## SchemaShared.nullable
-
-Optional. Whether the property is nullable.
-
-Signature:
-
-```typescript
-nullable?: boolean;
-```
-
-## SchemaShared.properties
-
-Optional. Map of `Schema` objects.
-
-Signature:
-
-```typescript
-properties?: {
- [k: string]: T;
- };
-```
diff --git a/docs-devsite/vertexai.stringschema.md b/docs-devsite/vertexai.stringschema.md
deleted file mode 100644
index bfafe0fe9df..00000000000
--- a/docs-devsite/vertexai.stringschema.md
+++ /dev/null
@@ -1,57 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# StringSchema class
-Schema class for "string" types. Can be used with or without enum values.
-
-Signature:
-
-```typescript
-export declare class StringSchema extends Schema
-```
-Extends: [Schema](./vertexai.schema.md#schema_class)
-
-## Constructors
-
-| Constructor | Modifiers | Description |
-| --- | --- | --- |
-| [(constructor)(schemaParams, enumValues)](./vertexai.stringschema.md#stringschemaconstructor) | | Constructs a new instance of the StringSchema
class |
-
-## Properties
-
-| Property | Modifiers | Type | Description |
-| --- | --- | --- | --- |
-| [enum](./vertexai.stringschema.md#stringschemaenum) | | string\[\] | |
-
-## StringSchema.(constructor)
-
-Constructs a new instance of the `StringSchema` class
-
-Signature:
-
-```typescript
-constructor(schemaParams?: SchemaParams, enumValues?: string[]);
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| schemaParams | [SchemaParams](./vertexai.schemaparams.md#schemaparams_interface) | |
-| enumValues | string\[\] | |
-
-## StringSchema.enum
-
-Signature:
-
-```typescript
-enum?: string[];
-```
diff --git a/docs-devsite/vertexai.usagemetadata.md b/docs-devsite/vertexai.usagemetadata.md
deleted file mode 100644
index 5f886dd29f2..00000000000
--- a/docs-devsite/vertexai.usagemetadata.md
+++ /dev/null
@@ -1,69 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# UsageMetadata interface
-Usage metadata about a [GenerateContentResponse](./vertexai.generatecontentresponse.md#generatecontentresponse_interface)
.
-
-Signature:
-
-```typescript
-export interface UsageMetadata
-```
-
-## Properties
-
-| Property | Type | Description |
-| --- | --- | --- |
-| [candidatesTokenCount](./vertexai.usagemetadata.md#usagemetadatacandidatestokencount) | number | |
-| [candidatesTokensDetails](./vertexai.usagemetadata.md#usagemetadatacandidatestokensdetails) | [ModalityTokenCount](./vertexai.modalitytokencount.md#modalitytokencount_interface)\[\] | |
-| [promptTokenCount](./vertexai.usagemetadata.md#usagemetadataprompttokencount) | number | |
-| [promptTokensDetails](./vertexai.usagemetadata.md#usagemetadataprompttokensdetails) | [ModalityTokenCount](./vertexai.modalitytokencount.md#modalitytokencount_interface)\[\] | |
-| [totalTokenCount](./vertexai.usagemetadata.md#usagemetadatatotaltokencount) | number | |
-
-## UsageMetadata.candidatesTokenCount
-
-Signature:
-
-```typescript
-candidatesTokenCount: number;
-```
-
-## UsageMetadata.candidatesTokensDetails
-
-Signature:
-
-```typescript
-candidatesTokensDetails?: ModalityTokenCount[];
-```
-
-## UsageMetadata.promptTokenCount
-
-Signature:
-
-```typescript
-promptTokenCount: number;
-```
-
-## UsageMetadata.promptTokensDetails
-
-Signature:
-
-```typescript
-promptTokensDetails?: ModalityTokenCount[];
-```
-
-## UsageMetadata.totalTokenCount
-
-Signature:
-
-```typescript
-totalTokenCount: number;
-```
diff --git a/docs-devsite/vertexai.vertexaimodel.md b/docs-devsite/vertexai.vertexaimodel.md
deleted file mode 100644
index 5c3244fe1e5..00000000000
--- a/docs-devsite/vertexai.vertexaimodel.md
+++ /dev/null
@@ -1,66 +0,0 @@
-Project: /docs/reference/js/_project.yaml
-Book: /docs/reference/_book.yaml
-page_type: reference
-
-{% comment %}
-DO NOT EDIT THIS FILE!
-This is generated by the JS SDK team, and any local changes will be
-overwritten. Changes should be made in the source code at
-https://github.com/firebase/firebase-js-sdk
-{% endcomment %}
-
-# VertexAIModel class
-Base class for Vertex AI in Firebase model APIs.
-
-The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `VertexAIModel` class.
-
-Signature:
-
-```typescript
-export declare abstract class VertexAIModel
-```
-
-## Properties
-
-| Property | Modifiers | Type | Description |
-| --- | --- | --- | --- |
-| [model](./vertexai.vertexaimodel.md#vertexaimodelmodel) | | string | The fully qualified model resource name to use for generating images (for example, publishers/google/models/imagen-3.0-generate-002
). |
-
-## Methods
-
-| Method | Modifiers | Description |
-| --- | --- | --- |
-| [normalizeModelName(modelName)](./vertexai.vertexaimodel.md#vertexaimodelnormalizemodelname) | static
| Normalizes the given model name to a fully qualified model resource name. |
-
-## VertexAIModel.model
-
-The fully qualified model resource name to use for generating images (for example, `publishers/google/models/imagen-3.0-generate-002`).
-
-Signature:
-
-```typescript
-readonly model: string;
-```
-
-## VertexAIModel.normalizeModelName()
-
-Normalizes the given model name to a fully qualified model resource name.
-
-Signature:
-
-```typescript
-static normalizeModelName(modelName: string): string;
-```
-
-#### Parameters
-
-| Parameter | Type | Description |
-| --- | --- | --- |
-| modelName | string | The model name to normalize. |
-
-Returns:
-
-string
-
-The fully qualified model resource name.
-