@@ -18,7 +18,7 @@ export class ArraySchema extends Schema {
18
18
// Warning: (ae-forgotten-export) The symbol "_SchemaRequest" needs to be exported by the entry point index.d.ts
19
19
//
20
20
// (undocumented)
21
- toJSON (): _SchemaRequest ;
21
+ toRequest (): _SchemaRequest ;
22
22
}
23
23
24
24
// @public
@@ -220,7 +220,8 @@ export interface FunctionCallPart {
220
220
export interface FunctionDeclaration {
221
221
description? : string ;
222
222
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 ;
224
225
}
225
226
226
227
// @public
@@ -313,7 +314,6 @@ export interface GenerationConfig {
313
314
// (undocumented)
314
315
presencePenalty? : number ;
315
316
responseMimeType? : string ;
316
- // (undocumented)
317
317
responseSchema? : TypedSchema ;
318
318
// (undocumented)
319
319
stopSequences? : string [];
@@ -488,13 +488,15 @@ export class NumberSchema extends Schema {
488
488
export class ObjectSchema extends Schema {
489
489
constructor (schemaParams : SchemaParams , properties : {
490
490
[k : string ]: TypedSchema ;
491
- });
491
+ }, optionalProperties ? : string []);
492
+ // (undocumented)
493
+ optionalProperties: string [];
492
494
// (undocumented)
493
495
properties: {
494
496
[k : string ]: TypedSchema ;
495
497
};
496
498
// (undocumented)
497
- toJSON (): _SchemaRequest ;
499
+ toRequest (): _SchemaRequest ;
498
500
}
499
501
500
502
// @public
@@ -561,6 +563,7 @@ export interface SafetySetting {
561
563
// @public (undocumented)
562
564
export abstract class Schema implements SchemaInterface {
563
565
constructor (schemaParams : SchemaInterface );
566
+ [key : string ]: unknown ;
564
567
// (undocumented)
565
568
static array(arrayParams : SchemaParams & {
566
569
items: Schema ;
@@ -579,6 +582,7 @@ export abstract class Schema implements SchemaInterface {
579
582
properties: {
580
583
[k : string ]: Schema ;
581
584
};
585
+ optionalProperties? : string [];
582
586
}): ObjectSchema ;
583
587
// (undocumented)
584
588
static integer(integerParams ? : SchemaParams ): IntegerSchema ;
@@ -590,11 +594,13 @@ export abstract class Schema implements SchemaInterface {
590
594
properties: {
591
595
[k : string ]: Schema ;
592
596
};
597
+ optionalProperties? : string [];
593
598
}): ObjectSchema ;
594
- required: boolean ;
595
599
// (undocumented)
596
600
static string(stringParams ? : SchemaParams ): StringSchema ;
597
- toJSON(): _SchemaRequest ;
601
+ // (undocumented)
602
+ toJSON(): string ;
603
+ toRequest(): _SchemaRequest ;
598
604
// Warning: (ae-forgotten-export) The symbol "SchemaType" needs to be exported by the entry point index.d.ts
599
605
type: SchemaType ;
600
606
}
@@ -627,7 +633,7 @@ export class StringSchema extends Schema {
627
633
// (undocumented)
628
634
enum? : string [];
629
635
// (undocumented)
630
- toJSON (): _SchemaRequest ;
636
+ toRequest (): _SchemaRequest ;
631
637
}
632
638
633
639
// @public
@@ -675,18 +681,15 @@ export interface VertexAI {
675
681
export class VertexAIError extends FirebaseError {
676
682
constructor (code : VertexAIErrorCode , message : string , customErrorData ? : CustomErrorData | undefined );
677
683
// (undocumented)
678
- readonly code: VertexAIErrorCode ;
679
- // (undocumented)
680
684
readonly customErrorData? : CustomErrorData | undefined ;
681
- // (undocumented)
682
- readonly message: string ;
683
685
}
684
686
685
687
// @public
686
688
export const enum VertexAIErrorCode {
687
689
ERROR = " error" ,
688
690
FETCH_ERROR = " fetch-error" ,
689
691
INVALID_CONTENT = " invalid-content" ,
692
+ INVALID_SCHEMA = " invalid-schema" ,
690
693
NO_API_KEY = " no-api-key" ,
691
694
NO_MODEL = " no-model" ,
692
695
NO_PROJECT_ID = " no-project-id" ,
0 commit comments