@bitmovin/api-sdk 1.180.0 → 1.181.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 (43) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/dist/bitmovin-api-sdk.browser.js +287 -67
  4. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  5. package/dist/common/RestClient.js +1 -1
  6. package/dist/encoding/manifests/ManifestListQueryParams.d.ts +11 -0
  7. package/dist/encoding/manifests/ManifestListQueryParams.js +8 -0
  8. package/dist/encoding/manifests/dash/DashManifestListQueryParams.d.ts +11 -0
  9. package/dist/encoding/manifests/dash/DashManifestListQueryParams.js +8 -0
  10. package/dist/encoding/manifests/hls/HlsManifestListQueryParams.d.ts +11 -0
  11. package/dist/encoding/manifests/hls/HlsManifestListQueryParams.js +8 -0
  12. package/dist/encoding/manifests/smooth/SmoothStreamingManifestListQueryParams.d.ts +11 -0
  13. package/dist/encoding/manifests/smooth/SmoothStreamingManifestListQueryParams.js +8 -0
  14. package/dist/models/GenericS3Input.d.ts +13 -0
  15. package/dist/models/GenericS3Input.js +2 -0
  16. package/dist/models/GenericS3Output.d.ts +13 -0
  17. package/dist/models/GenericS3Output.js +2 -0
  18. package/dist/models/HlsManifestAdMarkerSettings.d.ts +15 -0
  19. package/dist/models/HlsManifestAdMarkerSettings.js +19 -0
  20. package/dist/models/HlsManifestAdMarkerType.d.ts +11 -0
  21. package/dist/models/HlsManifestAdMarkerType.js +15 -0
  22. package/dist/models/LiveHlsManifest.d.ts +7 -0
  23. package/dist/models/LiveHlsManifest.js +2 -0
  24. package/dist/models/S3AccessStyle.d.ts +10 -0
  25. package/dist/models/S3AccessStyle.js +14 -0
  26. package/dist/models/StreamsLiveResponse.d.ts +5 -21
  27. package/dist/models/StreamsLiveResponse.js +36 -14
  28. package/dist/models/StreamsResponse.d.ts +46 -0
  29. package/dist/models/{StreamsSearchResponse.js → StreamsResponse.js} +12 -7
  30. package/dist/models/StreamsVideoResponse.d.ts +5 -21
  31. package/dist/models/StreamsVideoResponse.js +39 -17
  32. package/dist/models/index.d.ts +4 -1
  33. package/dist/models/index.js +4 -1
  34. package/dist/streams/StreamsApi.d.ts +2 -2
  35. package/dist/streams/StreamsApi.js +2 -2
  36. package/dist/streams/search/SearchApi.d.ts +3 -3
  37. package/dist/streams/search/SearchApi.js +4 -4
  38. package/dist/streams/search/StreamsResponseListQueryParams.d.ts +107 -0
  39. package/dist/streams/search/StreamsResponseListQueryParams.js +85 -0
  40. package/package.json +1 -1
  41. package/dist/models/StreamsSearchResponse.d.ts +0 -39
  42. package/dist/streams/search/StreamsSearchResponseListQueryParams.d.ts +0 -39
  43. package/dist/streams/search/StreamsSearchResponseListQueryParams.js +0 -37
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2023 Bitmovin Inc
3
+ Copyright (c) 2024 Bitmovin Inc
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -31,7 +31,7 @@ If you have any questions regarding the SDK, provided examples or our services,
31
31
  ## Installation
32
32
 
33
33
  ``` bash
34
- npm install @bitmovin/api-sdk@1.180.0
34
+ npm install @bitmovin/api-sdk@1.181.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -6048,7 +6048,7 @@ var HeaderHandler = /** @class */ (function (_super) {
6048
6048
  var headers = {
6049
6049
  'X-Api-Key': apiKey,
6050
6050
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
6051
- 'X-Api-Client-Version': '1.180.0',
6051
+ 'X-Api-Client-Version': '1.181.0',
6052
6052
  'Content-Type': 'application/json'
6053
6053
  };
6054
6054
  if (tenantOrgId) {
@@ -40251,6 +40251,14 @@ var ManifestListQueryParamsBuilder = /** @class */ (function () {
40251
40251
  this.internalParams.limit = limit;
40252
40252
  return this;
40253
40253
  };
40254
+ /**
40255
+ *
40256
+ * @param sort Order list result according to a filter resource attribute. The fields that can be used for sorting are: + `id` + `createdAt` + `modifiedAt` + `type` + `name`
40257
+ */
40258
+ ManifestListQueryParamsBuilder.prototype.sort = function (sort) {
40259
+ this.internalParams.sort = sort;
40260
+ return this;
40261
+ };
40254
40262
  ManifestListQueryParamsBuilder.prototype.buildQueryParams = function () {
40255
40263
  return this.internalParams;
40256
40264
  };
@@ -40535,6 +40543,14 @@ var DashManifestListQueryParamsBuilder = /** @class */ (function () {
40535
40543
  this.internalParams.limit = limit;
40536
40544
  return this;
40537
40545
  };
40546
+ /**
40547
+ *
40548
+ * @param sort Order list result according to a filter resource attribute. The fields that can be used for sorting are: + `id` + `createdAt` + `modifiedAt` + `type` + `name`
40549
+ */
40550
+ DashManifestListQueryParamsBuilder.prototype.sort = function (sort) {
40551
+ this.internalParams.sort = sort;
40552
+ return this;
40553
+ };
40538
40554
  /**
40539
40555
  *
40540
40556
  * @param encodingId Get the manifests that belong to that encoding id
@@ -45110,6 +45126,14 @@ var HlsManifestListQueryParamsBuilder = /** @class */ (function () {
45110
45126
  this.internalParams.limit = limit;
45111
45127
  return this;
45112
45128
  };
45129
+ /**
45130
+ *
45131
+ * @param sort Order list result according to a filter resource attribute. The fields that can be used for sorting are: + `id` + `createdAt` + `modifiedAt` + `type` + `name`
45132
+ */
45133
+ HlsManifestListQueryParamsBuilder.prototype.sort = function (sort) {
45134
+ this.internalParams.sort = sort;
45135
+ return this;
45136
+ };
45113
45137
  /**
45114
45138
  *
45115
45139
  * @param encodingId Get the manifests that belong to that encoding id
@@ -47007,6 +47031,14 @@ var SmoothStreamingManifestListQueryParamsBuilder = /** @class */ (function () {
47007
47031
  this.internalParams.limit = limit;
47008
47032
  return this;
47009
47033
  };
47034
+ /**
47035
+ *
47036
+ * @param sort Order list result according to a filter resource attribute. The fields that can be used for sorting are: + `id` + `createdAt` + `modifiedAt` + `type` + `name`
47037
+ */
47038
+ SmoothStreamingManifestListQueryParamsBuilder.prototype.sort = function (sort) {
47039
+ this.internalParams.sort = sort;
47040
+ return this;
47041
+ };
47010
47042
  /**
47011
47043
  *
47012
47044
  * @param encodingId Get the manifests that belong to that encoding id
@@ -69609,9 +69641,11 @@ var GenericS3Input = /** @class */ (function (_super) {
69609
69641
  _this.host = (0, Mapper_1.map)(obj.host);
69610
69642
  _this.port = (0, Mapper_1.map)(obj.port);
69611
69643
  _this.ssl = (0, Mapper_1.map)(obj.ssl);
69644
+ _this.signingRegion = (0, Mapper_1.map)(obj.signingRegion);
69612
69645
  _this.signatureVersion = (0, Mapper_1.map)(obj.signatureVersion);
69613
69646
  _this.accessKey = (0, Mapper_1.map)(obj.accessKey);
69614
69647
  _this.secretKey = (0, Mapper_1.map)(obj.secretKey);
69648
+ _this.accessStyle = (0, Mapper_1.map)(obj.accessStyle);
69615
69649
  return _this;
69616
69650
  }
69617
69651
  return GenericS3Input;
@@ -69673,7 +69707,9 @@ var GenericS3Output = /** @class */ (function (_super) {
69673
69707
  _this.host = (0, Mapper_1.map)(obj.host);
69674
69708
  _this.port = (0, Mapper_1.map)(obj.port);
69675
69709
  _this.ssl = (0, Mapper_1.map)(obj.ssl);
69710
+ _this.signingRegion = (0, Mapper_1.map)(obj.signingRegion);
69676
69711
  _this.signatureVersion = (0, Mapper_1.map)(obj.signatureVersion);
69712
+ _this.accessStyle = (0, Mapper_1.map)(obj.accessStyle);
69677
69713
  return _this;
69678
69714
  }
69679
69715
  return GenericS3Output;
@@ -70915,6 +70951,62 @@ exports.HlsManifest = HlsManifest;
70915
70951
  exports["default"] = HlsManifest;
70916
70952
 
70917
70953
 
70954
+ /***/ }),
70955
+
70956
+ /***/ "./models/HlsManifestAdMarkerSettings.ts":
70957
+ /*!***********************************************!*\
70958
+ !*** ./models/HlsManifestAdMarkerSettings.ts ***!
70959
+ \***********************************************/
70960
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
70961
+
70962
+ "use strict";
70963
+
70964
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
70965
+ exports.HlsManifestAdMarkerSettings = void 0;
70966
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
70967
+ /**
70968
+ * @export
70969
+ * @class HlsManifestAdMarkerSettings
70970
+ */
70971
+ var HlsManifestAdMarkerSettings = /** @class */ (function () {
70972
+ function HlsManifestAdMarkerSettings(obj) {
70973
+ if (!obj) {
70974
+ return;
70975
+ }
70976
+ this.enabledMarkerTypes = (0, Mapper_1.mapArray)(obj.enabledMarkerTypes);
70977
+ }
70978
+ return HlsManifestAdMarkerSettings;
70979
+ }());
70980
+ exports.HlsManifestAdMarkerSettings = HlsManifestAdMarkerSettings;
70981
+ exports["default"] = HlsManifestAdMarkerSettings;
70982
+
70983
+
70984
+ /***/ }),
70985
+
70986
+ /***/ "./models/HlsManifestAdMarkerType.ts":
70987
+ /*!*******************************************!*\
70988
+ !*** ./models/HlsManifestAdMarkerType.ts ***!
70989
+ \*******************************************/
70990
+ /***/ ((__unused_webpack_module, exports) => {
70991
+
70992
+ "use strict";
70993
+
70994
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
70995
+ exports.HlsManifestAdMarkerType = void 0;
70996
+ /**
70997
+ * HLS Manifest ad marker types
70998
+ * @export
70999
+ * @enum {string}
71000
+ */
71001
+ var HlsManifestAdMarkerType;
71002
+ (function (HlsManifestAdMarkerType) {
71003
+ HlsManifestAdMarkerType["EXT_X_CUE_OUT_IN"] = "EXT_X_CUE_OUT_IN";
71004
+ HlsManifestAdMarkerType["EXT_OATCLS_SCTE35"] = "EXT_OATCLS_SCTE35";
71005
+ HlsManifestAdMarkerType["EXT_X_SPLICEPOINT_SCTE35"] = "EXT_X_SPLICEPOINT_SCTE35";
71006
+ })(HlsManifestAdMarkerType || (exports.HlsManifestAdMarkerType = HlsManifestAdMarkerType = {}));
71007
+ exports["default"] = HlsManifestAdMarkerType;
71008
+
71009
+
70918
71010
  /***/ }),
70919
71011
 
70920
71012
  /***/ "./models/HlsManifestDefault.ts":
@@ -73024,6 +73116,7 @@ exports["default"] = LiveEncodingStatus;
73024
73116
  Object.defineProperty(exports, "__esModule", ({ value: true }));
73025
73117
  exports.LiveHlsManifest = void 0;
73026
73118
  var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
73119
+ var HlsManifestAdMarkerSettings_1 = __webpack_require__(/*! ./HlsManifestAdMarkerSettings */ "./models/HlsManifestAdMarkerSettings.ts");
73027
73120
  var ProgramDateTimeSettings_1 = __webpack_require__(/*! ./ProgramDateTimeSettings */ "./models/ProgramDateTimeSettings.ts");
73028
73121
  /**
73029
73122
  * @export
@@ -73039,6 +73132,7 @@ var LiveHlsManifest = /** @class */ (function () {
73039
73132
  this.liveEdgeOffset = (0, Mapper_1.map)(obj.liveEdgeOffset);
73040
73133
  this.insertProgramDateTime = (0, Mapper_1.map)(obj.insertProgramDateTime);
73041
73134
  this.programDateTimeSettings = (0, Mapper_1.map)(obj.programDateTimeSettings, ProgramDateTimeSettings_1.default);
73135
+ this.adMarkerSettings = (0, Mapper_1.map)(obj.adMarkerSettings, HlsManifestAdMarkerSettings_1.default);
73042
73136
  }
73043
73137
  return LiveHlsManifest;
73044
73138
  }());
@@ -77996,6 +78090,31 @@ exports.RtmpInput = RtmpInput;
77996
78090
  exports["default"] = RtmpInput;
77997
78091
 
77998
78092
 
78093
+ /***/ }),
78094
+
78095
+ /***/ "./models/S3AccessStyle.ts":
78096
+ /*!*********************************!*\
78097
+ !*** ./models/S3AccessStyle.ts ***!
78098
+ \*********************************/
78099
+ /***/ ((__unused_webpack_module, exports) => {
78100
+
78101
+ "use strict";
78102
+
78103
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
78104
+ exports.S3AccessStyle = void 0;
78105
+ /**
78106
+ * Specifies whether to use path or virtual-hosted style access
78107
+ * @export
78108
+ * @enum {string}
78109
+ */
78110
+ var S3AccessStyle;
78111
+ (function (S3AccessStyle) {
78112
+ S3AccessStyle["VIRTUAL_HOSTED"] = "VIRTUAL_HOSTED";
78113
+ S3AccessStyle["PATH"] = "PATH";
78114
+ })(S3AccessStyle || (exports.S3AccessStyle = S3AccessStyle = {}));
78115
+ exports["default"] = S3AccessStyle;
78116
+
78117
+
77999
78118
  /***/ }),
78000
78119
 
78001
78120
  /***/ "./models/S3Input.ts":
@@ -82642,39 +82761,61 @@ exports["default"] = StreamsLiveLifeCycle;
82642
82761
  /*!***************************************!*\
82643
82762
  !*** ./models/StreamsLiveResponse.ts ***!
82644
82763
  \***************************************/
82645
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
82764
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
82646
82765
 
82647
82766
  "use strict";
82648
82767
 
82768
+ var __extends = (this && this.__extends) || (function () {
82769
+ var extendStatics = function (d, b) {
82770
+ extendStatics = Object.setPrototypeOf ||
82771
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
82772
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
82773
+ return extendStatics(d, b);
82774
+ };
82775
+ return function (d, b) {
82776
+ if (typeof b !== "function" && b !== null)
82777
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
82778
+ extendStatics(d, b);
82779
+ function __() { this.constructor = d; }
82780
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
82781
+ };
82782
+ })();
82649
82783
  Object.defineProperty(exports, "__esModule", ({ value: true }));
82650
82784
  exports.StreamsLiveResponse = void 0;
82651
82785
  var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
82652
82786
  var StreamsAdConfigResponse_1 = __webpack_require__(/*! ./StreamsAdConfigResponse */ "./models/StreamsAdConfigResponse.ts");
82653
82787
  var StreamsContentProtectionResponse_1 = __webpack_require__(/*! ./StreamsContentProtectionResponse */ "./models/StreamsContentProtectionResponse.ts");
82788
+ var StreamsResponse_1 = __webpack_require__(/*! ./StreamsResponse */ "./models/StreamsResponse.ts");
82654
82789
  var StreamsStyleConfigResponse_1 = __webpack_require__(/*! ./StreamsStyleConfigResponse */ "./models/StreamsStyleConfigResponse.ts");
82790
+ var StreamsType_1 = __webpack_require__(/*! ./StreamsType */ "./models/StreamsType.ts");
82655
82791
  /**
82656
82792
  * @export
82657
82793
  * @class StreamsLiveResponse
82658
82794
  */
82659
- var StreamsLiveResponse = /** @class */ (function () {
82795
+ var StreamsLiveResponse = /** @class */ (function (_super) {
82796
+ __extends(StreamsLiveResponse, _super);
82660
82797
  function StreamsLiveResponse(obj) {
82798
+ var _this = _super.call(this, obj) || this;
82799
+ /**
82800
+ * Discriminator property for StreamsResponse
82801
+ * @type {string}
82802
+ * @memberof StreamsLiveResponse
82803
+ */
82804
+ _this.type = StreamsType_1.default.LIVE;
82661
82805
  if (!obj) {
82662
- return;
82806
+ return _this;
82663
82807
  }
82664
- this.id = (0, Mapper_1.map)(obj.id);
82665
- this.streamKey = (0, Mapper_1.map)(obj.streamKey);
82666
- this.title = (0, Mapper_1.map)(obj.title);
82667
- this.description = (0, Mapper_1.map)(obj.description);
82668
- this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
82669
- this.lifeCycle = (0, Mapper_1.map)(obj.lifeCycle);
82670
- this.styleConfig = (0, Mapper_1.map)(obj.styleConfig, StreamsStyleConfigResponse_1.default);
82671
- this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
82672
- this.adConfig = (0, Mapper_1.map)(obj.adConfig, StreamsAdConfigResponse_1.default);
82673
- this.contentProtection = (0, Mapper_1.map)(obj.contentProtection, StreamsContentProtectionResponse_1.default);
82674
- this.trimming = (0, Mapper_1.map)(obj.trimming);
82808
+ _this.streamKey = (0, Mapper_1.map)(obj.streamKey);
82809
+ _this.lifeCycle = (0, Mapper_1.map)(obj.lifeCycle);
82810
+ _this.styleConfig = (0, Mapper_1.map)(obj.styleConfig, StreamsStyleConfigResponse_1.default);
82811
+ _this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
82812
+ _this.adConfig = (0, Mapper_1.map)(obj.adConfig, StreamsAdConfigResponse_1.default);
82813
+ _this.contentProtection = (0, Mapper_1.map)(obj.contentProtection, StreamsContentProtectionResponse_1.default);
82814
+ _this.trimming = (0, Mapper_1.map)(obj.trimming);
82815
+ return _this;
82675
82816
  }
82676
82817
  return StreamsLiveResponse;
82677
- }());
82818
+ }(StreamsResponse_1.default));
82678
82819
  exports.StreamsLiveResponse = StreamsLiveResponse;
82679
82820
  exports["default"] = StreamsLiveResponse;
82680
82821
 
@@ -82775,23 +82916,23 @@ exports["default"] = StreamsPublicSigningKeyResponse;
82775
82916
 
82776
82917
  /***/ }),
82777
82918
 
82778
- /***/ "./models/StreamsSearchResponse.ts":
82779
- /*!*****************************************!*\
82780
- !*** ./models/StreamsSearchResponse.ts ***!
82781
- \*****************************************/
82919
+ /***/ "./models/StreamsResponse.ts":
82920
+ /*!***********************************!*\
82921
+ !*** ./models/StreamsResponse.ts ***!
82922
+ \***********************************/
82782
82923
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
82783
82924
 
82784
82925
  "use strict";
82785
82926
 
82786
82927
  Object.defineProperty(exports, "__esModule", ({ value: true }));
82787
- exports.StreamsSearchResponse = void 0;
82928
+ exports.StreamsResponse = void 0;
82788
82929
  var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
82789
82930
  /**
82790
82931
  * @export
82791
- * @class StreamsSearchResponse
82932
+ * @class StreamsResponse
82792
82933
  */
82793
- var StreamsSearchResponse = /** @class */ (function () {
82794
- function StreamsSearchResponse(obj) {
82934
+ var StreamsResponse = /** @class */ (function () {
82935
+ function StreamsResponse(obj) {
82795
82936
  if (!obj) {
82796
82937
  return;
82797
82938
  }
@@ -82801,10 +82942,15 @@ var StreamsSearchResponse = /** @class */ (function () {
82801
82942
  this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
82802
82943
  this.type = (0, Mapper_1.map)(obj.type);
82803
82944
  }
82804
- return StreamsSearchResponse;
82945
+ StreamsResponse._discriminatorName = 'type';
82946
+ StreamsResponse._discriminatorMapping = {
82947
+ VIDEO: 'StreamsVideoResponse',
82948
+ LIVE: 'StreamsLiveResponse'
82949
+ };
82950
+ return StreamsResponse;
82805
82951
  }());
82806
- exports.StreamsSearchResponse = StreamsSearchResponse;
82807
- exports["default"] = StreamsSearchResponse;
82952
+ exports.StreamsResponse = StreamsResponse;
82953
+ exports["default"] = StreamsResponse;
82808
82954
 
82809
82955
 
82810
82956
  /***/ }),
@@ -83083,43 +83229,65 @@ exports["default"] = StreamsVideoQuality;
83083
83229
  /*!****************************************!*\
83084
83230
  !*** ./models/StreamsVideoResponse.ts ***!
83085
83231
  \****************************************/
83086
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
83232
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
83087
83233
 
83088
83234
  "use strict";
83089
83235
 
83236
+ var __extends = (this && this.__extends) || (function () {
83237
+ var extendStatics = function (d, b) {
83238
+ extendStatics = Object.setPrototypeOf ||
83239
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
83240
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
83241
+ return extendStatics(d, b);
83242
+ };
83243
+ return function (d, b) {
83244
+ if (typeof b !== "function" && b !== null)
83245
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
83246
+ extendStatics(d, b);
83247
+ function __() { this.constructor = d; }
83248
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
83249
+ };
83250
+ })();
83090
83251
  Object.defineProperty(exports, "__esModule", ({ value: true }));
83091
83252
  exports.StreamsVideoResponse = void 0;
83092
83253
  var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
83093
83254
  var StreamsAdConfigResponse_1 = __webpack_require__(/*! ./StreamsAdConfigResponse */ "./models/StreamsAdConfigResponse.ts");
83094
83255
  var StreamsContentProtectionResponse_1 = __webpack_require__(/*! ./StreamsContentProtectionResponse */ "./models/StreamsContentProtectionResponse.ts");
83256
+ var StreamsResponse_1 = __webpack_require__(/*! ./StreamsResponse */ "./models/StreamsResponse.ts");
83095
83257
  var StreamsStyleConfigResponse_1 = __webpack_require__(/*! ./StreamsStyleConfigResponse */ "./models/StreamsStyleConfigResponse.ts");
83258
+ var StreamsType_1 = __webpack_require__(/*! ./StreamsType */ "./models/StreamsType.ts");
83096
83259
  var StreamsVideoEncodingTask_1 = __webpack_require__(/*! ./StreamsVideoEncodingTask */ "./models/StreamsVideoEncodingTask.ts");
83097
83260
  /**
83098
83261
  * @export
83099
83262
  * @class StreamsVideoResponse
83100
83263
  */
83101
- var StreamsVideoResponse = /** @class */ (function () {
83264
+ var StreamsVideoResponse = /** @class */ (function (_super) {
83265
+ __extends(StreamsVideoResponse, _super);
83102
83266
  function StreamsVideoResponse(obj) {
83267
+ var _this = _super.call(this, obj) || this;
83268
+ /**
83269
+ * Discriminator property for StreamsResponse
83270
+ * @type {string}
83271
+ * @memberof StreamsVideoResponse
83272
+ */
83273
+ _this.type = StreamsType_1.default.VIDEO;
83103
83274
  if (!obj) {
83104
- return;
83275
+ return _this;
83105
83276
  }
83106
- this.id = (0, Mapper_1.map)(obj.id);
83107
- this.assetUrl = (0, Mapper_1.map)(obj.assetUrl);
83108
- this.title = (0, Mapper_1.map)(obj.title);
83109
- this.description = (0, Mapper_1.map)(obj.description);
83110
- this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
83111
- this.status = (0, Mapper_1.map)(obj.status);
83112
- this.styleConfig = (0, Mapper_1.map)(obj.styleConfig, StreamsStyleConfigResponse_1.default);
83113
- this.encodingTasks = (0, Mapper_1.mapArray)(obj.encodingTasks, StreamsVideoEncodingTask_1.default);
83114
- this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
83115
- this.adConfig = (0, Mapper_1.map)(obj.adConfig, StreamsAdConfigResponse_1.default);
83116
- this.contentProtection = (0, Mapper_1.map)(obj.contentProtection, StreamsContentProtectionResponse_1.default);
83117
- this.trimming = (0, Mapper_1.map)(obj.trimming);
83118
- this.downloadUrl = (0, Mapper_1.map)(obj.downloadUrl);
83119
- this.signed = (0, Mapper_1.map)(obj.signed);
83277
+ _this.assetUrl = (0, Mapper_1.map)(obj.assetUrl);
83278
+ _this.status = (0, Mapper_1.map)(obj.status);
83279
+ _this.styleConfig = (0, Mapper_1.map)(obj.styleConfig, StreamsStyleConfigResponse_1.default);
83280
+ _this.encodingTasks = (0, Mapper_1.mapArray)(obj.encodingTasks, StreamsVideoEncodingTask_1.default);
83281
+ _this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
83282
+ _this.adConfig = (0, Mapper_1.map)(obj.adConfig, StreamsAdConfigResponse_1.default);
83283
+ _this.contentProtection = (0, Mapper_1.map)(obj.contentProtection, StreamsContentProtectionResponse_1.default);
83284
+ _this.trimming = (0, Mapper_1.map)(obj.trimming);
83285
+ _this.downloadUrl = (0, Mapper_1.map)(obj.downloadUrl);
83286
+ _this.signed = (0, Mapper_1.map)(obj.signed);
83287
+ return _this;
83120
83288
  }
83121
83289
  return StreamsVideoResponse;
83122
- }());
83290
+ }(StreamsResponse_1.default));
83123
83291
  exports.StreamsVideoResponse = StreamsVideoResponse;
83124
83292
  exports["default"] = StreamsVideoResponse;
83125
83293
 
@@ -86883,6 +87051,8 @@ __exportStar(__webpack_require__(/*! ./HistoryEncoding */ "./models/HistoryEncod
86883
87051
  __exportStar(__webpack_require__(/*! ./HistoryMuxing */ "./models/HistoryMuxing.ts"), exports);
86884
87052
  __exportStar(__webpack_require__(/*! ./HistoryStream */ "./models/HistoryStream.ts"), exports);
86885
87053
  __exportStar(__webpack_require__(/*! ./HlsManifest */ "./models/HlsManifest.ts"), exports);
87054
+ __exportStar(__webpack_require__(/*! ./HlsManifestAdMarkerSettings */ "./models/HlsManifestAdMarkerSettings.ts"), exports);
87055
+ __exportStar(__webpack_require__(/*! ./HlsManifestAdMarkerType */ "./models/HlsManifestAdMarkerType.ts"), exports);
86886
87056
  __exportStar(__webpack_require__(/*! ./HlsManifestDefault */ "./models/HlsManifestDefault.ts"), exports);
86887
87057
  __exportStar(__webpack_require__(/*! ./HlsManifestDefaultVersion */ "./models/HlsManifestDefaultVersion.ts"), exports);
86888
87058
  __exportStar(__webpack_require__(/*! ./HlsTargetDurationRoundingMode */ "./models/HlsTargetDurationRoundingMode.ts"), exports);
@@ -87073,6 +87243,7 @@ __exportStar(__webpack_require__(/*! ./ReuploadSettings */ "./models/ReuploadSet
87073
87243
  __exportStar(__webpack_require__(/*! ./RotateFilter */ "./models/RotateFilter.ts"), exports);
87074
87244
  __exportStar(__webpack_require__(/*! ./RtmpIngestPoint */ "./models/RtmpIngestPoint.ts"), exports);
87075
87245
  __exportStar(__webpack_require__(/*! ./RtmpInput */ "./models/RtmpInput.ts"), exports);
87246
+ __exportStar(__webpack_require__(/*! ./S3AccessStyle */ "./models/S3AccessStyle.ts"), exports);
87076
87247
  __exportStar(__webpack_require__(/*! ./S3Input */ "./models/S3Input.ts"), exports);
87077
87248
  __exportStar(__webpack_require__(/*! ./S3Output */ "./models/S3Output.ts"), exports);
87078
87249
  __exportStar(__webpack_require__(/*! ./S3RoleBasedInput */ "./models/S3RoleBasedInput.ts"), exports);
@@ -87193,7 +87364,7 @@ __exportStar(__webpack_require__(/*! ./StreamsLiveResponse */ "./models/StreamsL
87193
87364
  __exportStar(__webpack_require__(/*! ./StreamsLiveUpdateRequest */ "./models/StreamsLiveUpdateRequest.ts"), exports);
87194
87365
  __exportStar(__webpack_require__(/*! ./StreamsPublicSigningKey */ "./models/StreamsPublicSigningKey.ts"), exports);
87195
87366
  __exportStar(__webpack_require__(/*! ./StreamsPublicSigningKeyResponse */ "./models/StreamsPublicSigningKeyResponse.ts"), exports);
87196
- __exportStar(__webpack_require__(/*! ./StreamsSearchResponse */ "./models/StreamsSearchResponse.ts"), exports);
87367
+ __exportStar(__webpack_require__(/*! ./StreamsResponse */ "./models/StreamsResponse.ts"), exports);
87197
87368
  __exportStar(__webpack_require__(/*! ./StreamsSigningKeyResponse */ "./models/StreamsSigningKeyResponse.ts"), exports);
87198
87369
  __exportStar(__webpack_require__(/*! ./StreamsStyleConfigPlayerStyle */ "./models/StreamsStyleConfigPlayerStyle.ts"), exports);
87199
87370
  __exportStar(__webpack_require__(/*! ./StreamsStyleConfigResponse */ "./models/StreamsStyleConfigResponse.ts"), exports);
@@ -90897,9 +91068,9 @@ var __extends = (this && this.__extends) || (function () {
90897
91068
  })();
90898
91069
  Object.defineProperty(exports, "__esModule", ({ value: true }));
90899
91070
  var BaseAPI_1 = __webpack_require__(/*! ../common/BaseAPI */ "./common/BaseAPI.ts");
90900
- var SearchApi_1 = __webpack_require__(/*! ./search/SearchApi */ "./streams/search/SearchApi.ts");
90901
91071
  var VideoApi_1 = __webpack_require__(/*! ./video/VideoApi */ "./streams/video/VideoApi.ts");
90902
91072
  var LiveApi_1 = __webpack_require__(/*! ./live/LiveApi */ "./streams/live/LiveApi.ts");
91073
+ var SearchApi_1 = __webpack_require__(/*! ./search/SearchApi */ "./streams/search/SearchApi.ts");
90903
91074
  var SigningKeysApi_1 = __webpack_require__(/*! ./signingKeys/SigningKeysApi */ "./streams/signingKeys/SigningKeysApi.ts");
90904
91075
  /**
90905
91076
  * StreamsApi - object-oriented interface
@@ -90911,9 +91082,9 @@ var StreamsApi = /** @class */ (function (_super) {
90911
91082
  __extends(StreamsApi, _super);
90912
91083
  function StreamsApi(configuration) {
90913
91084
  var _this = _super.call(this, configuration) || this;
90914
- _this.search = new SearchApi_1.default(configuration);
90915
91085
  _this.video = new VideoApi_1.default(configuration);
90916
91086
  _this.live = new LiveApi_1.default(configuration);
91087
+ _this.search = new SearchApi_1.default(configuration);
90917
91088
  _this.signingKeys = new SigningKeysApi_1.default(configuration);
90918
91089
  return _this;
90919
91090
  }
@@ -91237,9 +91408,9 @@ var __extends = (this && this.__extends) || (function () {
91237
91408
  })();
91238
91409
  Object.defineProperty(exports, "__esModule", ({ value: true }));
91239
91410
  var BaseAPI_1 = __webpack_require__(/*! ../../common/BaseAPI */ "./common/BaseAPI.ts");
91240
- var StreamsSearchResponse_1 = __webpack_require__(/*! ../../models/StreamsSearchResponse */ "./models/StreamsSearchResponse.ts");
91411
+ var StreamsResponse_1 = __webpack_require__(/*! ../../models/StreamsResponse */ "./models/StreamsResponse.ts");
91241
91412
  var PaginationResponse_1 = __webpack_require__(/*! ../../models/PaginationResponse */ "./models/PaginationResponse.ts");
91242
- var StreamsSearchResponseListQueryParams_1 = __webpack_require__(/*! ./StreamsSearchResponseListQueryParams */ "./streams/search/StreamsSearchResponseListQueryParams.ts");
91413
+ var StreamsResponseListQueryParams_1 = __webpack_require__(/*! ./StreamsResponseListQueryParams */ "./streams/search/StreamsResponseListQueryParams.ts");
91243
91414
  /**
91244
91415
  * SearchApi - object-oriented interface
91245
91416
  * @export
@@ -91260,13 +91431,13 @@ var SearchApi = /** @class */ (function (_super) {
91260
91431
  SearchApi.prototype.list = function (queryParameters) {
91261
91432
  var queryParams = {};
91262
91433
  if (typeof queryParameters === 'function') {
91263
- queryParams = queryParameters(new StreamsSearchResponseListQueryParams_1.StreamsSearchResponseListQueryParamsBuilder()).buildQueryParams();
91434
+ queryParams = queryParameters(new StreamsResponseListQueryParams_1.StreamsResponseListQueryParamsBuilder()).buildQueryParams();
91264
91435
  }
91265
91436
  else if (queryParameters) {
91266
91437
  queryParams = queryParameters;
91267
91438
  }
91268
91439
  return this.restClient.get('/streams/search', {}, queryParams).then(function (response) {
91269
- return new PaginationResponse_1.default(response, StreamsSearchResponse_1.default);
91440
+ return new PaginationResponse_1.default(response, StreamsResponse_1.default);
91270
91441
  });
91271
91442
  };
91272
91443
  return SearchApi;
@@ -91276,25 +91447,25 @@ exports["default"] = SearchApi;
91276
91447
 
91277
91448
  /***/ }),
91278
91449
 
91279
- /***/ "./streams/search/StreamsSearchResponseListQueryParams.ts":
91280
- /*!****************************************************************!*\
91281
- !*** ./streams/search/StreamsSearchResponseListQueryParams.ts ***!
91282
- \****************************************************************/
91450
+ /***/ "./streams/search/StreamsResponseListQueryParams.ts":
91451
+ /*!**********************************************************!*\
91452
+ !*** ./streams/search/StreamsResponseListQueryParams.ts ***!
91453
+ \**********************************************************/
91283
91454
  /***/ ((__unused_webpack_module, exports) => {
91284
91455
 
91285
91456
  "use strict";
91286
91457
 
91287
91458
  Object.defineProperty(exports, "__esModule", ({ value: true }));
91288
- exports.StreamsSearchResponseListQueryParamsBuilder = void 0;
91289
- var StreamsSearchResponseListQueryParamsBuilder = /** @class */ (function () {
91290
- function StreamsSearchResponseListQueryParamsBuilder() {
91459
+ exports.StreamsResponseListQueryParamsBuilder = void 0;
91460
+ var StreamsResponseListQueryParamsBuilder = /** @class */ (function () {
91461
+ function StreamsResponseListQueryParamsBuilder() {
91291
91462
  this.internalParams = {};
91292
91463
  }
91293
91464
  /**
91294
91465
  *
91295
91466
  * @param offset Index of the first item to return, starting at 0. Default is 0
91296
91467
  */
91297
- StreamsSearchResponseListQueryParamsBuilder.prototype.offset = function (offset) {
91468
+ StreamsResponseListQueryParamsBuilder.prototype.offset = function (offset) {
91298
91469
  this.internalParams.offset = offset;
91299
91470
  return this;
91300
91471
  };
@@ -91302,24 +91473,72 @@ var StreamsSearchResponseListQueryParamsBuilder = /** @class */ (function () {
91302
91473
  *
91303
91474
  * @param limit Maximum number of items to return. Default is 25, maximum is 100
91304
91475
  */
91305
- StreamsSearchResponseListQueryParamsBuilder.prototype.limit = function (limit) {
91476
+ StreamsResponseListQueryParamsBuilder.prototype.limit = function (limit) {
91306
91477
  this.internalParams.limit = limit;
91307
91478
  return this;
91308
91479
  };
91309
91480
  /**
91310
91481
  *
91311
- * @param query Query to search against
91482
+ * @param query Query to search for in a streams' title, description and ID
91312
91483
  */
91313
- StreamsSearchResponseListQueryParamsBuilder.prototype.query = function (query) {
91484
+ StreamsResponseListQueryParamsBuilder.prototype.query = function (query) {
91314
91485
  this.internalParams.query = query;
91315
91486
  return this;
91316
91487
  };
91317
- StreamsSearchResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
91488
+ /**
91489
+ *
91490
+ * @param type Type of stream to search for
91491
+ */
91492
+ StreamsResponseListQueryParamsBuilder.prototype.type = function (type) {
91493
+ this.internalParams.type = type;
91494
+ return this;
91495
+ };
91496
+ /**
91497
+ *
91498
+ * @param status Status of the streams to search for
91499
+ */
91500
+ StreamsResponseListQueryParamsBuilder.prototype.status = function (status) {
91501
+ this.internalParams.status = status;
91502
+ return this;
91503
+ };
91504
+ /**
91505
+ *
91506
+ * @param createdBefore Upper limit for the creation date of found streams as UTC in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
91507
+ */
91508
+ StreamsResponseListQueryParamsBuilder.prototype.createdBefore = function (createdBefore) {
91509
+ this.internalParams.createdBefore = createdBefore;
91510
+ return this;
91511
+ };
91512
+ /**
91513
+ *
91514
+ * @param createdAfter Lower limit for the creation date of found streams as UTC in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
91515
+ */
91516
+ StreamsResponseListQueryParamsBuilder.prototype.createdAfter = function (createdAfter) {
91517
+ this.internalParams.createdAfter = createdAfter;
91518
+ return this;
91519
+ };
91520
+ /**
91521
+ *
91522
+ * @param signed Filter for token-protected/signed streams
91523
+ */
91524
+ StreamsResponseListQueryParamsBuilder.prototype.signed = function (signed) {
91525
+ this.internalParams.signed = signed;
91526
+ return this;
91527
+ };
91528
+ /**
91529
+ *
91530
+ * @param domainRestricted Filter for domain-restricted streams
91531
+ */
91532
+ StreamsResponseListQueryParamsBuilder.prototype.domainRestricted = function (domainRestricted) {
91533
+ this.internalParams.domainRestricted = domainRestricted;
91534
+ return this;
91535
+ };
91536
+ StreamsResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
91318
91537
  return this.internalParams;
91319
91538
  };
91320
- return StreamsSearchResponseListQueryParamsBuilder;
91539
+ return StreamsResponseListQueryParamsBuilder;
91321
91540
  }());
91322
- exports.StreamsSearchResponseListQueryParamsBuilder = StreamsSearchResponseListQueryParamsBuilder;
91541
+ exports.StreamsResponseListQueryParamsBuilder = StreamsResponseListQueryParamsBuilder;
91323
91542
 
91324
91543
 
91325
91544
  /***/ }),
@@ -92173,6 +92392,7 @@ Response.prototype.clone = function() {
92173
92392
 
92174
92393
  Response.error = function() {
92175
92394
  var response = new Response(null, {status: 200, statusText: ''})
92395
+ response.ok = false
92176
92396
  response.status = 0
92177
92397
  response.type = 'error'
92178
92398
  return response
@@ -92223,7 +92443,7 @@ function fetch(input, init) {
92223
92443
  }
92224
92444
  // This check if specifically for when a user fetches a file locally from the file system
92225
92445
  // Only if the status is out of a normal range
92226
- if (request.url.startsWith('file://') && (xhr.status < 200 || xhr.status > 599)) {
92446
+ if (request.url.indexOf('file://') === 0 && (xhr.status < 200 || xhr.status > 599)) {
92227
92447
  options.status = 200;
92228
92448
  } else {
92229
92449
  options.status = xhr.status;