@@ -1717,37 +1717,43 @@ export const CreateMessageResultWithToolsSchema = ResultSchema.extend({
17171717/**
17181718 * Primitive schema definition for boolean fields.
17191719 */
1720- export const BooleanSchemaSchema = z . object ( {
1721- type : z . literal ( 'boolean' ) ,
1722- title : z . string ( ) . optional ( ) ,
1723- description : z . string ( ) . optional ( ) ,
1724- default : z . boolean ( ) . optional ( )
1725- } ) . passthrough ( ) ;
1720+ export const BooleanSchemaSchema = z
1721+ . object ( {
1722+ type : z . literal ( 'boolean' ) ,
1723+ title : z . string ( ) . optional ( ) ,
1724+ description : z . string ( ) . optional ( ) ,
1725+ default : z . boolean ( ) . optional ( )
1726+ } )
1727+ . passthrough ( ) ;
17261728
17271729/**
17281730 * Primitive schema definition for string fields.
17291731 */
1730- export const StringSchemaSchema = z . object ( {
1731- type : z . literal ( 'string' ) ,
1732- title : z . string ( ) . optional ( ) ,
1733- description : z . string ( ) . optional ( ) ,
1734- minLength : z . number ( ) . optional ( ) ,
1735- maxLength : z . number ( ) . optional ( ) ,
1736- format : z . enum ( [ 'email' , 'uri' , 'date' , 'date-time' ] ) . optional ( ) ,
1737- default : z . string ( ) . optional ( )
1738- } ) . passthrough ( ) ;
1732+ export const StringSchemaSchema = z
1733+ . object ( {
1734+ type : z . literal ( 'string' ) ,
1735+ title : z . string ( ) . optional ( ) ,
1736+ description : z . string ( ) . optional ( ) ,
1737+ minLength : z . number ( ) . optional ( ) ,
1738+ maxLength : z . number ( ) . optional ( ) ,
1739+ format : z . enum ( [ 'email' , 'uri' , 'date' , 'date-time' ] ) . optional ( ) ,
1740+ default : z . string ( ) . optional ( )
1741+ } )
1742+ . passthrough ( ) ;
17391743
17401744/**
17411745 * Primitive schema definition for number fields.
17421746 */
1743- export const NumberSchemaSchema = z . object ( {
1744- type : z . enum ( [ 'number' , 'integer' ] ) ,
1745- title : z . string ( ) . optional ( ) ,
1746- description : z . string ( ) . optional ( ) ,
1747- minimum : z . number ( ) . optional ( ) ,
1748- maximum : z . number ( ) . optional ( ) ,
1749- default : z . number ( ) . optional ( )
1750- } ) . passthrough ( ) ;
1747+ export const NumberSchemaSchema = z
1748+ . object ( {
1749+ type : z . enum ( [ 'number' , 'integer' ] ) ,
1750+ title : z . string ( ) . optional ( ) ,
1751+ description : z . string ( ) . optional ( ) ,
1752+ minimum : z . number ( ) . optional ( ) ,
1753+ maximum : z . number ( ) . optional ( ) ,
1754+ default : z . number ( ) . optional ( )
1755+ } )
1756+ . passthrough ( ) ;
17511757
17521758/**
17531759 * Schema for single-selection enumeration without display titles for options.
0 commit comments