@byomakase/omakase-react-components 0.0.1-SNAPSHOT.1743070950
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.
- package/LICENSE +204 -0
- package/README.md +3 -0
- package/dist/index.cjs.js +213 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.es.d.ts +2 -0
- package/dist/index.es.js +3959 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +213 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/omakase-react-components.css +1 -0
- package/dist/react/omakase-components/src/components/OmakaseMarkerListComponent/OmakaseMarkerListComponent.d.ts +10 -0
- package/dist/react/omakase-components/src/components/OmakaseMarkerListComponent/index.d.ts +1 -0
- package/dist/react/omakase-components/src/components/OmakasePlayerComponent/OmakasePlayerComponent.d.ts +12 -0
- package/dist/react/omakase-components/src/components/OmakasePlayerComponent/OmakasePlayerHotKeyHandler.d.ts +5 -0
- package/dist/react/omakase-components/src/components/OmakasePlayerComponent/index.d.ts +1 -0
- package/dist/react/omakase-components/src/components/OmakasePlayerTimelineComponent/OmakasePlayerTimelineComponent.d.ts +9 -0
- package/dist/react/omakase-components/src/components/OmakasePlayerTimelineComponent/OmaksePlayerTimelineBuilder.d.ts +21 -0
- package/dist/react/omakase-components/src/components/OmakasePlayerTimelineComponent/index.d.ts +2 -0
- package/dist/react/omakase-components/src/components/OmakasePlayerTimelineControlsToolbar/OmakaseButton.d.ts +12 -0
- package/dist/react/omakase-components/src/components/OmakasePlayerTimelineControlsToolbar/OmakasePlayerTimelineControlsToolbar.d.ts +25 -0
- package/dist/react/omakase-components/src/components/OmakasePlayerTimelineControlsToolbar/index.d.ts +1 -0
- package/dist/react/omakase-components/src/components/OmakaseTamsPlayerComponent/OmakaseTamsPlayerComponent.d.ts +17 -0
- package/dist/react/omakase-components/src/components/OmakaseTamsPlayerComponent/index.d.ts +1 -0
- package/dist/react/omakase-components/src/components/OmakaseTamsPlayerComponent/virtual-manifest/m3u8-exporter.d.ts +2 -0
- package/dist/react/omakase-components/src/components/OmakaseTamsPlayerComponent/virtual-manifest/m3u8.d.ts +79 -0
- package/dist/react/omakase-components/src/components/OmakaseTamsPlayerComponent/virtual-manifest/m3u8.model.d.ts +127 -0
- package/dist/react/omakase-components/src/components/OmakaseTimeRangePicker/OmakaseTimeRangePicker.d.ts +11 -0
- package/dist/react/omakase-components/src/components/OmakaseTimeRangePicker/index.d.ts +1 -0
- package/dist/react/omakase-components/src/components/index.d.ts +7 -0
- package/dist/react/omakase-components/src/icons/Back3Icon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/DeleteMarkerIcon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/Forward3Icon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/LeftBracketIcon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/LeftDoubleBracketIcon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/LeftMarkerIcon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/PlusIcon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/RefreshIcon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/RightBracketIcon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/RightDoubleBracketIcon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/RightMarkerIcon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/SplitMarkerIcon.d.ts +3 -0
- package/dist/react/omakase-components/src/icons/index.d.ts +1 -0
- package/dist/react/omakase-components/src/index.d.ts +3 -0
- package/dist/react/omakase-components/src/types/tams/index.d.ts +1 -0
- package/dist/react/omakase-components/src/types/tams/model/audio-codec-parameters.d.ts +19 -0
- package/dist/react/omakase-components/src/types/tams/model/audio-flow-essence-parameters.d.ts +21 -0
- package/dist/react/omakase-components/src/types/tams/model/audio-flow.d.ts +104 -0
- package/dist/react/omakase-components/src/types/tams/model/avc-codec-parameters.d.ts +23 -0
- package/dist/react/omakase-components/src/types/tams/model/collection-item.d.ts +15 -0
- package/dist/react/omakase-components/src/types/tams/model/container-mapping-audio-track.d.ts +22 -0
- package/dist/react/omakase-components/src/types/tams/model/container-mapping-isobmff-container.d.ts +18 -0
- package/dist/react/omakase-components/src/types/tams/model/container-mapping-mp2ts-container.d.ts +18 -0
- package/dist/react/omakase-components/src/types/tams/model/container-mapping-mxf-container.d.ts +22 -0
- package/dist/react/omakase-components/src/types/tams/model/container-mapping.d.ts +21 -0
- package/dist/react/omakase-components/src/types/tams/model/container-mapping1.d.ts +21 -0
- package/dist/react/omakase-components/src/types/tams/model/contentformat.d.ts +19 -0
- package/dist/react/omakase-components/src/types/tams/model/data-flow-essence-parameters.d.ts +18 -0
- package/dist/react/omakase-components/src/types/tams/model/data-flow.d.ts +104 -0
- package/dist/react/omakase-components/src/types/tams/model/deletion-request-error.d.ts +30 -0
- package/dist/react/omakase-components/src/types/tams/model/deletion-request.d.ts +56 -0
- package/dist/react/omakase-components/src/types/tams/model/event-stream-mechanism.d.ts +26 -0
- package/dist/react/omakase-components/src/types/tams/model/flow-core-segment-duration.d.ts +22 -0
- package/dist/react/omakase-components/src/types/tams/model/flow-segment-get-urls-inner.d.ts +19 -0
- package/dist/react/omakase-components/src/types/tams/model/flow-segment.d.ts +38 -0
- package/dist/react/omakase-components/src/types/tams/model/flow-segment1.d.ts +38 -0
- package/dist/react/omakase-components/src/types/tams/model/flow-storage-post.d.ts +18 -0
- package/dist/react/omakase-components/src/types/tams/model/flow.d.ts +14 -0
- package/dist/react/omakase-components/src/types/tams/model/http-request.d.ts +32 -0
- package/dist/react/omakase-components/src/types/tams/model/image-flow-essence-parameters.d.ts +19 -0
- package/dist/react/omakase-components/src/types/tams/model/image-flow.d.ts +104 -0
- package/dist/react/omakase-components/src/types/tams/model/media-bucket-object-store-media-objects-inner.d.ts +12 -0
- package/dist/react/omakase-components/src/types/tams/model/media-bucket-object-store-pre-inner.d.ts +19 -0
- package/dist/react/omakase-components/src/types/tams/model/media-bucket-object-store.d.ts +16 -0
- package/dist/react/omakase-components/src/types/tams/model/models.d.ts +41 -0
- package/dist/react/omakase-components/src/types/tams/model/multi-essence-flow.d.ts +102 -0
- package/dist/react/omakase-components/src/types/tams/model/register-webhook.d.ts +50 -0
- package/dist/react/omakase-components/src/types/tams/model/register-webhook1.d.ts +50 -0
- package/dist/react/omakase-components/src/types/tams/model/service-media-store.d.ts +24 -0
- package/dist/react/omakase-components/src/types/tams/model/service.d.ts +32 -0
- package/dist/react/omakase-components/src/types/tams/model/source.d.ts +61 -0
- package/dist/react/omakase-components/src/types/tams/model/uncompressed-audio-parameters.d.ts +23 -0
- package/dist/react/omakase-components/src/types/tams/model/uncompressed-video-parameters.d.ts +36 -0
- package/dist/react/omakase-components/src/types/tams/model/update-service-info.d.ts +22 -0
- package/dist/react/omakase-components/src/types/tams/model/video-flow-essence-parameters-aspect-ratio.d.ts +22 -0
- package/dist/react/omakase-components/src/types/tams/model/video-flow-essence-parameters-frame-rate.d.ts +22 -0
- package/dist/react/omakase-components/src/types/tams/model/video-flow-essence-parameters-pixel-aspect-ratio.d.ts +22 -0
- package/dist/react/omakase-components/src/types/tams/model/video-flow-essence-parameters.d.ts +78 -0
- package/dist/react/omakase-components/src/types/tams/model/video-flow.d.ts +104 -0
- package/dist/react/omakase-components/src/types/user-agent.d.ts +2 -0
- package/dist/react/omakase-components/src/util/array-util.d.ts +3 -0
- package/dist/react/omakase-components/src/util/blob-util.d.ts +7 -0
- package/dist/react/omakase-components/src/util/color-util.d.ts +21 -0
- package/dist/react/omakase-components/src/util/crypto-util.d.ts +3 -0
- package/dist/react/omakase-components/src/util/frame-rate-util.d.ts +3 -0
- package/dist/react/omakase-components/src/util/object-util.d.ts +1 -0
- package/dist/react/omakase-components/src/util/player-util.d.ts +3 -0
- package/dist/react/omakase-components/src/util/rxjs-util.d.ts +2 -0
- package/dist/react/omakase-components/src/util/string-util.d.ts +9 -0
- package/dist/react/omakase-components/src/util/time-range-util.d.ts +38 -0
- package/dist/react/omakase-components/src/util/timecode-util.d.ts +10 -0
- package/dist/react/omakase-components/src/util/window-util.d.ts +6 -0
- package/dist/react/omakase-components/vite.config.d.ts +2 -0
- package/package.json +32 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Mapping for channels in audio tracks to the Flow channels
|
|
12
|
+
*/
|
|
13
|
+
export interface ContainerMappingAudioTrack {
|
|
14
|
+
/**
|
|
15
|
+
* Array of (zero-based) container channel numbers in Flow order
|
|
16
|
+
*/
|
|
17
|
+
channel_numbers?: Array<number>;
|
|
18
|
+
/**
|
|
19
|
+
* Inclusive range of (zero-based) container channel numbers
|
|
20
|
+
*/
|
|
21
|
+
channel_range?: string;
|
|
22
|
+
}
|
package/dist/react/omakase-components/src/types/tams/model/container-mapping-isobmff-container.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Mapping to ISO Base Media File Format (e.g. MP4 and MOV) containers, ISO/IEC 14496-12
|
|
12
|
+
*/
|
|
13
|
+
export interface ContainerMappingIsobmffContainer {
|
|
14
|
+
/**
|
|
15
|
+
* The track ID
|
|
16
|
+
*/
|
|
17
|
+
track_id?: number;
|
|
18
|
+
}
|
package/dist/react/omakase-components/src/types/tams/model/container-mapping-mp2ts-container.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Mapping to MPEG-2 Transport Stream containers, ISO/IEC 13818-1 or ITU-T Recommendation H.222.0
|
|
12
|
+
*/
|
|
13
|
+
export interface ContainerMappingMp2tsContainer {
|
|
14
|
+
/**
|
|
15
|
+
* The packet ID for the elementary stream packets
|
|
16
|
+
*/
|
|
17
|
+
pid?: number;
|
|
18
|
+
}
|
package/dist/react/omakase-components/src/types/tams/model/container-mapping-mxf-container.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Mapping to Material Exchange Format containers, SMPTE ST 377-1
|
|
12
|
+
*/
|
|
13
|
+
export interface ContainerMappingMxfContainer {
|
|
14
|
+
/**
|
|
15
|
+
* The package UID. Either a SMPTE UMID URN or UUID URN
|
|
16
|
+
*/
|
|
17
|
+
package_uid?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The track ID in the package
|
|
20
|
+
*/
|
|
21
|
+
track_id?: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ContainerMappingAudioTrack } from './container-mapping-audio-track';
|
|
2
|
+
import { ContainerMappingMxfContainer } from './container-mapping-mxf-container';
|
|
3
|
+
import { ContainerMappingMp2tsContainer } from './container-mapping-mp2ts-container';
|
|
4
|
+
import { ContainerMappingIsobmffContainer } from './container-mapping-isobmff-container';
|
|
5
|
+
/**
|
|
6
|
+
* Describes the mapping of the Flow essence from this Flow collection\'s container
|
|
7
|
+
*/
|
|
8
|
+
export interface ContainerMapping {
|
|
9
|
+
/**
|
|
10
|
+
* A zero-based and sequential track index in the container. This assumes a reliable ordering of tracks
|
|
11
|
+
*/
|
|
12
|
+
track_index?: number;
|
|
13
|
+
/**
|
|
14
|
+
* A zero-based and sequential track index in the container for a particular Flow format. A container with a video and 2 audio tracks would have a format_track_index 0 for the video Flow and format_track_index 0 and 1 for the audio Flows. This assumes a reliable ordering of tracks for each Flow format
|
|
15
|
+
*/
|
|
16
|
+
format_track_index?: number;
|
|
17
|
+
audio_track?: ContainerMappingAudioTrack;
|
|
18
|
+
mp2ts_container?: ContainerMappingMp2tsContainer;
|
|
19
|
+
mxf_container?: ContainerMappingMxfContainer;
|
|
20
|
+
isobmff_container?: ContainerMappingIsobmffContainer;
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ContainerMappingAudioTrack } from './container-mapping-audio-track';
|
|
2
|
+
import { ContainerMappingMxfContainer } from './container-mapping-mxf-container';
|
|
3
|
+
import { ContainerMappingMp2tsContainer } from './container-mapping-mp2ts-container';
|
|
4
|
+
import { ContainerMappingIsobmffContainer } from './container-mapping-isobmff-container';
|
|
5
|
+
/**
|
|
6
|
+
* Describes the mapping of the Flow essence from the this Flow\'s container
|
|
7
|
+
*/
|
|
8
|
+
export interface ContainerMapping1 {
|
|
9
|
+
/**
|
|
10
|
+
* A zero-based and sequential track index in the container. This assumes a reliable ordering of tracks
|
|
11
|
+
*/
|
|
12
|
+
track_index?: number;
|
|
13
|
+
/**
|
|
14
|
+
* A zero-based and sequential track index in the container for a particular Flow format. A container with a video and 2 audio tracks would have a format_track_index 0 for the video Flow and format_track_index 0 and 1 for the audio Flows. This assumes a reliable ordering of tracks for each Flow format
|
|
15
|
+
*/
|
|
16
|
+
format_track_index?: number;
|
|
17
|
+
audio_track?: ContainerMappingAudioTrack;
|
|
18
|
+
mp2ts_container?: ContainerMappingMp2tsContainer;
|
|
19
|
+
mxf_container?: ContainerMappingMxfContainer;
|
|
20
|
+
isobmff_container?: ContainerMappingIsobmffContainer;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Identifies the content format for a flow or source using a URN string.
|
|
12
|
+
*/
|
|
13
|
+
export type Contentformat = 'urn:x-nmos:format:video' | 'urn:x-nmos:format:audio' | 'urn:x-nmos:format:data' | 'urn:x-nmos:format:multi';
|
|
14
|
+
export declare const Contentformat: {
|
|
15
|
+
Video: Contentformat;
|
|
16
|
+
Audio: Contentformat;
|
|
17
|
+
Data: Contentformat;
|
|
18
|
+
Multi: Contentformat;
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Describes the parameters of the essence inside this data Flow
|
|
12
|
+
*/
|
|
13
|
+
export interface DataFlowEssenceParameters {
|
|
14
|
+
/**
|
|
15
|
+
* The type of information encoded in the flow, identified using a URN. e.g. The data_type may be urn:x-tams:data:bounding-box, and the codec `application/json`.
|
|
16
|
+
*/
|
|
17
|
+
data_type?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { FlowCoreSegmentDuration } from './flow-core-segment-duration';
|
|
2
|
+
import { ContainerMapping1 } from './container-mapping1';
|
|
3
|
+
import { CollectionItem } from './collection-item';
|
|
4
|
+
import { DataFlowEssenceParameters } from './data-flow-essence-parameters';
|
|
5
|
+
/**
|
|
6
|
+
* Describes a data Flow
|
|
7
|
+
*/
|
|
8
|
+
export interface DataFlow {
|
|
9
|
+
/**
|
|
10
|
+
* Flow identifier
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Source identifier
|
|
15
|
+
*/
|
|
16
|
+
source_id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Freeform string label for the flow
|
|
19
|
+
*/
|
|
20
|
+
label?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Freeform text describing the flow
|
|
23
|
+
*/
|
|
24
|
+
description?: string;
|
|
25
|
+
/**
|
|
26
|
+
* A string identifier for the entity that created the flow. Implementations SHOULD set suitable default values for `created_by` based on the principal accessing the system, and MAY permit clients to edit the value, subject to suitable permissions-based limitations.
|
|
27
|
+
*/
|
|
28
|
+
created_by?: string;
|
|
29
|
+
/**
|
|
30
|
+
* A string identifier for the entity that updated the flow metadata most recently. Implementations SHOULD set suitable default values for `updated_by` based on the principal accessing the system, and MAY permit clients to edit the value, subject to suitable permissions-based limitations.
|
|
31
|
+
*/
|
|
32
|
+
updated_by?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Key value is a freeform string.
|
|
35
|
+
*/
|
|
36
|
+
tags?: {
|
|
37
|
+
[key: string]: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* A change to the flow metadata, not including metadata_version, last_update or segments, results in a new version. If the metadata_version for flow instances is identical then the metadata is identical.
|
|
41
|
+
*/
|
|
42
|
+
metadata_version?: string;
|
|
43
|
+
/**
|
|
44
|
+
* An indication of how many lossy encodings the flow content has been through. A flow with a higher generation may contain less of the original information than a flow with a lower generation.
|
|
45
|
+
*/
|
|
46
|
+
generation?: number;
|
|
47
|
+
/**
|
|
48
|
+
* The date-time the flow was created in a given context, e.g. in the store. Implementations SHOULD ignore this if given in a PUT request, and instead manage it internally
|
|
49
|
+
*/
|
|
50
|
+
created?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The date-time the flow metadata was updated in a given context, e.g. in the store. Implementations SHOULD ignore this if given in a PUT request, and instead manage it internally
|
|
53
|
+
*/
|
|
54
|
+
metadata_updated?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The date-time the flow segments were updated in a given context, e.g. in the store. Implementations SHOULD ignore this if given in a PUT request, and instead manage it internally
|
|
57
|
+
*/
|
|
58
|
+
segments_updated?: string;
|
|
59
|
+
/**
|
|
60
|
+
* If set to \'true\', implementations SHOULD reject client requests to update Flow metadata (other than the read_only property), Flow Segments and media objects
|
|
61
|
+
*/
|
|
62
|
+
read_only?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* A MIME type identification of the (lossy or lossless) coding used for the flow content.
|
|
65
|
+
*/
|
|
66
|
+
codec?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The container MIME type for flow segments.
|
|
69
|
+
*/
|
|
70
|
+
container?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The average bit rate of the flow segments in 1000 bits/second. A precise definition can be found in the [Setting Flow Bit Rate Properties](https://github.com/bbc/tams/blob/main/docs/appnotes/0013-setting-flow-bit-rate-properties.md) AppNote.
|
|
73
|
+
*/
|
|
74
|
+
avg_bit_rate?: number;
|
|
75
|
+
/**
|
|
76
|
+
* The maximum bit rate of the flow segments in 1000 bits/second. A precise definition can be found in the [Setting Flow Bit Rate Properties](https://github.com/bbc/tams/blob/main/docs/appnotes/0013-setting-flow-bit-rate-properties.md) AppNote.
|
|
77
|
+
*/
|
|
78
|
+
max_bit_rate?: number;
|
|
79
|
+
segment_duration?: FlowCoreSegmentDuration;
|
|
80
|
+
/**
|
|
81
|
+
* The timerange of samples available in the flow, as described by the [TimeRange](../schemas/timerange#top) type
|
|
82
|
+
*/
|
|
83
|
+
timerange?: string;
|
|
84
|
+
/**
|
|
85
|
+
* List of Flows that are collected together by this Flow.
|
|
86
|
+
*/
|
|
87
|
+
flow_collection?: Array<CollectionItem>;
|
|
88
|
+
/**
|
|
89
|
+
* Flows that reference this Flow to include it in a collection. This attribute is intended to be read-only. Implementations SHOULD ignore this if given in a PUT request, and instead manage it internally
|
|
90
|
+
*/
|
|
91
|
+
collected_by?: Array<string>;
|
|
92
|
+
container_mapping?: ContainerMapping1;
|
|
93
|
+
/**
|
|
94
|
+
* The primary content type URN for the flow.
|
|
95
|
+
*/
|
|
96
|
+
format: DataFlow.FormatEnum;
|
|
97
|
+
essence_parameters: DataFlowEssenceParameters;
|
|
98
|
+
}
|
|
99
|
+
export declare namespace DataFlow {
|
|
100
|
+
type FormatEnum = 'urn:x-nmos:format:data';
|
|
101
|
+
const FormatEnum: {
|
|
102
|
+
UrnxNmosformatdata: FormatEnum;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Provides more information for the error status.
|
|
12
|
+
*/
|
|
13
|
+
export interface DeletionRequestError {
|
|
14
|
+
/**
|
|
15
|
+
* The error type name.
|
|
16
|
+
*/
|
|
17
|
+
type: string;
|
|
18
|
+
/**
|
|
19
|
+
* Summary description of the error and causes.
|
|
20
|
+
*/
|
|
21
|
+
summary: string;
|
|
22
|
+
/**
|
|
23
|
+
* Stack trace leading to error (as a list of strings)
|
|
24
|
+
*/
|
|
25
|
+
traceback?: Array<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Time at which the error ocurred, to aid in log correlation
|
|
28
|
+
*/
|
|
29
|
+
time: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { DeletionRequestError } from './deletion-request-error';
|
|
2
|
+
/**
|
|
3
|
+
* Describes an ongoing deletion request
|
|
4
|
+
*/
|
|
5
|
+
export interface DeletionRequest {
|
|
6
|
+
/**
|
|
7
|
+
* Deletion Request ID
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* ID of the flow to which the deletion request relates
|
|
12
|
+
*/
|
|
13
|
+
flow_id: string;
|
|
14
|
+
/**
|
|
15
|
+
* The timerange of FlowSegments to be deleted in this request, as described by the [TimeRange](../schemas/timerange#top) type
|
|
16
|
+
*/
|
|
17
|
+
timerange_to_delete: string;
|
|
18
|
+
/**
|
|
19
|
+
* The timerange of FlowSegments not yet deleted by this request, as described by the [TimeRange](../schemas/timerange#top) type
|
|
20
|
+
*/
|
|
21
|
+
timerange_remaining?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the Flow should be deleted once the timerange has been
|
|
24
|
+
*/
|
|
25
|
+
delete_flow: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Date/Time when this deletion request was created
|
|
28
|
+
*/
|
|
29
|
+
created?: string;
|
|
30
|
+
/**
|
|
31
|
+
* A string identifier for the entity that created the deletion request. Implementations SHOULD set suitable default values for `created_by` based on the principal accessing the system, and MAY permit clients to edit the value, subject to suitable permissions-based limitations.
|
|
32
|
+
*/
|
|
33
|
+
created_by?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Date/Time when this deletion request was updated
|
|
36
|
+
*/
|
|
37
|
+
updated?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Date/Time when this deletion request will be deleted
|
|
40
|
+
*/
|
|
41
|
+
expiry?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Status of the delete request
|
|
44
|
+
*/
|
|
45
|
+
status: DeletionRequest.StatusEnum;
|
|
46
|
+
error?: DeletionRequestError;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace DeletionRequest {
|
|
49
|
+
type StatusEnum = 'created' | 'started' | 'done' | 'error';
|
|
50
|
+
const StatusEnum: {
|
|
51
|
+
Created: StatusEnum;
|
|
52
|
+
Started: StatusEnum;
|
|
53
|
+
Done: StatusEnum;
|
|
54
|
+
Error: StatusEnum;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Describes an event stream mechanism available in this implementation of TAMS
|
|
12
|
+
*/
|
|
13
|
+
export interface EventStreamMechanism {
|
|
14
|
+
/**
|
|
15
|
+
* Name of this type of event stream mechanism. Must be unique. Any name defined in this specification is reserved
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Location (e.g. a URL) at which documentation for this event stream mechanism may be found
|
|
20
|
+
*/
|
|
21
|
+
docs?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Configuration options required to make use of this mechanism
|
|
24
|
+
*/
|
|
25
|
+
config?: object;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* The target flow segment duration in seconds. The duration for each segment may vary around this target value. See also the [Setting Flow Bit Rate Properties](https://github.com/bbc/tams/blob/main/docs/appnotes/0013-setting-flow-bit-rate-properties.md) AppNote for how this property can be used to calculate buffer sizes.
|
|
12
|
+
*/
|
|
13
|
+
export interface FlowCoreSegmentDuration {
|
|
14
|
+
/**
|
|
15
|
+
* numerator
|
|
16
|
+
*/
|
|
17
|
+
numerator: number;
|
|
18
|
+
/**
|
|
19
|
+
* denominator
|
|
20
|
+
*/
|
|
21
|
+
denominator?: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
export interface FlowSegmentGetUrlsInner {
|
|
11
|
+
/**
|
|
12
|
+
* Label identifying this URL. If the \'label\' is not set then this URL can\'t be filtered for using the \'accept_get_urls\' API query parameter.
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* A URL to which a GET request can be made to directly retrieve the contents of the segment. Clients should include credentials if the provide URL is on the same origin as the API endpoint
|
|
17
|
+
*/
|
|
18
|
+
url: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FlowSegmentGetUrlsInner } from './flow-segment-get-urls-inner';
|
|
2
|
+
/**
|
|
3
|
+
* Provides the location and metadata of the media files corresponding to timerange segments of a Flow.
|
|
4
|
+
*/
|
|
5
|
+
export interface FlowSegment {
|
|
6
|
+
/**
|
|
7
|
+
* The object store identifier for the media object.
|
|
8
|
+
*/
|
|
9
|
+
object_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The timestamp offset between the sample timestamps stored in the media file and the corresponding timestamp in the segment, ie. ts_offset = segment ts - media object ts. Assumed to be 0:0 if not set. Format as described by the [Timestamp](../schemas/timestamp#top) type, but cannot be negative
|
|
12
|
+
*/
|
|
13
|
+
ts_offset?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The timerange of segments that have been deleted. The timerange MUST intersect with a segment which has been deleted at both start and end (e.g. it cannot start or end in empty space).
|
|
16
|
+
*/
|
|
17
|
+
timerange: string;
|
|
18
|
+
/**
|
|
19
|
+
* The difference between the exclusive end of the `timerange` and the last sample timestamp. Format as described by the [Timestamp](../schemas/timestamp#top) type, but cannot be negative
|
|
20
|
+
*/
|
|
21
|
+
last_duration?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The start of the segment represented as a count of samples from the start of the object. Note that a sample is a video frame or audio sample. A (coded) audio frame has multiple audio samples. Assumed to be 0 if not set.
|
|
24
|
+
*/
|
|
25
|
+
sample_offset?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The count of samples in the segment (which may be fewer than in the object). The count could be less than expected given the segment duration and rate if there are gaps. If not set, every sample from sample_offset onwards is used. Note that a sample is a video frame or audio sample. A (coded) audio frame has multiple audio samples
|
|
28
|
+
*/
|
|
29
|
+
sample_count?: number;
|
|
30
|
+
/**
|
|
31
|
+
* A list of URLs to which a GET request can be made to directly retrieve the contents of the segment. This is required by the `http_object_store` media store type, which is the only one currently described. Clients may choose any URL in the list and treat them as identical, however servers may sort the list such that the preferred URL is first.
|
|
32
|
+
*/
|
|
33
|
+
get_urls?: Array<FlowSegmentGetUrlsInner>;
|
|
34
|
+
/**
|
|
35
|
+
* The number of key frames in the segment. This should be set greater than zero when the segment contains key frames that serve as a stream access point
|
|
36
|
+
*/
|
|
37
|
+
key_frame_count?: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FlowSegmentGetUrlsInner } from './flow-segment-get-urls-inner';
|
|
2
|
+
/**
|
|
3
|
+
* Provides the location and metadata of the media files corresponding to timerange segments of a Flow.
|
|
4
|
+
*/
|
|
5
|
+
export interface FlowSegment1 {
|
|
6
|
+
/**
|
|
7
|
+
* The object store identifier for the media object.
|
|
8
|
+
*/
|
|
9
|
+
object_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The timestamp offset between the sample timestamps stored in the media file and the corresponding timestamp in the segment, ie. ts_offset = segment ts - media object ts. Assumed to be 0:0 if not set. Format as described by the [Timestamp](../schemas/timestamp#top) type, but cannot be negative
|
|
12
|
+
*/
|
|
13
|
+
ts_offset?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The timerange for the samples contained in the segment. The timerange start is always inclusive. If samples have a duration then the timerange end is exclusive and covers at least the duration of the last sample. The exclusive timerange end will typically be set to the timestamp of the next sample. If the samples don\'t have a duration then the timerange end is inclusive. Format is described by the [TimeRange](../schemas/timerange#top) type. Note that where temporal re-ordering is used, the timerange and samples refers to the presentation timeline.
|
|
16
|
+
*/
|
|
17
|
+
timerange: string;
|
|
18
|
+
/**
|
|
19
|
+
* The difference between the exclusive end of the `timerange` and the last sample timestamp. Format as described by the [Timestamp](../schemas/timestamp#top) type, but cannot be negative
|
|
20
|
+
*/
|
|
21
|
+
last_duration?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The start of the segment represented as a count of samples from the start of the object. Note that a sample is a video frame or audio sample. A (coded) audio frame has multiple audio samples. Assumed to be 0 if not set.
|
|
24
|
+
*/
|
|
25
|
+
sample_offset?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The count of samples in the segment (which may be fewer than in the object). The count could be less than expected given the segment duration and rate if there are gaps. If not set, every sample from sample_offset onwards is used. Note that a sample is a video frame or audio sample. A (coded) audio frame has multiple audio samples
|
|
28
|
+
*/
|
|
29
|
+
sample_count?: number;
|
|
30
|
+
/**
|
|
31
|
+
* A list of URLs to which a GET request can be made to directly retrieve the contents of the segment. This is required by the `http_object_store` media store type, which is the only one currently described. Clients may choose any URL in the list and treat them as identical, however servers may sort the list such that the preferred URL is first.
|
|
32
|
+
*/
|
|
33
|
+
get_urls?: Array<FlowSegmentGetUrlsInner>;
|
|
34
|
+
/**
|
|
35
|
+
* The number of key frames in the segment. This should be set greater than zero when the segment contains key frames that serve as a stream access point
|
|
36
|
+
*/
|
|
37
|
+
key_frame_count?: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Post data for the flow storage endpoint
|
|
12
|
+
*/
|
|
13
|
+
export interface FlowStoragePost {
|
|
14
|
+
/**
|
|
15
|
+
* Limit the number of storage segments in each response page. Implementations may specify their own default and maximum for the limit
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AudioFlow } from './audio-flow';
|
|
2
|
+
import { VideoFlow } from './video-flow';
|
|
3
|
+
import { MultiEssenceFlow } from './multi-essence-flow';
|
|
4
|
+
import { DataFlow } from './data-flow';
|
|
5
|
+
import { ImageFlow } from './image-flow';
|
|
6
|
+
/**
|
|
7
|
+
* Describes a Flow
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @type Flow
|
|
11
|
+
* Describes a Flow
|
|
12
|
+
* @export
|
|
13
|
+
*/
|
|
14
|
+
export type Flow = AudioFlow | DataFlow | MultiEssenceFlow | VideoFlow | ImageFlow;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Gives information on a particular http request a client should perform
|
|
12
|
+
*/
|
|
13
|
+
export interface HTTPRequest {
|
|
14
|
+
/**
|
|
15
|
+
* The URL to make the request to
|
|
16
|
+
*/
|
|
17
|
+
url: string;
|
|
18
|
+
/**
|
|
19
|
+
* The text of the body which needs to be included in the request
|
|
20
|
+
*/
|
|
21
|
+
body?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The content type which must be used
|
|
24
|
+
*/
|
|
25
|
+
'content-type'?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Additional headers that should be included
|
|
28
|
+
*/
|
|
29
|
+
headers?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Time-addressable Media Store
|
|
3
|
+
*
|
|
4
|
+
* Contact: cloudfit-opensource@rd.bbc.co.uk
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Describes the parameters of the essence inside this image Flow
|
|
12
|
+
*/
|
|
13
|
+
export interface ImageFlowEssenceParameters {
|
|
14
|
+
/**
|
|
15
|
+
* Parameters describing the essence of image Flow
|
|
16
|
+
*/
|
|
17
|
+
frame_width: number;
|
|
18
|
+
frame_height: number;
|
|
19
|
+
}
|