Skip to content

Commit 83e0bd7

Browse files
philcluffjsanford8
andauthored
Regenerate for V2 (#74)
* Regenerate for V2 * This archive of openssl should work * yolo? * Pick up readme changes from another PR * use better url --------- Co-authored-by: Justin Sanford <[email protected]>
1 parent 20b76f3 commit 83e0bd7

28 files changed

+486
-201
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
dotnet-version: '3.1.x'
2222
- name: Install OpenSSL 1.1
2323
run: |
24-
wget https://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb
25-
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb
24+
wget https://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
25+
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
2626
- name: Check out code
2727
uses: actions/checkout@v4
2828
- name: Adding /tmp/output

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
dotnet-version: '3.1.x'
2121
- name: Install OpenSSL 1.1
2222
run: |
23-
wget https://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb
24-
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb
23+
wget https://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
24+
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
2525
- name: Check out code
2626
uses: actions/checkout@v4
2727
- name: Adding /tmp/output

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ docs/Asset.md
66
docs/AssetErrors.md
77
docs/AssetGeneratedSubtitleSettings.md
88
docs/AssetMaster.md
9+
docs/AssetMetadata.md
910
docs/AssetNonStandardInputReasons.md
1011
docs/AssetRecordingTimes.md
1112
docs/AssetResponse.md
@@ -217,6 +218,7 @@ src/Mux.Csharp.Sdk/Model/Asset.cs
217218
src/Mux.Csharp.Sdk/Model/AssetErrors.cs
218219
src/Mux.Csharp.Sdk/Model/AssetGeneratedSubtitleSettings.cs
219220
src/Mux.Csharp.Sdk/Model/AssetMaster.cs
221+
src/Mux.Csharp.Sdk/Model/AssetMetadata.cs
220222
src/Mux.Csharp.Sdk/Model/AssetNonStandardInputReasons.cs
221223
src/Mux.Csharp.Sdk/Model/AssetRecordingTimes.cs
222224
src/Mux.Csharp.Sdk/Model/AssetResponse.cs

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dotnet-core 6.0.302
22
java zulu-16.32.15
33
nodejs 16.5.0
4-
yarn 1.22.17
4+
yarn 1.22.22

Mux.Csharp.Sdk.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk", "src\Mux.Csharp.Sdk\Mux.Csharp.Sdk.csproj", "{CB0634A2-7EF6-4CDF-9167-CF6420CC6411}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk", "src\Mux.Csharp.Sdk\Mux.Csharp.Sdk.csproj", "{31A080D5-404E-4699-83EF-56752050AF6B}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk.Test", "src\Mux.Csharp.Sdk.Test\Mux.Csharp.Sdk.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{CB0634A2-7EF6-4CDF-9167-CF6420CC6411}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{CB0634A2-7EF6-4CDF-9167-CF6420CC6411}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{CB0634A2-7EF6-4CDF-9167-CF6420CC6411}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{CB0634A2-7EF6-4CDF-9167-CF6420CC6411}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{31A080D5-404E-4699-83EF-56752050AF6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{31A080D5-404E-4699-83EF-56752050AF6B}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{31A080D5-404E-4699-83EF-56752050AF6B}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{31A080D5-404E-4699-83EF-56752050AF6B}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@
1313

1414
Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
1515

16-
**PLEASE NOTE:** This is an early build of the Mux C# SDK, as evidenced by its pre-1.0 status, but we're reasonably certain of its stability and usability against the Mux API.. Documentation is currently best-effort, but it'll improve over time! Instead of contacting Mux Support, please file an issue on this repository or email [Mux DevEx]([email protected]) for assistance.
17-
1816
## Usage With Webhooks
1917

2018
At this moment, this SDK is not suitable for parsing or modeling webhook payloads, due to some incompatibilities in our API spec and our SDK generation tooling. We are working on resolving these issues, but for now you should only use this SDK for Mux's REST APIs.
2119

2220
- API version: v1
23-
- SDK version: 1.0.0
21+
- SDK version: 2.0.0
2422
[https://docs.mux.com](https://docs.mux.com)
2523

2624
<a name="frameworks-supported"></a>
@@ -227,6 +225,7 @@ Class | Method | HTTP request | Description
227225
- [Model.AssetErrors](docs/AssetErrors.md)
228226
- [Model.AssetGeneratedSubtitleSettings](docs/AssetGeneratedSubtitleSettings.md)
229227
- [Model.AssetMaster](docs/AssetMaster.md)
228+
- [Model.AssetMetadata](docs/AssetMetadata.md)
230229
- [Model.AssetNonStandardInputReasons](docs/AssetNonStandardInputReasons.md)
231230
- [Model.AssetRecordingTimes](docs/AssetRecordingTimes.md)
232231
- [Model.AssetResponse](docs/AssetResponse.md)

docs/Asset.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
2121
**PerTitleEncode** | **bool** | | [optional]
2222
**UploadId** | **string** | Unique identifier for the Direct Upload. This is an optional parameter added when the asset is created from a direct upload. | [optional]
2323
**IsLive** | **bool** | Indicates whether the live stream that created this asset is currently &#x60;active&#x60; and not in &#x60;idle&#x60; state. This is an optional parameter added when the asset is created from a live stream. | [optional]
24-
**Passthrough** | **string** | Arbitrary user-supplied metadata set for the asset. Max 255 characters. | [optional]
24+
**Passthrough** | **string** | You can set this field to anything you want. It will be included in the asset details and related webhooks. If you&#39;re looking for more structured metadata, such as &#x60;title&#x60; or &#x60;external_id&#x60; , you can use the &#x60;meta&#x60; object instead. **Max: 255 characters**. | [optional]
2525
**LiveStreamId** | **string** | Unique identifier for the live stream. This is an optional parameter added when the asset is created from a live stream. | [optional]
2626
**Master** | [**AssetMaster**](AssetMaster.md) | | [optional]
2727
**MasterAccess** | **string** | | [optional] [default to MasterAccessEnum.None]
@@ -33,6 +33,7 @@ Name | Type | Description | Notes
3333
**NonStandardInputReasons** | [**AssetNonStandardInputReasons**](AssetNonStandardInputReasons.md) | | [optional]
3434
**Test** | **bool** | True means this live stream is a test asset. A test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test assets are watermarked with the Mux logo, limited to 10 seconds, and deleted after 24 hrs. | [optional]
3535
**IngestType** | **string** | The type of ingest used to create the asset. | [optional]
36+
**Meta** | [**AssetMetadata**](AssetMetadata.md) | | [optional]
3637

3738
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
3839

docs/AssetMetadata.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Mux.Csharp.Sdk.Model.AssetMetadata
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Title** | **string** | The video title. Max 512 code points. | [optional]
8+
**CreatorId** | **string** | This is an identifier you provide to keep track of the creator of the video. Max 128 code points. | [optional]
9+
**ExternalId** | **string** | This is an identifier you provide to link the video to your own data. Max 128 code points. | [optional]
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+

docs/CreateAssetRequest.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Input** | [**List&lt;InputSettings&gt;**](InputSettings.md) | An array of objects that each describe an input file to be used to create the asset. As a shortcut, input can also be a string URL for a file when only one input file is used. See &#x60;input[].url&#x60; for requirements. | [optional]
8-
**PlaybackPolicy** | [**List&lt;PlaybackPolicy&gt;**](PlaybackPolicy.md) | An array of playback policy names that you want applied to this asset and available through &#x60;playback_ids&#x60;. Options include: * &#x60;\&quot;public\&quot;&#x60; (anyone with the playback URL can stream the asset). * &#x60;\&quot;signed\&quot;&#x60; (an additional access token is required to play the asset). If no &#x60;playback_policy&#x60; is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. | [optional]
9-
**AdvancedPlaybackPolicies** | [**List&lt;CreatePlaybackIDRequest&gt;**](CreatePlaybackIDRequest.md) | An array of playback policy objects that you want applied to this asset and available through &#x60;playback_ids&#x60;. &#x60;advanced_playback_policies&#x60; must be used instead of &#x60;playback_policy&#x60; when creating a DRM playback ID. | [optional]
7+
**Input** | [**List&lt;InputSettings&gt;**](InputSettings.md) | Deprecated. Use &#x60;inputs&#x60; instead, which accepts an identical type. | [optional]
8+
**Inputs** | [**List&lt;InputSettings&gt;**](InputSettings.md) | An array of objects that each describe an input file to be used to create the asset. As a shortcut, input can also be a string URL for a file when only one input file is used. See &#x60;input[].url&#x60; for requirements. | [optional]
9+
**PlaybackPolicy** | [**List&lt;PlaybackPolicy&gt;**](PlaybackPolicy.md) | Deprecated. Use &#x60;playback_policies&#x60; instead, which accepts an identical type. | [optional]
10+
**PlaybackPolicies** | [**List&lt;PlaybackPolicy&gt;**](PlaybackPolicy.md) | An array of playback policy names that you want applied to this asset and available through &#x60;playback_ids&#x60;. Options include: * &#x60;\&quot;public\&quot;&#x60; (anyone with the playback URL can stream the asset). * &#x60;\&quot;signed\&quot;&#x60; (an additional access token is required to play the asset). If no &#x60;playback_policies&#x60; are set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. | [optional]
11+
**AdvancedPlaybackPolicies** | [**List&lt;CreatePlaybackIDRequest&gt;**](CreatePlaybackIDRequest.md) | An array of playback policy objects that you want applied to this asset and available through &#x60;playback_ids&#x60;. &#x60;advanced_playback_policies&#x60; must be used instead of &#x60;playback_policies&#x60; when creating a DRM playback ID. | [optional]
1012
**PerTitleEncode** | **bool** | | [optional]
11-
**Passthrough** | **string** | Arbitrary user-supplied metadata that will be included in the asset details and related webhooks. Can be used to store your own ID for a video along with the asset. **Max: 255 characters**. | [optional]
13+
**Passthrough** | **string** | You can set this field to anything you want. It will be included in the asset details and related webhooks. If you&#39;re looking for more structured metadata, such as &#x60;title&#x60; or &#x60;external_id&#x60;, you can use the &#x60;meta&#x60; object instead. **Max: 255 characters**. | [optional]
1214
**Mp4Support** | **string** | Deprecated. See the [Static Renditions API](https://www.mux.com/docs/guides/enable-static-mp4-renditions) for the updated API. Specify what level of support for mp4 playback. You may not enable both &#x60;mp4_support&#x60; and &#x60;static_renditions&#x60;. * The &#x60;capped-1080p&#x60; option produces a single MP4 file, called &#x60;capped-1080p.mp4&#x60;, with the video resolution capped at 1080p. This option produces an &#x60;audio.m4a&#x60; file for an audio-only asset. * The &#x60;audio-only&#x60; option produces a single M4A file, called &#x60;audio.m4a&#x60; for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The &#x60;audio-only,capped-1080p&#x60; option produces both the &#x60;audio.m4a&#x60; and &#x60;capped-1080p.mp4&#x60; files. Only the &#x60;capped-1080p.mp4&#x60; file is produced for a video-only asset, while only the &#x60;audio.m4a&#x60; file is produced for an audio-only asset. The &#x60;standard&#x60;(deprecated) option produces up to three MP4 files with different levels of resolution (&#x60;high.mp4&#x60;, &#x60;medium.mp4&#x60;, &#x60;low.mp4&#x60;, or &#x60;audio.m4a&#x60; for an audio-only asset). MP4 files are not produced for &#x60;none&#x60; (default). In most cases you should use our default HLS-based streaming playback (&#x60;{playback_id}.m3u8&#x60;) which can automatically adjust to viewers&#39; connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional]
1315
**NormalizeAudio** | **bool** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to false]
1416
**MasterAccess** | **string** | Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional]
@@ -17,6 +19,7 @@ Name | Type | Description | Notes
1719
**EncodingTier** | **string** | This field is deprecated. Please use &#x60;video_quality&#x60; instead. The encoding tier informs the cost, quality, and available platform features for the asset. The default encoding tier for an account can be set in the Mux Dashboard. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) | [optional]
1820
**VideoQuality** | **string** | The video quality controls the cost, quality, and available platform features for the asset. The default video quality for an account can be set in the Mux Dashboard. This field replaces the deprecated &#x60;encoding_tier&#x60; value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) | [optional]
1921
**StaticRenditions** | [**List&lt;CreateStaticRenditionRequest&gt;**](CreateStaticRenditionRequest.md) | An array of static renditions to create for this asset. You may not enable both &#x60;static_renditions&#x60; and &#x60;mp4_support (the latter being deprecated)&#x60; | [optional]
22+
**Meta** | [**AssetMetadata**](AssetMetadata.md) | | [optional]
2023

2124
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2225

docs/CreateLiveStreamRequest.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**PlaybackPolicy** | [**List&lt;PlaybackPolicy&gt;**](PlaybackPolicy.md) | | [optional]
8-
**AdvancedPlaybackPolicies** | [**List&lt;CreatePlaybackIDRequest&gt;**](CreatePlaybackIDRequest.md) | An array of playback policy objects that you want applied to this asset and available through &#x60;playback_ids&#x60;. &#x60;advanced_playback_policies&#x60; must be used instead of &#x60;playback_policy&#x60; when creating a DRM playback ID. | [optional]
7+
**PlaybackPolicy** | [**List&lt;PlaybackPolicy&gt;**](PlaybackPolicy.md) | Deprecated. Use &#x60;playback_policies&#x60; instead, which accepts an identical type. | [optional]
8+
**PlaybackPolicies** | [**List&lt;PlaybackPolicy&gt;**](PlaybackPolicy.md) | An array of playback policy names that you want applied to this live stream and available through &#x60;playback_ids&#x60;. Options include: * &#x60;\&quot;public\&quot;&#x60; (anyone with the playback URL can stream the live stream). * &#x60;\&quot;signed\&quot;&#x60; (an additional access token is required to play the live stream). If no &#x60;playback_policies&#x60; is set, the live stream will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. | [optional]
9+
**AdvancedPlaybackPolicies** | [**List&lt;CreatePlaybackIDRequest&gt;**](CreatePlaybackIDRequest.md) | An array of playback policy objects that you want applied on this live stream and available through &#x60;playback_ids&#x60;. &#x60;advanced_playback_policies&#x60; must be used instead of &#x60;playback_policies&#x60; when creating a DRM playback ID. | [optional]
910
**NewAssetSettings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional]
1011
**ReconnectWindow** | **float** | When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. Defaults to 60 seconds on the API if not specified. If not specified directly, Standard Latency streams have a Reconnect Window of 60 seconds; Reduced and Low Latency streams have a default of 0 seconds, or no Reconnect Window. For that reason, we suggest specifying a value other than zero for Reduced and Low Latency streams. Reduced and Low Latency streams with a Reconnect Window greater than zero will insert slate media into the recorded asset while waiting for the streaming software to reconnect or when there are brief interruptions in the live stream media. When using a Reconnect Window setting higher than 60 seconds with a Standard Latency stream, we highly recommend enabling slate with the &#x60;use_slate_for_standard_latency&#x60; option. | [optional] [default to 60F]
1112
**UseSlateForStandardLatency** | **bool** | By default, Standard Latency live streams do not have slate media inserted while waiting for live streaming software to reconnect to Mux. Setting this to true enables slate insertion on a Standard Latency stream. | [optional] [default to false]

docs/UpdateAssetRequest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Passthrough** | **string** | Arbitrary metadata set for the Asset. Max 255 characters. In order to clear this value, the field should be included with an empty string value. | [optional]
7+
**Passthrough** | **string** | You can set this field to anything you want. It will be included in the asset details and related webhooks. If you&#39;re looking for more structured metadata, such as &#x60;title&#x60; or &#x60;external_id&#x60; , you can use the &#x60;meta&#x60; object instead. **Max: 255 characters**. In order to clear this value, the field should be included with an empty string value. | [optional]
8+
**Meta** | [**AssetMetadata**](AssetMetadata.md) | | [optional]
89

910
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1011

0 commit comments

Comments
 (0)