gcore 0.5.0__py3-none-any.whl → 0.7.0__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.

Potentially problematic release.


This version of gcore might be problematic. Click here for more details.

Files changed (200) hide show
  1. gcore/_client.py +9 -0
  2. gcore/_models.py +24 -3
  3. gcore/_version.py +1 -1
  4. gcore/pagination.py +101 -1
  5. gcore/resources/__init__.py +14 -0
  6. gcore/resources/cloud/__init__.py +42 -0
  7. gcore/resources/cloud/audit_logs.py +480 -0
  8. gcore/resources/cloud/cloud.py +96 -0
  9. gcore/resources/cloud/cost_reports.py +811 -0
  10. gcore/resources/cloud/file_shares/file_shares.py +74 -9
  11. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +61 -26
  12. gcore/resources/cloud/inference/__init__.py +14 -0
  13. gcore/resources/cloud/inference/api_keys.py +621 -0
  14. gcore/resources/cloud/inference/inference.py +32 -0
  15. gcore/resources/cloud/inference/registry_credentials.py +4 -6
  16. gcore/resources/cloud/load_balancers/pools/members.py +22 -6
  17. gcore/resources/cloud/usage_reports.py +337 -0
  18. gcore/resources/streaming/__init__.py +159 -0
  19. gcore/resources/streaming/ai_tasks.py +1288 -0
  20. gcore/resources/streaming/broadcasts.py +579 -0
  21. gcore/resources/streaming/directories.py +515 -0
  22. gcore/resources/streaming/players.py +577 -0
  23. gcore/resources/streaming/playlists.py +1059 -0
  24. gcore/resources/streaming/quality_sets.py +331 -0
  25. gcore/resources/streaming/restreams.py +484 -0
  26. gcore/resources/streaming/statistics.py +3224 -0
  27. gcore/resources/streaming/streaming.py +390 -0
  28. gcore/resources/streaming/streams/__init__.py +33 -0
  29. gcore/resources/streaming/streams/overlays.py +716 -0
  30. gcore/resources/streaming/streams/streams.py +1592 -0
  31. gcore/resources/streaming/videos/__init__.py +33 -0
  32. gcore/resources/streaming/videos/subtitles.py +623 -0
  33. gcore/resources/streaming/videos/videos.py +1553 -0
  34. gcore/resources/waap/ip_info.py +28 -10
  35. gcore/types/cloud/__init__.py +12 -0
  36. gcore/types/cloud/audit_log_entry.py +254 -0
  37. gcore/types/cloud/audit_log_list_params.py +158 -0
  38. gcore/types/cloud/cost_report_aggregated.py +865 -0
  39. gcore/types/cloud/cost_report_aggregated_monthly.py +865 -0
  40. gcore/types/cloud/cost_report_detailed.py +1343 -0
  41. gcore/types/cloud/cost_report_get_aggregated_monthly_params.py +394 -0
  42. gcore/types/cloud/cost_report_get_aggregated_params.py +409 -0
  43. gcore/types/cloud/cost_report_get_detailed_params.py +435 -0
  44. gcore/types/cloud/file_share.py +37 -3
  45. gcore/types/cloud/file_share_create_params.py +16 -0
  46. gcore/types/cloud/file_share_update_params.py +29 -3
  47. gcore/types/cloud/gpu_baremetal_cluster.py +2 -2
  48. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +9 -0
  49. gcore/types/cloud/inference/__init__.py +5 -0
  50. gcore/types/cloud/inference/api_key_create_params.py +21 -0
  51. gcore/types/cloud/inference/api_key_list_params.py +21 -0
  52. gcore/types/cloud/inference/api_key_update_params.py +16 -0
  53. gcore/types/cloud/inference/inference_api_key.py +24 -0
  54. gcore/types/cloud/inference/inference_api_key_create.py +27 -0
  55. gcore/types/cloud/load_balancer_create_params.py +14 -3
  56. gcore/types/cloud/load_balancers/pool_create_params.py +14 -3
  57. gcore/types/cloud/load_balancers/pool_update_params.py +14 -3
  58. gcore/types/cloud/load_balancers/pools/member_add_params.py +14 -3
  59. gcore/types/cloud/member.py +12 -4
  60. gcore/types/cloud/quota_get_all_response.py +24 -2
  61. gcore/types/cloud/quota_get_by_region_response.py +24 -2
  62. gcore/types/cloud/quotas/request_create_params.py +12 -1
  63. gcore/types/cloud/quotas/request_get_response.py +12 -1
  64. gcore/types/cloud/quotas/request_list_response.py +12 -1
  65. gcore/types/cloud/usage_report.py +1612 -0
  66. gcore/types/cloud/usage_report_get_params.py +432 -0
  67. gcore/types/streaming/__init__.py +143 -0
  68. gcore/types/streaming/ai_contentmoderation_casm.py +39 -0
  69. gcore/types/streaming/ai_contentmoderation_hardnudity.py +54 -0
  70. gcore/types/streaming/ai_contentmoderation_nsfw.py +39 -0
  71. gcore/types/streaming/ai_contentmoderation_softnudity.py +66 -0
  72. gcore/types/streaming/ai_contentmoderation_sport.py +39 -0
  73. gcore/types/streaming/ai_contentmoderation_weapon.py +39 -0
  74. gcore/types/streaming/ai_task.py +205 -0
  75. gcore/types/streaming/ai_task_cancel_response.py +12 -0
  76. gcore/types/streaming/ai_task_create_params.py +168 -0
  77. gcore/types/streaming/ai_task_create_response.py +10 -0
  78. gcore/types/streaming/ai_task_get_ai_settings_params.py +27 -0
  79. gcore/types/streaming/ai_task_get_ai_settings_response.py +12 -0
  80. gcore/types/streaming/ai_task_get_response.py +313 -0
  81. gcore/types/streaming/ai_task_list_params.py +50 -0
  82. gcore/types/streaming/broadcast.py +71 -0
  83. gcore/types/streaming/broadcast_create_params.py +76 -0
  84. gcore/types/streaming/broadcast_list_params.py +12 -0
  85. gcore/types/streaming/broadcast_spectators_count.py +12 -0
  86. gcore/types/streaming/broadcast_update_params.py +76 -0
  87. gcore/types/streaming/clip.py +78 -0
  88. gcore/types/streaming/create_video_param.py +214 -0
  89. gcore/types/streaming/direct_upload_parameters.py +33 -0
  90. gcore/types/streaming/directories_tree.py +19 -0
  91. gcore/types/streaming/directory_base.py +31 -0
  92. gcore/types/streaming/directory_create_params.py +15 -0
  93. gcore/types/streaming/directory_get_response.py +19 -0
  94. gcore/types/streaming/directory_item.py +13 -0
  95. gcore/types/streaming/directory_update_params.py +18 -0
  96. gcore/types/streaming/directory_video.py +13 -0
  97. gcore/types/streaming/ffprobes.py +25 -0
  98. gcore/types/streaming/max_stream_series.py +21 -0
  99. gcore/types/streaming/meet_series.py +23 -0
  100. gcore/types/streaming/player.py +114 -0
  101. gcore/types/streaming/player_create_params.py +18 -0
  102. gcore/types/streaming/player_list_params.py +12 -0
  103. gcore/types/streaming/player_param.py +114 -0
  104. gcore/types/streaming/player_update_params.py +18 -0
  105. gcore/types/streaming/playlist.py +102 -0
  106. gcore/types/streaming/playlist_create.py +12 -0
  107. gcore/types/streaming/playlist_create_params.py +102 -0
  108. gcore/types/streaming/playlist_list_params.py +12 -0
  109. gcore/types/streaming/playlist_list_videos_response.py +10 -0
  110. gcore/types/streaming/playlist_update_params.py +102 -0
  111. gcore/types/streaming/playlist_video.py +215 -0
  112. gcore/types/streaming/popular_videos.py +17 -0
  113. gcore/types/streaming/quality_set_set_default_params.py +23 -0
  114. gcore/types/streaming/quality_sets.py +57 -0
  115. gcore/types/streaming/restream.py +37 -0
  116. gcore/types/streaming/restream_create_params.py +41 -0
  117. gcore/types/streaming/restream_list_params.py +12 -0
  118. gcore/types/streaming/restream_update_params.py +41 -0
  119. gcore/types/streaming/statistic_get_ffprobes_params.py +22 -0
  120. gcore/types/streaming/statistic_get_live_unique_viewers_params.py +26 -0
  121. gcore/types/streaming/statistic_get_live_unique_viewers_response.py +25 -0
  122. gcore/types/streaming/statistic_get_live_watch_time_cdn_params.py +32 -0
  123. gcore/types/streaming/statistic_get_live_watch_time_total_cdn_params.py +30 -0
  124. gcore/types/streaming/statistic_get_max_streams_series_params.py +20 -0
  125. gcore/types/streaming/statistic_get_meet_series_params.py +20 -0
  126. gcore/types/streaming/statistic_get_popular_videos_params.py +15 -0
  127. gcore/types/streaming/statistic_get_storage_series_params.py +20 -0
  128. gcore/types/streaming/statistic_get_stream_series_params.py +20 -0
  129. gcore/types/streaming/statistic_get_unique_viewers_cdn_params.py +27 -0
  130. gcore/types/streaming/statistic_get_unique_viewers_params.py +34 -0
  131. gcore/types/streaming/statistic_get_views_by_browsers_params.py +15 -0
  132. gcore/types/streaming/statistic_get_views_by_country_params.py +15 -0
  133. gcore/types/streaming/statistic_get_views_by_hostname_params.py +15 -0
  134. gcore/types/streaming/statistic_get_views_by_operating_system_params.py +15 -0
  135. gcore/types/streaming/statistic_get_views_by_referer_params.py +15 -0
  136. gcore/types/streaming/statistic_get_views_by_region_params.py +15 -0
  137. gcore/types/streaming/statistic_get_views_heatmap_params.py +21 -0
  138. gcore/types/streaming/statistic_get_views_params.py +34 -0
  139. gcore/types/streaming/statistic_get_vod_storage_volume_params.py +17 -0
  140. gcore/types/streaming/statistic_get_vod_transcoding_duration_params.py +17 -0
  141. gcore/types/streaming/statistic_get_vod_unique_viewers_cdn_params.py +26 -0
  142. gcore/types/streaming/statistic_get_vod_watch_time_cdn_params.py +32 -0
  143. gcore/types/streaming/statistic_get_vod_watch_time_total_cdn_params.py +30 -0
  144. gcore/types/streaming/statistic_get_vod_watch_time_total_cdn_response.py +22 -0
  145. gcore/types/streaming/storage_series.py +23 -0
  146. gcore/types/streaming/stream.py +420 -0
  147. gcore/types/streaming/stream_create_clip_params.py +48 -0
  148. gcore/types/streaming/stream_create_params.py +165 -0
  149. gcore/types/streaming/stream_list_clips_response.py +10 -0
  150. gcore/types/streaming/stream_list_params.py +18 -0
  151. gcore/types/streaming/stream_series.py +21 -0
  152. gcore/types/streaming/stream_start_recording_response.py +76 -0
  153. gcore/types/streaming/stream_update_params.py +169 -0
  154. gcore/types/streaming/streams/__init__.py +11 -0
  155. gcore/types/streaming/streams/overlay.py +43 -0
  156. gcore/types/streaming/streams/overlay_create_params.py +36 -0
  157. gcore/types/streaming/streams/overlay_create_response.py +10 -0
  158. gcore/types/streaming/streams/overlay_list_response.py +10 -0
  159. gcore/types/streaming/streams/overlay_update_multiple_params.py +39 -0
  160. gcore/types/streaming/streams/overlay_update_multiple_response.py +10 -0
  161. gcore/types/streaming/streams/overlay_update_params.py +33 -0
  162. gcore/types/streaming/subtitle.py +12 -0
  163. gcore/types/streaming/subtitle_base.py +18 -0
  164. gcore/types/streaming/subtitle_base_param.py +18 -0
  165. gcore/types/streaming/unique_viewers.py +35 -0
  166. gcore/types/streaming/unique_viewers_cdn.py +17 -0
  167. gcore/types/streaming/video.py +444 -0
  168. gcore/types/streaming/video_create_multiple_params.py +28 -0
  169. gcore/types/streaming/video_create_multiple_response.py +10 -0
  170. gcore/types/streaming/video_create_params.py +13 -0
  171. gcore/types/streaming/video_create_response.py +10 -0
  172. gcore/types/streaming/video_list_names_params.py +13 -0
  173. gcore/types/streaming/video_list_params.py +59 -0
  174. gcore/types/streaming/video_update_params.py +214 -0
  175. gcore/types/streaming/videos/__init__.py +7 -0
  176. gcore/types/streaming/videos/subtitle_create_params.py +17 -0
  177. gcore/types/streaming/videos/subtitle_list_response.py +10 -0
  178. gcore/types/streaming/videos/subtitle_update_params.py +20 -0
  179. gcore/types/streaming/views.py +35 -0
  180. gcore/types/streaming/views_by_browser.py +17 -0
  181. gcore/types/streaming/views_by_country.py +19 -0
  182. gcore/types/streaming/views_by_hostname.py +17 -0
  183. gcore/types/streaming/views_by_operating_system.py +17 -0
  184. gcore/types/streaming/views_by_referer.py +17 -0
  185. gcore/types/streaming/views_by_region.py +19 -0
  186. gcore/types/streaming/views_heatmap.py +19 -0
  187. gcore/types/streaming/vod_statistics_series.py +21 -0
  188. gcore/types/streaming/vod_total_stream_duration_series.py +22 -0
  189. gcore/types/waap/domains/custom_rule_create_params.py +4 -4
  190. gcore/types/waap/domains/custom_rule_update_params.py +4 -4
  191. gcore/types/waap/ip_info_get_blocked_requests_params.py +5 -1
  192. gcore/types/waap/ip_info_get_counts_params.py +2 -1
  193. gcore/types/waap/ip_info_get_top_sessions_params.py +5 -1
  194. gcore/types/waap/ip_info_get_top_urls_params.py +5 -1
  195. gcore/types/waap/ip_info_get_top_user_agents_params.py +5 -1
  196. gcore/types/waap/waap_custom_rule.py +4 -4
  197. {gcore-0.5.0.dist-info → gcore-0.7.0.dist-info}/METADATA +2 -3
  198. {gcore-0.5.0.dist-info → gcore-0.7.0.dist-info}/RECORD +200 -43
  199. {gcore-0.5.0.dist-info → gcore-0.7.0.dist-info}/WHEEL +0 -0
  200. {gcore-0.5.0.dist-info → gcore-0.7.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,114 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Required, TypedDict
6
+
7
+ __all__ = ["PlayerParam"]
8
+
9
+
10
+ class PlayerParam(TypedDict, total=False):
11
+ name: Required[str]
12
+ """Player name"""
13
+
14
+ id: int
15
+ """Player ID"""
16
+
17
+ autoplay: bool
18
+ """Enables video playback right after player load:
19
+
20
+ - **true** — video starts playing right after player loads
21
+ - **false** — video isn’t played automatically. A user must click play to start
22
+
23
+ Default is false
24
+ """
25
+
26
+ bg_color: str
27
+ """Color of skin background in format #AAAAAA"""
28
+
29
+ client_id: int
30
+ """Client ID"""
31
+
32
+ custom_css: str
33
+ """Custom CSS to be added to player iframe"""
34
+
35
+ design: str
36
+ """String to be rendered as JS parameters to player"""
37
+
38
+ disable_skin: bool
39
+ """Enables/Disables player skin:
40
+
41
+ - **true** — player skin is disabled
42
+ - **false** — player skin is enabled
43
+
44
+ Default is false
45
+ """
46
+
47
+ fg_color: str
48
+ """Color of skin foreground (elements) in format #AAAAAA"""
49
+
50
+ framework: str
51
+ """Player framework type"""
52
+
53
+ hover_color: str
54
+ """Color of foreground elements when mouse is over in format #AAAAAA"""
55
+
56
+ js_url: str
57
+ """Player main JS file URL. Leave empty to use JS URL from the default player"""
58
+
59
+ logo: str
60
+ """URL to logo image"""
61
+
62
+ logo_position: str
63
+ """Logotype position.
64
+ Has four possible values:
65
+
66
+ - **tl** — top left
67
+ - **tr** — top right
68
+ - **bl** — bottom left
69
+ - **br** — bottom right
70
+
71
+ Default is null
72
+ """
73
+
74
+ mute: bool
75
+ """Regulates the sound volume:
76
+
77
+ - **true** — video starts with volume off
78
+ - **false** — video starts with volume on
79
+
80
+ Default is false
81
+ """
82
+
83
+ save_options_to_cookies: bool
84
+ """Enables/Disables saving volume and other options in cookies:
85
+
86
+ - **true** — user settings will be saved
87
+ - **false** — user settings will not be saved
88
+
89
+ Default is true
90
+ """
91
+
92
+ show_sharing: bool
93
+ """Enables/Disables sharing button display:
94
+
95
+ - **true** — sharing button is displayed
96
+ - **false** — no sharing button is displayed
97
+
98
+ Default is true
99
+ """
100
+
101
+ skin_is_url: str
102
+ """URL to custom skin JS file"""
103
+
104
+ speed_control: bool
105
+ """Enables/Disables speed control button display:
106
+
107
+ - **true** — sharing button is displayed
108
+ - **false** — no sharing button is displayed
109
+
110
+ Default is false
111
+ """
112
+
113
+ text_color: str
114
+ """Color of skin text elements in format #AAAAAA"""
@@ -0,0 +1,18 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ from .player_param import PlayerParam
8
+
9
+ __all__ = ["PlayerUpdateParams"]
10
+
11
+
12
+ class PlayerUpdateParams(TypedDict, total=False):
13
+ player: PlayerParam
14
+ """Set of properties for displaying videos.
15
+
16
+ All parameters may be blank to inherit their values from default Streaming
17
+ player.
18
+ """
@@ -0,0 +1,102 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from typing_extensions import Literal
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["Playlist"]
9
+
10
+
11
+ class Playlist(BaseModel):
12
+ active: Optional[bool] = None
13
+ """Enables/Disables playlist. Has two possible values:
14
+
15
+ - true – Playlist can be played.
16
+ - false – Playlist is disabled. No broadcast while it's desabled.
17
+ """
18
+
19
+ ad_id: Optional[int] = None
20
+ """The advertisement ID that will be inserted into the video"""
21
+
22
+ client_id: Optional[int] = None
23
+ """Current playlist client ID"""
24
+
25
+ client_user_id: Optional[int] = None
26
+ """Custom field where you can specify user ID in your system"""
27
+
28
+ countdown: Optional[bool] = None
29
+ """Enables countdown before playlist start with `playlist_type: live`"""
30
+
31
+ hls_cmaf_url: Optional[str] = None
32
+ """A URL to a master playlist HLS (master-cmaf.m3u8) with CMAF-based chunks.
33
+
34
+ Chunks are in fMP4 container.
35
+
36
+ It is possible to use the same suffix-options as described in the "`hls_url`"
37
+ attribute.
38
+
39
+ Caution. Solely master.m3u8 (and master[-options].m3u8) is officially documented
40
+ and intended for your use. Any additional internal manifests, sub-manifests,
41
+ parameters, chunk names, file extensions, and related components are internal
42
+ infrastructure entities. These may undergo modifications without prior notice,
43
+ in any manner or form. It is strongly advised not to store them in your database
44
+ or cache them on your end.
45
+ """
46
+
47
+ hls_url: Optional[str] = None
48
+ """A URL to a master playlist HLS (master.m3u8) with MPEG TS container.
49
+
50
+ This URL is a link to the main manifest. But you can also manually specify
51
+ suffix-options that will allow you to change the manifest to your request:
52
+ `` /playlists/{`client_id`}_{`playlist_id`}/master[-cmaf][-min-N][-max-N][-img][-(h264|hevc|av1)].m3u8 ``
53
+ Please see the details in `hls_url` attribute of /videos/{id} method.
54
+
55
+ Caution. Solely master.m3u8 (and master[-options].m3u8) is officially documented
56
+ and intended for your use. Any additional internal manifests, sub-manifests,
57
+ parameters, chunk names, file extensions, and related components are internal
58
+ infrastructure entities. These may undergo modifications without prior notice,
59
+ in any manner or form. It is strongly advised not to store them in your database
60
+ or cache them on your end.
61
+ """
62
+
63
+ iframe_url: Optional[str] = None
64
+ """A URL to a built-in HTML video player with the video inside.
65
+
66
+ It can be inserted into an iframe on your website and the video will
67
+ automatically play in all browsers. The player can be opened or shared via this
68
+ direct link. Also the video player can be integrated into your web pages using
69
+ the Iframe tag.
70
+
71
+ Please see the details in `iframe_url` attribute of /videos/{id} method.
72
+ """
73
+
74
+ loop: Optional[bool] = None
75
+ """Enables/Disables playlist loop"""
76
+
77
+ name: Optional[str] = None
78
+ """Playlist name"""
79
+
80
+ player_id: Optional[int] = None
81
+ """The player ID with which the video will be played"""
82
+
83
+ playlist_type: Optional[Literal["live", "vod"]] = None
84
+ """Determines whether the playlist:
85
+
86
+ - `live` - playlist for live-streaming
87
+ - `vod` - playlist is for video on demand access
88
+ """
89
+
90
+ start_time: Optional[str] = None
91
+ """Playlist start time.
92
+
93
+ Playlist won't be available before the specified time. Datetime in ISO 8601
94
+ format.
95
+ """
96
+
97
+ video_ids: Optional[List[int]] = None
98
+ """A list of VOD IDs included in the playlist.
99
+
100
+ Order of videos in a playlist reflects the order of IDs in the array. Maximum
101
+ video limit = 128.
102
+ """
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from .playlist import Playlist
6
+
7
+ __all__ = ["PlaylistCreate"]
8
+
9
+
10
+ class PlaylistCreate(Playlist):
11
+ id: Optional[int] = None
12
+ """Playlist ID"""
@@ -0,0 +1,102 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Iterable
6
+ from typing_extensions import Literal, TypedDict
7
+
8
+ __all__ = ["PlaylistCreateParams"]
9
+
10
+
11
+ class PlaylistCreateParams(TypedDict, total=False):
12
+ active: bool
13
+ """Enables/Disables playlist. Has two possible values:
14
+
15
+ - true – Playlist can be played.
16
+ - false – Playlist is disabled. No broadcast while it's desabled.
17
+ """
18
+
19
+ ad_id: int
20
+ """The advertisement ID that will be inserted into the video"""
21
+
22
+ client_id: int
23
+ """Current playlist client ID"""
24
+
25
+ client_user_id: int
26
+ """Custom field where you can specify user ID in your system"""
27
+
28
+ countdown: bool
29
+ """Enables countdown before playlist start with `playlist_type: live`"""
30
+
31
+ hls_cmaf_url: str
32
+ """A URL to a master playlist HLS (master-cmaf.m3u8) with CMAF-based chunks.
33
+
34
+ Chunks are in fMP4 container.
35
+
36
+ It is possible to use the same suffix-options as described in the "`hls_url`"
37
+ attribute.
38
+
39
+ Caution. Solely master.m3u8 (and master[-options].m3u8) is officially documented
40
+ and intended for your use. Any additional internal manifests, sub-manifests,
41
+ parameters, chunk names, file extensions, and related components are internal
42
+ infrastructure entities. These may undergo modifications without prior notice,
43
+ in any manner or form. It is strongly advised not to store them in your database
44
+ or cache them on your end.
45
+ """
46
+
47
+ hls_url: str
48
+ """A URL to a master playlist HLS (master.m3u8) with MPEG TS container.
49
+
50
+ This URL is a link to the main manifest. But you can also manually specify
51
+ suffix-options that will allow you to change the manifest to your request:
52
+ `` /playlists/{`client_id`}_{`playlist_id`}/master[-cmaf][-min-N][-max-N][-img][-(h264|hevc|av1)].m3u8 ``
53
+ Please see the details in `hls_url` attribute of /videos/{id} method.
54
+
55
+ Caution. Solely master.m3u8 (and master[-options].m3u8) is officially documented
56
+ and intended for your use. Any additional internal manifests, sub-manifests,
57
+ parameters, chunk names, file extensions, and related components are internal
58
+ infrastructure entities. These may undergo modifications without prior notice,
59
+ in any manner or form. It is strongly advised not to store them in your database
60
+ or cache them on your end.
61
+ """
62
+
63
+ iframe_url: str
64
+ """A URL to a built-in HTML video player with the video inside.
65
+
66
+ It can be inserted into an iframe on your website and the video will
67
+ automatically play in all browsers. The player can be opened or shared via this
68
+ direct link. Also the video player can be integrated into your web pages using
69
+ the Iframe tag.
70
+
71
+ Please see the details in `iframe_url` attribute of /videos/{id} method.
72
+ """
73
+
74
+ loop: bool
75
+ """Enables/Disables playlist loop"""
76
+
77
+ name: str
78
+ """Playlist name"""
79
+
80
+ player_id: int
81
+ """The player ID with which the video will be played"""
82
+
83
+ playlist_type: Literal["live", "vod"]
84
+ """Determines whether the playlist:
85
+
86
+ - `live` - playlist for live-streaming
87
+ - `vod` - playlist is for video on demand access
88
+ """
89
+
90
+ start_time: str
91
+ """Playlist start time.
92
+
93
+ Playlist won't be available before the specified time. Datetime in ISO 8601
94
+ format.
95
+ """
96
+
97
+ video_ids: Iterable[int]
98
+ """A list of VOD IDs included in the playlist.
99
+
100
+ Order of videos in a playlist reflects the order of IDs in the array. Maximum
101
+ video limit = 128.
102
+ """
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ __all__ = ["PlaylistListParams"]
8
+
9
+
10
+ class PlaylistListParams(TypedDict, total=False):
11
+ page: int
12
+ """Query parameter. Use it to list the paginated content"""
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+ from typing_extensions import TypeAlias
5
+
6
+ from .playlist_video import PlaylistVideo
7
+
8
+ __all__ = ["PlaylistListVideosResponse"]
9
+
10
+ PlaylistListVideosResponse: TypeAlias = List[PlaylistVideo]
@@ -0,0 +1,102 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Iterable
6
+ from typing_extensions import Literal, TypedDict
7
+
8
+ __all__ = ["PlaylistUpdateParams"]
9
+
10
+
11
+ class PlaylistUpdateParams(TypedDict, total=False):
12
+ active: bool
13
+ """Enables/Disables playlist. Has two possible values:
14
+
15
+ - true – Playlist can be played.
16
+ - false – Playlist is disabled. No broadcast while it's desabled.
17
+ """
18
+
19
+ ad_id: int
20
+ """The advertisement ID that will be inserted into the video"""
21
+
22
+ client_id: int
23
+ """Current playlist client ID"""
24
+
25
+ client_user_id: int
26
+ """Custom field where you can specify user ID in your system"""
27
+
28
+ countdown: bool
29
+ """Enables countdown before playlist start with `playlist_type: live`"""
30
+
31
+ hls_cmaf_url: str
32
+ """A URL to a master playlist HLS (master-cmaf.m3u8) with CMAF-based chunks.
33
+
34
+ Chunks are in fMP4 container.
35
+
36
+ It is possible to use the same suffix-options as described in the "`hls_url`"
37
+ attribute.
38
+
39
+ Caution. Solely master.m3u8 (and master[-options].m3u8) is officially documented
40
+ and intended for your use. Any additional internal manifests, sub-manifests,
41
+ parameters, chunk names, file extensions, and related components are internal
42
+ infrastructure entities. These may undergo modifications without prior notice,
43
+ in any manner or form. It is strongly advised not to store them in your database
44
+ or cache them on your end.
45
+ """
46
+
47
+ hls_url: str
48
+ """A URL to a master playlist HLS (master.m3u8) with MPEG TS container.
49
+
50
+ This URL is a link to the main manifest. But you can also manually specify
51
+ suffix-options that will allow you to change the manifest to your request:
52
+ `` /playlists/{`client_id`}_{`playlist_id`}/master[-cmaf][-min-N][-max-N][-img][-(h264|hevc|av1)].m3u8 ``
53
+ Please see the details in `hls_url` attribute of /videos/{id} method.
54
+
55
+ Caution. Solely master.m3u8 (and master[-options].m3u8) is officially documented
56
+ and intended for your use. Any additional internal manifests, sub-manifests,
57
+ parameters, chunk names, file extensions, and related components are internal
58
+ infrastructure entities. These may undergo modifications without prior notice,
59
+ in any manner or form. It is strongly advised not to store them in your database
60
+ or cache them on your end.
61
+ """
62
+
63
+ iframe_url: str
64
+ """A URL to a built-in HTML video player with the video inside.
65
+
66
+ It can be inserted into an iframe on your website and the video will
67
+ automatically play in all browsers. The player can be opened or shared via this
68
+ direct link. Also the video player can be integrated into your web pages using
69
+ the Iframe tag.
70
+
71
+ Please see the details in `iframe_url` attribute of /videos/{id} method.
72
+ """
73
+
74
+ loop: bool
75
+ """Enables/Disables playlist loop"""
76
+
77
+ name: str
78
+ """Playlist name"""
79
+
80
+ player_id: int
81
+ """The player ID with which the video will be played"""
82
+
83
+ playlist_type: Literal["live", "vod"]
84
+ """Determines whether the playlist:
85
+
86
+ - `live` - playlist for live-streaming
87
+ - `vod` - playlist is for video on demand access
88
+ """
89
+
90
+ start_time: str
91
+ """Playlist start time.
92
+
93
+ Playlist won't be available before the specified time. Datetime in ISO 8601
94
+ format.
95
+ """
96
+
97
+ video_ids: Iterable[int]
98
+ """A list of VOD IDs included in the playlist.
99
+
100
+ Order of videos in a playlist reflects the order of IDs in the array. Maximum
101
+ video limit = 128.
102
+ """