Skip to content

Commit f095563

Browse files
committed
remove public docs
1 parent b27a45e commit f095563

17 files changed

+124
-490
lines changed

common/api-review/vertexai.api.md

Lines changed: 48 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export class GenerativeModel extends VertexAIModel {
346346
// @public
347347
export function getGenerativeModel(vertexAI: VertexAI, modelParams: ModelParams, requestOptions?: RequestOptions): GenerativeModel;
348348

349-
// @public
349+
// @public (undocumented)
350350
export function getImagenModel(vertexAI: VertexAI, modelParams: ImagenModelParams, requestOptions?: RequestOptions): ImagenModel;
351351

352352
// @public
@@ -430,88 +430,122 @@ export enum HarmSeverity {
430430
HARM_SEVERITY_NEGLIGIBLE = "HARM_SEVERITY_NEGLIGIBLE"
431431
}
432432

433-
// @public
433+
// @public (undocumented)
434434
export enum ImagenAspectRatio {
435+
// (undocumented)
435436
LANDSCAPE_16x9 = "16:9",
437+
// (undocumented)
436438
LANDSCAPE_3x4 = "3:4",
439+
// (undocumented)
437440
PORTRAIT_4x3 = "4:3",
441+
// (undocumented)
438442
PORTRAIT_9x16 = "9:16",
443+
// (undocumented)
439444
SQUARE = "1:1"
440445
}
441446

442-
// @public
447+
// @public (undocumented)
443448
export interface ImagenGCSImage {
449+
// (undocumented)
444450
gcsURI: string;
451+
// (undocumented)
445452
mimeType: string;
446453
}
447454

448-
// @public
455+
// @public (undocumented)
449456
export interface ImagenGenerationConfig {
457+
// (undocumented)
450458
addWatermark?: boolean;
459+
// (undocumented)
451460
aspectRatio?: ImagenAspectRatio;
461+
// (undocumented)
452462
imageFormat?: ImagenImageFormat;
463+
// (undocumented)
453464
negativePrompt?: string;
465+
// (undocumented)
454466
numberOfImages?: number;
455467
}
456468

457-
// @public
469+
// @public (undocumented)
458470
export interface ImagenGenerationResponse<T extends ImagenInlineImage | ImagenGCSImage> {
471+
// (undocumented)
459472
filteredReason?: string;
473+
// (undocumented)
460474
images: T[];
461475
}
462476

463477
// @public
464478
export class ImagenImageFormat {
479+
// (undocumented)
465480
compressionQuality?: number;
481+
// (undocumented)
466482
static jpeg(compressionQuality?: number): ImagenImageFormat;
483+
// (undocumented)
467484
mimeType: string;
485+
// (undocumented)
468486
static png(): ImagenImageFormat;
469487
}
470488

471489
// @public
472490
export interface ImagenInlineImage {
491+
// (undocumented)
473492
bytesBase64Encoded: string;
493+
// (undocumented)
474494
mimeType: string;
475495
}
476496

477-
// @public
497+
// @public (undocumented)
478498
export class ImagenModel extends VertexAIModel {
479499
constructor(vertexAI: VertexAI, modelParams: ImagenModelParams, requestOptions?: RequestOptions | undefined);
480-
// @beta
500+
// (undocumented)
481501
generateImages(prompt: string): Promise<ImagenGenerationResponse<ImagenInlineImage>>;
482-
// @beta
502+
// (undocumented)
483503
generateImagesGCS(prompt: string, gcsURI: string): Promise<ImagenGenerationResponse<ImagenGCSImage>>;
504+
// (undocumented)
484505
generationConfig?: ImagenGenerationConfig;
485506
// (undocumented)
486507
requestOptions?: RequestOptions | undefined;
508+
// (undocumented)
487509
safetySettings?: ImagenSafetySettings;
488510
}
489511

490-
// @public
512+
// @public (undocumented)
491513
export interface ImagenModelParams {
514+
// (undocumented)
492515
generationConfig?: ImagenGenerationConfig;
516+
// (undocumented)
493517
model: string;
518+
// (undocumented)
494519
safetySettings?: ImagenSafetySettings;
495520
}
496521

497-
// @public
522+
// @public (undocumented)
498523
export enum ImagenPersonFilterLevel {
524+
// (undocumented)
499525
ALLOW_ADULT = "allow_adult",
526+
// (undocumented)
500527
ALLOW_ALL = "allow_all",
528+
// (undocumented)
501529
BLOCK_ALL = "dont_allow"
502530
}
503531

504-
// @public
532+
// @public (undocumented)
505533
export enum ImagenSafetyFilterLevel {
534+
// (undocumented)
506535
BLOCK_LOW_AND_ABOVE = "block_low_and_above",
536+
// (undocumented)
507537
BLOCK_MEDIUM_AND_ABOVE = "block_medium_and_above",
538+
// (undocumented)
508539
BLOCK_NONE = "block_none",
540+
// (undocumented)
509541
BLOCK_ONLY_HIGH = "block_only_high"
510542
}
511543

512-
// @public
544+
// @public (undocumented)
513545
export interface ImagenSafetySettings {
546+
// (undocumented)
514547
personFilterLevel?: ImagenPersonFilterLevel;
548+
// (undocumented)
515549
safetyFilterLevel?: ImagenSafetyFilterLevel;
516550
}
517551

@@ -804,12 +838,13 @@ export const enum VertexAIErrorCode {
804838
RESPONSE_ERROR = "response-error"
805839
}
806840

807-
// @public
841+
// @public (undocumented)
808842
export abstract class VertexAIModel {
809843
// @internal
810844
protected constructor(vertexAI: VertexAI, modelName: string);
811845
// @internal (undocumented)
812846
protected _apiSettings: ApiSettings;
847+
// (undocumented)
813848
readonly model: string;
814849
static normalizeModelName(modelName: string): string;
815850
}

docs-devsite/vertexai.imagengcsimage.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

1212
# ImagenGCSImage interface
13-
An image generated by Imagen, stored in Google Cloud Storage (GCS).
14-
1513
<b>Signature:</b>
1614

1715
```typescript
@@ -22,13 +20,11 @@ export interface ImagenGCSImage
2220

2321
| Property | Type | Description |
2422
| --- | --- | --- |
25-
| [gcsURI](./vertexai.imagengcsimage.md#imagengcsimagegcsuri) | string | The Google Cloud Storage (GCS) URI where the image is stored. |
26-
| [mimeType](./vertexai.imagengcsimage.md#imagengcsimagemimetype) | string | The MIME type of the image. |
23+
| [gcsURI](./vertexai.imagengcsimage.md#imagengcsimagegcsuri) | string | |
24+
| [mimeType](./vertexai.imagengcsimage.md#imagengcsimagemimetype) | string | |
2725

2826
## ImagenGCSImage.gcsURI
2927

30-
The Google Cloud Storage (GCS) URI where the image is stored.
31-
3228
<b>Signature:</b>
3329

3430
```typescript
@@ -37,8 +33,6 @@ gcsURI: string;
3733

3834
## ImagenGCSImage.mimeType
3935

40-
The MIME type of the image.
41-
4236
<b>Signature:</b>
4337

4438
```typescript

docs-devsite/vertexai.imagengenerationconfig.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

1212
# ImagenGenerationConfig interface
13-
Configuration options for generating images with Imagen.
14-
15-
See the \[Google Cloud Docs\](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/imagen-api\#rest\_1).
16-
1713
<b>Signature:</b>
1814

1915
```typescript
@@ -24,16 +20,14 @@ export interface ImagenGenerationConfig
2420

2521
| Property | Type | Description |
2622
| --- | --- | --- |
27-
| [addWatermark](./vertexai.imagengenerationconfig.md#imagengenerationconfigaddwatermark) | boolean | If true, adds a SynthID watermark to the generated images. |
28-
| [aspectRatio](./vertexai.imagengenerationconfig.md#imagengenerationconfigaspectratio) | [ImagenAspectRatio](./vertexai.md#imagenaspectratio) | The aspect ratio of the generated images. The default value is 1:1. used. |
29-
| [imageFormat](./vertexai.imagengenerationconfig.md#imagengenerationconfigimageformat) | [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class) | The image format of the generated images. The default is PNG. |
30-
| [negativePrompt](./vertexai.imagengenerationconfig.md#imagengenerationconfignegativeprompt) | string | A description of what should be omitted from the generated images. |
31-
| [numberOfImages](./vertexai.imagengenerationconfig.md#imagengenerationconfignumberofimages) | number | The number of images to generate. Must be between 1 and 4. The default value is 1. |
23+
| [addWatermark](./vertexai.imagengenerationconfig.md#imagengenerationconfigaddwatermark) | boolean | |
24+
| [aspectRatio](./vertexai.imagengenerationconfig.md#imagengenerationconfigaspectratio) | [ImagenAspectRatio](./vertexai.md#imagenaspectratio) | |
25+
| [imageFormat](./vertexai.imagengenerationconfig.md#imagengenerationconfigimageformat) | [ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class) | |
26+
| [negativePrompt](./vertexai.imagengenerationconfig.md#imagengenerationconfignegativeprompt) | string | |
27+
| [numberOfImages](./vertexai.imagengenerationconfig.md#imagengenerationconfignumberofimages) | number | |
3228

3329
## ImagenGenerationConfig.addWatermark
3430

35-
If true, adds a SynthID watermark to the generated images.
36-
3731
<b>Signature:</b>
3832

3933
```typescript
@@ -42,8 +36,6 @@ addWatermark?: boolean;
4236

4337
## ImagenGenerationConfig.aspectRatio
4438

45-
The aspect ratio of the generated images. The default value is 1:1. used.
46-
4739
<b>Signature:</b>
4840

4941
```typescript
@@ -52,8 +44,6 @@ aspectRatio?: ImagenAspectRatio;
5244

5345
## ImagenGenerationConfig.imageFormat
5446

55-
The image format of the generated images. The default is PNG.
56-
5747
<b>Signature:</b>
5848

5949
```typescript
@@ -62,8 +52,6 @@ imageFormat?: ImagenImageFormat;
6252

6353
## ImagenGenerationConfig.negativePrompt
6454

65-
A description of what should be omitted from the generated images.
66-
6755
<b>Signature:</b>
6856

6957
```typescript
@@ -72,8 +60,6 @@ negativePrompt?: string;
7260

7361
## ImagenGenerationConfig.numberOfImages
7462

75-
The number of images to generate. Must be between 1 and 4. The default value is 1.
76-
7763
<b>Signature:</b>
7864

7965
```typescript

docs-devsite/vertexai.imagengenerationresponse.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

1212
# ImagenGenerationResponse interface
13-
The response from a request to generate images with Imagen.
14-
1513
<b>Signature:</b>
1614

1715
```typescript
@@ -22,13 +20,11 @@ export interface ImagenGenerationResponse<T extends ImagenInlineImage | ImagenGC
2220

2321
| Property | Type | Description |
2422
| --- | --- | --- |
25-
| [filteredReason](./vertexai.imagengenerationresponse.md#imagengenerationresponsefilteredreason) | string | The reason why any images were filtered. This field is only present if one or more images were filtered. For the mappings of error codes to reasons, see [https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen\#safety-categories](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#safety-categories)<!-- -->. |
26-
| [images](./vertexai.imagengenerationresponse.md#imagengenerationresponseimages) | T\[\] | The images generated by Imagen. If all images were filtered due to safety reasons, this array will be empty. |
23+
| [filteredReason](./vertexai.imagengenerationresponse.md#imagengenerationresponsefilteredreason) | string | |
24+
| [images](./vertexai.imagengenerationresponse.md#imagengenerationresponseimages) | T\[\] | |
2725

2826
## ImagenGenerationResponse.filteredReason
2927

30-
The reason why any images were filtered. This field is only present if one or more images were filtered. For the mappings of error codes to reasons, see [https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen\#safety-categories](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#safety-categories)<!-- -->.
31-
3228
<b>Signature:</b>
3329

3430
```typescript
@@ -37,8 +33,6 @@ filteredReason?: string;
3733

3834
## ImagenGenerationResponse.images
3935

40-
The images generated by Imagen. If all images were filtered due to safety reasons, this array will be empty.
41-
4236
<b>Signature:</b>
4337

4438
```typescript

docs-devsite/vertexai.imagenimageformat.md

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

1212
# ImagenImageFormat class
13-
Defines the image format for images output by Imagen.
13+
Copyright 2025 Google LLC
1414

15-
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)<!-- -->.
15+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
16+
17+
http://www.apache.org/licenses/LICENSE-2.0
18+
19+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
1620

1721
<b>Signature:</b>
1822

@@ -24,20 +28,18 @@ export declare class ImagenImageFormat
2428

2529
| Property | Modifiers | Type | Description |
2630
| --- | --- | --- | --- |
27-
| [compressionQuality](./vertexai.imagenimageformat.md#imagenimageformatcompressionquality) | | number | The level of compression (a number between 0 and 100). |
28-
| [mimeType](./vertexai.imagenimageformat.md#imagenimageformatmimetype) | | string | The MIME type. |
31+
| [compressionQuality](./vertexai.imagenimageformat.md#imagenimageformatcompressionquality) | | number | |
32+
| [mimeType](./vertexai.imagenimageformat.md#imagenimageformatmimetype) | | string | |
2933

3034
## Methods
3135

3236
| Method | Modifiers | Description |
3337
| --- | --- | --- |
34-
| [jpeg(compressionQuality)](./vertexai.imagenimageformat.md#imagenimageformatjpeg) | <code>static</code> | Creates an ImagenImageFormat for a JPEG image. |
35-
| [png()](./vertexai.imagenimageformat.md#imagenimageformatpng) | <code>static</code> | Creates an ImageImageFormat for a PNG image. |
38+
| [jpeg(compressionQuality)](./vertexai.imagenimageformat.md#imagenimageformatjpeg) | <code>static</code> | |
39+
| [png()](./vertexai.imagenimageformat.md#imagenimageformatpng) | <code>static</code> | |
3640

3741
## ImagenImageFormat.compressionQuality
3842

39-
The level of compression (a number between 0 and 100).
40-
4143
<b>Signature:</b>
4244

4345
```typescript
@@ -46,8 +48,6 @@ compressionQuality?: number;
4648

4749
## ImagenImageFormat.mimeType
4850

49-
The MIME type.
50-
5151
<b>Signature:</b>
5252

5353
```typescript
@@ -56,8 +56,6 @@ mimeType: string;
5656

5757
## ImagenImageFormat.jpeg()
5858

59-
Creates an ImagenImageFormat for a JPEG image.
60-
6159
<b>Signature:</b>
6260

6361
```typescript
@@ -68,18 +66,14 @@ static jpeg(compressionQuality?: number): ImagenImageFormat;
6866

6967
| Parameter | Type | Description |
7068
| --- | --- | --- |
71-
| compressionQuality | number | The level of compression (a number between 0 and 100). |
69+
| compressionQuality | number | |
7270

7371
<b>Returns:</b>
7472

7573
[ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
7674

77-
ImagenImageFormat
78-
7975
## ImagenImageFormat.png()
8076

81-
Creates an ImageImageFormat for a PNG image.
82-
8377
<b>Signature:</b>
8478

8579
```typescript
@@ -89,16 +83,3 @@ static png(): ImagenImageFormat;
8983

9084
[ImagenImageFormat](./vertexai.imagenimageformat.md#imagenimageformat_class)
9185

92-
ImageImageFormat
93-
94-
### Example
95-
96-
97-
```javascript
98-
const imagenModelParams = {
99-
// ... other ImagenModelParams
100-
imageFormat: ImagenImageFormat.jpeg(75) // JPEG with a compression level of 75.
101-
}
102-
103-
```
104-

0 commit comments

Comments
 (0)