Skip to content

Commit f74c22d

Browse files
author
olivierapivideo
authored
Add discarded videos feature
1 parent 14b3b97 commit f74c22d

File tree

66 files changed

+1338
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1338
-124
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ docs/CaptionsUpdatePayload.md
3030
docs/Chapter.md
3131
docs/ChaptersApi.md
3232
docs/ChaptersListResponse.md
33+
docs/DiscardedVideoUpdatePayload.md
3334
docs/FilterBy.md
3435
docs/FilterBy1.md
3536
docs/FilterBy2.md
@@ -123,6 +124,7 @@ src/ApiVideo.Test/Model/CaptionsListResponseTests.cs
123124
src/ApiVideo.Test/Model/CaptionsUpdatePayloadTests.cs
124125
src/ApiVideo.Test/Model/ChapterTests.cs
125126
src/ApiVideo.Test/Model/ChaptersListResponseTests.cs
127+
src/ApiVideo.Test/Model/DiscardedVideoUpdatePayloadTests.cs
126128
src/ApiVideo.Test/Model/FilterBy1Tests.cs
127129
src/ApiVideo.Test/Model/FilterBy2Tests.cs
128130
src/ApiVideo.Test/Model/FilterByTests.cs
@@ -215,6 +217,7 @@ src/ApiVideo/Model/CaptionsListResponse.cs
215217
src/ApiVideo/Model/CaptionsUpdatePayload.cs
216218
src/ApiVideo/Model/Chapter.cs
217219
src/ApiVideo/Model/ChaptersListResponse.cs
220+
src/ApiVideo/Model/DiscardedVideoUpdatePayload.cs
218221
src/ApiVideo/Model/FilterBy.cs
219222
src/ApiVideo/Model/FilterBy1.cs
220223
src/ApiVideo/Model/FilterBy2.cs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b89163ac996bc8f2bcaf0a054a6a9c28de9b0cf52e16fbcb17055f42852e2a57
1+
17ac0a7b292afb851962592fd7280e7727bb901d5d4e2a3f75808aa76a1ecdf5

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All changes to this project will be documented in this file.
33

4+
## [1.6.2] - 2024-09-16
5+
- Add discarded video endpoints
6+
47
## [1.6.1] - 2024-09-05
58
- Add sort parameters in analytics endpoints
69

README.md

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

304307

305308
#### WatermarksApi
@@ -364,6 +367,7 @@ Method | HTTP request | Description
364367
- [CaptionsUpdatePayload](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/CaptionsUpdatePayload.md)
365368
- [Chapter](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/Chapter.md)
366369
- [ChaptersListResponse](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/ChaptersListResponse.md)
370+
- [DiscardedVideoUpdatePayload](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/DiscardedVideoUpdatePayload.md)
367371
- [FilterBy](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/FilterBy.md)
368372
- [FilterBy1](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/FilterBy1.md)
369373
- [FilterBy2](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/FilterBy2.md)

docs/DiscardedVideoUpdatePayload.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ApiVideo.Model.DiscardedVideoUpdatePayload
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**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]
8+
9+
[[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+

docs/LiveStream.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Name | Type | Description | Notes
1212
**PlayerId** | **string** | The unique identifier for the player. | [optional]
1313
**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]
1414
**Restreams** | [**List<RestreamsResponseObject>**](RestreamsResponseObject.md) | Returns the list of restream destinations. |
15-
**CreatedAt** | **DateTime** | When the player was created, presented in ISO-8601 format. | [optional]
16-
**UpdatedAt** | **DateTime** | When the player was last updated, presented in ISO-8601 format. | [optional]
15+
**CreatedAt** | **DateTime** | When the player was created, presented in ATOM UTC format. | [optional]
16+
**UpdatedAt** | **DateTime** | When the player was last updated, presented in ATOM UTC format. | [optional]
1717

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

docs/LiveStreamsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ namespace Example
311311

312312
var streamKey = dw-dew8-q6w9-k67w-1ws8; // string | The unique stream key that allows you to stream videos. (optional)
313313
var name = My Video; // string | You can filter live streams by their name or a part of their name. (optional)
314-
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)
314+
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)
315315
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)
316316
var currentPage = 2; // int? | Choose the number of search results to return per page. Minimum value: 1 (optional) (default to 1)
317317
var pageSize = 30; // int? | Results per page. Allowed values 1-100, default is 25. (optional) (default to 25)
@@ -339,7 +339,7 @@ Name | Type | Description | Notes
339339
------------- | ------------- | ------------- | -------------
340340
**streamKey** | **string**| The unique stream key that allows you to stream videos. | [optional]
341341
**name** | **string**| You can filter live streams by their name or a part of their name. | [optional]
342-
**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]
342+
**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]
343343
**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]
344344
**currentPage** | **int?**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1]
345345
**pageSize** | **int?**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25]

docs/PlayerSessionEvent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Type** | **string** | Possible values are: ready, play, pause, resume, seek.backward, seek.forward, end | [optional]
8-
**EmittedAt** | **DateTime** | When an event occurred, presented in ISO-8601 format. | [optional]
8+
**EmittedAt** | **DateTime** | When an event occurred, presented in ATOM UTC format. | [optional]
99
**At** | **int** | | [optional]
1010
**From** | **int** | | [optional]
1111
**To** | **int** | | [optional]

docs/PlayerTheme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Name | Type | Description | Notes
2121
**HideTitle** | **bool** | enable/disable title. Default: false | [optional]
2222
**ForceLoop** | **bool** | enable/disable looping. Default: false | [optional]
2323
**PlayerId** | **string** | |
24-
**CreatedAt** | **DateTime** | When the player was created, presented in ISO-8601 format. | [optional]
25-
**UpdatedAt** | **DateTime** | When the player was last updated, presented in ISO-8601 format. | [optional]
24+
**CreatedAt** | **DateTime** | When the player was created, presented in ATOM UTC format. | [optional]
25+
**UpdatedAt** | **DateTime** | When the player was last updated, presented in ATOM UTC format. | [optional]
2626
**Assets** | [**PlayerThemeAssets**](PlayerThemeAssets.md) | | [optional]
2727

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

docs/PlayerThemesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ namespace Example
309309

310310
var apiInstance = new ApiVideoClient(apiKey,basePath);
311311

312-
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)
312+
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)
313313
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)
314314
var currentPage = 2; // int? | Choose the number of search results to return per page. Minimum value: 1 (optional) (default to 1)
315315
var pageSize = 30; // int? | Results per page. Allowed values 1-100, default is 25. (optional) (default to 25)
@@ -335,7 +335,7 @@ namespace Example
335335

336336
Name | Type | Description | Notes
337337
------------- | ------------- | ------------- | -------------
338-
**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]
338+
**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]
339339
**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]
340340
**currentPage** | **int?**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1]
341341
**pageSize** | **int?**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25]

0 commit comments

Comments
 (0)