artemis-model 0.1.127__tar.gz → 0.1.128__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. {artemis_model-0.1.127 → artemis_model-0.1.128}/PKG-INFO +1 -1
  2. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/redis/__init__.py +2 -2
  3. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/redis/zone_state.py +21 -4
  4. {artemis_model-0.1.127 → artemis_model-0.1.128}/pyproject.toml +1 -1
  5. {artemis_model-0.1.127 → artemis_model-0.1.128}/README.md +0 -0
  6. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/__init__.py +0 -0
  7. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/album.py +0 -0
  8. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/artist.py +0 -0
  9. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/auth.py +0 -0
  10. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/banned_tracks.py +0 -0
  11. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/base.py +0 -0
  12. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/category.py +0 -0
  13. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/dj_set.py +0 -0
  14. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/genre.py +0 -0
  15. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/location.py +0 -0
  16. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/message.py +0 -0
  17. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/organization.py +0 -0
  18. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/otp.py +0 -0
  19. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/permission.py +0 -0
  20. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/playlist.py +0 -0
  21. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/redis/bucket.py +0 -0
  22. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/redis/device.py +0 -0
  23. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/redis/keys.py +0 -0
  24. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/redis/play_history.py +0 -0
  25. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/schedule.py +0 -0
  26. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/setting.py +0 -0
  27. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/sqs/__init__.py +0 -0
  28. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/sqs/messages.py +0 -0
  29. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/track.py +0 -0
  30. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/user.py +0 -0
  31. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/zone.py +0 -0
  32. {artemis_model-0.1.127 → artemis_model-0.1.128}/artemis_model/zone_activity.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: artemis-model
3
- Version: 0.1.127
3
+ Version: 0.1.128
4
4
  Summary:
5
5
  Author: Jukeboxy
6
6
  Requires-Python: >=3.10.6,<4.0.0
@@ -1,6 +1,6 @@
1
1
  """Redis models."""
2
2
 
3
- from .zone_state import ZoneState, NowPlaying, SessionId, BucketId, PushedPlaylist, PushedPlaylistDetails
3
+ from .zone_state import ZoneState, NowPlaying, SessionId, BucketId, PlaylistSimple, PushedPlaylistDetails
4
4
  from .device import ActiveDevice
5
5
  from .bucket import RedisTrackBucketItem
6
6
  from .play_history import RedisTrackPlayHistoryItem
@@ -19,7 +19,7 @@ __all__ = [
19
19
  "SessionId",
20
20
  "BucketId",
21
21
  "ActiveDevice",
22
- "PushedPlaylist",
22
+ "PlaylistSimple",
23
23
  "PushedPlaylistDetails",
24
24
  "KEY_ZONE_PLAY_HISTORY_TEMPLATE",
25
25
  "KEY_ZONE_PUSH_PLAYLIST_BUCKET_TEMPLATE",
@@ -28,8 +28,8 @@ BucketId = Annotated[
28
28
  ]
29
29
 
30
30
 
31
- class PushedPlaylist(BaseModel):
32
- """Pushed playlist schema."""
31
+ class PlaylistSimple(BaseModel):
32
+ """Simple playlist schema."""
33
33
 
34
34
  id: int = Field(
35
35
  description="The id of the pushed playlist. It's generated as a timestamp value of the current time."
@@ -39,6 +39,19 @@ class PushedPlaylist(BaseModel):
39
39
  )
40
40
 
41
41
 
42
+ class ScheduleDetails(BaseModel):
43
+ """Schedule details schema."""
44
+
45
+ start_ts_utc: int | None = Field(
46
+ default=None,
47
+ description="The start timestamp of the schedule in UTC",
48
+ )
49
+ playlist_ids: list[int] | None = Field(
50
+ default=None,
51
+ description="The playlist ids of the schedule",
52
+ )
53
+
54
+
42
55
  class PushedPlaylistDetails(BaseModel):
43
56
  """Player details schema."""
44
57
 
@@ -49,7 +62,7 @@ class PushedPlaylistDetails(BaseModel):
49
62
  Every pushplaylist action has a session id. Here we map these session ids to the bucket id.
50
63
  """,
51
64
  )
52
- playlists: list[PushedPlaylist] | None = Field(
65
+ playlists: list[PlaylistSimple] | None = Field(
53
66
  default=None,
54
67
  description="The playlists of the pushed playlist",
55
68
  )
@@ -89,6 +102,10 @@ class ZoneState(BaseModel):
89
102
  default=None,
90
103
  description="The details of the pushed playlist",
91
104
  )
105
+ schedule_details: ScheduleDetails | None = Field(
106
+ default=None,
107
+ description="The details of the schedule",
108
+ )
92
109
 
93
110
 
94
111
  __all__ = [
@@ -96,6 +113,6 @@ __all__ = [
96
113
  "NowPlaying",
97
114
  "SessionId",
98
115
  "BucketId",
99
- "PushedPlaylist",
116
+ "PlaylistSimple",
100
117
  "PushedPlaylistDetails",
101
118
  ]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "artemis-model"
3
- version = "0.1.127"
3
+ version = "0.1.128"
4
4
  description = ""
5
5
  authors = ["Jukeboxy"]
6
6
  readme = "README.md"