artemis-model 0.1.127__py3-none-any.whl → 0.1.128__py3-none-any.whl

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.
@@ -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
  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
@@ -13,12 +13,12 @@ artemis_model/organization.py,sha256=yjGHJLTOtb9PUfxSPal782Rceb8xb8vftXX67tHRNqc
13
13
  artemis_model/otp.py,sha256=guIRGtyFlHUBthCAEsTh5_Hs-1yiGN_qfEO4uHNcv4s,1017
14
14
  artemis_model/permission.py,sha256=Bn1Bg1aCS4Z4_3tqEqvtrzqAYDCImsvmGyIEMoVycEk,1452
15
15
  artemis_model/playlist.py,sha256=L22KSJgTZmNEc9CqM3TFD4Wnx3TW77GQJ5EFLJCxZ20,6393
16
- artemis_model/redis/__init__.py,sha256=l-QrhS-aTYvXvFtHasSxI0AniiKb9qrCWfv1BiAEZO4,871
16
+ artemis_model/redis/__init__.py,sha256=pI0PbUnbi_JbdwdRELsHNFbhJcJUtdh7VtAK2Sc-MRU,871
17
17
  artemis_model/redis/bucket.py,sha256=DlmIf6GxfKq9CzcXmMx5IcviaqOTvuWwIb6lAVcZQGs,1537
18
18
  artemis_model/redis/device.py,sha256=ZUiIyVmtWiEwayFIg9mktiFaVuHQ7Fg0rvSjjWyryCI,484
19
19
  artemis_model/redis/keys.py,sha256=bnlSaBCIakLCIlgTr8BlYJmKEtKKvtdr43QIJCLnc90,567
20
20
  artemis_model/redis/play_history.py,sha256=Jm0guS0UZDxfCXeWJ8vqcjjl93W_EeC7XcBXcclKPiE,1259
21
- artemis_model/redis/zone_state.py,sha256=Q0ylKkoMmfORhcSO06H0Jg2V80l9AqdZCzy8GXm2vVk,2912
21
+ artemis_model/redis/zone_state.py,sha256=adoC24bGPAOhG2_Ki3666VVytDHJk5Q_wJTcH2apfac,3377
22
22
  artemis_model/schedule.py,sha256=CkLHWz-BwvUY2EQCfoU4SymgCariPzoQdtRLITqBPmk,2451
23
23
  artemis_model/setting.py,sha256=EWzOmE31mLNWwmV_wmqttHPMycvQZW7SJUIozF2b8bo,1190
24
24
  artemis_model/sqs/__init__.py,sha256=nHpXQns64qQ5Cqjyo6w9fDGO_wWhprqn1bhKf3eWnio,17
@@ -27,6 +27,6 @@ artemis_model/track.py,sha256=QwUF0QKVn1I64648B-NI75-IzGQvnLt9B0emD4GnS6E,3757
27
27
  artemis_model/user.py,sha256=eqIdCiBJRNLjCwPPCn-gQ6si0O5JUBGfp9oWJL5zVW4,2131
28
28
  artemis_model/zone.py,sha256=iGRUtzUwKh9LHT3MOfzzg1DnkPBts_ZBzZVTi2EmIgs,2282
29
29
  artemis_model/zone_activity.py,sha256=3pXi1Mz4iBJH6FylfxjZbAaMUqyZzGPZ9764b0YLmWs,1589
30
- artemis_model-0.1.127.dist-info/METADATA,sha256=2_gl8lY6cUUxT5zydFcaA5w4riJsxhGgbx7W5h4QGWU,3445
31
- artemis_model-0.1.127.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
32
- artemis_model-0.1.127.dist-info/RECORD,,
30
+ artemis_model-0.1.128.dist-info/METADATA,sha256=sINyFqXVNiN9DcjkDJcVLlWsmYs9uucKYKlJPiKHs5s,3445
31
+ artemis_model-0.1.128.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
32
+ artemis_model-0.1.128.dist-info/RECORD,,