Skip to content

Commit 2bb6de6

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#502)
1 parent 4521afb commit 2bb6de6

File tree

3 files changed

+31
-15
lines changed

3 files changed

+31
-15
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 88
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-a1e3885fc0fe2c15dfd6a78abd580bc4d8a1ec2db4b6ee808a970e45359313c7.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-3c52bfc2b198819c3714bd8c2e692cd9c643f56dcd627b11ee2191b5c3d4ca02.yml

src/resources/data/metrics.ts

+28-14
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ export class Metrics extends APIResource {
7777
| 'view_content_startup_time'
7878
| 'ad_preroll_startup_time'
7979
| 'ad_watch_time'
80-
| 'view_content_watch_time',
80+
| 'view_content_watch_time'
81+
| 'view_dropped_percentage',
8182
query?: MetricGetInsightsParams,
8283
options?: Core.RequestOptions,
8384
): Core.APIPromise<InsightsResponse>;
@@ -131,7 +132,8 @@ export class Metrics extends APIResource {
131132
| 'view_content_startup_time'
132133
| 'ad_preroll_startup_time'
133134
| 'ad_watch_time'
134-
| 'view_content_watch_time',
135+
| 'view_content_watch_time'
136+
| 'view_dropped_percentage',
135137
options?: Core.RequestOptions,
136138
): Core.APIPromise<InsightsResponse>;
137139
getInsights(
@@ -184,7 +186,8 @@ export class Metrics extends APIResource {
184186
| 'view_content_startup_time'
185187
| 'ad_preroll_startup_time'
186188
| 'ad_watch_time'
187-
| 'view_content_watch_time',
189+
| 'view_content_watch_time'
190+
| 'view_dropped_percentage',
188191
query: MetricGetInsightsParams | Core.RequestOptions = {},
189192
options?: Core.RequestOptions,
190193
): Core.APIPromise<InsightsResponse> {
@@ -248,7 +251,8 @@ export class Metrics extends APIResource {
248251
| 'view_content_startup_time'
249252
| 'ad_preroll_startup_time'
250253
| 'ad_watch_time'
251-
| 'view_content_watch_time',
254+
| 'view_content_watch_time'
255+
| 'view_dropped_percentage',
252256
query?: MetricGetOverallValuesParams,
253257
options?: Core.RequestOptions,
254258
): Core.APIPromise<OverallValuesResponse>;
@@ -302,7 +306,8 @@ export class Metrics extends APIResource {
302306
| 'view_content_startup_time'
303307
| 'ad_preroll_startup_time'
304308
| 'ad_watch_time'
305-
| 'view_content_watch_time',
309+
| 'view_content_watch_time'
310+
| 'view_dropped_percentage',
306311
options?: Core.RequestOptions,
307312
): Core.APIPromise<OverallValuesResponse>;
308313
getOverallValues(
@@ -355,7 +360,8 @@ export class Metrics extends APIResource {
355360
| 'view_content_startup_time'
356361
| 'ad_preroll_startup_time'
357362
| 'ad_watch_time'
358-
| 'view_content_watch_time',
363+
| 'view_content_watch_time'
364+
| 'view_dropped_percentage',
359365
query: MetricGetOverallValuesParams | Core.RequestOptions = {},
360366
options?: Core.RequestOptions,
361367
): Core.APIPromise<OverallValuesResponse> {
@@ -426,7 +432,8 @@ export class Metrics extends APIResource {
426432
| 'view_content_startup_time'
427433
| 'ad_preroll_startup_time'
428434
| 'ad_watch_time'
429-
| 'view_content_watch_time',
435+
| 'view_content_watch_time'
436+
| 'view_dropped_percentage',
430437
query?: MetricGetTimeseriesParams,
431438
options?: Core.RequestOptions,
432439
): Core.APIPromise<MetricTimeseriesDataResponse>;
@@ -480,7 +487,8 @@ export class Metrics extends APIResource {
480487
| 'view_content_startup_time'
481488
| 'ad_preroll_startup_time'
482489
| 'ad_watch_time'
483-
| 'view_content_watch_time',
490+
| 'view_content_watch_time'
491+
| 'view_dropped_percentage',
484492
options?: Core.RequestOptions,
485493
): Core.APIPromise<MetricTimeseriesDataResponse>;
486494
getTimeseries(
@@ -533,7 +541,8 @@ export class Metrics extends APIResource {
533541
| 'view_content_startup_time'
534542
| 'ad_preroll_startup_time'
535543
| 'ad_watch_time'
536-
| 'view_content_watch_time',
544+
| 'view_content_watch_time'
545+
| 'view_dropped_percentage',
537546
query: MetricGetTimeseriesParams | Core.RequestOptions = {},
538547
options?: Core.RequestOptions,
539548
): Core.APIPromise<MetricTimeseriesDataResponse> {
@@ -596,7 +605,8 @@ export class Metrics extends APIResource {
596605
| 'view_content_startup_time'
597606
| 'ad_preroll_startup_time'
598607
| 'ad_watch_time'
599-
| 'view_content_watch_time',
608+
| 'view_content_watch_time'
609+
| 'view_dropped_percentage',
600610
query?: MetricListBreakdownValuesParams,
601611
options?: Core.RequestOptions,
602612
): Core.PagePromise<BreakdownValuesBasePage, BreakdownValue>;
@@ -650,7 +660,8 @@ export class Metrics extends APIResource {
650660
| 'view_content_startup_time'
651661
| 'ad_preroll_startup_time'
652662
| 'ad_watch_time'
653-
| 'view_content_watch_time',
663+
| 'view_content_watch_time'
664+
| 'view_dropped_percentage',
654665
options?: Core.RequestOptions,
655666
): Core.PagePromise<BreakdownValuesBasePage, BreakdownValue>;
656667
listBreakdownValues(
@@ -703,7 +714,8 @@ export class Metrics extends APIResource {
703714
| 'view_content_startup_time'
704715
| 'ad_preroll_startup_time'
705716
| 'ad_watch_time'
706-
| 'view_content_watch_time',
717+
| 'view_content_watch_time'
718+
| 'view_dropped_percentage',
707719
query: MetricListBreakdownValuesParams | Core.RequestOptions = {},
708720
options?: Core.RequestOptions,
709721
): Core.PagePromise<BreakdownValuesBasePage, BreakdownValue> {
@@ -930,7 +942,8 @@ export interface MetricListParams {
930942
| 'viewer_device_name'
931943
| 'viewer_user_id'
932944
| 'ad_playback_failure'
933-
| 'content_playback_failure';
945+
| 'content_playback_failure'
946+
| 'view_dropped';
934947

935948
/**
936949
* Limit the results to rows that match conditions from provided key:value pairs.
@@ -1290,7 +1303,8 @@ export interface MetricListBreakdownValuesParams extends BasePageParams {
12901303
| 'viewer_device_name'
12911304
| 'viewer_user_id'
12921305
| 'ad_playback_failure'
1293-
| 'content_playback_failure';
1306+
| 'content_playback_failure'
1307+
| 'view_dropped';
12941308

12951309
/**
12961310
* Measurement for the provided metric. If omitted, the default for the metric will

src/resources/data/video-views.ts

+2
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ export namespace VideoViewResponse {
332332

333333
view_drm_type: string | null;
334334

335+
view_dropped: boolean;
336+
335337
view_dropped_frame_count: number | null;
336338

337339
view_end: string;

0 commit comments

Comments
 (0)