From c7b88edae889926f620d6ff64798be684c68b194 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 20:35:47 +0000 Subject: [PATCH 1/3] feat(api): api update (#520) --- .stats.yml | 2 +- src/resources/data/metrics.ts | 156 ++++++++++++------------------ src/resources/data/video-views.ts | 4 - 3 files changed, 65 insertions(+), 97 deletions(-) diff --git a/.stats.yml b/.stats.yml index d4e14fb0..b07b20ed 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 88 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-5bc9dec57cc47596441c1af33503b43275966e117bb43d2d6c3c5301a1644330.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-59cc6a0736ea7363f64111dcca8774fe5e7f353c547071c7064574456c178486.yml diff --git a/src/resources/data/metrics.ts b/src/resources/data/metrics.ts index d1386809..5953cf1e 100644 --- a/src/resources/data/metrics.ts +++ b/src/resources/data/metrics.ts @@ -75,8 +75,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', query?: MetricGetInsightsParams, options?: Core.RequestOptions, @@ -130,8 +128,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', options?: Core.RequestOptions, ): Core.APIPromise; @@ -184,8 +180,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', query: MetricGetInsightsParams | Core.RequestOptions = {}, options?: Core.RequestOptions, @@ -249,8 +243,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', query?: MetricGetOverallValuesParams, options?: Core.RequestOptions, @@ -304,8 +296,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', options?: Core.RequestOptions, ): Core.APIPromise; @@ -358,8 +348,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', query: MetricGetOverallValuesParams | Core.RequestOptions = {}, options?: Core.RequestOptions, @@ -430,8 +418,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', query?: MetricGetTimeseriesParams, options?: Core.RequestOptions, @@ -485,8 +471,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', options?: Core.RequestOptions, ): Core.APIPromise; @@ -539,8 +523,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', query: MetricGetTimeseriesParams | Core.RequestOptions = {}, options?: Core.RequestOptions, @@ -603,8 +585,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', query?: MetricListBreakdownValuesParams, options?: Core.RequestOptions, @@ -658,8 +638,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', options?: Core.RequestOptions, ): Core.PagePromise; @@ -712,8 +690,6 @@ export class Metrics extends APIResource { | 'video_startup_business_exception_percentage' | 'view_content_startup_time' | 'ad_preroll_startup_time' - | 'ad_watch_time' - | 'view_content_watch_time' | 'view_dropped_percentage', query: MetricListBreakdownValuesParams | Core.RequestOptions = {}, options?: Core.RequestOptions, @@ -1011,23 +987,22 @@ export interface MetricGetInsightsParams { * be used. The default measurement for each metric is: "sum" : `ad_attempt_count`, * `ad_break_count`, `ad_break_error_count`, `ad_error_count`, * `ad_impression_count`, `playing_time` "median" : `ad_preroll_startup_time`, - * `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, - * `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, - * `page_load_time`, `player_average_live_latency`, `player_startup_time`, - * `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, - * `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, - * `video_startup_time`, `view_average_request_latency`, - * `view_average_request_throughput`, `view_max_request_latency`, - * `weighted_average_bitrate` "avg" : `ad_break_error_percentage`, - * `ad_error_percentage`, `ad_exit_before_start_count`, - * `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, - * `ad_startup_error_count`, `ad_startup_error_percentage`, - * `content_playback_failure_percentage`, `downscale_percentage`, - * `exits_before_video_start`, `playback_business_exception_percentage`, - * `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, - * `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, - * `upscale_percentage`, `video_quality_score`, - * `video_startup_business_exception_percentage`, + * `aggregate_startup_time`, `content_startup_time`, `max_downscale_percentage`, + * `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, + * `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, + * `requests_for_first_preroll`, `video_startup_preroll_load_time`, + * `video_startup_preroll_request_time`, `video_startup_time`, + * `view_average_request_latency`, `view_average_request_throughput`, + * `view_max_request_latency`, `weighted_average_bitrate` "avg" : + * `ad_break_error_percentage`, `ad_error_percentage`, + * `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, + * `ad_playback_failure_percentage`, `ad_startup_error_count`, + * `ad_startup_error_percentage`, `content_playback_failure_percentage`, + * `downscale_percentage`, `exits_before_video_start`, + * `playback_business_exception_percentage`, `playback_failure_percentage`, + * `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, + * `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, + * `video_quality_score`, `video_startup_business_exception_percentage`, * `video_startup_failure_percentage`, `view_dropped_percentage`, * `viewer_experience_score` "count" : `started_views`, `unique_viewers` */ @@ -1085,23 +1060,22 @@ export interface MetricGetOverallValuesParams { * be used. The default measurement for each metric is: "sum" : `ad_attempt_count`, * `ad_break_count`, `ad_break_error_count`, `ad_error_count`, * `ad_impression_count`, `playing_time` "median" : `ad_preroll_startup_time`, - * `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, - * `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, - * `page_load_time`, `player_average_live_latency`, `player_startup_time`, - * `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, - * `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, - * `video_startup_time`, `view_average_request_latency`, - * `view_average_request_throughput`, `view_max_request_latency`, - * `weighted_average_bitrate` "avg" : `ad_break_error_percentage`, - * `ad_error_percentage`, `ad_exit_before_start_count`, - * `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, - * `ad_startup_error_count`, `ad_startup_error_percentage`, - * `content_playback_failure_percentage`, `downscale_percentage`, - * `exits_before_video_start`, `playback_business_exception_percentage`, - * `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, - * `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, - * `upscale_percentage`, `video_quality_score`, - * `video_startup_business_exception_percentage`, + * `aggregate_startup_time`, `content_startup_time`, `max_downscale_percentage`, + * `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, + * `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, + * `requests_for_first_preroll`, `video_startup_preroll_load_time`, + * `video_startup_preroll_request_time`, `video_startup_time`, + * `view_average_request_latency`, `view_average_request_throughput`, + * `view_max_request_latency`, `weighted_average_bitrate` "avg" : + * `ad_break_error_percentage`, `ad_error_percentage`, + * `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, + * `ad_playback_failure_percentage`, `ad_startup_error_count`, + * `ad_startup_error_percentage`, `content_playback_failure_percentage`, + * `downscale_percentage`, `exits_before_video_start`, + * `playback_business_exception_percentage`, `playback_failure_percentage`, + * `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, + * `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, + * `video_quality_score`, `video_startup_business_exception_percentage`, * `video_startup_failure_percentage`, `view_dropped_percentage`, * `viewer_experience_score` "count" : `started_views`, `unique_viewers` */ @@ -1167,23 +1141,22 @@ export interface MetricGetTimeseriesParams { * be used. The default measurement for each metric is: "sum" : `ad_attempt_count`, * `ad_break_count`, `ad_break_error_count`, `ad_error_count`, * `ad_impression_count`, `playing_time` "median" : `ad_preroll_startup_time`, - * `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, - * `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, - * `page_load_time`, `player_average_live_latency`, `player_startup_time`, - * `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, - * `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, - * `video_startup_time`, `view_average_request_latency`, - * `view_average_request_throughput`, `view_max_request_latency`, - * `weighted_average_bitrate` "avg" : `ad_break_error_percentage`, - * `ad_error_percentage`, `ad_exit_before_start_count`, - * `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, - * `ad_startup_error_count`, `ad_startup_error_percentage`, - * `content_playback_failure_percentage`, `downscale_percentage`, - * `exits_before_video_start`, `playback_business_exception_percentage`, - * `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, - * `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, - * `upscale_percentage`, `video_quality_score`, - * `video_startup_business_exception_percentage`, + * `aggregate_startup_time`, `content_startup_time`, `max_downscale_percentage`, + * `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, + * `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, + * `requests_for_first_preroll`, `video_startup_preroll_load_time`, + * `video_startup_preroll_request_time`, `video_startup_time`, + * `view_average_request_latency`, `view_average_request_throughput`, + * `view_max_request_latency`, `weighted_average_bitrate` "avg" : + * `ad_break_error_percentage`, `ad_error_percentage`, + * `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, + * `ad_playback_failure_percentage`, `ad_startup_error_count`, + * `ad_startup_error_percentage`, `content_playback_failure_percentage`, + * `downscale_percentage`, `exits_before_video_start`, + * `playback_business_exception_percentage`, `playback_failure_percentage`, + * `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, + * `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, + * `video_quality_score`, `video_startup_business_exception_percentage`, * `video_startup_failure_percentage`, `view_dropped_percentage`, * `viewer_experience_score` "count" : `started_views`, `unique_viewers` */ @@ -1310,23 +1283,22 @@ export interface MetricListBreakdownValuesParams extends BasePageParams { * be used. The default measurement for each metric is: "sum" : `ad_attempt_count`, * `ad_break_count`, `ad_break_error_count`, `ad_error_count`, * `ad_impression_count`, `playing_time` "median" : `ad_preroll_startup_time`, - * `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, - * `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, - * `page_load_time`, `player_average_live_latency`, `player_startup_time`, - * `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, - * `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, - * `video_startup_time`, `view_average_request_latency`, - * `view_average_request_throughput`, `view_max_request_latency`, - * `weighted_average_bitrate` "avg" : `ad_break_error_percentage`, - * `ad_error_percentage`, `ad_exit_before_start_count`, - * `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, - * `ad_startup_error_count`, `ad_startup_error_percentage`, - * `content_playback_failure_percentage`, `downscale_percentage`, - * `exits_before_video_start`, `playback_business_exception_percentage`, - * `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, - * `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, - * `upscale_percentage`, `video_quality_score`, - * `video_startup_business_exception_percentage`, + * `aggregate_startup_time`, `content_startup_time`, `max_downscale_percentage`, + * `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, + * `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, + * `requests_for_first_preroll`, `video_startup_preroll_load_time`, + * `video_startup_preroll_request_time`, `video_startup_time`, + * `view_average_request_latency`, `view_average_request_throughput`, + * `view_max_request_latency`, `weighted_average_bitrate` "avg" : + * `ad_break_error_percentage`, `ad_error_percentage`, + * `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, + * `ad_playback_failure_percentage`, `ad_startup_error_count`, + * `ad_startup_error_percentage`, `content_playback_failure_percentage`, + * `downscale_percentage`, `exits_before_video_start`, + * `playback_business_exception_percentage`, `playback_failure_percentage`, + * `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, + * `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, + * `video_quality_score`, `video_startup_business_exception_percentage`, * `video_startup_failure_percentage`, `view_dropped_percentage`, * `viewer_experience_score` "count" : `started_views`, `unique_viewers` */ diff --git a/src/resources/data/video-views.ts b/src/resources/data/video-views.ts index 95d583a7..55864b10 100644 --- a/src/resources/data/video-views.ts +++ b/src/resources/data/video-views.ts @@ -103,8 +103,6 @@ export namespace VideoViewResponse { ad_startup_error_percentage: string | null; - ad_watch_time: number | null; - asn: number | null; asn_name: string | null; @@ -327,8 +325,6 @@ export namespace VideoViewResponse { view_content_startup_time: number | null; - view_content_watch_time: number | null; - view_drm_type: string | null; view_dropped: boolean; From a9beb5d9ef76932e594edc8bfc620bf49f76e75a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 20:41:35 +0000 Subject: [PATCH 2/3] release: 9.0.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 92856693..256be89a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "9.0.0" + ".": "9.0.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index dcf751a8..8482b060 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 9.0.1 (2024-11-15) + +Full Changelog: [v9.0.0...v9.0.1](https://github.com/muxinc/mux-node-sdk/compare/v9.0.0...v9.0.1) + +### Features + +* **api:** api update ([#520](https://github.com/muxinc/mux-node-sdk/issues/520)) ([c7b88ed](https://github.com/muxinc/mux-node-sdk/commit/c7b88edae889926f620d6ff64798be684c68b194)) + ## 9.0.0 (2024-11-14) Full Changelog: [v8.8.0...v9.0.0](https://github.com/muxinc/mux-node-sdk/compare/v8.8.0...v9.0.0) diff --git a/package.json b/package.json index 6ec10c3e..a475ccea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mux/mux-node", - "version": "9.0.0", + "version": "9.0.1", "description": "The official TypeScript library for the Mux API", "author": "Mux ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index b0a42860..7706d0e9 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '9.0.0'; // x-release-please-version +export const VERSION = '9.0.1'; // x-release-please-version From 2a4d4a42986e4060eb2763b03776d41a6ace9471 Mon Sep 17 00:00:00 2001 From: Justin Sanford Date: Fri, 15 Nov 2024 12:44:15 -0800 Subject: [PATCH 3/3] update changelot --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8482b060..5b410b3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,9 @@ Full Changelog: [v9.0.0...v9.0.1](https://github.com/muxinc/mux-node-sdk/compare/v9.0.0...v9.0.1) -### Features +### Bug Fixes (breaking) -* **api:** api update ([#520](https://github.com/muxinc/mux-node-sdk/issues/520)) ([c7b88ed](https://github.com/muxinc/mux-node-sdk/commit/c7b88edae889926f620d6ff64798be684c68b194)) +* Remove `ad_watch_time` and `view_content_watch_time` from Video View model and Data APIs. Note: this _may_ be a breaking change, but was missed in the 9.0.0 release. ## 9.0.0 (2024-11-14)