@@ -1229,21 +1229,18 @@ export const NumberSchemaSchema = z.object({
12291229/**
12301230 * Schema for single-selection enumeration without display titles for options.
12311231 */
1232- export const UntitledSingleSelectEnumSchema = z
1233- . object ( {
1234- type : z . literal ( 'string' ) ,
1235- title : z . optional ( z . string ( ) ) ,
1236- description : z . optional ( z . string ( ) ) ,
1237- enum : z . array ( z . string ( ) ) ,
1238- default : z . string ( ) . optional ( )
1239- } )
1240- . passthrough ( ) ;
1241-
1232+ export const UntitledSingleSelectEnumSchemaSchema = z . object ( {
1233+ type : z . literal ( 'string' ) ,
1234+ title : z . string ( ) . optional ( ) ,
1235+ description : z . string ( ) . optional ( ) ,
1236+ enum : z . array ( z . string ( ) ) ,
1237+ default : z . string ( ) . optional ( )
1238+ } ) ;
12421239
12431240/**
12441241 * Schema for single-selection enumeration with display titles for each option.
12451242 */
1246- export const TitledSingleSelectEnumSchema = z . object ( {
1243+ export const TitledSingleSelectEnumSchemaSchema = z . object ( {
12471244 type : z . literal ( 'string' ) ,
12481245 title : z . string ( ) . optional ( ) ,
12491246 description : z . string ( ) . optional ( ) ,
@@ -1260,7 +1257,7 @@ export const TitledSingleSelectEnumSchema = z.object({
12601257 * Use TitledSingleSelectEnumSchema instead.
12611258 * This interface will be removed in a future version.
12621259 */
1263- export const LegacyTitledEnumSchema = z . object ( {
1260+ export const LegacyTitledEnumSchemaSchema = z . object ( {
12641261 type : z . literal ( 'string' ) ,
12651262 title : z . string ( ) . optional ( ) ,
12661263 description : z . string ( ) . optional ( ) ,
@@ -1270,12 +1267,16 @@ export const LegacyTitledEnumSchema = z.object({
12701267} ) ;
12711268
12721269// Combined single selection enumeration
1273- export const SingleSelectEnumSchema = z . union ( [ UntitledSingleSelectEnumSchema , TitledSingleSelectEnumSchema , LegacyTitledEnumSchema ] ) ;
1270+ export const SingleSelectEnumSchemaSchema = z . union ( [
1271+ UntitledSingleSelectEnumSchemaSchema ,
1272+ TitledSingleSelectEnumSchemaSchema ,
1273+ LegacyTitledEnumSchemaSchema
1274+ ] ) ;
12741275
12751276/**
12761277 * Schema for multiple-selection enumeration without display titles for options.
12771278 */
1278- export const UntitledMultiSelectEnumSchema = z . object ( {
1279+ export const UntitledMultiSelectEnumSchemaSchema = z . object ( {
12791280 type : z . literal ( 'array' ) ,
12801281 title : z . string ( ) . optional ( ) ,
12811282 description : z . string ( ) . optional ( ) ,
@@ -1291,7 +1292,7 @@ export const UntitledMultiSelectEnumSchema = z.object({
12911292/**
12921293 * Schema for multiple-selection enumeration with display titles for each option.
12931294 */
1294- export const TitledMultiSelectEnumSchema = z . object ( {
1295+ export const TitledMultiSelectEnumSchemaSchema = z . object ( {
12951296 type : z . literal ( 'array' ) ,
12961297 title : z . string ( ) . optional ( ) ,
12971298 description : z . string ( ) . optional ( ) ,
@@ -1311,12 +1312,12 @@ export const TitledMultiSelectEnumSchema = z.object({
13111312/**
13121313 * Combined schema for multiple-selection enumeration
13131314 */
1314- export const MultiSelectEnumSchema = z . union ( [ UntitledMultiSelectEnumSchema , TitledMultiSelectEnumSchema ] ) ;
1315+ export const MultiSelectEnumSchemaSchema = z . union ( [ UntitledMultiSelectEnumSchemaSchema , TitledMultiSelectEnumSchemaSchema ] ) ;
13151316
13161317/**
13171318 * Primitive schema definition for enum fields.
13181319 */
1319- export const EnumSchemaSchema = z . union ( [ SingleSelectEnumSchema , MultiSelectEnumSchema ] ) ;
1320+ export const EnumSchemaSchema = z . union ( [ SingleSelectEnumSchemaSchema , MultiSelectEnumSchemaSchema ] ) ;
13201321
13211322/**
13221323 * Union of all primitive schema definitions.
@@ -1735,7 +1736,16 @@ export type CreateMessageResult = Infer<typeof CreateMessageResultSchema>;
17351736export type BooleanSchema = Infer < typeof BooleanSchemaSchema > ;
17361737export type StringSchema = Infer < typeof StringSchemaSchema > ;
17371738export type NumberSchema = Infer < typeof NumberSchemaSchema > ;
1739+
17381740export type EnumSchema = Infer < typeof EnumSchemaSchema > ;
1741+ export type UntitledSingleSelectEnumSchema = Infer < typeof UntitledSingleSelectEnumSchemaSchema > ;
1742+ export type TitledSingleSelectEnumSchema = Infer < typeof TitledSingleSelectEnumSchemaSchema > ;
1743+ export type LegacyTitledEnumSchema = Infer < typeof LegacyTitledEnumSchemaSchema > ;
1744+ export type UntitledMultiSelectEnumSchema = Infer < typeof UntitledMultiSelectEnumSchemaSchema > ;
1745+ export type TitledMultiSelectEnumSchema = Infer < typeof TitledMultiSelectEnumSchemaSchema > ;
1746+ export type SingleSelectEnumSchema = Infer < typeof SingleSelectEnumSchemaSchema > ;
1747+ export type MultiSelectEnumSchema = Infer < typeof MultiSelectEnumSchemaSchema > ;
1748+
17391749export type PrimitiveSchemaDefinition = Infer < typeof PrimitiveSchemaDefinitionSchema > ;
17401750export type ElicitRequestParams = Infer < typeof ElicitRequestParamsSchema > ;
17411751export type ElicitRequest = Infer < typeof ElicitRequestSchema > ;
0 commit comments