@@ -109,7 +109,11 @@ function failureDestinationModeSchema(params: { nullableClears: boolean }) {
109109 return Type . Optional ( Type . Union ( variants ) ) ;
110110}
111111
112- function cronPayloadObjectSchema ( params : { model : TSchema ; toolsAllow : TSchema } ) {
112+ function cronPayloadObjectSchema ( params : {
113+ model : TSchema ;
114+ toolsAllow : TSchema ;
115+ fallbacks : TSchema ;
116+ } ) {
113117 return Type . Object (
114118 {
115119 kind : optionalStringEnum ( CRON_PAYLOAD_KINDS , { description : "Payload kind" } ) ,
@@ -120,7 +124,7 @@ function cronPayloadObjectSchema(params: { model: TSchema; toolsAllow: TSchema }
120124 timeoutSeconds : optionalFiniteNumberSchema ( { minimum : 0 } ) ,
121125 lightContext : Type . Optional ( Type . Boolean ( ) ) ,
122126 allowUnsafeExternalContent : Type . Optional ( Type . Boolean ( ) ) ,
123- fallbacks : Type . Optional ( Type . Array ( Type . String ( ) , { description : "Fallback models" } ) ) ,
127+ fallbacks : params . fallbacks ,
124128 toolsAllow : params . toolsAllow ,
125129 } ,
126130 { additionalProperties : true } ,
@@ -161,6 +165,7 @@ function createCronPayloadSchema(): TSchema {
161165 cronPayloadObjectSchema ( {
162166 model : Type . Optional ( Type . String ( { description : "Model override" } ) ) ,
163167 toolsAllow : Type . Optional ( Type . Array ( Type . String ( ) , { description : "Allowed tools" } ) ) ,
168+ fallbacks : Type . Optional ( Type . Array ( Type . String ( ) , { description : "Fallback models" } ) ) ,
164169 } ) ,
165170 ) ;
166171}
@@ -313,6 +318,7 @@ function createCronPatchObjectSchema(): TSchema {
313318 cronPayloadObjectSchema ( {
314319 model : nullableStringSchema ( "Model override, or null to clear" ) ,
315320 toolsAllow : nullableStringArraySchema ( "Allowed tool ids, or null to clear" ) ,
321+ fallbacks : nullableStringArraySchema ( "Fallback models, or null to clear" ) ,
316322 } ) ,
317323 ) ,
318324 delivery : createCronDeliveryPatchSchema ( ) ,
0 commit comments