@bitmovin/api-sdk 1.194.0 → 1.196.0

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 (40) hide show
  1. package/README.md +1 -1
  2. package/dist/bitmovin-api-sdk.browser.js +489 -2
  3. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  4. package/dist/common/RestClient.js +1 -1
  5. package/dist/encoding/encodings/live/LiveApi.d.ts +2 -0
  6. package/dist/encoding/encodings/live/LiveApi.js +2 -0
  7. package/dist/encoding/encodings/live/resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi.d.ts +20 -0
  8. package/dist/encoding/encodings/live/resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi.js +49 -0
  9. package/dist/encoding/filters/FiltersApi.d.ts +2 -0
  10. package/dist/encoding/filters/FiltersApi.js +2 -0
  11. package/dist/encoding/filters/azureSpeechToCaptions/AzureSpeechToCaptionsApi.d.ts +45 -0
  12. package/dist/encoding/filters/azureSpeechToCaptions/AzureSpeechToCaptionsApi.js +97 -0
  13. package/dist/encoding/filters/azureSpeechToCaptions/AzureSpeechToCaptionsFilterListQueryParams.d.ts +39 -0
  14. package/dist/encoding/filters/azureSpeechToCaptions/AzureSpeechToCaptionsFilterListQueryParams.js +37 -0
  15. package/dist/encoding/filters/azureSpeechToCaptions/customdata/CustomdataApi.d.ts +19 -0
  16. package/dist/encoding/filters/azureSpeechToCaptions/customdata/CustomdataApi.js +48 -0
  17. package/dist/models/AzureSpeechServicesCredentials.d.ts +14 -0
  18. package/dist/models/AzureSpeechServicesCredentials.js +19 -0
  19. package/dist/models/AzureSpeechToCaptionsFilter.d.ts +22 -0
  20. package/dist/models/AzureSpeechToCaptionsFilter.js +46 -0
  21. package/dist/models/AzureSpeechToCaptionsProfanity.d.ts +10 -0
  22. package/dist/models/AzureSpeechToCaptionsProfanity.js +14 -0
  23. package/dist/models/AzureSpeechToCaptionsSettings.d.ts +64 -0
  24. package/dist/models/AzureSpeechToCaptionsSettings.js +28 -0
  25. package/dist/models/ChunkedTextMuxing.d.ts +1 -1
  26. package/dist/models/CmafMuxing.d.ts +1 -1
  27. package/dist/models/DashSegmentedRepresentation.d.ts +2 -2
  28. package/dist/models/Filter.d.ts +2 -1
  29. package/dist/models/Filter.js +2 -1
  30. package/dist/models/FilterType.d.ts +2 -1
  31. package/dist/models/FilterType.js +1 -0
  32. package/dist/models/Fmp4Muxing.d.ts +1 -1
  33. package/dist/models/PackedAudioMuxing.d.ts +1 -1
  34. package/dist/models/ResetLiveManifestTimeShift.d.ts +21 -0
  35. package/dist/models/ResetLiveManifestTimeShift.js +39 -0
  36. package/dist/models/TsMuxing.d.ts +1 -1
  37. package/dist/models/WebmMuxing.d.ts +1 -1
  38. package/dist/models/index.d.ts +5 -0
  39. package/dist/models/index.js +5 -0
  40. package/package.json +1 -1
@@ -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.194.0',
243
+ 'X-Api-Client-Version': '1.196.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -1,5 +1,6 @@
1
1
  import { BaseAPI } from '../../../common/BaseAPI';
2
2
  import Configuration from '../../../common/Configuration';
3
+ import ResetLiveManifestTimeshiftApi from './resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi';
3
4
  import HdApi from './hd/HdApi';
4
5
  import InsertableContentApi from './insertableContent/InsertableContentApi';
5
6
  import Scte35CueApi from './scte35Cue/Scte35CueApi';
@@ -13,6 +14,7 @@ import StartLiveEncodingRequest from '../../../models/StartLiveEncodingRequest';
13
14
  * @extends {BaseAPI}
14
15
  */
15
16
  export default class LiveApi extends BaseAPI {
17
+ resetLiveManifestTimeshift: ResetLiveManifestTimeshiftApi;
16
18
  hd: HdApi;
17
19
  insertableContent: InsertableContentApi;
18
20
  scte35Cue: Scte35CueApi;
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  var BaseAPI_1 = require("../../../common/BaseAPI");
19
19
  var Mapper_1 = require("../../../common/Mapper");
20
+ var ResetLiveManifestTimeshiftApi_1 = require("./resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi");
20
21
  var HdApi_1 = require("./hd/HdApi");
21
22
  var InsertableContentApi_1 = require("./insertableContent/InsertableContentApi");
22
23
  var Scte35CueApi_1 = require("./scte35Cue/Scte35CueApi");
@@ -33,6 +34,7 @@ var LiveApi = /** @class */ (function (_super) {
33
34
  __extends(LiveApi, _super);
34
35
  function LiveApi(configuration) {
35
36
  var _this = _super.call(this, configuration) || this;
37
+ _this.resetLiveManifestTimeshift = new ResetLiveManifestTimeshiftApi_1.default(configuration);
36
38
  _this.hd = new HdApi_1.default(configuration);
37
39
  _this.insertableContent = new InsertableContentApi_1.default(configuration);
38
40
  _this.scte35Cue = new Scte35CueApi_1.default(configuration);
@@ -0,0 +1,20 @@
1
+ import { BaseAPI } from '../../../../common/BaseAPI';
2
+ import Configuration from '../../../../common/Configuration';
3
+ import ResetLiveManifestTimeShift from '../../../../models/ResetLiveManifestTimeShift';
4
+ /**
5
+ * ResetLiveManifestTimeshiftApi - object-oriented interface
6
+ * @export
7
+ * @class ResetLiveManifestTimeshiftApi
8
+ * @extends {BaseAPI}
9
+ */
10
+ export default class ResetLiveManifestTimeshiftApi extends BaseAPI {
11
+ constructor(configuration: Configuration);
12
+ /**
13
+ * @summary Reset Live manifest time-shift
14
+ * @param {string} encodingId Id of the encoding.
15
+ * @param {ResetLiveManifestTimeShift} resetLiveManifestTimeShift Removes older segments from live manifests. This resets or reduces the time-shift (DVR) window. The `residualPeriod` value determines how many seconds will remain in the time-shift window. The original time-shift window does not change. Newer segments will be added and not removed from the manifest until the original time-shift duration is reached again. Currently, only HLS live manifests are supported.
16
+ * @throws {BitmovinError}
17
+ * @memberof ResetLiveManifestTimeshiftApi
18
+ */
19
+ create(encodingId: string, resetLiveManifestTimeShift?: ResetLiveManifestTimeShift): Promise<ResetLiveManifestTimeShift>;
20
+ }
@@ -0,0 +1,49 @@
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 ResetLiveManifestTimeShift_1 = require("../../../../models/ResetLiveManifestTimeShift");
21
+ /**
22
+ * ResetLiveManifestTimeshiftApi - object-oriented interface
23
+ * @export
24
+ * @class ResetLiveManifestTimeshiftApi
25
+ * @extends {BaseAPI}
26
+ */
27
+ var ResetLiveManifestTimeshiftApi = /** @class */ (function (_super) {
28
+ __extends(ResetLiveManifestTimeshiftApi, _super);
29
+ function ResetLiveManifestTimeshiftApi(configuration) {
30
+ return _super.call(this, configuration) || this;
31
+ }
32
+ /**
33
+ * @summary Reset Live manifest time-shift
34
+ * @param {string} encodingId Id of the encoding.
35
+ * @param {ResetLiveManifestTimeShift} resetLiveManifestTimeShift Removes older segments from live manifests. This resets or reduces the time-shift (DVR) window. The &#x60;residualPeriod&#x60; value determines how many seconds will remain in the time-shift window. The original time-shift window does not change. Newer segments will be added and not removed from the manifest until the original time-shift duration is reached again. Currently, only HLS live manifests are supported.
36
+ * @throws {BitmovinError}
37
+ * @memberof ResetLiveManifestTimeshiftApi
38
+ */
39
+ ResetLiveManifestTimeshiftApi.prototype.create = function (encodingId, resetLiveManifestTimeShift) {
40
+ var pathParamMap = {
41
+ encoding_id: encodingId
42
+ };
43
+ return this.restClient.post('/encoding/encodings/{encoding_id}/live/reset-live-manifest-timeshift', pathParamMap, resetLiveManifestTimeShift).then(function (response) {
44
+ return (0, Mapper_1.map)(response, ResetLiveManifestTimeShift_1.default);
45
+ });
46
+ };
47
+ return ResetLiveManifestTimeshiftApi;
48
+ }(BaseAPI_1.BaseAPI));
49
+ exports.default = ResetLiveManifestTimeshiftApi;
@@ -4,6 +4,7 @@ import TypeApi from './type/TypeApi';
4
4
  import ConformApi from './conform/ConformApi';
5
5
  import WatermarkApi from './watermark/WatermarkApi';
6
6
  import AudioVolumeApi from './audioVolume/AudioVolumeApi';
7
+ import AzureSpeechToCaptionsApi from './azureSpeechToCaptions/AzureSpeechToCaptionsApi';
7
8
  import EnhancedWatermarkApi from './enhancedWatermark/EnhancedWatermarkApi';
8
9
  import CropApi from './crop/CropApi';
9
10
  import RotateApi from './rotate/RotateApi';
@@ -30,6 +31,7 @@ export default class FiltersApi extends BaseAPI {
30
31
  conform: ConformApi;
31
32
  watermark: WatermarkApi;
32
33
  audioVolume: AudioVolumeApi;
34
+ azureSpeechToCaptions: AzureSpeechToCaptionsApi;
33
35
  enhancedWatermark: EnhancedWatermarkApi;
34
36
  crop: CropApi;
35
37
  rotate: RotateApi;
@@ -21,6 +21,7 @@ var TypeApi_1 = require("./type/TypeApi");
21
21
  var ConformApi_1 = require("./conform/ConformApi");
22
22
  var WatermarkApi_1 = require("./watermark/WatermarkApi");
23
23
  var AudioVolumeApi_1 = require("./audioVolume/AudioVolumeApi");
24
+ var AzureSpeechToCaptionsApi_1 = require("./azureSpeechToCaptions/AzureSpeechToCaptionsApi");
24
25
  var EnhancedWatermarkApi_1 = require("./enhancedWatermark/EnhancedWatermarkApi");
25
26
  var CropApi_1 = require("./crop/CropApi");
26
27
  var RotateApi_1 = require("./rotate/RotateApi");
@@ -50,6 +51,7 @@ var FiltersApi = /** @class */ (function (_super) {
50
51
  _this.conform = new ConformApi_1.default(configuration);
51
52
  _this.watermark = new WatermarkApi_1.default(configuration);
52
53
  _this.audioVolume = new AudioVolumeApi_1.default(configuration);
54
+ _this.azureSpeechToCaptions = new AzureSpeechToCaptionsApi_1.default(configuration);
53
55
  _this.enhancedWatermark = new EnhancedWatermarkApi_1.default(configuration);
54
56
  _this.crop = new CropApi_1.default(configuration);
55
57
  _this.rotate = new RotateApi_1.default(configuration);
@@ -0,0 +1,45 @@
1
+ import { BaseAPI } from '../../../common/BaseAPI';
2
+ import Configuration from '../../../common/Configuration';
3
+ import CustomdataApi from './customdata/CustomdataApi';
4
+ import AzureSpeechToCaptionsFilter from '../../../models/AzureSpeechToCaptionsFilter';
5
+ import BitmovinResponse from '../../../models/BitmovinResponse';
6
+ import PaginationResponse from '../../../models/PaginationResponse';
7
+ import { AzureSpeechToCaptionsFilterListQueryParams, AzureSpeechToCaptionsFilterListQueryParamsBuilder } from './AzureSpeechToCaptionsFilterListQueryParams';
8
+ /**
9
+ * AzureSpeechToCaptionsApi - object-oriented interface
10
+ * @export
11
+ * @class AzureSpeechToCaptionsApi
12
+ * @extends {BaseAPI}
13
+ */
14
+ export default class AzureSpeechToCaptionsApi extends BaseAPI {
15
+ customdata: CustomdataApi;
16
+ constructor(configuration: Configuration);
17
+ /**
18
+ * @summary Create Azure Speech to captions Filter
19
+ * @param {AzureSpeechToCaptionsFilter} azureSpeechToCaptionsFilter The Azure Speech to captions Filter to be created
20
+ * @throws {BitmovinError}
21
+ * @memberof AzureSpeechToCaptionsApi
22
+ */
23
+ create(azureSpeechToCaptionsFilter?: AzureSpeechToCaptionsFilter): Promise<AzureSpeechToCaptionsFilter>;
24
+ /**
25
+ * @summary Delete Azure Speech to captions Filter
26
+ * @param {string} filterId Id of the Azure Speech to captions Filter.
27
+ * @throws {BitmovinError}
28
+ * @memberof AzureSpeechToCaptionsApi
29
+ */
30
+ delete(filterId: string): Promise<BitmovinResponse>;
31
+ /**
32
+ * @summary Azure Speech to captions Filter details
33
+ * @param {string} filterId Id of the Azure Speech to captions Filter.
34
+ * @throws {BitmovinError}
35
+ * @memberof AzureSpeechToCaptionsApi
36
+ */
37
+ get(filterId: string): Promise<AzureSpeechToCaptionsFilter>;
38
+ /**
39
+ * @summary List Azure Speech to captions Filters
40
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
41
+ * @throws {BitmovinError}
42
+ * @memberof AzureSpeechToCaptionsApi
43
+ */
44
+ list(queryParameters?: AzureSpeechToCaptionsFilterListQueryParams | ((q: AzureSpeechToCaptionsFilterListQueryParamsBuilder) => AzureSpeechToCaptionsFilterListQueryParamsBuilder)): Promise<PaginationResponse<AzureSpeechToCaptionsFilter>>;
45
+ }
@@ -0,0 +1,97 @@
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 CustomdataApi_1 = require("./customdata/CustomdataApi");
21
+ var AzureSpeechToCaptionsFilter_1 = require("../../../models/AzureSpeechToCaptionsFilter");
22
+ var BitmovinResponse_1 = require("../../../models/BitmovinResponse");
23
+ var PaginationResponse_1 = require("../../../models/PaginationResponse");
24
+ var AzureSpeechToCaptionsFilterListQueryParams_1 = require("./AzureSpeechToCaptionsFilterListQueryParams");
25
+ /**
26
+ * AzureSpeechToCaptionsApi - object-oriented interface
27
+ * @export
28
+ * @class AzureSpeechToCaptionsApi
29
+ * @extends {BaseAPI}
30
+ */
31
+ var AzureSpeechToCaptionsApi = /** @class */ (function (_super) {
32
+ __extends(AzureSpeechToCaptionsApi, _super);
33
+ function AzureSpeechToCaptionsApi(configuration) {
34
+ var _this = _super.call(this, configuration) || this;
35
+ _this.customdata = new CustomdataApi_1.default(configuration);
36
+ return _this;
37
+ }
38
+ /**
39
+ * @summary Create Azure Speech to captions Filter
40
+ * @param {AzureSpeechToCaptionsFilter} azureSpeechToCaptionsFilter The Azure Speech to captions Filter to be created
41
+ * @throws {BitmovinError}
42
+ * @memberof AzureSpeechToCaptionsApi
43
+ */
44
+ AzureSpeechToCaptionsApi.prototype.create = function (azureSpeechToCaptionsFilter) {
45
+ return this.restClient.post('/encoding/filters/azure-speech-to-captions', {}, azureSpeechToCaptionsFilter).then(function (response) {
46
+ return (0, Mapper_1.map)(response, AzureSpeechToCaptionsFilter_1.default);
47
+ });
48
+ };
49
+ /**
50
+ * @summary Delete Azure Speech to captions Filter
51
+ * @param {string} filterId Id of the Azure Speech to captions Filter.
52
+ * @throws {BitmovinError}
53
+ * @memberof AzureSpeechToCaptionsApi
54
+ */
55
+ AzureSpeechToCaptionsApi.prototype.delete = function (filterId) {
56
+ var pathParamMap = {
57
+ filter_id: filterId
58
+ };
59
+ return this.restClient.delete('/encoding/filters/azure-speech-to-captions/{filter_id}', pathParamMap).then(function (response) {
60
+ return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
61
+ });
62
+ };
63
+ /**
64
+ * @summary Azure Speech to captions Filter details
65
+ * @param {string} filterId Id of the Azure Speech to captions Filter.
66
+ * @throws {BitmovinError}
67
+ * @memberof AzureSpeechToCaptionsApi
68
+ */
69
+ AzureSpeechToCaptionsApi.prototype.get = function (filterId) {
70
+ var pathParamMap = {
71
+ filter_id: filterId
72
+ };
73
+ return this.restClient.get('/encoding/filters/azure-speech-to-captions/{filter_id}', pathParamMap).then(function (response) {
74
+ return (0, Mapper_1.map)(response, AzureSpeechToCaptionsFilter_1.default);
75
+ });
76
+ };
77
+ /**
78
+ * @summary List Azure Speech to captions Filters
79
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
80
+ * @throws {BitmovinError}
81
+ * @memberof AzureSpeechToCaptionsApi
82
+ */
83
+ AzureSpeechToCaptionsApi.prototype.list = function (queryParameters) {
84
+ var queryParams = {};
85
+ if (typeof queryParameters === 'function') {
86
+ queryParams = queryParameters(new AzureSpeechToCaptionsFilterListQueryParams_1.AzureSpeechToCaptionsFilterListQueryParamsBuilder()).buildQueryParams();
87
+ }
88
+ else if (queryParameters) {
89
+ queryParams = queryParameters;
90
+ }
91
+ return this.restClient.get('/encoding/filters/azure-speech-to-captions', {}, queryParams).then(function (response) {
92
+ return new PaginationResponse_1.default(response, AzureSpeechToCaptionsFilter_1.default);
93
+ });
94
+ };
95
+ return AzureSpeechToCaptionsApi;
96
+ }(BaseAPI_1.BaseAPI));
97
+ exports.default = AzureSpeechToCaptionsApi;
@@ -0,0 +1,39 @@
1
+ export interface AzureSpeechToCaptionsFilterListQueryParams {
2
+ /**
3
+ * Index of the first item to return, starting at 0. Default is 0
4
+ * @type {number}
5
+ * @memberof AzureSpeechToCaptionsFilterListQueryParams
6
+ */
7
+ offset?: number | undefined;
8
+ /**
9
+ * Maximum number of items to return. Default is 25, maximum is 100
10
+ * @type {number}
11
+ * @memberof AzureSpeechToCaptionsFilterListQueryParams
12
+ */
13
+ limit?: number | undefined;
14
+ /**
15
+ * Filter filters by name
16
+ * @type {string}
17
+ * @memberof AzureSpeechToCaptionsFilterListQueryParams
18
+ */
19
+ name?: string | undefined;
20
+ }
21
+ export declare class AzureSpeechToCaptionsFilterListQueryParamsBuilder {
22
+ private internalParams;
23
+ /**
24
+ *
25
+ * @param offset Index of the first item to return, starting at 0. Default is 0
26
+ */
27
+ offset(offset: number): this;
28
+ /**
29
+ *
30
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
31
+ */
32
+ limit(limit: number): this;
33
+ /**
34
+ *
35
+ * @param name Filter filters by name
36
+ */
37
+ name(name: string): this;
38
+ buildQueryParams(): AzureSpeechToCaptionsFilterListQueryParams;
39
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AzureSpeechToCaptionsFilterListQueryParamsBuilder = void 0;
4
+ var AzureSpeechToCaptionsFilterListQueryParamsBuilder = /** @class */ (function () {
5
+ function AzureSpeechToCaptionsFilterListQueryParamsBuilder() {
6
+ this.internalParams = {};
7
+ }
8
+ /**
9
+ *
10
+ * @param offset Index of the first item to return, starting at 0. Default is 0
11
+ */
12
+ AzureSpeechToCaptionsFilterListQueryParamsBuilder.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
+ AzureSpeechToCaptionsFilterListQueryParamsBuilder.prototype.limit = function (limit) {
21
+ this.internalParams.limit = limit;
22
+ return this;
23
+ };
24
+ /**
25
+ *
26
+ * @param name Filter filters by name
27
+ */
28
+ AzureSpeechToCaptionsFilterListQueryParamsBuilder.prototype.name = function (name) {
29
+ this.internalParams.name = name;
30
+ return this;
31
+ };
32
+ AzureSpeechToCaptionsFilterListQueryParamsBuilder.prototype.buildQueryParams = function () {
33
+ return this.internalParams;
34
+ };
35
+ return AzureSpeechToCaptionsFilterListQueryParamsBuilder;
36
+ }());
37
+ exports.AzureSpeechToCaptionsFilterListQueryParamsBuilder = AzureSpeechToCaptionsFilterListQueryParamsBuilder;
@@ -0,0 +1,19 @@
1
+ import { BaseAPI } from '../../../../common/BaseAPI';
2
+ import Configuration from '../../../../common/Configuration';
3
+ import CustomData from '../../../../models/CustomData';
4
+ /**
5
+ * CustomdataApi - object-oriented interface
6
+ * @export
7
+ * @class CustomdataApi
8
+ * @extends {BaseAPI}
9
+ */
10
+ export default class CustomdataApi extends BaseAPI {
11
+ constructor(configuration: Configuration);
12
+ /**
13
+ * @summary Azure Speech to captions Filter Custom Data
14
+ * @param {string} filterId Id of the Azure Speech to captions Filter.
15
+ * @throws {BitmovinError}
16
+ * @memberof CustomdataApi
17
+ */
18
+ get(filterId: string): Promise<CustomData>;
19
+ }
@@ -0,0 +1,48 @@
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 CustomData_1 = require("../../../../models/CustomData");
21
+ /**
22
+ * CustomdataApi - object-oriented interface
23
+ * @export
24
+ * @class CustomdataApi
25
+ * @extends {BaseAPI}
26
+ */
27
+ var CustomdataApi = /** @class */ (function (_super) {
28
+ __extends(CustomdataApi, _super);
29
+ function CustomdataApi(configuration) {
30
+ return _super.call(this, configuration) || this;
31
+ }
32
+ /**
33
+ * @summary Azure Speech to captions Filter Custom Data
34
+ * @param {string} filterId Id of the Azure Speech to captions Filter.
35
+ * @throws {BitmovinError}
36
+ * @memberof CustomdataApi
37
+ */
38
+ CustomdataApi.prototype.get = function (filterId) {
39
+ var pathParamMap = {
40
+ filter_id: filterId
41
+ };
42
+ return this.restClient.get('/encoding/filters/azure-speech-to-captions/{filter_id}/customData', pathParamMap).then(function (response) {
43
+ return (0, Mapper_1.map)(response, CustomData_1.default);
44
+ });
45
+ };
46
+ return CustomdataApi;
47
+ }(BaseAPI_1.BaseAPI));
48
+ exports.default = CustomdataApi;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @export
3
+ * @class AzureSpeechServicesCredentials
4
+ */
5
+ export declare class AzureSpeechServicesCredentials {
6
+ /**
7
+ * Azure Speech Services resource key (required)
8
+ * @type {string}
9
+ * @memberof AzureSpeechServicesCredentials
10
+ */
11
+ subscriptionKey?: string;
12
+ constructor(obj?: Partial<AzureSpeechServicesCredentials>);
13
+ }
14
+ export default AzureSpeechServicesCredentials;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AzureSpeechServicesCredentials = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class AzureSpeechServicesCredentials
8
+ */
9
+ var AzureSpeechServicesCredentials = /** @class */ (function () {
10
+ function AzureSpeechServicesCredentials(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.subscriptionKey = (0, Mapper_1.map)(obj.subscriptionKey);
15
+ }
16
+ return AzureSpeechServicesCredentials;
17
+ }());
18
+ exports.AzureSpeechServicesCredentials = AzureSpeechServicesCredentials;
19
+ exports.default = AzureSpeechServicesCredentials;
@@ -0,0 +1,22 @@
1
+ import AzureSpeechToCaptionsSettings from './AzureSpeechToCaptionsSettings';
2
+ import Filter from './Filter';
3
+ import FilterType from './FilterType';
4
+ /**
5
+ * @export
6
+ * @class AzureSpeechToCaptionsFilter
7
+ */
8
+ export declare class AzureSpeechToCaptionsFilter extends Filter {
9
+ /**
10
+ * Discriminator property for Filter
11
+ * @type {string}
12
+ * @memberof AzureSpeechToCaptionsFilter
13
+ */
14
+ readonly type: FilterType;
15
+ /**
16
+ * @type {AzureSpeechToCaptionsSettings}
17
+ * @memberof AzureSpeechToCaptionsFilter
18
+ */
19
+ azureSpeechToCaptionsSettings?: AzureSpeechToCaptionsSettings;
20
+ constructor(obj?: Partial<AzureSpeechToCaptionsFilter>);
21
+ }
22
+ export default AzureSpeechToCaptionsFilter;
@@ -0,0 +1,46 @@
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.AzureSpeechToCaptionsFilter = void 0;
19
+ var Mapper_1 = require("../common/Mapper");
20
+ var AzureSpeechToCaptionsSettings_1 = require("./AzureSpeechToCaptionsSettings");
21
+ var Filter_1 = require("./Filter");
22
+ var FilterType_1 = require("./FilterType");
23
+ /**
24
+ * @export
25
+ * @class AzureSpeechToCaptionsFilter
26
+ */
27
+ var AzureSpeechToCaptionsFilter = /** @class */ (function (_super) {
28
+ __extends(AzureSpeechToCaptionsFilter, _super);
29
+ function AzureSpeechToCaptionsFilter(obj) {
30
+ var _this = _super.call(this, obj) || this;
31
+ /**
32
+ * Discriminator property for Filter
33
+ * @type {string}
34
+ * @memberof AzureSpeechToCaptionsFilter
35
+ */
36
+ _this.type = FilterType_1.default.AZURE_SPEECH_TO_CAPTIONS;
37
+ if (!obj) {
38
+ return _this;
39
+ }
40
+ _this.azureSpeechToCaptionsSettings = (0, Mapper_1.map)(obj.azureSpeechToCaptionsSettings, AzureSpeechToCaptionsSettings_1.default);
41
+ return _this;
42
+ }
43
+ return AzureSpeechToCaptionsFilter;
44
+ }(Filter_1.default));
45
+ exports.AzureSpeechToCaptionsFilter = AzureSpeechToCaptionsFilter;
46
+ exports.default = AzureSpeechToCaptionsFilter;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @export
3
+ * @enum {string}
4
+ */
5
+ export declare enum AzureSpeechToCaptionsProfanity {
6
+ MASKED = "MASKED",
7
+ REMOVED = "REMOVED",
8
+ RAW = "RAW"
9
+ }
10
+ export default AzureSpeechToCaptionsProfanity;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AzureSpeechToCaptionsProfanity = void 0;
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var AzureSpeechToCaptionsProfanity;
9
+ (function (AzureSpeechToCaptionsProfanity) {
10
+ AzureSpeechToCaptionsProfanity["MASKED"] = "MASKED";
11
+ AzureSpeechToCaptionsProfanity["REMOVED"] = "REMOVED";
12
+ AzureSpeechToCaptionsProfanity["RAW"] = "RAW";
13
+ })(AzureSpeechToCaptionsProfanity || (exports.AzureSpeechToCaptionsProfanity = AzureSpeechToCaptionsProfanity = {}));
14
+ exports.default = AzureSpeechToCaptionsProfanity;
@@ -0,0 +1,64 @@
1
+ import AzureSpeechServicesCredentials from './AzureSpeechServicesCredentials';
2
+ import AzureSpeechToCaptionsProfanity from './AzureSpeechToCaptionsProfanity';
3
+ /**
4
+ * @export
5
+ * @class AzureSpeechToCaptionsSettings
6
+ */
7
+ export declare class AzureSpeechToCaptionsSettings {
8
+ /**
9
+ * Credential settings to access Azure Speech Services
10
+ * @type {AzureSpeechServicesCredentials}
11
+ * @memberof AzureSpeechToCaptionsSettings
12
+ */
13
+ azureSpeechServicesCredentials?: AzureSpeechServicesCredentials;
14
+ /**
15
+ * Azure Speech Services Region Identifier. The list of speech service supported regions can be found at Azure's official documentation.
16
+ * @type {string}
17
+ * @memberof AzureSpeechToCaptionsSettings
18
+ */
19
+ region?: string;
20
+ /**
21
+ * Azure Speech Services API endpoint. This information can be found in Azure's Speech resource data.
22
+ * @type {string}
23
+ * @memberof AzureSpeechToCaptionsSettings
24
+ */
25
+ apiEndpoint?: string;
26
+ /**
27
+ * Azure Speech to captions supported language (IETF BCP 47 language tag). The list of supported languages can be found at Azure's official documentation.
28
+ * @type {string}
29
+ * @memberof AzureSpeechToCaptionsSettings
30
+ */
31
+ language?: string;
32
+ /**
33
+ * How many MILLISECONDS to delay the display of each caption, to mimic a real-time experience. The minimum value is 0.
34
+ * @type {number}
35
+ * @memberof AzureSpeechToCaptionsSettings
36
+ */
37
+ captionDelay?: number;
38
+ /**
39
+ * How many MILLISECONDS a caption should remain on screen if it is not replaced by another. The minimum value is 0.
40
+ * @type {number}
41
+ * @memberof AzureSpeechToCaptionsSettings
42
+ */
43
+ captionRemainTime?: number;
44
+ /**
45
+ * The maximum number of characters per line for a caption. The minimum value is 20.
46
+ * @type {number}
47
+ * @memberof AzureSpeechToCaptionsSettings
48
+ */
49
+ captionMaxLineLength?: number;
50
+ /**
51
+ * The number of lines for a caption. The minimum value is 1.
52
+ * @type {number}
53
+ * @memberof AzureSpeechToCaptionsSettings
54
+ */
55
+ captionLines?: number;
56
+ /**
57
+ * The profanity filter options are: - Masked: Replaces letters in profane words with asterisk (*) characters. - Raw: Include the profane words verbatim. - Removed: Removes profane words.
58
+ * @type {AzureSpeechToCaptionsProfanity}
59
+ * @memberof AzureSpeechToCaptionsSettings
60
+ */
61
+ profanityOption?: AzureSpeechToCaptionsProfanity;
62
+ constructor(obj?: Partial<AzureSpeechToCaptionsSettings>);
63
+ }
64
+ export default AzureSpeechToCaptionsSettings;