chunkify-analytics-sdk 0.9.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.
- chunkify_analytics/__init__.py +102 -0
- chunkify_analytics/_base_client.py +2153 -0
- chunkify_analytics/_client.py +1262 -0
- chunkify_analytics/_compat.py +226 -0
- chunkify_analytics/_constants.py +14 -0
- chunkify_analytics/_exceptions.py +108 -0
- chunkify_analytics/_files.py +173 -0
- chunkify_analytics/_models.py +964 -0
- chunkify_analytics/_qs.py +149 -0
- chunkify_analytics/_resource.py +43 -0
- chunkify_analytics/_response.py +835 -0
- chunkify_analytics/_streaming.py +338 -0
- chunkify_analytics/_types.py +274 -0
- chunkify_analytics/_utils/__init__.py +64 -0
- chunkify_analytics/_utils/_compat.py +45 -0
- chunkify_analytics/_utils/_datetime_parse.py +136 -0
- chunkify_analytics/_utils/_json.py +35 -0
- chunkify_analytics/_utils/_logs.py +25 -0
- chunkify_analytics/_utils/_path.py +127 -0
- chunkify_analytics/_utils/_proxy.py +65 -0
- chunkify_analytics/_utils/_reflection.py +42 -0
- chunkify_analytics/_utils/_resources_proxy.py +24 -0
- chunkify_analytics/_utils/_streams.py +12 -0
- chunkify_analytics/_utils/_sync.py +58 -0
- chunkify_analytics/_utils/_transform.py +457 -0
- chunkify_analytics/_utils/_typing.py +156 -0
- chunkify_analytics/_utils/_utils.py +433 -0
- chunkify_analytics/_version.py +4 -0
- chunkify_analytics/lib/.keep +4 -0
- chunkify_analytics/pagination.py +221 -0
- chunkify_analytics/py.typed +0 -0
- chunkify_analytics/resources/__init__.py +243 -0
- chunkify_analytics/resources/admin/__init__.py +33 -0
- chunkify_analytics/resources/admin/admin.py +253 -0
- chunkify_analytics/resources/admin/keys.py +283 -0
- chunkify_analytics/resources/dimensions.py +436 -0
- chunkify_analytics/resources/engagement.py +479 -0
- chunkify_analytics/resources/errors.py +400 -0
- chunkify_analytics/resources/events.py +562 -0
- chunkify_analytics/resources/exports.py +584 -0
- chunkify_analytics/resources/health.py +159 -0
- chunkify_analytics/resources/playback_rates.py +391 -0
- chunkify_analytics/resources/project/__init__.py +33 -0
- chunkify_analytics/resources/project/keys.py +379 -0
- chunkify_analytics/resources/project/project.py +322 -0
- chunkify_analytics/resources/quality.py +471 -0
- chunkify_analytics/resources/renditions.py +391 -0
- chunkify_analytics/resources/retention.py +377 -0
- chunkify_analytics/resources/subtitles.py +389 -0
- chunkify_analytics/resources/summary.py +469 -0
- chunkify_analytics/resources/timeseries.py +399 -0
- chunkify_analytics/resources/videos.py +424 -0
- chunkify_analytics/resources/views.py +579 -0
- chunkify_analytics/types/__init__.py +145 -0
- chunkify_analytics/types/admin/__init__.py +3 -0
- chunkify_analytics/types/admin_create_project_params.py +25 -0
- chunkify_analytics/types/analytics_event.py +32 -0
- chunkify_analytics/types/analytics_event_param.py +30 -0
- chunkify_analytics/types/created_project.py +37 -0
- chunkify_analytics/types/created_project_key.py +34 -0
- chunkify_analytics/types/deleted_project.py +18 -0
- chunkify_analytics/types/dimension_list_values_params.py +124 -0
- chunkify_analytics/types/dimension_values.py +42 -0
- chunkify_analytics/types/engagement.py +60 -0
- chunkify_analytics/types/engagement_breakdown_page.py +44 -0
- chunkify_analytics/types/engagement_response.py +11 -0
- chunkify_analytics/types/engagement_retrieve_params.py +158 -0
- chunkify_analytics/types/engagement_timeseries.py +28 -0
- chunkify_analytics/types/engagement_timeseries_bucket.py +63 -0
- chunkify_analytics/types/error_group.py +17 -0
- chunkify_analytics/types/error_list_params.py +124 -0
- chunkify_analytics/types/error_page.py +14 -0
- chunkify_analytics/types/event_ingest_params.py +19 -0
- chunkify_analytics/types/event_ingest_response.py +11 -0
- chunkify_analytics/types/event_list_params.py +146 -0
- chunkify_analytics/types/event_page.py +18 -0
- chunkify_analytics/types/export.py +18 -0
- chunkify_analytics/types/export_columns.py +12 -0
- chunkify_analytics/types/export_create_params.py +40 -0
- chunkify_analytics/types/export_download_response.py +7 -0
- chunkify_analytics/types/export_list_columns_params.py +69 -0
- chunkify_analytics/types/export_query_param.py +141 -0
- chunkify_analytics/types/health.py +11 -0
- chunkify_analytics/types/metrics.py +13 -0
- chunkify_analytics/types/metrics_breakdown_page.py +40 -0
- chunkify_analytics/types/metrics_response.py +11 -0
- chunkify_analytics/types/native_created.py +13 -0
- chunkify_analytics/types/native_duplicate.py +13 -0
- chunkify_analytics/types/playback_error.py +180 -0
- chunkify_analytics/types/playback_error_param.py +182 -0
- chunkify_analytics/types/playback_rate_changed.py +150 -0
- chunkify_analytics/types/playback_rate_changed_param.py +152 -0
- chunkify_analytics/types/playback_rate_metric.py +21 -0
- chunkify_analytics/types/playback_rate_report.py +31 -0
- chunkify_analytics/types/playback_rate_retrieve_params.py +117 -0
- chunkify_analytics/types/playback_state_changed.py +150 -0
- chunkify_analytics/types/playback_state_changed_param.py +156 -0
- chunkify_analytics/types/project/__init__.py +6 -0
- chunkify_analytics/types/project/key_create_params.py +21 -0
- chunkify_analytics/types/project/project.py +35 -0
- chunkify_analytics/types/project_key.py +21 -0
- chunkify_analytics/types/project_keys.py +14 -0
- chunkify_analytics/types/project_update_params.py +25 -0
- chunkify_analytics/types/quality.py +117 -0
- chunkify_analytics/types/quality_breakdown_page.py +44 -0
- chunkify_analytics/types/quality_response.py +11 -0
- chunkify_analytics/types/quality_retrieve_params.py +158 -0
- chunkify_analytics/types/quality_timeseries.py +28 -0
- chunkify_analytics/types/quality_timeseries_bucket.py +120 -0
- chunkify_analytics/types/rendition_changed.py +156 -0
- chunkify_analytics/types/rendition_changed_param.py +158 -0
- chunkify_analytics/types/rendition_metric.py +40 -0
- chunkify_analytics/types/rendition_report.py +43 -0
- chunkify_analytics/types/rendition_retrieve_params.py +117 -0
- chunkify_analytics/types/retention_bucket.py +22 -0
- chunkify_analytics/types/retention_report.py +33 -0
- chunkify_analytics/types/retention_retrieve_params.py +110 -0
- chunkify_analytics/types/rotated_project_key.py +29 -0
- chunkify_analytics/types/seek_completed.py +166 -0
- chunkify_analytics/types/seek_completed_param.py +168 -0
- chunkify_analytics/types/shared/__init__.py +24 -0
- chunkify_analytics/types/shared/browser_context.py +62 -0
- chunkify_analytics/types/shared/custom_dimensions.py +8 -0
- chunkify_analytics/types/shared/event_context.py +161 -0
- chunkify_analytics/types/shared/event_envelope.py +152 -0
- chunkify_analytics/types/shared/metric_count_ratio.py +18 -0
- chunkify_analytics/types/shared/otlp_any_value.py +56 -0
- chunkify_analytics/types/shared/otlp_attribute.py +24 -0
- chunkify_analytics/types/shared/otlp_attribute_value.py +136 -0
- chunkify_analytics/types/shared/otlp_context_attribute.py +22 -0
- chunkify_analytics/types/shared/otlp_log_record.py +48 -0
- chunkify_analytics/types/shared/otlp_resource.py +20 -0
- chunkify_analytics/types/shared/otlp_scope.py +24 -0
- chunkify_analytics/types/shared/playback_rate_playing_time.py +12 -0
- chunkify_analytics/types/shared/playback_score.py +28 -0
- chunkify_analytics/types/shared/played_range.py +13 -0
- chunkify_analytics/types/shared/progress_reached.py +39 -0
- chunkify_analytics/types/shared/rendition_playing_time.py +21 -0
- chunkify_analytics/types/shared/startup_outcomes.py +39 -0
- chunkify_analytics/types/shared/stored_otlp_context.py +50 -0
- chunkify_analytics/types/shared/subtitle_playing_time.py +14 -0
- chunkify_analytics/types/shared/view_metrics.py +100 -0
- chunkify_analytics/types/shared/watch_time_distribution.py +41 -0
- chunkify_analytics/types/shared_params/__init__.py +8 -0
- chunkify_analytics/types/shared_params/browser_context.py +62 -0
- chunkify_analytics/types/shared_params/custom_dimensions.py +10 -0
- chunkify_analytics/types/shared_params/playback_rate_playing_time.py +14 -0
- chunkify_analytics/types/shared_params/played_range.py +15 -0
- chunkify_analytics/types/shared_params/rendition_playing_time.py +22 -0
- chunkify_analytics/types/shared_params/subtitle_playing_time.py +15 -0
- chunkify_analytics/types/stored_event.py +44 -0
- chunkify_analytics/types/subtitle_changed.py +150 -0
- chunkify_analytics/types/subtitle_changed_param.py +152 -0
- chunkify_analytics/types/subtitle_metric.py +26 -0
- chunkify_analytics/types/subtitle_report.py +31 -0
- chunkify_analytics/types/subtitle_retrieve_params.py +117 -0
- chunkify_analytics/types/summary_retrieve_params.py +158 -0
- chunkify_analytics/types/time_bucket.py +22 -0
- chunkify_analytics/types/timeseries.py +28 -0
- chunkify_analytics/types/timeseries_response.py +12 -0
- chunkify_analytics/types/timesery_retrieve_params.py +115 -0
- chunkify_analytics/types/video_list_params.py +140 -0
- chunkify_analytics/types/video_metrics.py +23 -0
- chunkify_analytics/types/video_page.py +14 -0
- chunkify_analytics/types/view.py +43 -0
- chunkify_analytics/types/view_detail.py +21 -0
- chunkify_analytics/types/view_ended.py +180 -0
- chunkify_analytics/types/view_ended_param.py +182 -0
- chunkify_analytics/types/view_list_params.py +152 -0
- chunkify_analytics/types/view_page.py +14 -0
- chunkify_analytics/types/view_retrieve_params.py +23 -0
- chunkify_analytics/types/view_snapshot.py +180 -0
- chunkify_analytics/types/view_snapshot_param.py +182 -0
- chunkify_analytics/types/view_started.py +192 -0
- chunkify_analytics/types/view_started_param.py +194 -0
- chunkify_analytics_sdk-0.9.0.dist-info/METADATA +487 -0
- chunkify_analytics_sdk-0.9.0.dist-info/RECORD +179 -0
- chunkify_analytics_sdk-0.9.0.dist-info/WHEEL +4 -0
- chunkify_analytics_sdk-0.9.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .admin import (
|
|
4
|
+
AdminResource,
|
|
5
|
+
AsyncAdminResource,
|
|
6
|
+
AdminResourceWithRawResponse,
|
|
7
|
+
AsyncAdminResourceWithRawResponse,
|
|
8
|
+
AdminResourceWithStreamingResponse,
|
|
9
|
+
AsyncAdminResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .views import (
|
|
12
|
+
ViewsResource,
|
|
13
|
+
AsyncViewsResource,
|
|
14
|
+
ViewsResourceWithRawResponse,
|
|
15
|
+
AsyncViewsResourceWithRawResponse,
|
|
16
|
+
ViewsResourceWithStreamingResponse,
|
|
17
|
+
AsyncViewsResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
from .errors import (
|
|
20
|
+
ErrorsResource,
|
|
21
|
+
AsyncErrorsResource,
|
|
22
|
+
ErrorsResourceWithRawResponse,
|
|
23
|
+
AsyncErrorsResourceWithRawResponse,
|
|
24
|
+
ErrorsResourceWithStreamingResponse,
|
|
25
|
+
AsyncErrorsResourceWithStreamingResponse,
|
|
26
|
+
)
|
|
27
|
+
from .events import (
|
|
28
|
+
EventsResource,
|
|
29
|
+
AsyncEventsResource,
|
|
30
|
+
EventsResourceWithRawResponse,
|
|
31
|
+
AsyncEventsResourceWithRawResponse,
|
|
32
|
+
EventsResourceWithStreamingResponse,
|
|
33
|
+
AsyncEventsResourceWithStreamingResponse,
|
|
34
|
+
)
|
|
35
|
+
from .health import (
|
|
36
|
+
HealthResource,
|
|
37
|
+
AsyncHealthResource,
|
|
38
|
+
HealthResourceWithRawResponse,
|
|
39
|
+
AsyncHealthResourceWithRawResponse,
|
|
40
|
+
HealthResourceWithStreamingResponse,
|
|
41
|
+
AsyncHealthResourceWithStreamingResponse,
|
|
42
|
+
)
|
|
43
|
+
from .videos import (
|
|
44
|
+
VideosResource,
|
|
45
|
+
AsyncVideosResource,
|
|
46
|
+
VideosResourceWithRawResponse,
|
|
47
|
+
AsyncVideosResourceWithRawResponse,
|
|
48
|
+
VideosResourceWithStreamingResponse,
|
|
49
|
+
AsyncVideosResourceWithStreamingResponse,
|
|
50
|
+
)
|
|
51
|
+
from .exports import (
|
|
52
|
+
ExportsResource,
|
|
53
|
+
AsyncExportsResource,
|
|
54
|
+
ExportsResourceWithRawResponse,
|
|
55
|
+
AsyncExportsResourceWithRawResponse,
|
|
56
|
+
ExportsResourceWithStreamingResponse,
|
|
57
|
+
AsyncExportsResourceWithStreamingResponse,
|
|
58
|
+
)
|
|
59
|
+
from .project import (
|
|
60
|
+
ProjectResource,
|
|
61
|
+
AsyncProjectResource,
|
|
62
|
+
ProjectResourceWithRawResponse,
|
|
63
|
+
AsyncProjectResourceWithRawResponse,
|
|
64
|
+
ProjectResourceWithStreamingResponse,
|
|
65
|
+
AsyncProjectResourceWithStreamingResponse,
|
|
66
|
+
)
|
|
67
|
+
from .quality import (
|
|
68
|
+
QualityResource,
|
|
69
|
+
AsyncQualityResource,
|
|
70
|
+
QualityResourceWithRawResponse,
|
|
71
|
+
AsyncQualityResourceWithRawResponse,
|
|
72
|
+
QualityResourceWithStreamingResponse,
|
|
73
|
+
AsyncQualityResourceWithStreamingResponse,
|
|
74
|
+
)
|
|
75
|
+
from .summary import (
|
|
76
|
+
SummaryResource,
|
|
77
|
+
AsyncSummaryResource,
|
|
78
|
+
SummaryResourceWithRawResponse,
|
|
79
|
+
AsyncSummaryResourceWithRawResponse,
|
|
80
|
+
SummaryResourceWithStreamingResponse,
|
|
81
|
+
AsyncSummaryResourceWithStreamingResponse,
|
|
82
|
+
)
|
|
83
|
+
from .retention import (
|
|
84
|
+
RetentionResource,
|
|
85
|
+
AsyncRetentionResource,
|
|
86
|
+
RetentionResourceWithRawResponse,
|
|
87
|
+
AsyncRetentionResourceWithRawResponse,
|
|
88
|
+
RetentionResourceWithStreamingResponse,
|
|
89
|
+
AsyncRetentionResourceWithStreamingResponse,
|
|
90
|
+
)
|
|
91
|
+
from .subtitles import (
|
|
92
|
+
SubtitlesResource,
|
|
93
|
+
AsyncSubtitlesResource,
|
|
94
|
+
SubtitlesResourceWithRawResponse,
|
|
95
|
+
AsyncSubtitlesResourceWithRawResponse,
|
|
96
|
+
SubtitlesResourceWithStreamingResponse,
|
|
97
|
+
AsyncSubtitlesResourceWithStreamingResponse,
|
|
98
|
+
)
|
|
99
|
+
from .dimensions import (
|
|
100
|
+
DimensionsResource,
|
|
101
|
+
AsyncDimensionsResource,
|
|
102
|
+
DimensionsResourceWithRawResponse,
|
|
103
|
+
AsyncDimensionsResourceWithRawResponse,
|
|
104
|
+
DimensionsResourceWithStreamingResponse,
|
|
105
|
+
AsyncDimensionsResourceWithStreamingResponse,
|
|
106
|
+
)
|
|
107
|
+
from .engagement import (
|
|
108
|
+
EngagementResource,
|
|
109
|
+
AsyncEngagementResource,
|
|
110
|
+
EngagementResourceWithRawResponse,
|
|
111
|
+
AsyncEngagementResourceWithRawResponse,
|
|
112
|
+
EngagementResourceWithStreamingResponse,
|
|
113
|
+
AsyncEngagementResourceWithStreamingResponse,
|
|
114
|
+
)
|
|
115
|
+
from .renditions import (
|
|
116
|
+
RenditionsResource,
|
|
117
|
+
AsyncRenditionsResource,
|
|
118
|
+
RenditionsResourceWithRawResponse,
|
|
119
|
+
AsyncRenditionsResourceWithRawResponse,
|
|
120
|
+
RenditionsResourceWithStreamingResponse,
|
|
121
|
+
AsyncRenditionsResourceWithStreamingResponse,
|
|
122
|
+
)
|
|
123
|
+
from .timeseries import (
|
|
124
|
+
TimeseriesResource,
|
|
125
|
+
AsyncTimeseriesResource,
|
|
126
|
+
TimeseriesResourceWithRawResponse,
|
|
127
|
+
AsyncTimeseriesResourceWithRawResponse,
|
|
128
|
+
TimeseriesResourceWithStreamingResponse,
|
|
129
|
+
AsyncTimeseriesResourceWithStreamingResponse,
|
|
130
|
+
)
|
|
131
|
+
from .playback_rates import (
|
|
132
|
+
PlaybackRatesResource,
|
|
133
|
+
AsyncPlaybackRatesResource,
|
|
134
|
+
PlaybackRatesResourceWithRawResponse,
|
|
135
|
+
AsyncPlaybackRatesResourceWithRawResponse,
|
|
136
|
+
PlaybackRatesResourceWithStreamingResponse,
|
|
137
|
+
AsyncPlaybackRatesResourceWithStreamingResponse,
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
__all__ = [
|
|
141
|
+
"HealthResource",
|
|
142
|
+
"AsyncHealthResource",
|
|
143
|
+
"HealthResourceWithRawResponse",
|
|
144
|
+
"AsyncHealthResourceWithRawResponse",
|
|
145
|
+
"HealthResourceWithStreamingResponse",
|
|
146
|
+
"AsyncHealthResourceWithStreamingResponse",
|
|
147
|
+
"EventsResource",
|
|
148
|
+
"AsyncEventsResource",
|
|
149
|
+
"EventsResourceWithRawResponse",
|
|
150
|
+
"AsyncEventsResourceWithRawResponse",
|
|
151
|
+
"EventsResourceWithStreamingResponse",
|
|
152
|
+
"AsyncEventsResourceWithStreamingResponse",
|
|
153
|
+
"SummaryResource",
|
|
154
|
+
"AsyncSummaryResource",
|
|
155
|
+
"SummaryResourceWithRawResponse",
|
|
156
|
+
"AsyncSummaryResourceWithRawResponse",
|
|
157
|
+
"SummaryResourceWithStreamingResponse",
|
|
158
|
+
"AsyncSummaryResourceWithStreamingResponse",
|
|
159
|
+
"VideosResource",
|
|
160
|
+
"AsyncVideosResource",
|
|
161
|
+
"VideosResourceWithRawResponse",
|
|
162
|
+
"AsyncVideosResourceWithRawResponse",
|
|
163
|
+
"VideosResourceWithStreamingResponse",
|
|
164
|
+
"AsyncVideosResourceWithStreamingResponse",
|
|
165
|
+
"TimeseriesResource",
|
|
166
|
+
"AsyncTimeseriesResource",
|
|
167
|
+
"TimeseriesResourceWithRawResponse",
|
|
168
|
+
"AsyncTimeseriesResourceWithRawResponse",
|
|
169
|
+
"TimeseriesResourceWithStreamingResponse",
|
|
170
|
+
"AsyncTimeseriesResourceWithStreamingResponse",
|
|
171
|
+
"QualityResource",
|
|
172
|
+
"AsyncQualityResource",
|
|
173
|
+
"QualityResourceWithRawResponse",
|
|
174
|
+
"AsyncQualityResourceWithRawResponse",
|
|
175
|
+
"QualityResourceWithStreamingResponse",
|
|
176
|
+
"AsyncQualityResourceWithStreamingResponse",
|
|
177
|
+
"EngagementResource",
|
|
178
|
+
"AsyncEngagementResource",
|
|
179
|
+
"EngagementResourceWithRawResponse",
|
|
180
|
+
"AsyncEngagementResourceWithRawResponse",
|
|
181
|
+
"EngagementResourceWithStreamingResponse",
|
|
182
|
+
"AsyncEngagementResourceWithStreamingResponse",
|
|
183
|
+
"ProjectResource",
|
|
184
|
+
"AsyncProjectResource",
|
|
185
|
+
"ProjectResourceWithRawResponse",
|
|
186
|
+
"AsyncProjectResourceWithRawResponse",
|
|
187
|
+
"ProjectResourceWithStreamingResponse",
|
|
188
|
+
"AsyncProjectResourceWithStreamingResponse",
|
|
189
|
+
"AdminResource",
|
|
190
|
+
"AsyncAdminResource",
|
|
191
|
+
"AdminResourceWithRawResponse",
|
|
192
|
+
"AsyncAdminResourceWithRawResponse",
|
|
193
|
+
"AdminResourceWithStreamingResponse",
|
|
194
|
+
"AsyncAdminResourceWithStreamingResponse",
|
|
195
|
+
"ViewsResource",
|
|
196
|
+
"AsyncViewsResource",
|
|
197
|
+
"ViewsResourceWithRawResponse",
|
|
198
|
+
"AsyncViewsResourceWithRawResponse",
|
|
199
|
+
"ViewsResourceWithStreamingResponse",
|
|
200
|
+
"AsyncViewsResourceWithStreamingResponse",
|
|
201
|
+
"ErrorsResource",
|
|
202
|
+
"AsyncErrorsResource",
|
|
203
|
+
"ErrorsResourceWithRawResponse",
|
|
204
|
+
"AsyncErrorsResourceWithRawResponse",
|
|
205
|
+
"ErrorsResourceWithStreamingResponse",
|
|
206
|
+
"AsyncErrorsResourceWithStreamingResponse",
|
|
207
|
+
"DimensionsResource",
|
|
208
|
+
"AsyncDimensionsResource",
|
|
209
|
+
"DimensionsResourceWithRawResponse",
|
|
210
|
+
"AsyncDimensionsResourceWithRawResponse",
|
|
211
|
+
"DimensionsResourceWithStreamingResponse",
|
|
212
|
+
"AsyncDimensionsResourceWithStreamingResponse",
|
|
213
|
+
"ExportsResource",
|
|
214
|
+
"AsyncExportsResource",
|
|
215
|
+
"ExportsResourceWithRawResponse",
|
|
216
|
+
"AsyncExportsResourceWithRawResponse",
|
|
217
|
+
"ExportsResourceWithStreamingResponse",
|
|
218
|
+
"AsyncExportsResourceWithStreamingResponse",
|
|
219
|
+
"RetentionResource",
|
|
220
|
+
"AsyncRetentionResource",
|
|
221
|
+
"RetentionResourceWithRawResponse",
|
|
222
|
+
"AsyncRetentionResourceWithRawResponse",
|
|
223
|
+
"RetentionResourceWithStreamingResponse",
|
|
224
|
+
"AsyncRetentionResourceWithStreamingResponse",
|
|
225
|
+
"RenditionsResource",
|
|
226
|
+
"AsyncRenditionsResource",
|
|
227
|
+
"RenditionsResourceWithRawResponse",
|
|
228
|
+
"AsyncRenditionsResourceWithRawResponse",
|
|
229
|
+
"RenditionsResourceWithStreamingResponse",
|
|
230
|
+
"AsyncRenditionsResourceWithStreamingResponse",
|
|
231
|
+
"SubtitlesResource",
|
|
232
|
+
"AsyncSubtitlesResource",
|
|
233
|
+
"SubtitlesResourceWithRawResponse",
|
|
234
|
+
"AsyncSubtitlesResourceWithRawResponse",
|
|
235
|
+
"SubtitlesResourceWithStreamingResponse",
|
|
236
|
+
"AsyncSubtitlesResourceWithStreamingResponse",
|
|
237
|
+
"PlaybackRatesResource",
|
|
238
|
+
"AsyncPlaybackRatesResource",
|
|
239
|
+
"PlaybackRatesResourceWithRawResponse",
|
|
240
|
+
"AsyncPlaybackRatesResourceWithRawResponse",
|
|
241
|
+
"PlaybackRatesResourceWithStreamingResponse",
|
|
242
|
+
"AsyncPlaybackRatesResourceWithStreamingResponse",
|
|
243
|
+
]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .keys import (
|
|
4
|
+
KeysResource,
|
|
5
|
+
AsyncKeysResource,
|
|
6
|
+
KeysResourceWithRawResponse,
|
|
7
|
+
AsyncKeysResourceWithRawResponse,
|
|
8
|
+
KeysResourceWithStreamingResponse,
|
|
9
|
+
AsyncKeysResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .admin import (
|
|
12
|
+
AdminResource,
|
|
13
|
+
AsyncAdminResource,
|
|
14
|
+
AdminResourceWithRawResponse,
|
|
15
|
+
AsyncAdminResourceWithRawResponse,
|
|
16
|
+
AdminResourceWithStreamingResponse,
|
|
17
|
+
AsyncAdminResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"KeysResource",
|
|
22
|
+
"AsyncKeysResource",
|
|
23
|
+
"KeysResourceWithRawResponse",
|
|
24
|
+
"AsyncKeysResourceWithRawResponse",
|
|
25
|
+
"KeysResourceWithStreamingResponse",
|
|
26
|
+
"AsyncKeysResourceWithStreamingResponse",
|
|
27
|
+
"AdminResource",
|
|
28
|
+
"AsyncAdminResource",
|
|
29
|
+
"AdminResourceWithRawResponse",
|
|
30
|
+
"AsyncAdminResourceWithRawResponse",
|
|
31
|
+
"AdminResourceWithStreamingResponse",
|
|
32
|
+
"AsyncAdminResourceWithStreamingResponse",
|
|
33
|
+
]
|
|
@@ -0,0 +1,253 @@
|
|
|
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 Optional
|
|
6
|
+
|
|
7
|
+
import httpx
|
|
8
|
+
|
|
9
|
+
from .keys import (
|
|
10
|
+
KeysResource,
|
|
11
|
+
AsyncKeysResource,
|
|
12
|
+
KeysResourceWithRawResponse,
|
|
13
|
+
AsyncKeysResourceWithRawResponse,
|
|
14
|
+
KeysResourceWithStreamingResponse,
|
|
15
|
+
AsyncKeysResourceWithStreamingResponse,
|
|
16
|
+
)
|
|
17
|
+
from ...types import admin_create_project_params
|
|
18
|
+
from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
|
|
19
|
+
from ..._utils import maybe_transform, async_maybe_transform
|
|
20
|
+
from ..._compat import cached_property
|
|
21
|
+
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
22
|
+
from ..._response import (
|
|
23
|
+
to_raw_response_wrapper,
|
|
24
|
+
to_streamed_response_wrapper,
|
|
25
|
+
async_to_raw_response_wrapper,
|
|
26
|
+
async_to_streamed_response_wrapper,
|
|
27
|
+
)
|
|
28
|
+
from ..._base_client import make_request_options
|
|
29
|
+
from ...types.created_project import CreatedProject
|
|
30
|
+
|
|
31
|
+
__all__ = ["AdminResource", "AsyncAdminResource"]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class AdminResource(SyncAPIResource):
|
|
35
|
+
"""Project origins and keys."""
|
|
36
|
+
|
|
37
|
+
@cached_property
|
|
38
|
+
def keys(self) -> KeysResource:
|
|
39
|
+
"""Project origins and keys."""
|
|
40
|
+
return KeysResource(self._client)
|
|
41
|
+
|
|
42
|
+
@cached_property
|
|
43
|
+
def with_raw_response(self) -> AdminResourceWithRawResponse:
|
|
44
|
+
"""
|
|
45
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
46
|
+
the raw response object instead of the parsed content.
|
|
47
|
+
|
|
48
|
+
For more information, see https://www.github.com/chunkifydev/chunkify-analytics-python#accessing-raw-response-data-eg-headers
|
|
49
|
+
"""
|
|
50
|
+
return AdminResourceWithRawResponse(self)
|
|
51
|
+
|
|
52
|
+
@cached_property
|
|
53
|
+
def with_streaming_response(self) -> AdminResourceWithStreamingResponse:
|
|
54
|
+
"""
|
|
55
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
56
|
+
|
|
57
|
+
For more information, see https://www.github.com/chunkifydev/chunkify-analytics-python#with_streaming_response
|
|
58
|
+
"""
|
|
59
|
+
return AdminResourceWithStreamingResponse(self)
|
|
60
|
+
|
|
61
|
+
def create_project(
|
|
62
|
+
self,
|
|
63
|
+
*,
|
|
64
|
+
name: str,
|
|
65
|
+
allowed_origins: SequenceNotStr[str] | Omit = omit,
|
|
66
|
+
retention_seconds: Optional[int] | Omit = omit,
|
|
67
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
68
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
69
|
+
extra_headers: Headers | None = None,
|
|
70
|
+
extra_query: Query | None = None,
|
|
71
|
+
extra_body: Body | None = None,
|
|
72
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
73
|
+
) -> CreatedProject:
|
|
74
|
+
"""Generate a project ID and initial keys, optionally setting retention.
|
|
75
|
+
|
|
76
|
+
Requires
|
|
77
|
+
the installation admin key. The project and its retention are active before
|
|
78
|
+
success is returned.
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
name: Project display name.
|
|
82
|
+
|
|
83
|
+
allowed_origins: Additional project origins. Shared TOML origins are always included.
|
|
84
|
+
|
|
85
|
+
retention_seconds: Retention by server receipt time, in seconds. 0 disables expiration; null
|
|
86
|
+
inherits the installation default. Omission also inherits the default.
|
|
87
|
+
|
|
88
|
+
extra_headers: Send extra headers
|
|
89
|
+
|
|
90
|
+
extra_query: Add additional query parameters to the request
|
|
91
|
+
|
|
92
|
+
extra_body: Add additional JSON properties to the request
|
|
93
|
+
|
|
94
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
95
|
+
"""
|
|
96
|
+
return self._post(
|
|
97
|
+
"/v1/projects",
|
|
98
|
+
body=maybe_transform(
|
|
99
|
+
{
|
|
100
|
+
"name": name,
|
|
101
|
+
"allowed_origins": allowed_origins,
|
|
102
|
+
"retention_seconds": retention_seconds,
|
|
103
|
+
},
|
|
104
|
+
admin_create_project_params.AdminCreateProjectParams,
|
|
105
|
+
),
|
|
106
|
+
options=make_request_options(
|
|
107
|
+
extra_headers=extra_headers,
|
|
108
|
+
extra_query=extra_query,
|
|
109
|
+
extra_body=extra_body,
|
|
110
|
+
timeout=timeout,
|
|
111
|
+
security={"admin_key": True},
|
|
112
|
+
),
|
|
113
|
+
cast_to=CreatedProject,
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
class AsyncAdminResource(AsyncAPIResource):
|
|
118
|
+
"""Project origins and keys."""
|
|
119
|
+
|
|
120
|
+
@cached_property
|
|
121
|
+
def keys(self) -> AsyncKeysResource:
|
|
122
|
+
"""Project origins and keys."""
|
|
123
|
+
return AsyncKeysResource(self._client)
|
|
124
|
+
|
|
125
|
+
@cached_property
|
|
126
|
+
def with_raw_response(self) -> AsyncAdminResourceWithRawResponse:
|
|
127
|
+
"""
|
|
128
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
129
|
+
the raw response object instead of the parsed content.
|
|
130
|
+
|
|
131
|
+
For more information, see https://www.github.com/chunkifydev/chunkify-analytics-python#accessing-raw-response-data-eg-headers
|
|
132
|
+
"""
|
|
133
|
+
return AsyncAdminResourceWithRawResponse(self)
|
|
134
|
+
|
|
135
|
+
@cached_property
|
|
136
|
+
def with_streaming_response(self) -> AsyncAdminResourceWithStreamingResponse:
|
|
137
|
+
"""
|
|
138
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
139
|
+
|
|
140
|
+
For more information, see https://www.github.com/chunkifydev/chunkify-analytics-python#with_streaming_response
|
|
141
|
+
"""
|
|
142
|
+
return AsyncAdminResourceWithStreamingResponse(self)
|
|
143
|
+
|
|
144
|
+
async def create_project(
|
|
145
|
+
self,
|
|
146
|
+
*,
|
|
147
|
+
name: str,
|
|
148
|
+
allowed_origins: SequenceNotStr[str] | Omit = omit,
|
|
149
|
+
retention_seconds: Optional[int] | Omit = omit,
|
|
150
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
151
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
152
|
+
extra_headers: Headers | None = None,
|
|
153
|
+
extra_query: Query | None = None,
|
|
154
|
+
extra_body: Body | None = None,
|
|
155
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
156
|
+
) -> CreatedProject:
|
|
157
|
+
"""Generate a project ID and initial keys, optionally setting retention.
|
|
158
|
+
|
|
159
|
+
Requires
|
|
160
|
+
the installation admin key. The project and its retention are active before
|
|
161
|
+
success is returned.
|
|
162
|
+
|
|
163
|
+
Args:
|
|
164
|
+
name: Project display name.
|
|
165
|
+
|
|
166
|
+
allowed_origins: Additional project origins. Shared TOML origins are always included.
|
|
167
|
+
|
|
168
|
+
retention_seconds: Retention by server receipt time, in seconds. 0 disables expiration; null
|
|
169
|
+
inherits the installation default. Omission also inherits the default.
|
|
170
|
+
|
|
171
|
+
extra_headers: Send extra headers
|
|
172
|
+
|
|
173
|
+
extra_query: Add additional query parameters to the request
|
|
174
|
+
|
|
175
|
+
extra_body: Add additional JSON properties to the request
|
|
176
|
+
|
|
177
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
178
|
+
"""
|
|
179
|
+
return await self._post(
|
|
180
|
+
"/v1/projects",
|
|
181
|
+
body=await async_maybe_transform(
|
|
182
|
+
{
|
|
183
|
+
"name": name,
|
|
184
|
+
"allowed_origins": allowed_origins,
|
|
185
|
+
"retention_seconds": retention_seconds,
|
|
186
|
+
},
|
|
187
|
+
admin_create_project_params.AdminCreateProjectParams,
|
|
188
|
+
),
|
|
189
|
+
options=make_request_options(
|
|
190
|
+
extra_headers=extra_headers,
|
|
191
|
+
extra_query=extra_query,
|
|
192
|
+
extra_body=extra_body,
|
|
193
|
+
timeout=timeout,
|
|
194
|
+
security={"admin_key": True},
|
|
195
|
+
),
|
|
196
|
+
cast_to=CreatedProject,
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
class AdminResourceWithRawResponse:
|
|
201
|
+
def __init__(self, admin: AdminResource) -> None:
|
|
202
|
+
self._admin = admin
|
|
203
|
+
|
|
204
|
+
self.create_project = to_raw_response_wrapper(
|
|
205
|
+
admin.create_project,
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
@cached_property
|
|
209
|
+
def keys(self) -> KeysResourceWithRawResponse:
|
|
210
|
+
"""Project origins and keys."""
|
|
211
|
+
return KeysResourceWithRawResponse(self._admin.keys)
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
class AsyncAdminResourceWithRawResponse:
|
|
215
|
+
def __init__(self, admin: AsyncAdminResource) -> None:
|
|
216
|
+
self._admin = admin
|
|
217
|
+
|
|
218
|
+
self.create_project = async_to_raw_response_wrapper(
|
|
219
|
+
admin.create_project,
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
@cached_property
|
|
223
|
+
def keys(self) -> AsyncKeysResourceWithRawResponse:
|
|
224
|
+
"""Project origins and keys."""
|
|
225
|
+
return AsyncKeysResourceWithRawResponse(self._admin.keys)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
class AdminResourceWithStreamingResponse:
|
|
229
|
+
def __init__(self, admin: AdminResource) -> None:
|
|
230
|
+
self._admin = admin
|
|
231
|
+
|
|
232
|
+
self.create_project = to_streamed_response_wrapper(
|
|
233
|
+
admin.create_project,
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
@cached_property
|
|
237
|
+
def keys(self) -> KeysResourceWithStreamingResponse:
|
|
238
|
+
"""Project origins and keys."""
|
|
239
|
+
return KeysResourceWithStreamingResponse(self._admin.keys)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
class AsyncAdminResourceWithStreamingResponse:
|
|
243
|
+
def __init__(self, admin: AsyncAdminResource) -> None:
|
|
244
|
+
self._admin = admin
|
|
245
|
+
|
|
246
|
+
self.create_project = async_to_streamed_response_wrapper(
|
|
247
|
+
admin.create_project,
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
@cached_property
|
|
251
|
+
def keys(self) -> AsyncKeysResourceWithStreamingResponse:
|
|
252
|
+
"""Project origins and keys."""
|
|
253
|
+
return AsyncKeysResourceWithStreamingResponse(self._admin.keys)
|