@@ -97,13 +97,13 @@ function failureDestinationModeSchema(params: { nullableClears: boolean }) {
9797 return Type . Optional ( Type . Union ( variants ) ) ;
9898}
9999
100- function cronPayloadObjectSchema ( params : { toolsAllow : TSchema } ) {
100+ function cronPayloadObjectSchema ( params : { model : TSchema ; toolsAllow : TSchema } ) {
101101 return Type . Object (
102102 {
103103 kind : optionalStringEnum ( CRON_PAYLOAD_KINDS , { description : "Payload kind" } ) ,
104104 text : Type . Optional ( Type . String ( { description : "systemEvent text" } ) ) ,
105105 message : Type . Optional ( Type . String ( { description : "agentTurn prompt" } ) ) ,
106- model : Type . Optional ( Type . String ( { description : "Model override" } ) ) ,
106+ model : params . model ,
107107 thinking : Type . Optional ( Type . String ( { description : "Thinking override" } ) ) ,
108108 timeoutSeconds : optionalFiniteNumberSchema ( { minimum : 0 } ) ,
109109 lightContext : Type . Optional ( Type . Boolean ( ) ) ,
@@ -147,6 +147,7 @@ function createCronScheduleSchema(): TSchema {
147147function createCronPayloadSchema ( ) : TSchema {
148148 return Type . Optional (
149149 cronPayloadObjectSchema ( {
150+ model : Type . Optional ( Type . String ( { description : "Model override" } ) ) ,
150151 toolsAllow : Type . Optional ( Type . Array ( Type . String ( ) , { description : "Allowed tools" } ) ) ,
151152 } ) ,
152153 ) ;
@@ -273,6 +274,7 @@ function createCronPatchObjectSchema(): TSchema {
273274 wakeMode : optionalStringEnum ( CRON_WAKE_MODES ) ,
274275 payload : Type . Optional (
275276 cronPayloadObjectSchema ( {
277+ model : nullableStringSchema ( "Model override, or null to clear" ) ,
276278 toolsAllow : nullableStringArraySchema ( "Allowed tool ids, or null to clear" ) ,
277279 } ) ,
278280 ) ,
0 commit comments