Skip to content

Commit 7b018bd

Browse files
committed
Update API reports
1 parent f679066 commit 7b018bd

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

common/api-review/vertexai-preview.api.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class ArraySchema extends Schema {
1818
// Warning: (ae-forgotten-export) The symbol "_SchemaRequest" needs to be exported by the entry point index.d.ts
1919
//
2020
// (undocumented)
21-
toJSON(): _SchemaRequest;
21+
toRequest(): _SchemaRequest;
2222
}
2323

2424
// @public
@@ -220,7 +220,8 @@ export interface FunctionCallPart {
220220
export interface FunctionDeclaration {
221221
description?: string;
222222
name: string;
223-
parameters?: ObjectSchema;
223+
// Warning: (ae-forgotten-export) The symbol "ObjectSchemaInterface" needs to be exported by the entry point index.d.ts
224+
parameters?: ObjectSchemaInterface;
224225
}
225226

226227
// @public
@@ -313,7 +314,6 @@ export interface GenerationConfig {
313314
// (undocumented)
314315
presencePenalty?: number;
315316
responseMimeType?: string;
316-
// (undocumented)
317317
responseSchema?: TypedSchema;
318318
// (undocumented)
319319
stopSequences?: string[];
@@ -488,13 +488,15 @@ export class NumberSchema extends Schema {
488488
export class ObjectSchema extends Schema {
489489
constructor(schemaParams: SchemaParams, properties: {
490490
[k: string]: TypedSchema;
491-
});
491+
}, optionalProperties?: string[]);
492+
// (undocumented)
493+
optionalProperties: string[];
492494
// (undocumented)
493495
properties: {
494496
[k: string]: TypedSchema;
495497
};
496498
// (undocumented)
497-
toJSON(): _SchemaRequest;
499+
toRequest(): _SchemaRequest;
498500
}
499501

500502
// @public
@@ -561,6 +563,7 @@ export interface SafetySetting {
561563
// @public (undocumented)
562564
export abstract class Schema implements SchemaInterface {
563565
constructor(schemaParams: SchemaInterface);
566+
[key: string]: unknown;
564567
// (undocumented)
565568
static array(arrayParams: SchemaParams & {
566569
items: Schema;
@@ -579,6 +582,7 @@ export abstract class Schema implements SchemaInterface {
579582
properties: {
580583
[k: string]: Schema;
581584
};
585+
optionalProperties?: string[];
582586
}): ObjectSchema;
583587
// (undocumented)
584588
static integer(integerParams?: SchemaParams): IntegerSchema;
@@ -590,11 +594,13 @@ export abstract class Schema implements SchemaInterface {
590594
properties: {
591595
[k: string]: Schema;
592596
};
597+
optionalProperties?: string[];
593598
}): ObjectSchema;
594-
required: boolean;
595599
// (undocumented)
596600
static string(stringParams?: SchemaParams): StringSchema;
597-
toJSON(): _SchemaRequest;
601+
// (undocumented)
602+
toJSON(): string;
603+
toRequest(): _SchemaRequest;
598604
// Warning: (ae-forgotten-export) The symbol "SchemaType" needs to be exported by the entry point index.d.ts
599605
type: SchemaType;
600606
}
@@ -627,7 +633,7 @@ export class StringSchema extends Schema {
627633
// (undocumented)
628634
enum?: string[];
629635
// (undocumented)
630-
toJSON(): _SchemaRequest;
636+
toRequest(): _SchemaRequest;
631637
}
632638

633639
// @public
@@ -675,18 +681,15 @@ export interface VertexAI {
675681
export class VertexAIError extends FirebaseError {
676682
constructor(code: VertexAIErrorCode, message: string, customErrorData?: CustomErrorData | undefined);
677683
// (undocumented)
678-
readonly code: VertexAIErrorCode;
679-
// (undocumented)
680684
readonly customErrorData?: CustomErrorData | undefined;
681-
// (undocumented)
682-
readonly message: string;
683685
}
684686

685687
// @public
686688
export const enum VertexAIErrorCode {
687689
ERROR = "error",
688690
FETCH_ERROR = "fetch-error",
689691
INVALID_CONTENT = "invalid-content",
692+
INVALID_SCHEMA = "invalid-schema",
690693
NO_API_KEY = "no-api-key",
691694
NO_MODEL = "no-model",
692695
NO_PROJECT_ID = "no-project-id",

0 commit comments

Comments
 (0)