@@ -9,6 +9,18 @@ import { FirebaseApp } from '@firebase/app';
9
9
import { FirebaseAuthTokenData } from ' @firebase/auth-interop-types' ;
10
10
import { FirebaseError } from ' @firebase/util' ;
11
11
12
+ // @public (undocumented)
13
+ export class ArraySchema extends Schema {
14
+ // Warning: (ae-forgotten-export) The symbol "SchemaParams" needs to be exported by the entry point index.d.ts
15
+ constructor (schemaParams : SchemaParams , items : TypedSchema );
16
+ // (undocumented)
17
+ items: TypedSchema ;
18
+ // Warning: (ae-forgotten-export) The symbol "_SchemaRequest" needs to be exported by the entry point index.d.ts
19
+ //
20
+ // (undocumented)
21
+ toJSON(): _SchemaRequest ;
22
+ }
23
+
12
24
// @public
13
25
export interface BaseParams {
14
26
// (undocumented)
@@ -27,6 +39,11 @@ export enum BlockReason {
27
39
SAFETY = " SAFETY"
28
40
}
29
41
42
+ // @public (undocumented)
43
+ export class BooleanSchema extends Schema {
44
+ constructor (schemaParams ? : SchemaParams );
45
+ }
46
+
30
47
// @public
31
48
export class ChatSession {
32
49
// Warning: (ae-forgotten-export) The symbol "ApiSettings" needs to be exported by the entry point index.d.ts
@@ -203,7 +220,6 @@ export interface FunctionCallPart {
203
220
export interface FunctionDeclaration {
204
221
description? : string ;
205
222
name: string ;
206
- // Warning: (ae-forgotten-export) The symbol "ObjectSchema" needs to be exported by the entry point index.d.ts
207
223
parameters? : ObjectSchema ;
208
224
}
209
225
@@ -297,8 +313,6 @@ export interface GenerationConfig {
297
313
// (undocumented)
298
314
presencePenalty? : number ;
299
315
responseMimeType? : string ;
300
- // Warning: (ae-forgotten-export) The symbol "TypedSchema" needs to be exported by the entry point index.d.ts
301
- //
302
316
// (undocumented)
303
317
responseSchema? : TypedSchema ;
304
318
// (undocumented)
@@ -448,6 +462,11 @@ export interface InlineDataPart {
448
462
videoMetadata? : VideoMetadata ;
449
463
}
450
464
465
+ // @public (undocumented)
466
+ export class IntegerSchema extends Schema {
467
+ constructor (schemaParams ? : SchemaParams );
468
+ }
469
+
451
470
// @public
452
471
export interface ModelParams extends BaseParams {
453
472
// (undocumented)
@@ -460,6 +479,24 @@ export interface ModelParams extends BaseParams {
460
479
tools? : Tool [];
461
480
}
462
481
482
+ // @public (undocumented)
483
+ export class NumberSchema extends Schema {
484
+ constructor (schemaParams ? : SchemaParams );
485
+ }
486
+
487
+ // @public (undocumented)
488
+ export class ObjectSchema extends Schema {
489
+ constructor (schemaParams : SchemaParams , properties : {
490
+ [k : string ]: TypedSchema ;
491
+ });
492
+ // (undocumented)
493
+ properties: {
494
+ [k : string ]: TypedSchema ;
495
+ };
496
+ // (undocumented)
497
+ toJSON(): _SchemaRequest ;
498
+ }
499
+
463
500
// @public
464
501
export type Part = TextPart | InlineDataPart | FunctionCallPart | FunctionResponsePart | FileDataPart ;
465
502
@@ -519,6 +556,49 @@ export interface SafetySetting {
519
556
threshold: HarmBlockThreshold ;
520
557
}
521
558
559
+ // Warning: (ae-forgotten-export) The symbol "SchemaInterface" needs to be exported by the entry point index.d.ts
560
+ //
561
+ // @public (undocumented)
562
+ export abstract class Schema implements SchemaInterface {
563
+ constructor (schemaParams : SchemaInterface );
564
+ // (undocumented)
565
+ static array(arrayParams : SchemaParams & {
566
+ items: Schema ;
567
+ }): ArraySchema ;
568
+ // (undocumented)
569
+ static boolean(booleanParams ? : SchemaParams ): BooleanSchema ;
570
+ description? : string ;
571
+ // (undocumented)
572
+ static enumString(stringParams : SchemaParams & {
573
+ enum: string [];
574
+ }): StringSchema ;
575
+ example? : unknown ;
576
+ format? : string ;
577
+ // (undocumented)
578
+ static functionDeclaration(objectParams : SchemaParams & {
579
+ properties: {
580
+ [k : string ]: Schema ;
581
+ };
582
+ }): ObjectSchema ;
583
+ // (undocumented)
584
+ static integer(integerParams ? : SchemaParams ): IntegerSchema ;
585
+ nullable: boolean ;
586
+ // (undocumented)
587
+ static number(numberParams ? : SchemaParams ): NumberSchema ;
588
+ // (undocumented)
589
+ static object(objectParams : SchemaParams & {
590
+ properties: {
591
+ [k : string ]: Schema ;
592
+ };
593
+ }): ObjectSchema ;
594
+ required: boolean ;
595
+ // (undocumented)
596
+ static string(stringParams ? : SchemaParams ): StringSchema ;
597
+ toJSON(): _SchemaRequest ;
598
+ // Warning: (ae-forgotten-export) The symbol "SchemaType" needs to be exported by the entry point index.d.ts
599
+ type: SchemaType ;
600
+ }
601
+
522
602
// @public (undocumented)
523
603
export interface Segment {
524
604
// (undocumented)
@@ -541,6 +621,15 @@ export interface StartChatParams extends BaseParams {
541
621
tools? : Tool [];
542
622
}
543
623
624
+ // @public (undocumented)
625
+ export class StringSchema extends Schema {
626
+ constructor (schemaParams ? : SchemaParams , enumValues ? : string []);
627
+ // (undocumented)
628
+ enum? : string [];
629
+ // (undocumented)
630
+ toJSON(): _SchemaRequest ;
631
+ }
632
+
544
633
// @public
545
634
export interface TextPart {
546
635
// (undocumented)
@@ -562,6 +651,9 @@ export interface ToolConfig {
562
651
functionCallingConfig: FunctionCallingConfig ;
563
652
}
564
653
654
+ // @public (undocumented)
655
+ export type TypedSchema = IntegerSchema | NumberSchema | StringSchema | BooleanSchema | ObjectSchema | ArraySchema ;
656
+
565
657
// @public
566
658
export interface UsageMetadata {
567
659
// (undocumented)
0 commit comments