@firebase/ai 1.4.0-canary.ab5c2a06e → 1.4.0-canary.ae976d029

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -568,7 +568,7 @@ export declare interface FunctionDeclaration {
568
568
  * format. Reflects the Open API 3.03 Parameter Object. Parameter names are
569
569
  * case-sensitive. For a function with no parameters, this can be left unset.
570
570
  */
571
- parameters?: ObjectSchemaInterface;
571
+ parameters?: ObjectSchema | ObjectSchemaRequest;
572
572
  }
573
573
 
574
574
  /**
@@ -1499,12 +1499,20 @@ export declare class ObjectSchema extends Schema {
1499
1499
  }
1500
1500
 
1501
1501
  /**
1502
- * Interface for {@link ObjectSchema} class.
1502
+ * Interface for JSON parameters in {@link SchemaType.OBJECT} format when
1503
+ * not using the {@link ObjectSchema} helper.
1503
1504
  * @public
1504
1505
  */
1505
- export declare interface ObjectSchemaInterface extends SchemaInterface {
1506
+ export declare interface ObjectSchemaRequest extends SchemaRequest {
1506
1507
  type: SchemaType.OBJECT;
1507
- optionalProperties?: string[];
1508
+ /**
1509
+ * This is not a property accepted in the final request to the backend, but is
1510
+ * a client-side convenience property that is only usable by constructing
1511
+ * a schema through the `Schema.object()` helper method. Populating this
1512
+ * property will cause response errors if the object is not wrapped with
1513
+ * `Schema.object()`.
1514
+ */
1515
+ optionalProperties?: never;
1508
1516
  }
1509
1517
 
1510
1518
  /**
package/dist/ai.d.ts CHANGED
@@ -605,7 +605,7 @@ export declare interface FunctionDeclaration {
605
605
  * format. Reflects the Open API 3.03 Parameter Object. Parameter names are
606
606
  * case-sensitive. For a function with no parameters, this can be left unset.
607
607
  */
608
- parameters?: ObjectSchemaInterface;
608
+ parameters?: ObjectSchema | ObjectSchemaRequest;
609
609
  }
610
610
 
611
611
  /**
@@ -1592,12 +1592,20 @@ export declare class ObjectSchema extends Schema {
1592
1592
  }
1593
1593
 
1594
1594
  /**
1595
- * Interface for {@link ObjectSchema} class.
1595
+ * Interface for JSON parameters in {@link SchemaType.OBJECT} format when
1596
+ * not using the {@link ObjectSchema} helper.
1596
1597
  * @public
1597
1598
  */
1598
- export declare interface ObjectSchemaInterface extends SchemaInterface {
1599
+ export declare interface ObjectSchemaRequest extends SchemaRequest {
1599
1600
  type: SchemaType.OBJECT;
1600
- optionalProperties?: string[];
1601
+ /**
1602
+ * This is not a property accepted in the final request to the backend, but is
1603
+ * a client-side convenience property that is only usable by constructing
1604
+ * a schema through the `Schema.object()` helper method. Populating this
1605
+ * property will cause response errors if the object is not wrapped with
1606
+ * `Schema.object()`.
1607
+ */
1608
+ optionalProperties?: never;
1601
1609
  }
1602
1610
 
1603
1611
  /**
@@ -5,7 +5,7 @@ import { Logger } from '@firebase/logger';
5
5
  import { __asyncGenerator, __await } from 'tslib';
6
6
 
7
7
  var name = "@firebase/ai";
8
- var version = "1.4.0-canary.ab5c2a06e";
8
+ var version = "1.4.0-canary.ae976d029";
9
9
 
10
10
  /**
11
11
  * @license