You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/types.ts
+36-11Lines changed: 36 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -11,49 +11,69 @@ export interface Video {
11
11
/**
12
12
* When an webhook was created, presented in ISO-8601 format.
13
13
*/
14
-
createdAt?: Date;
14
+
createdAt: Date;
15
15
/**
16
16
* The title of the video content.
17
17
*/
18
18
title: string;
19
19
/**
20
20
* A description for the video content.
21
21
*/
22
-
description?: string;
22
+
description: string;
23
23
/**
24
24
* The date and time the API created the video. Date and time are provided using ISO-8601 UTC format.
25
25
*/
26
-
publishedAt?: string;
26
+
publishedAt: Date;
27
27
/**
28
28
* The date and time the video was updated. Date and time are provided using ISO-8601 UTC format.
29
29
*/
30
-
updatedAt?: Date;
30
+
updatedAt: Date;
31
+
/**
32
+
* The date and time the video was discarded. Date and time are provided using ISO-8601 UTC format.
33
+
*/
34
+
discardedAt?: Date;
35
+
/**
36
+
* The date and time the video will be permanently deleted. Date and time are provided using ISO-8601 UTC format.
37
+
*/
38
+
deletesAt?: Date;
39
+
/**
40
+
* Returns `true` for videos you discarded.
41
+
*/
42
+
discarded: boolean;
43
+
/**
44
+
* Returns the language of a video in [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
45
+
*/
46
+
language?: Intl.Locale;
47
+
/**
48
+
* Returns the origin of the last update on the video's `language` attribute.
49
+
*/
50
+
languageOrigin?: LanguageOrigin;
31
51
/**
32
52
* One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces.
33
53
*/
34
-
tags?: Array<string>;
54
+
tags: Array<string>;
35
55
/**
36
56
* 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.
37
57
*/
38
-
metadata?: Array<Metadata>;
39
-
source?: VideoSource;
40
-
assets?: VideoAssets;
58
+
metadata: Array<Metadata>;
59
+
source: VideoSource;
60
+
assets: VideoAssets;
41
61
/**
42
62
* The id of the player that will be applied on the video.
43
63
*/
44
64
playerId?: string;
45
65
/**
46
66
* Defines if the content is publicly reachable or if a unique token is needed for each play session.
47
67
*/
48
-
_public?: boolean;
68
+
_public: boolean;
49
69
/**
50
70
* Defines if video is panoramic.
51
71
*/
52
-
panoramic?: boolean;
72
+
panoramic: boolean;
53
73
/**
54
74
* This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.
0 commit comments