@bitmovin/api-sdk 1.183.2 → 1.184.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.
@@ -240,7 +240,7 @@ var HeaderHandler = /** @class */ (function (_super) {
240
240
  var headers = {
241
241
  'X-Api-Key': apiKey,
242
242
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
243
- 'X-Api-Client-Version': '1.183.2',
243
+ 'X-Api-Client-Version': '1.184.1',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -5,6 +5,7 @@ import OutputsApi from './outputs/OutputsApi';
5
5
  import ConfigurationsApi from './configurations/ConfigurationsApi';
6
6
  import FiltersApi from './filters/FiltersApi';
7
7
  import EncodingsApi from './encodings/EncodingsApi';
8
+ import LiveApi from './live/LiveApi';
8
9
  import ManifestsApi from './manifests/ManifestsApi';
9
10
  import InfrastructureApi from './infrastructure/InfrastructureApi';
10
11
  import StatisticsApi from './statistics/StatisticsApi';
@@ -24,6 +25,7 @@ export default class EncodingApi extends BaseAPI {
24
25
  configurations: ConfigurationsApi;
25
26
  filters: FiltersApi;
26
27
  encodings: EncodingsApi;
28
+ live: LiveApi;
27
29
  manifests: ManifestsApi;
28
30
  infrastructure: InfrastructureApi;
29
31
  statistics: StatisticsApi;
@@ -21,6 +21,7 @@ var OutputsApi_1 = require("./outputs/OutputsApi");
21
21
  var ConfigurationsApi_1 = require("./configurations/ConfigurationsApi");
22
22
  var FiltersApi_1 = require("./filters/FiltersApi");
23
23
  var EncodingsApi_1 = require("./encodings/EncodingsApi");
24
+ var LiveApi_1 = require("./live/LiveApi");
24
25
  var ManifestsApi_1 = require("./manifests/ManifestsApi");
25
26
  var InfrastructureApi_1 = require("./infrastructure/InfrastructureApi");
26
27
  var StatisticsApi_1 = require("./statistics/StatisticsApi");
@@ -43,6 +44,7 @@ var EncodingApi = /** @class */ (function (_super) {
43
44
  _this.configurations = new ConfigurationsApi_1.default(configuration);
44
45
  _this.filters = new FiltersApi_1.default(configuration);
45
46
  _this.encodings = new EncodingsApi_1.default(configuration);
47
+ _this.live = new LiveApi_1.default(configuration);
46
48
  _this.manifests = new ManifestsApi_1.default(configuration);
47
49
  _this.infrastructure = new InfrastructureApi_1.default(configuration);
48
50
  _this.statistics = new StatisticsApi_1.default(configuration);
@@ -0,0 +1,13 @@
1
+ import { BaseAPI } from '../../common/BaseAPI';
2
+ import Configuration from '../../common/Configuration';
3
+ import StreamKeysApi from './streamKeys/StreamKeysApi';
4
+ /**
5
+ * LiveApi - object-oriented interface
6
+ * @export
7
+ * @class LiveApi
8
+ * @extends {BaseAPI}
9
+ */
10
+ export default class LiveApi extends BaseAPI {
11
+ streamKeys: StreamKeysApi;
12
+ constructor(configuration: Configuration);
13
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var BaseAPI_1 = require("../../common/BaseAPI");
19
+ var StreamKeysApi_1 = require("./streamKeys/StreamKeysApi");
20
+ /**
21
+ * LiveApi - object-oriented interface
22
+ * @export
23
+ * @class LiveApi
24
+ * @extends {BaseAPI}
25
+ */
26
+ var LiveApi = /** @class */ (function (_super) {
27
+ __extends(LiveApi, _super);
28
+ function LiveApi(configuration) {
29
+ var _this = _super.call(this, configuration) || this;
30
+ _this.streamKeys = new StreamKeysApi_1.default(configuration);
31
+ return _this;
32
+ }
33
+ return LiveApi;
34
+ }(BaseAPI_1.BaseAPI));
35
+ exports.default = LiveApi;
@@ -0,0 +1,83 @@
1
+ export interface StreamKeyListQueryParams {
2
+ /**
3
+ * Index of the first item to return, starting at 0. Default is 0
4
+ * @type {number}
5
+ * @memberof StreamKeyListQueryParams
6
+ */
7
+ offset?: number | undefined;
8
+ /**
9
+ * Maximum number of items to return. Default is 25, maximum is 100
10
+ * @type {number}
11
+ * @memberof StreamKeyListQueryParams
12
+ */
13
+ limit?: number | undefined;
14
+ /**
15
+ * Order list result according a stream key attribute. The fields that can be used for sorting are: + `createdAt` + `name`
16
+ * @type {string}
17
+ * @memberof StreamKeyListQueryParams
18
+ */
19
+ sort?: string | undefined;
20
+ /**
21
+ * Filter stream keys by type
22
+ * @type {string}
23
+ * @memberof StreamKeyListQueryParams
24
+ */
25
+ type?: string | undefined;
26
+ /**
27
+ * Filter stream keys by status
28
+ * @type {string}
29
+ * @memberof StreamKeyListQueryParams
30
+ */
31
+ status?: string | undefined;
32
+ /**
33
+ * Filter stream keys by assigned ingest point id
34
+ * @type {string}
35
+ * @memberof StreamKeyListQueryParams
36
+ */
37
+ assignedIngestPointId?: string | undefined;
38
+ /**
39
+ * Filter stream keys by assigned encoding id
40
+ * @type {string}
41
+ * @memberof StreamKeyListQueryParams
42
+ */
43
+ assignedEncodingId?: string | undefined;
44
+ }
45
+ export declare class StreamKeyListQueryParamsBuilder {
46
+ private internalParams;
47
+ /**
48
+ *
49
+ * @param offset Index of the first item to return, starting at 0. Default is 0
50
+ */
51
+ offset(offset: number): this;
52
+ /**
53
+ *
54
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
55
+ */
56
+ limit(limit: number): this;
57
+ /**
58
+ *
59
+ * @param sort Order list result according a stream key attribute. The fields that can be used for sorting are: + `createdAt` + `name`
60
+ */
61
+ sort(sort: string): this;
62
+ /**
63
+ *
64
+ * @param type Filter stream keys by type
65
+ */
66
+ type(type: string): this;
67
+ /**
68
+ *
69
+ * @param status Filter stream keys by status
70
+ */
71
+ status(status: string): this;
72
+ /**
73
+ *
74
+ * @param assignedIngestPointId Filter stream keys by assigned ingest point id
75
+ */
76
+ assignedIngestPointId(assignedIngestPointId: string): this;
77
+ /**
78
+ *
79
+ * @param assignedEncodingId Filter stream keys by assigned encoding id
80
+ */
81
+ assignedEncodingId(assignedEncodingId: string): this;
82
+ buildQueryParams(): StreamKeyListQueryParams;
83
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamKeyListQueryParamsBuilder = void 0;
4
+ var StreamKeyListQueryParamsBuilder = /** @class */ (function () {
5
+ function StreamKeyListQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param offset Index of the first item to return, starting at 0. Default is 0
11
+ */
12
+ StreamKeyListQueryParamsBuilder.prototype.offset = function (offset) {
13
+ this.internalParams.offset = offset;
14
+ return this;
15
+ };
16
+ /**
17
+ *
18
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
19
+ */
20
+ StreamKeyListQueryParamsBuilder.prototype.limit = function (limit) {
21
+ this.internalParams.limit = limit;
22
+ return this;
23
+ };
24
+ /**
25
+ *
26
+ * @param sort Order list result according a stream key attribute. The fields that can be used for sorting are: + `createdAt` + `name`
27
+ */
28
+ StreamKeyListQueryParamsBuilder.prototype.sort = function (sort) {
29
+ this.internalParams.sort = sort;
30
+ return this;
31
+ };
32
+ /**
33
+ *
34
+ * @param type Filter stream keys by type
35
+ */
36
+ StreamKeyListQueryParamsBuilder.prototype.type = function (type) {
37
+ this.internalParams.type = type;
38
+ return this;
39
+ };
40
+ /**
41
+ *
42
+ * @param status Filter stream keys by status
43
+ */
44
+ StreamKeyListQueryParamsBuilder.prototype.status = function (status) {
45
+ this.internalParams.status = status;
46
+ return this;
47
+ };
48
+ /**
49
+ *
50
+ * @param assignedIngestPointId Filter stream keys by assigned ingest point id
51
+ */
52
+ StreamKeyListQueryParamsBuilder.prototype.assignedIngestPointId = function (assignedIngestPointId) {
53
+ this.internalParams.assignedIngestPointId = assignedIngestPointId;
54
+ return this;
55
+ };
56
+ /**
57
+ *
58
+ * @param assignedEncodingId Filter stream keys by assigned encoding id
59
+ */
60
+ StreamKeyListQueryParamsBuilder.prototype.assignedEncodingId = function (assignedEncodingId) {
61
+ this.internalParams.assignedEncodingId = assignedEncodingId;
62
+ return this;
63
+ };
64
+ StreamKeyListQueryParamsBuilder.prototype.buildQueryParams = function () {
65
+ return this.internalParams;
66
+ };
67
+ return StreamKeyListQueryParamsBuilder;
68
+ }());
69
+ exports.StreamKeyListQueryParamsBuilder = StreamKeyListQueryParamsBuilder;
@@ -0,0 +1,43 @@
1
+ import { BaseAPI } from '../../../common/BaseAPI';
2
+ import Configuration from '../../../common/Configuration';
3
+ import BitmovinResponse from '../../../models/BitmovinResponse';
4
+ import StreamKey from '../../../models/StreamKey';
5
+ import PaginationResponse from '../../../models/PaginationResponse';
6
+ import { StreamKeyListQueryParams, StreamKeyListQueryParamsBuilder } from './StreamKeyListQueryParams';
7
+ /**
8
+ * StreamKeysApi - object-oriented interface
9
+ * @export
10
+ * @class StreamKeysApi
11
+ * @extends {BaseAPI}
12
+ */
13
+ export default class StreamKeysApi extends BaseAPI {
14
+ constructor(configuration: Configuration);
15
+ /**
16
+ * @summary Create new stream key
17
+ * @param {StreamKey} streamKey The stream key to be created
18
+ * @throws {BitmovinError}
19
+ * @memberof StreamKeysApi
20
+ */
21
+ create(streamKey?: StreamKey): Promise<StreamKey>;
22
+ /**
23
+ * @summary Delete Stream Key
24
+ * @param {string} streamKeyId Id of the stream key
25
+ * @throws {BitmovinError}
26
+ * @memberof StreamKeysApi
27
+ */
28
+ delete(streamKeyId: string): Promise<BitmovinResponse>;
29
+ /**
30
+ * @summary Stream Key details
31
+ * @param {string} streamKeyId Id of the stream key
32
+ * @throws {BitmovinError}
33
+ * @memberof StreamKeysApi
34
+ */
35
+ get(streamKeyId: string): Promise<StreamKey>;
36
+ /**
37
+ * @summary List Stream Keys
38
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
39
+ * @throws {BitmovinError}
40
+ * @memberof StreamKeysApi
41
+ */
42
+ list(queryParameters?: StreamKeyListQueryParams | ((q: StreamKeyListQueryParamsBuilder) => StreamKeyListQueryParamsBuilder)): Promise<PaginationResponse<StreamKey>>;
43
+ }
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var BaseAPI_1 = require("../../../common/BaseAPI");
19
+ var Mapper_1 = require("../../../common/Mapper");
20
+ var BitmovinResponse_1 = require("../../../models/BitmovinResponse");
21
+ var StreamKey_1 = require("../../../models/StreamKey");
22
+ var PaginationResponse_1 = require("../../../models/PaginationResponse");
23
+ var StreamKeyListQueryParams_1 = require("./StreamKeyListQueryParams");
24
+ /**
25
+ * StreamKeysApi - object-oriented interface
26
+ * @export
27
+ * @class StreamKeysApi
28
+ * @extends {BaseAPI}
29
+ */
30
+ var StreamKeysApi = /** @class */ (function (_super) {
31
+ __extends(StreamKeysApi, _super);
32
+ function StreamKeysApi(configuration) {
33
+ return _super.call(this, configuration) || this;
34
+ }
35
+ /**
36
+ * @summary Create new stream key
37
+ * @param {StreamKey} streamKey The stream key to be created
38
+ * @throws {BitmovinError}
39
+ * @memberof StreamKeysApi
40
+ */
41
+ StreamKeysApi.prototype.create = function (streamKey) {
42
+ return this.restClient.post('/encoding/live/stream-keys', {}, streamKey).then(function (response) {
43
+ return (0, Mapper_1.map)(response, StreamKey_1.default);
44
+ });
45
+ };
46
+ /**
47
+ * @summary Delete Stream Key
48
+ * @param {string} streamKeyId Id of the stream key
49
+ * @throws {BitmovinError}
50
+ * @memberof StreamKeysApi
51
+ */
52
+ StreamKeysApi.prototype.delete = function (streamKeyId) {
53
+ var pathParamMap = {
54
+ stream_key_id: streamKeyId
55
+ };
56
+ return this.restClient.delete('/encoding/live/stream-keys/{stream_key_id}', pathParamMap).then(function (response) {
57
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
58
+ });
59
+ };
60
+ /**
61
+ * @summary Stream Key details
62
+ * @param {string} streamKeyId Id of the stream key
63
+ * @throws {BitmovinError}
64
+ * @memberof StreamKeysApi
65
+ */
66
+ StreamKeysApi.prototype.get = function (streamKeyId) {
67
+ var pathParamMap = {
68
+ stream_key_id: streamKeyId
69
+ };
70
+ return this.restClient.get('/encoding/live/stream-keys/{stream_key_id}', pathParamMap).then(function (response) {
71
+ return (0, Mapper_1.map)(response, StreamKey_1.default);
72
+ });
73
+ };
74
+ /**
75
+ * @summary List Stream Keys
76
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
77
+ * @throws {BitmovinError}
78
+ * @memberof StreamKeysApi
79
+ */
80
+ StreamKeysApi.prototype.list = function (queryParameters) {
81
+ var queryParams = {};
82
+ if (typeof queryParameters === 'function') {
83
+ queryParams = queryParameters(new StreamKeyListQueryParams_1.StreamKeyListQueryParamsBuilder()).buildQueryParams();
84
+ }
85
+ else if (queryParameters) {
86
+ queryParams = queryParameters;
87
+ }
88
+ return this.restClient.get('/encoding/live/stream-keys', {}, queryParams).then(function (response) {
89
+ return new PaginationResponse_1.default(response, StreamKey_1.default);
90
+ });
91
+ };
92
+ return StreamKeysApi;
93
+ }(BaseAPI_1.BaseAPI));
94
+ exports.default = StreamKeysApi;
@@ -1,6 +1,7 @@
1
1
  import Input from './Input';
2
2
  import InputType from './InputType';
3
3
  import RtmpIngestPoint from './RtmpIngestPoint';
4
+ import StaticRtmpIngestPoint from './StaticRtmpIngestPoint';
4
5
  /**
5
6
  * @export
6
7
  * @class RedundantRtmpInput
@@ -19,10 +20,17 @@ export declare class RedundantRtmpInput extends Input {
19
20
  */
20
21
  delayThreshold?: number;
21
22
  /**
23
+ * Configuration for ingest points that use a dynamic IP based endpoint to stream to e.g.: rtmp://41.167.11.21/live Either ingestPoints **or** staticIngestPoints can be set
22
24
  * @type {RtmpIngestPoint[]}
23
25
  * @memberof RedundantRtmpInput
24
26
  */
25
27
  ingestPoints?: RtmpIngestPoint[];
28
+ /**
29
+ * Configuration for static ingest points. These ingest points use a consistent endpoint to stream to e.g.: rtmps://live-ingest.bitmovin.com/live Either ingestPoints **or** staticIngestPoints can be set
30
+ * @type {StaticRtmpIngestPoint[]}
31
+ * @memberof RedundantRtmpInput
32
+ */
33
+ staticIngestPoints?: StaticRtmpIngestPoint[];
26
34
  constructor(obj?: Partial<RedundantRtmpInput>);
27
35
  }
28
36
  export default RedundantRtmpInput;
@@ -20,6 +20,7 @@ var Mapper_1 = require("../common/Mapper");
20
20
  var Input_1 = require("./Input");
21
21
  var InputType_1 = require("./InputType");
22
22
  var RtmpIngestPoint_1 = require("./RtmpIngestPoint");
23
+ var StaticRtmpIngestPoint_1 = require("./StaticRtmpIngestPoint");
23
24
  /**
24
25
  * @export
25
26
  * @class RedundantRtmpInput
@@ -39,6 +40,7 @@ var RedundantRtmpInput = /** @class */ (function (_super) {
39
40
  }
40
41
  _this.delayThreshold = (0, Mapper_1.map)(obj.delayThreshold);
41
42
  _this.ingestPoints = (0, Mapper_1.mapArray)(obj.ingestPoints, RtmpIngestPoint_1.default);
43
+ _this.staticIngestPoints = (0, Mapper_1.mapArray)(obj.staticIngestPoints, StaticRtmpIngestPoint_1.default);
42
44
  return _this;
43
45
  }
44
46
  return RedundantRtmpInput;
@@ -0,0 +1,26 @@
1
+ import StreamKeyConfiguration from './StreamKeyConfiguration';
2
+ /**
3
+ * @export
4
+ * @class StaticRtmpIngestPoint
5
+ */
6
+ export declare class StaticRtmpIngestPoint {
7
+ /**
8
+ * The ID of the created static rtmp ingest point
9
+ * @type {string}
10
+ * @memberof StaticRtmpIngestPoint
11
+ */
12
+ id?: string;
13
+ /**
14
+ * Name of the ingest point. This can be helpful for easier identifying your ingest points
15
+ * @type {string}
16
+ * @memberof StaticRtmpIngestPoint
17
+ */
18
+ name?: string;
19
+ /**
20
+ * @type {StreamKeyConfiguration}
21
+ * @memberof StaticRtmpIngestPoint
22
+ */
23
+ streamKeyConfiguration?: StreamKeyConfiguration;
24
+ constructor(obj?: Partial<StaticRtmpIngestPoint>);
25
+ }
26
+ export default StaticRtmpIngestPoint;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StaticRtmpIngestPoint = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ var StreamKeyConfiguration_1 = require("./StreamKeyConfiguration");
6
+ /**
7
+ * @export
8
+ * @class StaticRtmpIngestPoint
9
+ */
10
+ var StaticRtmpIngestPoint = /** @class */ (function () {
11
+ function StaticRtmpIngestPoint(obj) {
12
+ if (!obj) {
13
+ return;
14
+ }
15
+ this.id = (0, Mapper_1.map)(obj.id);
16
+ this.name = (0, Mapper_1.map)(obj.name);
17
+ this.streamKeyConfiguration = (0, Mapper_1.map)(obj.streamKeyConfiguration, StreamKeyConfiguration_1.default);
18
+ }
19
+ return StaticRtmpIngestPoint;
20
+ }());
21
+ exports.StaticRtmpIngestPoint = StaticRtmpIngestPoint;
22
+ exports.default = StaticRtmpIngestPoint;
@@ -0,0 +1,41 @@
1
+ import BitmovinResource from './BitmovinResource';
2
+ import StreamKeyStatus from './StreamKeyStatus';
3
+ import StreamKeyType from './StreamKeyType';
4
+ /**
5
+ * @export
6
+ * @class StreamKey
7
+ */
8
+ export declare class StreamKey extends BitmovinResource {
9
+ /**
10
+ * Stream key used for live streaming. This stream key is reserved and can be re-used with different live encodings. If this value is not provided, a unique random stream key will be generated. **Important:** This value has to be globally unique. If it is set manually, be sure to use a secure value. If the stream key value is guessed by others your live encoding can be compromised.
11
+ * @type {string}
12
+ * @memberof StreamKey
13
+ */
14
+ value?: string;
15
+ /**
16
+ * Status of the stream key
17
+ * @type {StreamKeyStatus}
18
+ * @memberof StreamKey
19
+ */
20
+ status?: StreamKeyStatus;
21
+ /**
22
+ * Type of the stream key
23
+ * @type {StreamKeyType}
24
+ * @memberof StreamKey
25
+ */
26
+ type?: StreamKeyType;
27
+ /**
28
+ * ID of the encoding that is assigned to this stream key. Not set if status is UNASSIGNED
29
+ * @type {string}
30
+ * @memberof StreamKey
31
+ */
32
+ assignedEncodingId?: string;
33
+ /**
34
+ * ID of the ingest point that is assigned to this stream key. Not set if status is UNASSIGNED
35
+ * @type {string}
36
+ * @memberof StreamKey
37
+ */
38
+ assignedIngestPointId?: string;
39
+ constructor(obj?: Partial<StreamKey>);
40
+ }
41
+ export default StreamKey;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.StreamKey = void 0;
19
+ var Mapper_1 = require("../common/Mapper");
20
+ var BitmovinResource_1 = require("./BitmovinResource");
21
+ /**
22
+ * @export
23
+ * @class StreamKey
24
+ */
25
+ var StreamKey = /** @class */ (function (_super) {
26
+ __extends(StreamKey, _super);
27
+ function StreamKey(obj) {
28
+ var _this = _super.call(this, obj) || this;
29
+ if (!obj) {
30
+ return _this;
31
+ }
32
+ _this.value = (0, Mapper_1.map)(obj.value);
33
+ _this.status = (0, Mapper_1.map)(obj.status);
34
+ _this.type = (0, Mapper_1.map)(obj.type);
35
+ _this.assignedEncodingId = (0, Mapper_1.map)(obj.assignedEncodingId);
36
+ _this.assignedIngestPointId = (0, Mapper_1.map)(obj.assignedIngestPointId);
37
+ return _this;
38
+ }
39
+ return StreamKey;
40
+ }(BitmovinResource_1.default));
41
+ exports.StreamKey = StreamKey;
42
+ exports.default = StreamKey;
@@ -0,0 +1,20 @@
1
+ import StreamKeyConfigurationType from './StreamKeyConfigurationType';
2
+ /**
3
+ * @export
4
+ * @class StreamKeyConfiguration
5
+ */
6
+ export declare class StreamKeyConfiguration {
7
+ /**
8
+ * @type {StreamKeyConfigurationType}
9
+ * @memberof StreamKeyConfiguration
10
+ */
11
+ type?: StreamKeyConfigurationType;
12
+ /**
13
+ * Id of the previously generated stream key. Only needed when the type is `ASSIGN`.
14
+ * @type {string}
15
+ * @memberof StreamKeyConfiguration
16
+ */
17
+ streamKeyId?: string;
18
+ constructor(obj?: Partial<StreamKeyConfiguration>);
19
+ }
20
+ export default StreamKeyConfiguration;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamKeyConfiguration = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class StreamKeyConfiguration
8
+ */
9
+ var StreamKeyConfiguration = /** @class */ (function () {
10
+ function StreamKeyConfiguration(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.type = (0, Mapper_1.map)(obj.type);
15
+ this.streamKeyId = (0, Mapper_1.map)(obj.streamKeyId);
16
+ }
17
+ return StreamKeyConfiguration;
18
+ }());
19
+ exports.StreamKeyConfiguration = StreamKeyConfiguration;
20
+ exports.default = StreamKeyConfiguration;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @export
3
+ * @enum {string}
4
+ */
5
+ export declare enum StreamKeyConfigurationType {
6
+ GENERATE = "GENERATE",
7
+ ASSIGN = "ASSIGN"
8
+ }
9
+ export default StreamKeyConfigurationType;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamKeyConfigurationType = void 0;
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var StreamKeyConfigurationType;
9
+ (function (StreamKeyConfigurationType) {
10
+ StreamKeyConfigurationType["GENERATE"] = "GENERATE";
11
+ StreamKeyConfigurationType["ASSIGN"] = "ASSIGN";
12
+ })(StreamKeyConfigurationType || (exports.StreamKeyConfigurationType = StreamKeyConfigurationType = {}));
13
+ exports.default = StreamKeyConfigurationType;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Status of the stream key
3
+ * @export
4
+ * @enum {string}
5
+ */
6
+ export declare enum StreamKeyStatus {
7
+ ASSIGNED = "ASSIGNED",
8
+ UNASSIGNED = "UNASSIGNED"
9
+ }
10
+ export default StreamKeyStatus;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StreamKeyStatus = void 0;
4
+ /**
5
+ * Status of the stream key
6
+ * @export
7
+ * @enum {string}
8
+ */
9
+ var StreamKeyStatus;
10
+ (function (StreamKeyStatus) {
11
+ StreamKeyStatus["ASSIGNED"] = "ASSIGNED";
12
+ StreamKeyStatus["UNASSIGNED"] = "UNASSIGNED";
13
+ })(StreamKeyStatus || (exports.StreamKeyStatus = StreamKeyStatus = {}));
14
+ exports.default = StreamKeyStatus;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Type of the stream key
3
+ * @export
4
+ * @enum {string}
5
+ */
6
+ export declare enum StreamKeyType {
7
+ RESERVED = "RESERVED",
8
+ TEMPORARY = "TEMPORARY"
9
+ }
10
+ export default StreamKeyType;