Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jul 11, 2024
1 parent 49159d3 commit 4e3f947
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 88
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-6c451a5e39667c0255b068e888990cbcea4a03824d108dd8b8b86c2fd574b7f2.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-281f93c82befb9fbe432514455b0dea08b5c80442a3d22b8acc3cf7fa0aa3de8.yml
6 changes: 6 additions & 0 deletions src/resources/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export interface PlaybackID {
* `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See
* [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for
* details about creating tokens.
*
* - `drm` playback IDs are protected with DRM technologies.
* [See DRM documentation for more details](https://docs.mux.com/guides/protect-videos-with-drm).
*/
policy: PlaybackPolicy;

Expand All @@ -32,5 +35,8 @@ export interface PlaybackID {
* `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See
* [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for
* details about creating tokens.
*
* - `drm` playback IDs are protected with DRM technologies.
* [See DRM documentation for more details](https://docs.mux.com/guides/protect-videos-with-drm).
*/
export type PlaybackPolicy = 'public' | 'signed' | 'drm';
9 changes: 9 additions & 0 deletions src/resources/video/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,9 @@ export namespace AssetOptions {
* `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See
* [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for
* details about creating tokens.
*
* - `drm` playback IDs are protected with DRM technologies.
* [See DRM documentation for more details](https://docs.mux.com/guides/protect-videos-with-drm).
*/
policy?: Shared.PlaybackPolicy;
}
Expand Down Expand Up @@ -1615,6 +1618,9 @@ export namespace AssetCreateParams {
* `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See
* [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for
* details about creating tokens.
*
* - `drm` playback IDs are protected with DRM technologies.
* [See DRM documentation for more details](https://docs.mux.com/guides/protect-videos-with-drm).
*/
policy?: Shared.PlaybackPolicy;
}
Expand Down Expand Up @@ -1655,6 +1661,9 @@ export interface AssetCreatePlaybackIDParams {
* `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See
* [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for
* details about creating tokens.
*
* - `drm` playback IDs are protected with DRM technologies.
* [See DRM documentation for more details](https://docs.mux.com/guides/protect-videos-with-drm).
*/
policy?: Shared.PlaybackPolicy;
}
Expand Down
6 changes: 6 additions & 0 deletions src/resources/video/live-streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,9 @@ export namespace LiveStreamCreateParams {
* `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See
* [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for
* details about creating tokens.
*
* - `drm` playback IDs are protected with DRM technologies.
* [See DRM documentation for more details](https://docs.mux.com/guides/protect-videos-with-drm).
*/
policy?: Shared.PlaybackPolicy;
}
Expand Down Expand Up @@ -907,6 +910,9 @@ export interface LiveStreamCreatePlaybackIDParams {
* `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See
* [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for
* details about creating tokens.
*
* - `drm` playback IDs are protected with DRM technologies.
* [See DRM documentation for more details](https://docs.mux.com/guides/protect-videos-with-drm).
*/
policy?: Shared.PlaybackPolicy;
}
Expand Down
3 changes: 3 additions & 0 deletions src/resources/video/playback-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export interface PlaybackIDRetrieveResponse {
* `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See
* [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for
* details about creating tokens.
*
* - `drm` playback IDs are protected with DRM technologies.
* [See DRM documentation for more details](https://docs.mux.com/guides/protect-videos-with-drm).
*/
policy: Shared.PlaybackPolicy;
}
Expand Down

0 comments on commit 4e3f947

Please sign in to comment.