@axinom/mosaic-messages 0.30.0 → 0.31.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/generated/config/payloads/video/video-service-multi-tenant-messaging-settings.d.ts +3 -0
  2. package/dist/generated/config/payloads/video/video-service-multi-tenant-messaging-settings.d.ts.map +1 -1
  3. package/dist/generated/config/payloads/video/video-service-multi-tenant-messaging-settings.js +3 -0
  4. package/dist/generated/config/payloads/video/video-service-multi-tenant-messaging-settings.js.map +1 -1
  5. package/dist/generated/schemas/payloads/video/commands/import-custom-video-command.json +301 -0
  6. package/dist/generated/schemas/payloads/video/commands/index.d.ts +202 -0
  7. package/dist/generated/schemas/payloads/video/commands/index.d.ts.map +1 -1
  8. package/dist/generated/schemas/payloads/video/commands/index.js +3 -1
  9. package/dist/generated/schemas/payloads/video/commands/index.js.map +1 -1
  10. package/dist/generated/schemas/payloads/video/events/index.d.ts +58 -0
  11. package/dist/generated/schemas/payloads/video/events/index.d.ts.map +1 -1
  12. package/dist/generated/schemas/payloads/video/events/index.js +5 -1
  13. package/dist/generated/schemas/payloads/video/events/index.js.map +1 -1
  14. package/dist/generated/schemas/payloads/video/events/video-encoding-failed-event.json +38 -0
  15. package/dist/generated/schemas/payloads/video/events/video-encoding-finished-event.json +33 -0
  16. package/dist/generated/types/payloads/video/commands/import-custom-video-command.d.ts +88 -0
  17. package/dist/generated/types/payloads/video/commands/import-custom-video-command.d.ts.map +1 -0
  18. package/dist/generated/types/payloads/video/commands/import-custom-video-command.js +3 -0
  19. package/dist/generated/types/payloads/video/commands/import-custom-video-command.js.map +1 -0
  20. package/dist/generated/types/payloads/video/commands/index.d.ts +3 -0
  21. package/dist/generated/types/payloads/video/commands/index.d.ts.map +1 -1
  22. package/dist/generated/types/payloads/video/commands/index.js +3 -0
  23. package/dist/generated/types/payloads/video/commands/index.js.map +1 -1
  24. package/dist/generated/types/payloads/video/events/index.d.ts +6 -0
  25. package/dist/generated/types/payloads/video/events/index.d.ts.map +1 -1
  26. package/dist/generated/types/payloads/video/events/index.js +6 -0
  27. package/dist/generated/types/payloads/video/events/index.js.map +1 -1
  28. package/dist/generated/types/payloads/video/events/video-encoding-failed-event.d.ts +22 -0
  29. package/dist/generated/types/payloads/video/events/video-encoding-failed-event.d.ts.map +1 -0
  30. package/dist/generated/types/payloads/video/events/video-encoding-failed-event.js +3 -0
  31. package/dist/generated/types/payloads/video/events/video-encoding-failed-event.js.map +1 -0
  32. package/dist/generated/types/payloads/video/events/video-encoding-finished-event.d.ts +18 -0
  33. package/dist/generated/types/payloads/video/events/video-encoding-finished-event.d.ts.map +1 -0
  34. package/dist/generated/types/payloads/video/events/video-encoding-finished-event.js +3 -0
  35. package/dist/generated/types/payloads/video/events/video-encoding-finished-event.js.map +1 -0
  36. package/dist/generated/types/payloads/video/types/custom-video-stream.d.ts +76 -0
  37. package/dist/generated/types/payloads/video/types/custom-video-stream.d.ts.map +1 -0
  38. package/dist/generated/types/payloads/video/types/custom-video-stream.js +3 -0
  39. package/dist/generated/types/payloads/video/types/custom-video-stream.js.map +1 -0
  40. package/dist/generated/types/payloads/video/types/index.d.ts +1 -0
  41. package/dist/generated/types/payloads/video/types/index.d.ts.map +1 -1
  42. package/dist/generated/types/payloads/video/types/index.js +1 -0
  43. package/dist/generated/types/payloads/video/types/index.js.map +1 -1
  44. package/package.json +4 -4
  45. package/src/generated/config/payloads/video/video-service-multi-tenant-messaging-settings.ts +15 -0
  46. package/src/generated/schemas/payloads/video/commands/import-custom-video-command.json +301 -0
  47. package/src/generated/schemas/payloads/video/commands/index.ts +2 -0
  48. package/src/generated/schemas/payloads/video/events/index.ts +4 -0
  49. package/src/generated/schemas/payloads/video/events/video-encoding-failed-event.json +38 -0
  50. package/src/generated/schemas/payloads/video/events/video-encoding-finished-event.json +33 -0
  51. package/src/generated/types/payloads/video/commands/import-custom-video-command.ts +87 -0
  52. package/src/generated/types/payloads/video/commands/index.ts +3 -0
  53. package/src/generated/types/payloads/video/events/index.ts +6 -0
  54. package/src/generated/types/payloads/video/events/video-encoding-failed-event.ts +21 -0
  55. package/src/generated/types/payloads/video/events/video-encoding-finished-event.ts +17 -0
  56. package/src/generated/types/payloads/video/types/custom-video-stream.ts +75 -0
  57. package/src/generated/types/payloads/video/types/index.ts +1 -0
@@ -0,0 +1,301 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "import_custom_video_command",
5
+ "description": "Import custom video command schema.",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "title",
9
+ "source_location"
10
+ ],
11
+ "properties": {
12
+ "custom_id": {
13
+ "type": [
14
+ "string",
15
+ "null"
16
+ ],
17
+ "description": "An identifier for the custom video."
18
+ },
19
+ "title": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "pattern": "^$|.*\\S.*",
23
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
24
+ },
25
+ "is_protected": {
26
+ "type": "boolean",
27
+ "description": "Is video DRM-protected or not."
28
+ },
29
+ "source_file_name": {
30
+ "type": [
31
+ "string",
32
+ "null"
33
+ ],
34
+ "description": "Source file name of the custom video."
35
+ },
36
+ "source_file_extension": {
37
+ "type": [
38
+ "string",
39
+ "null"
40
+ ],
41
+ "description": "Source file extension of the custom video."
42
+ },
43
+ "source_location": {
44
+ "type": "string",
45
+ "minLength": 1,
46
+ "pattern": "^$|.*\\S.*",
47
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
48
+ },
49
+ "source_size_in_bytes": {
50
+ "type": [
51
+ "number",
52
+ "null"
53
+ ],
54
+ "description": "The combined size of all source video, audio, and subtitle files."
55
+ },
56
+ "audio_languages": {
57
+ "type": "array",
58
+ "description": "An array of audio language values.",
59
+ "uniqueItems": true,
60
+ "additionalItems": false,
61
+ "items": {
62
+ "type": "string",
63
+ "description": "An audio language value."
64
+ }
65
+ },
66
+ "subtitle_languages": {
67
+ "type": "array",
68
+ "description": "An array of subtitle language values.",
69
+ "uniqueItems": true,
70
+ "additionalItems": false,
71
+ "items": {
72
+ "type": "string",
73
+ "description": "A subtitle language value."
74
+ }
75
+ },
76
+ "caption_languages": {
77
+ "type": "array",
78
+ "description": "An array of closed caption language values.",
79
+ "uniqueItems": true,
80
+ "additionalItems": false,
81
+ "items": {
82
+ "type": "string",
83
+ "description": "A closed caption language value."
84
+ }
85
+ },
86
+ "video_bitrates": {
87
+ "type": "array",
88
+ "description": "An array of video bitrate values.",
89
+ "uniqueItems": true,
90
+ "additionalItems": false,
91
+ "items": {
92
+ "type": "number",
93
+ "description": "A video bitrate value in kilobits per second."
94
+ }
95
+ },
96
+ "hls_size_in_bytes": {
97
+ "type": [
98
+ "number",
99
+ "null"
100
+ ],
101
+ "description": "HLS output size in bytes."
102
+ },
103
+ "dash_size_in_bytes": {
104
+ "type": [
105
+ "number",
106
+ "null"
107
+ ],
108
+ "description": "DASH output size in bytes."
109
+ },
110
+ "cmaf_size_in_bytes": {
111
+ "type": [
112
+ "number",
113
+ "null"
114
+ ],
115
+ "description": "CMAF output size in bytes."
116
+ },
117
+ "hls_manifest_path": {
118
+ "type": [
119
+ "string",
120
+ "null"
121
+ ],
122
+ "description": "Path to the HLS manifest in the output storage."
123
+ },
124
+ "dash_manifest_path": {
125
+ "type": [
126
+ "string",
127
+ "null"
128
+ ],
129
+ "description": "Path to the DASH manifest in the output storage."
130
+ },
131
+ "length_in_seconds": {
132
+ "type": [
133
+ "number",
134
+ "null"
135
+ ],
136
+ "description": "Video length in seconds."
137
+ },
138
+ "finished_date": {
139
+ "type": [
140
+ "string",
141
+ "null"
142
+ ],
143
+ "description": "ISO 8601 Datetime when the encoding finished."
144
+ },
145
+ "output_format": {
146
+ "type": "string",
147
+ "title": "output_format",
148
+ "enum": [
149
+ "HLS",
150
+ "DASH",
151
+ "DASH_HLS",
152
+ "CMAF",
153
+ "DASH_ON_DEMAND"
154
+ ],
155
+ "description": "Output format."
156
+ },
157
+ "video_streams": {
158
+ "type": "array",
159
+ "description": "An array of video stream objects.",
160
+ "additionalItems": false,
161
+ "items": {
162
+ "type": "object",
163
+ "title": "custom_video_stream",
164
+ "description": "Information about a video stream.",
165
+ "additionalProperties": false,
166
+ "required": [
167
+ "label",
168
+ "format",
169
+ "type"
170
+ ],
171
+ "properties": {
172
+ "label": {
173
+ "type": "string",
174
+ "description": "Stream label for grouping streams by the same quality level: audio, sd, hd, uhd1, uhd2."
175
+ },
176
+ "format": {
177
+ "type": "string",
178
+ "title": "output_format",
179
+ "enum": [
180
+ "HLS",
181
+ "DASH",
182
+ "DASH_HLS",
183
+ "CMAF",
184
+ "DASH_ON_DEMAND"
185
+ ],
186
+ "description": "Output format."
187
+ },
188
+ "type": {
189
+ "type": "string",
190
+ "title": "video_stream_type",
191
+ "enum": [
192
+ "VIDEO",
193
+ "AUDIO",
194
+ "SUBTITLE",
195
+ "CLOSED_CAPTION"
196
+ ],
197
+ "description": "Stream type"
198
+ },
199
+ "file": {
200
+ "type": [
201
+ "string",
202
+ "null"
203
+ ],
204
+ "description": "File path to the initialization segment."
205
+ },
206
+ "key_id": {
207
+ "type": [
208
+ "string",
209
+ "null"
210
+ ],
211
+ "description": "Key ID."
212
+ },
213
+ "iv": {
214
+ "type": [
215
+ "string",
216
+ "null"
217
+ ],
218
+ "description": "IV."
219
+ },
220
+ "bitrate_in_kbps": {
221
+ "type": [
222
+ "number",
223
+ "null"
224
+ ],
225
+ "description": "Bitrate in kilobits per second."
226
+ },
227
+ "file_template": {
228
+ "type": [
229
+ "string",
230
+ "null"
231
+ ],
232
+ "description": "File Template."
233
+ },
234
+ "codecs": {
235
+ "type": [
236
+ "string",
237
+ "null"
238
+ ],
239
+ "description": "The used codec like H.264 (AVC), H.265 (HEVC), AAC, ..."
240
+ },
241
+ "frame_rate": {
242
+ "type": [
243
+ "number",
244
+ "null"
245
+ ],
246
+ "description": "Frames per second of the video stream."
247
+ },
248
+ "height": {
249
+ "type": [
250
+ "integer",
251
+ "null"
252
+ ],
253
+ "description": "Height in pixels of the video stream."
254
+ },
255
+ "width": {
256
+ "type": [
257
+ "integer",
258
+ "null"
259
+ ],
260
+ "description": "Width in pixels of the video stream."
261
+ },
262
+ "display_aspect_ratio": {
263
+ "type": [
264
+ "string",
265
+ "null"
266
+ ],
267
+ "description": "The proportional relationship between the width and the height of how to display the video like 16:9, 4:3, 3:2, ..."
268
+ },
269
+ "pixel_aspect_ratio": {
270
+ "type": [
271
+ "string",
272
+ "null"
273
+ ],
274
+ "description": "This ratio describes how the width of a pixel compares to the height of that pixel e.g. 1:1. But pixels are not always square."
275
+ },
276
+ "sampling_rate": {
277
+ "type": [
278
+ "integer",
279
+ "null"
280
+ ],
281
+ "description": "The average number of samples in one second for audio streams."
282
+ },
283
+ "language_code": {
284
+ "type": [
285
+ "string",
286
+ "null"
287
+ ],
288
+ "description": "Language code for for audio, subtitle, or caption streams."
289
+ },
290
+ "language_name": {
291
+ "type": [
292
+ "string",
293
+ "null"
294
+ ],
295
+ "description": "Language name for audio, subtitle, or caption streams."
296
+ }
297
+ }
298
+ }
299
+ }
300
+ }
301
+ }
@@ -1,6 +1,7 @@
1
1
  import * as ArchiveVideosCommand from './archive-videos-command.json';
2
2
  import * as DeclareCuePointTypesCommand from './declare-cue-point-types-command.json';
3
3
  import * as EnsureVideoExistsCommand from './ensure-video-exists-command.json';
4
+ import * as ImportCustomVideoCommand from './import-custom-video-command.json';
4
5
  import * as UnarchiveVideosCommand from './unarchive-videos-command.json';
5
6
  import * as VideoServiceDisableCommand from './video-service-disable-command.json';
6
7
  import * as VideoServiceEnableCommand from './video-service-enable-command.json';
@@ -8,6 +9,7 @@ import * as VideoServiceEnableCommand from './video-service-enable-command.json'
8
9
  export const ArchiveVideosCommandSchema = ArchiveVideosCommand;
9
10
  export const DeclareCuePointTypesCommandSchema = DeclareCuePointTypesCommand;
10
11
  export const EnsureVideoExistsCommandSchema = EnsureVideoExistsCommand;
12
+ export const ImportCustomVideoCommandSchema = ImportCustomVideoCommand;
11
13
  export const UnarchiveVideosCommandSchema = UnarchiveVideosCommand;
12
14
  export const VideoServiceDisableCommandSchema = VideoServiceDisableCommand;
13
15
  export const VideoServiceEnableCommandSchema = VideoServiceEnableCommand;
@@ -5,6 +5,8 @@ import * as EnsureVideoExistsAlreadyExistedEvent from './ensure-video-exists-alr
5
5
  import * as EnsureVideoExistsCreationStartedEvent from './ensure-video-exists-creation-started-event.json';
6
6
  import * as EnsureVideoExistsFailedEvent from './ensure-video-exists-failed-event.json';
7
7
  import * as UnarchiveVideosFinishedEvent from './unarchive-videos-finished-event.json';
8
+ import * as VideoEncodingFailedEvent from './video-encoding-failed-event.json';
9
+ import * as VideoEncodingFinishedEvent from './video-encoding-finished-event.json';
8
10
  import * as VideoServiceDisableFailedEvent from './video-service-disable-failed-event.json';
9
11
  import * as VideoServiceDisableFinishedEvent from './video-service-disable-finished-event.json';
10
12
  import * as VideoServiceEnableFailedEvent from './video-service-enable-failed-event.json';
@@ -17,6 +19,8 @@ export const EnsureVideoExistsAlreadyExistedEventSchema = EnsureVideoExistsAlrea
17
19
  export const EnsureVideoExistsCreationStartedEventSchema = EnsureVideoExistsCreationStartedEvent;
18
20
  export const EnsureVideoExistsFailedEventSchema = EnsureVideoExistsFailedEvent;
19
21
  export const UnarchiveVideosFinishedEventSchema = UnarchiveVideosFinishedEvent;
22
+ export const VideoEncodingFailedEventSchema = VideoEncodingFailedEvent;
23
+ export const VideoEncodingFinishedEventSchema = VideoEncodingFinishedEvent;
20
24
  export const VideoServiceDisableFailedEventSchema = VideoServiceDisableFailedEvent;
21
25
  export const VideoServiceDisableFinishedEventSchema = VideoServiceDisableFinishedEvent;
22
26
  export const VideoServiceEnableFailedEventSchema = VideoServiceEnableFailedEvent;
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "video_encoding_failed_event",
5
+ "description": "Video encoding failed event schema.",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "video_id",
9
+ "source_location",
10
+ "message"
11
+ ],
12
+ "properties": {
13
+ "video_id": {
14
+ "type": "string",
15
+ "minLength": 32,
16
+ "maxLength": 36,
17
+ "format": "uuid",
18
+ "description": "A UUID."
19
+ },
20
+ "custom_id": {
21
+ "type": [
22
+ "string",
23
+ "null"
24
+ ],
25
+ "description": "An identifier for a custom video."
26
+ },
27
+ "source_location": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "pattern": "^$|.*\\S.*",
31
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
32
+ },
33
+ "message": {
34
+ "type": "string",
35
+ "description": "Message that describes the reason for video encoding failure."
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "title": "video_encoding_finished_event",
5
+ "description": "Video encoding finished event schema.",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "video_id",
9
+ "source_location"
10
+ ],
11
+ "properties": {
12
+ "video_id": {
13
+ "type": "string",
14
+ "minLength": 32,
15
+ "maxLength": 36,
16
+ "format": "uuid",
17
+ "description": "A UUID."
18
+ },
19
+ "custom_id": {
20
+ "type": [
21
+ "string",
22
+ "null"
23
+ ],
24
+ "description": "An identifier for a custom video."
25
+ },
26
+ "source_location": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "pattern": "^$|.*\\S.*",
30
+ "description": "The string has a minimum length of one character and it cannot consist of only whitespace characters."
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,87 @@
1
+ import { CustomVideoStream } from '../types/custom-video-stream';
2
+ import { OutputFormat } from '../types/output-format';
3
+ /**
4
+ * Import custom video command schema.
5
+ */
6
+ export interface ImportCustomVideoCommand {
7
+ /**
8
+ * An identifier for the custom video.
9
+ */
10
+ custom_id?: string | null;
11
+ /**
12
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
13
+ */
14
+ title: string;
15
+ /**
16
+ * Is video DRM-protected or not.
17
+ */
18
+ is_protected?: boolean;
19
+ /**
20
+ * Source file name of the custom video.
21
+ */
22
+ source_file_name?: string | null;
23
+ /**
24
+ * Source file extension of the custom video.
25
+ */
26
+ source_file_extension?: string | null;
27
+ /**
28
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
29
+ */
30
+ source_location: string;
31
+ /**
32
+ * The combined size of all source video, audio, and subtitle files.
33
+ */
34
+ source_size_in_bytes?: number | null;
35
+ /**
36
+ * An array of audio language values.
37
+ */
38
+ audio_languages?: string[];
39
+ /**
40
+ * An array of subtitle language values.
41
+ */
42
+ subtitle_languages?: string[];
43
+ /**
44
+ * An array of closed caption language values.
45
+ */
46
+ caption_languages?: string[];
47
+ /**
48
+ * An array of video bitrate values.
49
+ */
50
+ video_bitrates?: number[];
51
+ /**
52
+ * HLS output size in bytes.
53
+ */
54
+ hls_size_in_bytes?: number | null;
55
+ /**
56
+ * DASH output size in bytes.
57
+ */
58
+ dash_size_in_bytes?: number | null;
59
+ /**
60
+ * CMAF output size in bytes.
61
+ */
62
+ cmaf_size_in_bytes?: number | null;
63
+ /**
64
+ * Path to the HLS manifest in the output storage.
65
+ */
66
+ hls_manifest_path?: string | null;
67
+ /**
68
+ * Path to the DASH manifest in the output storage.
69
+ */
70
+ dash_manifest_path?: string | null;
71
+ /**
72
+ * Video length in seconds.
73
+ */
74
+ length_in_seconds?: number | null;
75
+ /**
76
+ * ISO 8601 Datetime when the encoding finished.
77
+ */
78
+ finished_date?: string | null;
79
+ /**
80
+ * Output format.
81
+ */
82
+ output_format?: OutputFormat;
83
+ /**
84
+ * An array of video stream objects.
85
+ */
86
+ video_streams?: CustomVideoStream[];
87
+ }
@@ -1,6 +1,7 @@
1
1
  export * from './archive-videos-command';
2
2
  export * from './declare-cue-point-types-command';
3
3
  export * from './ensure-video-exists-command';
4
+ export * from './import-custom-video-command';
4
5
  export * from './unarchive-videos-command';
5
6
  export * from './video-service-disable-command';
6
7
  export * from './video-service-enable-command';
@@ -9,6 +10,7 @@ export enum VideoCommandsSchemas {
9
10
  ArchiveVideosCommand = 'payloads/video/commands/archive-videos-command.json',
10
11
  DeclareCuePointTypesCommand = 'payloads/video/commands/declare-cue-point-types-command.json',
11
12
  EnsureVideoExistsCommand = 'payloads/video/commands/ensure-video-exists-command.json',
13
+ ImportCustomVideoCommand = 'payloads/video/commands/import-custom-video-command.json',
12
14
  UnarchiveVideosCommand = 'payloads/video/commands/unarchive-videos-command.json',
13
15
  VideoServiceDisableCommand = 'payloads/video/commands/video-service-disable-command.json',
14
16
  VideoServiceEnableCommand = 'payloads/video/commands/video-service-enable-command.json'
@@ -18,6 +20,7 @@ export enum VideoCommandsTypes {
18
20
  ArchiveVideosCommand = 'ArchiveVideosCommand',
19
21
  DeclareCuePointTypesCommand = 'DeclareCuePointTypesCommand',
20
22
  EnsureVideoExistsCommand = 'EnsureVideoExistsCommand',
23
+ ImportCustomVideoCommand = 'ImportCustomVideoCommand',
21
24
  UnarchiveVideosCommand = 'UnarchiveVideosCommand',
22
25
  VideoServiceDisableCommand = 'VideoServiceDisableCommand',
23
26
  VideoServiceEnableCommand = 'VideoServiceEnableCommand'
@@ -5,6 +5,8 @@ export * from './ensure-video-exists-already-existed-event';
5
5
  export * from './ensure-video-exists-creation-started-event';
6
6
  export * from './ensure-video-exists-failed-event';
7
7
  export * from './unarchive-videos-finished-event';
8
+ export * from './video-encoding-failed-event';
9
+ export * from './video-encoding-finished-event';
8
10
  export * from './video-service-disable-failed-event';
9
11
  export * from './video-service-disable-finished-event';
10
12
  export * from './video-service-enable-failed-event';
@@ -18,6 +20,8 @@ export enum VideoEventsSchemas {
18
20
  EnsureVideoExistsCreationStartedEvent = 'payloads/video/events/ensure-video-exists-creation-started-event.json',
19
21
  EnsureVideoExistsFailedEvent = 'payloads/video/events/ensure-video-exists-failed-event.json',
20
22
  UnarchiveVideosFinishedEvent = 'payloads/video/events/unarchive-videos-finished-event.json',
23
+ VideoEncodingFailedEvent = 'payloads/video/events/video-encoding-failed-event.json',
24
+ VideoEncodingFinishedEvent = 'payloads/video/events/video-encoding-finished-event.json',
21
25
  VideoServiceDisableFailedEvent = 'payloads/video/events/video-service-disable-failed-event.json',
22
26
  VideoServiceDisableFinishedEvent = 'payloads/video/events/video-service-disable-finished-event.json',
23
27
  VideoServiceEnableFailedEvent = 'payloads/video/events/video-service-enable-failed-event.json',
@@ -32,6 +36,8 @@ export enum VideoEventsTypes {
32
36
  EnsureVideoExistsCreationStartedEvent = 'EnsureVideoExistsCreationStartedEvent',
33
37
  EnsureVideoExistsFailedEvent = 'EnsureVideoExistsFailedEvent',
34
38
  UnarchiveVideosFinishedEvent = 'UnarchiveVideosFinishedEvent',
39
+ VideoEncodingFailedEvent = 'VideoEncodingFailedEvent',
40
+ VideoEncodingFinishedEvent = 'VideoEncodingFinishedEvent',
35
41
  VideoServiceDisableFailedEvent = 'VideoServiceDisableFailedEvent',
36
42
  VideoServiceDisableFinishedEvent = 'VideoServiceDisableFinishedEvent',
37
43
  VideoServiceEnableFailedEvent = 'VideoServiceEnableFailedEvent',
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Video encoding failed event schema.
3
+ */
4
+ export interface VideoEncodingFailedEvent {
5
+ /**
6
+ * A UUID.
7
+ */
8
+ video_id: string;
9
+ /**
10
+ * An identifier for a custom video.
11
+ */
12
+ custom_id?: string | null;
13
+ /**
14
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
15
+ */
16
+ source_location: string;
17
+ /**
18
+ * Message that describes the reason for video encoding failure.
19
+ */
20
+ message: string;
21
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Video encoding finished event schema.
3
+ */
4
+ export interface VideoEncodingFinishedEvent {
5
+ /**
6
+ * A UUID.
7
+ */
8
+ video_id: string;
9
+ /**
10
+ * An identifier for a custom video.
11
+ */
12
+ custom_id?: string | null;
13
+ /**
14
+ * The string has a minimum length of one character and it cannot consist of only whitespace characters.
15
+ */
16
+ source_location: string;
17
+ }
@@ -0,0 +1,75 @@
1
+ import { OutputFormat } from './output-format';
2
+ import { VideoStreamType } from './video-stream-type';
3
+ /**
4
+ * Information about a video stream.
5
+ */
6
+ export interface CustomVideoStream {
7
+ /**
8
+ * Stream label for grouping streams by the same quality level: audio, sd, hd, uhd1, uhd2.
9
+ */
10
+ label: string;
11
+ /**
12
+ * Output format.
13
+ */
14
+ format: OutputFormat;
15
+ /**
16
+ * Stream type
17
+ */
18
+ type: VideoStreamType;
19
+ /**
20
+ * File path to the initialization segment.
21
+ */
22
+ file?: string | null;
23
+ /**
24
+ * Key ID.
25
+ */
26
+ key_id?: string | null;
27
+ /**
28
+ * IV.
29
+ */
30
+ iv?: string | null;
31
+ /**
32
+ * Bitrate in kilobits per second.
33
+ */
34
+ bitrate_in_kbps?: number | null;
35
+ /**
36
+ * File Template.
37
+ */
38
+ file_template?: string | null;
39
+ /**
40
+ * The used codec like H.264 (AVC), H.265 (HEVC), AAC, ...
41
+ */
42
+ codecs?: string | null;
43
+ /**
44
+ * Frames per second of the video stream.
45
+ */
46
+ frame_rate?: number | null;
47
+ /**
48
+ * Height in pixels of the video stream.
49
+ */
50
+ height?: number | null;
51
+ /**
52
+ * Width in pixels of the video stream.
53
+ */
54
+ width?: number | null;
55
+ /**
56
+ * The proportional relationship between the width and the height of how to display the video like 16:9, 4:3, 3:2, ...
57
+ */
58
+ display_aspect_ratio?: string | null;
59
+ /**
60
+ * This ratio describes how the width of a pixel compares to the height of that pixel e.g. 1:1. But pixels are not always square.
61
+ */
62
+ pixel_aspect_ratio?: string | null;
63
+ /**
64
+ * The average number of samples in one second for audio streams.
65
+ */
66
+ sampling_rate?: number | null;
67
+ /**
68
+ * Language code for for audio, subtitle, or caption streams.
69
+ */
70
+ language_code?: string | null;
71
+ /**
72
+ * Language name for audio, subtitle, or caption streams.
73
+ */
74
+ language_name?: string | null;
75
+ }
@@ -1,4 +1,5 @@
1
1
  export * from './cue-point-type';
2
+ export * from './custom-video-stream';
2
3
  export * from './encoding-messages';
3
4
  export * from './encoding-state';
4
5
  export * from './entitlement-webhook-response-payload';