Add missing fields

This commit is contained in:
rafid saad
2026-02-03 13:30:01 -08:00
parent 85a311087d
commit ad75ffdd8d
+10 -2
View File
@@ -743,7 +743,8 @@ class CronsCreate(typing.TypedDict, total=False):
"cron_id": UUID("123e4567-e89b-12d3-a456-426614174000"),
"thread_id": UUID("123e4567-e89b-12d3-a456-426614174001"),
"user_id": "user123",
"end_time": datetime(2024, 3, 16, 10, 0, 0)
"end_time": datetime(2024, 3, 16, 10, 0, 0),
"enabled": true,
}
```
"""
@@ -769,6 +770,9 @@ class CronsCreate(typing.TypedDict, total=False):
end_time: datetime | None
"""typing.Optional end time for the cron job."""
enabled: bool | None
"""typing.Optional enabled status of the cron job."""
class CronsDelete(typing.TypedDict):
"""Payload for deleting a cron job.
@@ -811,7 +815,8 @@ class CronsUpdate(typing.TypedDict, total=False):
update_params = {
"cron_id": UUID("123e4567-e89b-12d3-a456-426614174000"),
"payload": {"key": "value"},
"schedule": "0 0 * * *"
"schedule": "0 0 * * *",
"enabled": true
}
```
"""
@@ -825,6 +830,9 @@ class CronsUpdate(typing.TypedDict, total=False):
schedule: str | None
"""typing.Optional schedule to update."""
enabled: bool | None
"""typing.Optional enabled status of the cron job."""
class CronsSearch(typing.TypedDict, total=False):
"""Payload for searching cron jobs.