Variable thermostat_scheduleConst
thermostat_schedule: ZodObject<
{
climate_preset_key: ZodString;
created_at: ZodString;
device_id: ZodString;
ends_at: ZodString;
errors: ZodArray<
ZodObject<
{ created_at: ZodString; error_code: ZodString; message: ZodString },
"strip",
ZodTypeAny,
{ created_at: string; error_code: string; message: string },
{ created_at: string; error_code: string; message: string },
>,
"many",
>;
is_override_allowed: ZodOptional<ZodBoolean>;
max_override_period_minutes: ZodOptional<ZodNullable<ZodNumber>>;
name: ZodNullable<ZodString>;
starts_at: ZodString;
thermostat_schedule_id: ZodString;
warnings: ZodArray<
ZodDiscriminatedUnion<
"warning_code",
[
ZodObject<
{
created_at: ZodString;
message: ZodString;
warning_code: ZodLiteral<"climate_preset_activation_may_fail">;
},
"strip",
ZodTypeAny,
{
created_at: string;
message: string;
warning_code: "climate_preset_activation_may_fail";
},
{
created_at: string;
message: string;
warning_code: "climate_preset_activation_may_fail";
},
>,
],
>,
"many",
>;
workspace_id: ZodString;
},
"strip",
ZodTypeAny,
{
climate_preset_key: string;
created_at: string;
device_id: string;
ends_at: string;
errors: { created_at: string; error_code: string; message: string }[];
is_override_allowed?: boolean;
max_override_period_minutes?: number | null;
name: string | null;
starts_at: string;
thermostat_schedule_id: string;
warnings: {
created_at: string;
message: string;
warning_code: "climate_preset_activation_may_fail";
}[];
workspace_id: string;
},
{
climate_preset_key: string;
created_at: string;
device_id: string;
ends_at: string;
errors: { created_at: string; error_code: string; message: string }[];
is_override_allowed?: boolean;
max_override_period_minutes?: number | null;
name: string | null;
starts_at: string;
thermostat_schedule_id: string;
warnings: {
created_at: string;
message: string;
warning_code: "climate_preset_activation_may_fail";
}[];
workspace_id: string;
},
> = ...