Skip to content

Commit

Permalink
Add discarded videos feature
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierapivideo authored Sep 16, 2024
1 parent 14b3b97 commit f74c22d
Show file tree
Hide file tree
Showing 66 changed files with 1,338 additions and 124 deletions.
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ docs/CaptionsUpdatePayload.md
docs/Chapter.md
docs/ChaptersApi.md
docs/ChaptersListResponse.md
docs/DiscardedVideoUpdatePayload.md
docs/FilterBy.md
docs/FilterBy1.md
docs/FilterBy2.md
Expand Down Expand Up @@ -123,6 +124,7 @@ src/ApiVideo.Test/Model/CaptionsListResponseTests.cs
src/ApiVideo.Test/Model/CaptionsUpdatePayloadTests.cs
src/ApiVideo.Test/Model/ChapterTests.cs
src/ApiVideo.Test/Model/ChaptersListResponseTests.cs
src/ApiVideo.Test/Model/DiscardedVideoUpdatePayloadTests.cs
src/ApiVideo.Test/Model/FilterBy1Tests.cs
src/ApiVideo.Test/Model/FilterBy2Tests.cs
src/ApiVideo.Test/Model/FilterByTests.cs
Expand Down Expand Up @@ -215,6 +217,7 @@ src/ApiVideo/Model/CaptionsListResponse.cs
src/ApiVideo/Model/CaptionsUpdatePayload.cs
src/ApiVideo/Model/Chapter.cs
src/ApiVideo/Model/ChaptersListResponse.cs
src/ApiVideo/Model/DiscardedVideoUpdatePayload.cs
src/ApiVideo/Model/FilterBy.cs
src/ApiVideo/Model/FilterBy1.cs
src/ApiVideo/Model/FilterBy2.cs
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/oas_apivideo.yaml-defaut-cli.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b89163ac996bc8f2bcaf0a054a6a9c28de9b0cf52e16fbcb17055f42852e2a57
17ac0a7b292afb851962592fd7280e7727bb901d5d4e2a3f75808aa76a1ecdf5
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All changes to this project will be documented in this file.

## [1.6.2] - 2024-09-16
- Add discarded video endpoints

## [1.6.1] - 2024-09-05
- Add sort parameters in analytics endpoints

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,10 @@ Method | HTTP request | Description
[**list**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#list) | **GET** `/videos` | List all video objects
[**uploadThumbnail**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#uploadThumbnail) | **POST** `/videos/{videoId}/thumbnail` | Upload a thumbnail
[**pickThumbnail**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#pickThumbnail) | **PATCH** `/videos/{videoId}/thumbnail` | Set a thumbnail
[**getDiscarded**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#getDiscarded) | **GET** `/discarded/videos/{videoId}` | Retrieve a discarded video object
[**getStatus**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#getStatus) | **GET** `/videos/{videoId}/status` | Retrieve video status and details
[**listDiscarded**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#listDiscarded) | **GET** `/discarded/videos` | List all discarded video objects
[**updateDiscarded**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#updateDiscarded) | **PATCH** `/discarded/videos/{videoId}` | Update a discarded video object


#### WatermarksApi
Expand Down Expand Up @@ -364,6 +367,7 @@ Method | HTTP request | Description
- [CaptionsUpdatePayload](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/CaptionsUpdatePayload.md)
- [Chapter](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/Chapter.md)
- [ChaptersListResponse](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/ChaptersListResponse.md)
- [DiscardedVideoUpdatePayload](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/DiscardedVideoUpdatePayload.md)
- [FilterBy](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/FilterBy.md)
- [FilterBy1](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/FilterBy1.md)
- [FilterBy2](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/FilterBy2.md)
Expand Down
10 changes: 10 additions & 0 deletions docs/DiscardedVideoUpdatePayload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ApiVideo.Model.DiscardedVideoUpdatePayload

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Discarded** | **bool** | Use this parameter to restore a discarded video when you have the Video Restore feature enabled. This parameter only accepts `false` as a value! | [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)

4 changes: 2 additions & 2 deletions docs/LiveStream.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Name | Type | Description | Notes
**PlayerId** | **string** | The unique identifier for the player. | [optional]
**Broadcasting** | **bool** | Whether or not you are broadcasting the live video you recorded for others to see. True means you are broadcasting to viewers, false means you are not. | [optional]
**Restreams** | [**List<RestreamsResponseObject>**](RestreamsResponseObject.md) | Returns the list of restream destinations. |
**CreatedAt** | **DateTime** | When the player was created, presented in ISO-8601 format. | [optional]
**UpdatedAt** | **DateTime** | When the player was last updated, presented in ISO-8601 format. | [optional]
**CreatedAt** | **DateTime** | When the player was created, presented in ATOM UTC format. | [optional]
**UpdatedAt** | **DateTime** | When the player was last updated, presented in ATOM UTC format. | [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)

4 changes: 2 additions & 2 deletions docs/LiveStreamsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ namespace Example

var streamKey = dw-dew8-q6w9-k67w-1ws8; // string | The unique stream key that allows you to stream videos. (optional)
var name = My Video; // string | You can filter live streams by their name or a part of their name. (optional)
var sortBy = createdAt; // string | Enables you to sort live stream results. Allowed attributes: `name`, `createdAt`, `updatedAt`. `name` - the name of the live stream. `createdAt` - the time a live stream was created. `updatedAt` - the time a live stream was last updated. When using `createdAt` or `updatedAt`, the API sorts the results based on the ISO-8601 time format. (optional)
var sortBy = createdAt; // string | Enables you to sort live stream results. Allowed attributes: `name`, `createdAt`, `updatedAt`. `name` - the name of the live stream. `createdAt` - the time a live stream was created. `updatedAt` - the time a live stream was last updated. When using `createdAt` or `updatedAt`, the API sorts the results based on the ATOM UTC time format. (optional)
var sortOrder = desc; // string | Allowed: asc, desc. Ascending for date and time means that earlier values precede later ones. Descending means that later values preced earlier ones. For title, it is 0-9 and A-Z ascending and Z-A, 9-0 descending. (optional)
var currentPage = 2; // int? | Choose the number of search results to return per page. Minimum value: 1 (optional) (default to 1)
var pageSize = 30; // int? | Results per page. Allowed values 1-100, default is 25. (optional) (default to 25)
Expand Down Expand Up @@ -339,7 +339,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**streamKey** | **string**| The unique stream key that allows you to stream videos. | [optional]
**name** | **string**| You can filter live streams by their name or a part of their name. | [optional]
**sortBy** | **string**| Enables you to sort live stream results. Allowed attributes: `name`, `createdAt`, `updatedAt`. `name` - the name of the live stream. `createdAt` - the time a live stream was created. `updatedAt` - the time a live stream was last updated. When using `createdAt` or `updatedAt`, the API sorts the results based on the ISO-8601 time format. | [optional]
**sortBy** | **string**| Enables you to sort live stream results. Allowed attributes: `name`, `createdAt`, `updatedAt`. `name` - the name of the live stream. `createdAt` - the time a live stream was created. `updatedAt` - the time a live stream was last updated. When using `createdAt` or `updatedAt`, the API sorts the results based on the ATOM UTC time format. | [optional]
**sortOrder** | **string**| Allowed: asc, desc. Ascending for date and time means that earlier values precede later ones. Descending means that later values preced earlier ones. For title, it is 0-9 and A-Z ascending and Z-A, 9-0 descending. | [optional]
**currentPage** | **int?**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1]
**pageSize** | **int?**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25]
Expand Down
2 changes: 1 addition & 1 deletion docs/PlayerSessionEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Type** | **string** | Possible values are: ready, play, pause, resume, seek.backward, seek.forward, end | [optional]
**EmittedAt** | **DateTime** | When an event occurred, presented in ISO-8601 format. | [optional]
**EmittedAt** | **DateTime** | When an event occurred, presented in ATOM UTC format. | [optional]
**At** | **int** | | [optional]
**From** | **int** | | [optional]
**To** | **int** | | [optional]
Expand Down
4 changes: 2 additions & 2 deletions docs/PlayerTheme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Name | Type | Description | Notes
**HideTitle** | **bool** | enable/disable title. Default: false | [optional]
**ForceLoop** | **bool** | enable/disable looping. Default: false | [optional]
**PlayerId** | **string** | |
**CreatedAt** | **DateTime** | When the player was created, presented in ISO-8601 format. | [optional]
**UpdatedAt** | **DateTime** | When the player was last updated, presented in ISO-8601 format. | [optional]
**CreatedAt** | **DateTime** | When the player was created, presented in ATOM UTC format. | [optional]
**UpdatedAt** | **DateTime** | When the player was last updated, presented in ATOM UTC format. | [optional]
**Assets** | [**PlayerThemeAssets**](PlayerThemeAssets.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)
Expand Down
4 changes: 2 additions & 2 deletions docs/PlayerThemesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ namespace Example

var apiInstance = new ApiVideoClient(apiKey,basePath);

var sortBy = createdAt; // string | createdAt is the time the player was created. updatedAt is the time the player was last updated. The time is presented in ISO-8601 format. (optional)
var sortBy = createdAt; // string | createdAt is the time the player was created. updatedAt is the time the player was last updated. The time is presented in ATOM UTC format. (optional)
var sortOrder = asc; // string | Allowed: asc, desc. Ascending for date and time means that earlier values precede later ones. Descending means that later values preced earlier ones. (optional)
var currentPage = 2; // int? | Choose the number of search results to return per page. Minimum value: 1 (optional) (default to 1)
var pageSize = 30; // int? | Results per page. Allowed values 1-100, default is 25. (optional) (default to 25)
Expand All @@ -335,7 +335,7 @@ namespace Example

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**sortBy** | **string**| createdAt is the time the player was created. updatedAt is the time the player was last updated. The time is presented in ISO-8601 format. | [optional]
**sortBy** | **string**| createdAt is the time the player was created. updatedAt is the time the player was last updated. The time is presented in ATOM UTC format. | [optional]
**sortOrder** | **string**| Allowed: asc, desc. Ascending for date and time means that earlier values precede later ones. Descending means that later values preced earlier ones. | [optional]
**currentPage** | **int?**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1]
**pageSize** | **int?**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25]
Expand Down
4 changes: 2 additions & 2 deletions docs/UploadToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Token** | **string** | The unique identifier for the token you will use to authenticate an upload. | [optional]
**Ttl** | **int** | Time-to-live - how long the upload token is valid for. | [optional]
**CreatedAt** | **DateTime** | When the token was created, displayed in ISO-8601 format. | [optional]
**ExpiresAt** | **DateTime?** | When the token expires, displayed in ISO-8601 format. | [optional]
**CreatedAt** | **DateTime** | When the token was created, displayed in ATOM UTC format. | [optional]
**ExpiresAt** | **DateTime?** | When the token expires, displayed in ATOM UTC format. | [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)

4 changes: 2 additions & 2 deletions docs/UploadTokensApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ namespace Example

var apiInstance = new ApiVideoClient(apiKey,basePath);

var sortBy = ttl; // string | Allowed: createdAt, ttl. You can use these to sort by when a token was created, or how much longer the token will be active (ttl - time to live). Date and time is presented in ISO-8601 format. (optional)
var sortBy = ttl; // string | Allowed: createdAt, ttl. You can use these to sort by when a token was created, or how much longer the token will be active (ttl - time to live). Date and time is presented in ATOM UTC format. (optional)
var sortOrder = asc; // string | Allowed: asc, desc. Ascending is 0-9 or A-Z. Descending is 9-0 or Z-A. (optional)
var currentPage = 2; // int? | Choose the number of search results to return per page. Minimum value: 1 (optional) (default to 1)
var pageSize = 30; // int? | Results per page. Allowed values 1-100, default is 25. (optional) (default to 25)
Expand All @@ -263,7 +263,7 @@ namespace Example

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**sortBy** | **string**| Allowed: createdAt, ttl. You can use these to sort by when a token was created, or how much longer the token will be active (ttl - time to live). Date and time is presented in ISO-8601 format. | [optional]
**sortBy** | **string**| Allowed: createdAt, ttl. You can use these to sort by when a token was created, or how much longer the token will be active (ttl - time to live). Date and time is presented in ATOM UTC format. | [optional]
**sortOrder** | **string**| Allowed: asc, desc. Ascending is 0-9 or A-Z. Descending is 9-0 or Z-A. | [optional]
**currentPage** | **int?**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1]
**pageSize** | **int?**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25]
Expand Down
11 changes: 7 additions & 4 deletions docs/Video.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VideoId** | **string** | The unique identifier of the video object. |
**CreatedAt** | **DateTime** | When a video was created, presented in ISO-8601 format. | [optional]
**CreatedAt** | **DateTime** | When a video was created, presented in ATOM UTC format. | [optional]
**Title** | **string** | The title of the video content. | [optional]
**Description** | **string** | A description for the video content. | [optional]
**PublishedAt** | **DateTime** | The date and time the API created the video. Date and time are provided using ISO-8601 UTC format. | [optional]
**UpdatedAt** | **DateTime** | The date and time the video was updated. Date and time are provided using ISO-8601 UTC format. | [optional]
**PublishedAt** | **DateTime** | The date and time the API created the video. Date and time are provided using ATOM UTC format. | [optional]
**UpdatedAt** | **DateTime** | The date and time the video was updated. Date and time are provided using ATOM UTC format. | [optional]
**DiscardedAt** | **DateTime?** | The date and time the video was discarded. The API populates this field only if you have the Video Restore feature enabled and discard a video. Date and time are provided using ATOM UTC format. | [optional]
**DeletesAt** | **DateTime?** | The date and time the video will be permanently deleted. The API populates this field only if you have the Video Restore feature enabled and discard a video. Discarded videos are pemanently deleted after 90 days. Date and time are provided using ATOM UTC format. | [optional]
**Discarded** | **bool** | Returns `true` for videos you discarded when you have the Video Restore feature enabled. Returns `false` for every other video. | [optional]
**Tags** | **List<string>** | One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces. | [optional]
**Metadata** | [**List<Metadata>**](Metadata.md) | Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata/) allows you to define a key that allows any value pair. | [optional]
**Metadata** | [**List<Metadata>**](Metadata.md) | Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. | [optional]
**Source** | [**VideoSource**](VideoSource.md) | | [optional]
**Assets** | [**VideoAssets**](VideoAssets.md) | | [optional]
**PlayerId** | **string** | The id of the player that will be applied on the video. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/VideoCreationPayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**Mp4Support** | **bool** | Enables mp4 version in addition to streamed version. | [optional] [default to true]
**PlayerId** | **string** | The unique identification number for your video player. | [optional]
**Tags** | **List<string>** | A list of tags you want to use to describe your video. | [optional]
**Metadata** | [**List<Metadata>**](Metadata.md) | A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. Read more on [dynamic metadata](https://api.video/blog/endpoints/dynamic-metadata/). | [optional]
**Metadata** | [**List<Metadata>**](Metadata.md) | A list of key value pairs that you use to provide metadata for your video. | [optional]
**Clip** | [**VideoClip**](VideoClip.md) | | [optional]
**Watermark** | [**VideoWatermark**](VideoWatermark.md) | | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/VideoUpdatePayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**Panoramic** | **bool** | Whether the video is a 360 degree or immersive video. | [optional]
**Mp4Support** | **bool** | Whether the player supports the mp4 format. | [optional]
**Tags** | **List<string>** | A list of terms or words you want to tag the video with. Make sure the list includes all the tags you want as whatever you send in this list will overwrite the existing list for the video. | [optional]
**Metadata** | [**List<Metadata>**](Metadata.md) | A list (array) of dictionaries where each dictionary contains a key value pair that describes the video. As with tags, you must send the complete list of metadata you want as whatever you send here will overwrite the existing metadata for the video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata/) allows you to define a key that allows any value pair. | [optional]
**Metadata** | [**List<Metadata>**](Metadata.md) | A list (array) of dictionaries where each dictionary contains a key value pair that describes the video. As with tags, you must send the complete list of metadata you want as whatever you send here will overwrite the existing metadata for the video. | [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)

Loading

0 comments on commit f74c22d

Please sign in to comment.