Skip to content

Commit

Permalink
[minor] release for real-time
Browse files Browse the repository at this point in the history
  • Loading branch information
eropple committed May 24, 2022
1 parent 34df5e5 commit aefa5a9
Show file tree
Hide file tree
Showing 36 changed files with 1,305 additions and 5 deletions.
691 changes: 691 additions & 0 deletions api_spaces.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type APIClient struct {
PlaybackIDApi *PlaybackIDApiService
PlaybackRestrictionsApi *PlaybackRestrictionsApiService
RealTimeApi *RealTimeApiService
SpacesApi *SpacesApiService
URLSigningKeysApi *URLSigningKeysApiService
VideoViewsApi *VideoViewsApiService
}
Expand Down Expand Up @@ -81,6 +82,7 @@ func NewAPIClient(cfg *Configuration) *APIClient {
c.PlaybackIDApi = (*PlaybackIDApiService)(&c.common)
c.PlaybackRestrictionsApi = (*PlaybackRestrictionsApiService)(&c.common)
c.RealTimeApi = (*RealTimeApiService)(&c.common)
c.SpacesApi = (*SpacesApiService)(&c.common)
c.URLSigningKeysApi = (*URLSigningKeysApiService)(&c.common)
c.VideoViewsApi = (*VideoViewsApiService)(&c.common)

Expand Down
2 changes: 1 addition & 1 deletion configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type ConfigurationOption func(*Configuration)
func NewConfiguration(opts ...ConfigurationOption) *Configuration {
cfg := &Configuration{
basePath: "https://api.mux.com",
userAgent: "Mux Go | 4.1.0",
userAgent: "Mux Go | 4.2.1",
}
for _, opt := range opts {
opt(cfg)
Expand Down
2 changes: 1 addition & 1 deletion docs/Asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Name | Type | Description | Notes
**Errors** | [**AssetErrors**](Asset_errors.md) | | [optional]
**PerTitleEncode** | **bool** | | [optional]
**UploadId** | **string** | Unique identifier for the Direct Upload. This is an optional parameter added when the asset is created from a direct upload. | [optional]
**IsLive** | **bool** | Whether the asset is created from a live stream and the live stream is currently `active` and not in `idle` state. | [optional]
**IsLive** | **bool** | Indicates whether the live stream that created this asset is currently `active` and not in `idle` state. This is an optional parameter added when the asset is created from a live stream. | [optional]
**Passthrough** | **string** | Arbitrary user-supplied metadata set for the asset. Max 255 characters. | [optional]
**LiveStreamId** | **string** | Unique identifier for the live stream. This is an optional parameter added when the asset is created from a live stream. | [optional]
**Master** | [**AssetMaster**](Asset_master.md) | | [optional]
Expand Down
16 changes: 16 additions & 0 deletions docs/Broadcast.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Broadcast

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | Unique identifier for the broadcast. Max 255 characters. |
**Passthrough** | **string** | Arbitrary user-supplied metadata that will be included in the broadcast details and related webhooks. Max: 255 characters. | [optional]
**LiveStreamId** | **string** | The ID of the live stream that the broadcast will be sent to. |
**Status** | [**BroadcastStatus**](BroadcastStatus.md) | |
**Layout** | [**BroadcastLayout**](BroadcastLayout.md) | |
**Background** | **string** | URL of an image to display as the background of the broadcast. Its dimensions should match the provided resolution. | [optional]
**Resolution** | [**BroadcastResolution**](BroadcastResolution.md) | |

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


9 changes: 9 additions & 0 deletions docs/BroadcastLayout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# BroadcastLayout

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

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


9 changes: 9 additions & 0 deletions docs/BroadcastResolution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# BroadcastResolution

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

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


10 changes: 10 additions & 0 deletions docs/BroadcastResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# BroadcastResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Data** | [**Broadcast**](Broadcast.md) | |

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


9 changes: 9 additions & 0 deletions docs/BroadcastStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# BroadcastStatus

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

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


14 changes: 14 additions & 0 deletions docs/CreateBroadcastRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# CreateBroadcastRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Passthrough** | **string** | Arbitrary user-supplied metadata that will be included in the broadcast details and related webhooks. Max: 255 characters. | [optional]
**LiveStreamId** | **string** | The ID of the live stream that you want to broadcast to. |
**Layout** | [**BroadcastLayout**](BroadcastLayout.md) | | [optional]
**Background** | **string** | URL of an image to display as the background of the broadcast. Its dimensions should match the provided resolution. | [optional]
**Resolution** | [**BroadcastResolution**](BroadcastResolution.md) | | [optional]

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


2 changes: 1 addition & 1 deletion docs/CreateSimulcastTargetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Passthrough** | **string** | Arbitrary user-supplied metadata set by you when creating a simulcast target. | [optional]
**StreamKey** | **string** | Stream Key represents a stream identifier on the third party live streaming service to send the parent live stream to. | [optional]
**Url** | **string** | RTMP hostname including application name for the third party live streaming service. Example: 'rtmp://live.example.com/app'. |
**Url** | **string** | RTMP hostname including application name for the third party live streaming service. Example: `rtmp://live.example.com/app`. |

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

Expand Down
12 changes: 12 additions & 0 deletions docs/CreateSpaceRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# CreateSpaceRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Type** | [**SpaceType**](SpaceType.md) | | [optional]
**Passthrough** | **string** | Arbitrary user-supplied metadata that will be included in the space details and related webhooks. Max: 255 characters. | [optional]
**Broadcasts** | [**[]CreateBroadcastRequest**](CreateBroadcastRequest.md) | An array of broadcast destinations you want to stream the space to. **Note:** By default only a single broadcast destination can be specified. Contact Mux support if you need more. | [optional]

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


10 changes: 10 additions & 0 deletions docs/ListSpacesResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ListSpacesResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Data** | [**[]Space**](Space.md) | |

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


16 changes: 16 additions & 0 deletions docs/Space.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Space

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | Unique identifier for the space. Max 255 characters. |
**CreatedAt** | **string** | Time the space was created, defined as a Unix timestamp (seconds since epoch). |
**Type** | [**SpaceType**](SpaceType.md) | |
**Status** | [**SpaceStatus**](SpaceStatus.md) | |
**Passthrough** | **string** | Arbitrary user-supplied metadata that will be included in the space details and related webhooks. Max: 255 characters. | [optional]
**Broadcasts** | [**[]Broadcast**](Broadcast.md) | An array of broadcast destinations. | [optional]
**ActiveSessionId** | **string** | Unique identifier for the current lifecycle of the space. Only set when the space is `active` and is set to a new value each time the space transitions from `idle` to `active`. This value is useful for logging and debugging issues. Max 255 characters. | [optional]

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


10 changes: 10 additions & 0 deletions docs/SpaceResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SpaceResponse

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Data** | [**Space**](Space.md) | |

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


9 changes: 9 additions & 0 deletions docs/SpaceStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SpaceStatus

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

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


9 changes: 9 additions & 0 deletions docs/SpaceType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SpaceType

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

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


Loading

0 comments on commit aefa5a9

Please sign in to comment.