@bitmovin/api-sdk 1.156.0 → 1.158.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.
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.156.0
34
+ npm install @bitmovin/api-sdk@1.158.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -5987,7 +5987,7 @@ var HeaderHandler = /** @class */ (function (_super) {
5987
5987
  var headers = {
5988
5988
  'X-Api-Key': apiKey,
5989
5989
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
5990
- 'X-Api-Client-Version': '1.156.0',
5990
+ 'X-Api-Client-Version': '1.158.0',
5991
5991
  'Content-Type': 'application/json'
5992
5992
  };
5993
5993
  if (tenantOrgId) {
@@ -81224,6 +81224,8 @@ var StreamsConfigResponse = /** @class */ (function () {
81224
81224
  this.id = (0, Mapper_1.map)(obj.id);
81225
81225
  this.orgId = (0, Mapper_1.map)(obj.orgId);
81226
81226
  this.playerStyle = (0, Mapper_1.map)(obj.playerStyle);
81227
+ this.watermarkUrl = (0, Mapper_1.map)(obj.watermarkUrl);
81228
+ this.watermarkTargetLink = (0, Mapper_1.map)(obj.watermarkTargetLink);
81227
81229
  }
81228
81230
  return StreamsConfigResponse;
81229
81231
  }());
@@ -81233,32 +81235,97 @@ exports["default"] = StreamsConfigResponse;
81233
81235
 
81234
81236
  /***/ }),
81235
81237
 
81236
- /***/ "./models/StreamsConfigUpdateRequest.ts":
81237
- /*!**********************************************!*\
81238
- !*** ./models/StreamsConfigUpdateRequest.ts ***!
81239
- \**********************************************/
81238
+ /***/ "./models/StreamsLiveCreateRequest.ts":
81239
+ /*!********************************************!*\
81240
+ !*** ./models/StreamsLiveCreateRequest.ts ***!
81241
+ \********************************************/
81240
81242
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
81241
81243
 
81242
81244
  "use strict";
81243
81245
 
81244
81246
  Object.defineProperty(exports, "__esModule", ({ value: true }));
81245
- exports.StreamsConfigUpdateRequest = void 0;
81247
+ exports.StreamsLiveCreateRequest = void 0;
81246
81248
  var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
81247
81249
  /**
81248
81250
  * @export
81249
- * @class StreamsConfigUpdateRequest
81251
+ * @class StreamsLiveCreateRequest
81250
81252
  */
81251
- var StreamsConfigUpdateRequest = /** @class */ (function () {
81252
- function StreamsConfigUpdateRequest(obj) {
81253
+ var StreamsLiveCreateRequest = /** @class */ (function () {
81254
+ function StreamsLiveCreateRequest(obj) {
81253
81255
  if (!obj) {
81254
81256
  return;
81255
81257
  }
81256
- this.playerStyle = (0, Mapper_1.map)(obj.playerStyle);
81258
+ this.title = (0, Mapper_1.map)(obj.title);
81259
+ this.description = (0, Mapper_1.map)(obj.description);
81260
+ this.configId = (0, Mapper_1.map)(obj.configId);
81257
81261
  }
81258
- return StreamsConfigUpdateRequest;
81262
+ return StreamsLiveCreateRequest;
81259
81263
  }());
81260
- exports.StreamsConfigUpdateRequest = StreamsConfigUpdateRequest;
81261
- exports["default"] = StreamsConfigUpdateRequest;
81264
+ exports.StreamsLiveCreateRequest = StreamsLiveCreateRequest;
81265
+ exports["default"] = StreamsLiveCreateRequest;
81266
+
81267
+
81268
+ /***/ }),
81269
+
81270
+ /***/ "./models/StreamsLiveLifeCycle.ts":
81271
+ /*!****************************************!*\
81272
+ !*** ./models/StreamsLiveLifeCycle.ts ***!
81273
+ \****************************************/
81274
+ /***/ ((__unused_webpack_module, exports) => {
81275
+
81276
+ "use strict";
81277
+
81278
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
81279
+ exports.StreamsLiveLifeCycle = void 0;
81280
+ /**
81281
+ * @export
81282
+ * @enum {string}
81283
+ */
81284
+ var StreamsLiveLifeCycle;
81285
+ (function (StreamsLiveLifeCycle) {
81286
+ StreamsLiveLifeCycle["PROVISIONING"] = "PROVISIONING";
81287
+ StreamsLiveLifeCycle["STOPPED"] = "STOPPED";
81288
+ StreamsLiveLifeCycle["RUNNING"] = "RUNNING";
81289
+ StreamsLiveLifeCycle["ERROR"] = "ERROR";
81290
+ })(StreamsLiveLifeCycle = exports.StreamsLiveLifeCycle || (exports.StreamsLiveLifeCycle = {}));
81291
+ exports["default"] = StreamsLiveLifeCycle;
81292
+
81293
+
81294
+ /***/ }),
81295
+
81296
+ /***/ "./models/StreamsLiveResponse.ts":
81297
+ /*!***************************************!*\
81298
+ !*** ./models/StreamsLiveResponse.ts ***!
81299
+ \***************************************/
81300
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
81301
+
81302
+ "use strict";
81303
+
81304
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
81305
+ exports.StreamsLiveResponse = void 0;
81306
+ var Mapper_1 = __webpack_require__(/*! ../common/Mapper */ "./common/Mapper.ts");
81307
+ var StreamsConfigResponse_1 = __webpack_require__(/*! ./StreamsConfigResponse */ "./models/StreamsConfigResponse.ts");
81308
+ /**
81309
+ * @export
81310
+ * @class StreamsLiveResponse
81311
+ */
81312
+ var StreamsLiveResponse = /** @class */ (function () {
81313
+ function StreamsLiveResponse(obj) {
81314
+ if (!obj) {
81315
+ return;
81316
+ }
81317
+ this.id = (0, Mapper_1.map)(obj.id);
81318
+ this.streamKey = (0, Mapper_1.map)(obj.streamKey);
81319
+ this.title = (0, Mapper_1.map)(obj.title);
81320
+ this.description = (0, Mapper_1.map)(obj.description);
81321
+ this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date);
81322
+ this.lifeCycle = (0, Mapper_1.map)(obj.lifeCycle);
81323
+ this.config = (0, Mapper_1.map)(obj.config, StreamsConfigResponse_1.default);
81324
+ }
81325
+ return StreamsLiveResponse;
81326
+ }());
81327
+ exports.StreamsLiveResponse = StreamsLiveResponse;
81328
+ exports["default"] = StreamsLiveResponse;
81262
81329
 
81263
81330
 
81264
81331
  /***/ }),
@@ -85425,7 +85492,9 @@ __exportStar(__webpack_require__(/*! ./StreamPerTitleFixedResolutionAndBitrateSe
85425
85492
  __exportStar(__webpack_require__(/*! ./StreamPerTitleSettings */ "./models/StreamPerTitleSettings.ts"), exports);
85426
85493
  __exportStar(__webpack_require__(/*! ./StreamSelectionMode */ "./models/StreamSelectionMode.ts"), exports);
85427
85494
  __exportStar(__webpack_require__(/*! ./StreamsConfigResponse */ "./models/StreamsConfigResponse.ts"), exports);
85428
- __exportStar(__webpack_require__(/*! ./StreamsConfigUpdateRequest */ "./models/StreamsConfigUpdateRequest.ts"), exports);
85495
+ __exportStar(__webpack_require__(/*! ./StreamsLiveCreateRequest */ "./models/StreamsLiveCreateRequest.ts"), exports);
85496
+ __exportStar(__webpack_require__(/*! ./StreamsLiveLifeCycle */ "./models/StreamsLiveLifeCycle.ts"), exports);
85497
+ __exportStar(__webpack_require__(/*! ./StreamsLiveResponse */ "./models/StreamsLiveResponse.ts"), exports);
85429
85498
  __exportStar(__webpack_require__(/*! ./StreamsLiveUpdateRequest */ "./models/StreamsLiveUpdateRequest.ts"), exports);
85430
85499
  __exportStar(__webpack_require__(/*! ./StreamsVideoCreateRequest */ "./models/StreamsVideoCreateRequest.ts"), exports);
85431
85500
  __exportStar(__webpack_require__(/*! ./StreamsVideoEncodingStatus */ "./models/StreamsVideoEncodingStatus.ts"), exports);
@@ -89123,7 +89192,6 @@ var __extends = (this && this.__extends) || (function () {
89123
89192
  })();
89124
89193
  Object.defineProperty(exports, "__esModule", ({ value: true }));
89125
89194
  var BaseAPI_1 = __webpack_require__(/*! ../common/BaseAPI */ "./common/BaseAPI.ts");
89126
- var ConfigsApi_1 = __webpack_require__(/*! ./configs/ConfigsApi */ "./streams/configs/ConfigsApi.ts");
89127
89195
  var VideoApi_1 = __webpack_require__(/*! ./video/VideoApi */ "./streams/video/VideoApi.ts");
89128
89196
  var LiveApi_1 = __webpack_require__(/*! ./live/LiveApi */ "./streams/live/LiveApi.ts");
89129
89197
  /**
@@ -89136,7 +89204,6 @@ var StreamsApi = /** @class */ (function (_super) {
89136
89204
  __extends(StreamsApi, _super);
89137
89205
  function StreamsApi(configuration) {
89138
89206
  var _this = _super.call(this, configuration) || this;
89139
- _this.configs = new ConfigsApi_1.default(configuration);
89140
89207
  _this.video = new VideoApi_1.default(configuration);
89141
89208
  _this.live = new LiveApi_1.default(configuration);
89142
89209
  return _this;
@@ -89148,10 +89215,10 @@ exports["default"] = StreamsApi;
89148
89215
 
89149
89216
  /***/ }),
89150
89217
 
89151
- /***/ "./streams/configs/ConfigsApi.ts":
89152
- /*!***************************************!*\
89153
- !*** ./streams/configs/ConfigsApi.ts ***!
89154
- \***************************************/
89218
+ /***/ "./streams/live/LiveApi.ts":
89219
+ /*!*********************************!*\
89220
+ !*** ./streams/live/LiveApi.ts ***!
89221
+ \*********************************/
89155
89222
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
89156
89223
 
89157
89224
  "use strict";
@@ -89174,44 +89241,201 @@ var __extends = (this && this.__extends) || (function () {
89174
89241
  Object.defineProperty(exports, "__esModule", ({ value: true }));
89175
89242
  var BaseAPI_1 = __webpack_require__(/*! ../../common/BaseAPI */ "./common/BaseAPI.ts");
89176
89243
  var Mapper_1 = __webpack_require__(/*! ../../common/Mapper */ "./common/Mapper.ts");
89177
- var StreamsConfigResponse_1 = __webpack_require__(/*! ../../models/StreamsConfigResponse */ "./models/StreamsConfigResponse.ts");
89244
+ var StopApi_1 = __webpack_require__(/*! ./stop/StopApi */ "./streams/live/stop/StopApi.ts");
89245
+ var StartApi_1 = __webpack_require__(/*! ./start/StartApi */ "./streams/live/start/StartApi.ts");
89246
+ var StreamsLiveResponse_1 = __webpack_require__(/*! ../../models/StreamsLiveResponse */ "./models/StreamsLiveResponse.ts");
89247
+ var StreamsLiveUpdateRequest_1 = __webpack_require__(/*! ../../models/StreamsLiveUpdateRequest */ "./models/StreamsLiveUpdateRequest.ts");
89248
+ var PaginationResponse_1 = __webpack_require__(/*! ../../models/PaginationResponse */ "./models/PaginationResponse.ts");
89249
+ var StreamsLiveResponseListQueryParams_1 = __webpack_require__(/*! ./StreamsLiveResponseListQueryParams */ "./streams/live/StreamsLiveResponseListQueryParams.ts");
89178
89250
  /**
89179
- * ConfigsApi - object-oriented interface
89251
+ * LiveApi - object-oriented interface
89180
89252
  * @export
89181
- * @class ConfigsApi
89253
+ * @class LiveApi
89182
89254
  * @extends {BaseAPI}
89183
89255
  */
89184
- var ConfigsApi = /** @class */ (function (_super) {
89185
- __extends(ConfigsApi, _super);
89186
- function ConfigsApi(configuration) {
89256
+ var LiveApi = /** @class */ (function (_super) {
89257
+ __extends(LiveApi, _super);
89258
+ function LiveApi(configuration) {
89259
+ var _this = _super.call(this, configuration) || this;
89260
+ _this.stop = new StopApi_1.default(configuration);
89261
+ _this.start = new StartApi_1.default(configuration);
89262
+ return _this;
89263
+ }
89264
+ /**
89265
+ * @summary Create new live stream
89266
+ * @param {StreamsLiveCreateRequest} streamsLiveCreateRequest Create a new stream.
89267
+ * @throws {BitmovinError}
89268
+ * @memberof LiveApi
89269
+ */
89270
+ LiveApi.prototype.create = function (streamsLiveCreateRequest) {
89271
+ return this.restClient.post('/streams/live', {}, streamsLiveCreateRequest).then(function (response) {
89272
+ return (0, Mapper_1.map)(response, StreamsLiveResponse_1.default);
89273
+ });
89274
+ };
89275
+ /**
89276
+ * @summary Get live stream by id
89277
+ * @param {string} streamId Id of the stream.
89278
+ * @throws {BitmovinError}
89279
+ * @memberof LiveApi
89280
+ */
89281
+ LiveApi.prototype.get = function (streamId) {
89282
+ var pathParamMap = {
89283
+ stream_id: streamId
89284
+ };
89285
+ return this.restClient.get('/streams/live/{stream_id}', pathParamMap).then(function (response) {
89286
+ return (0, Mapper_1.map)(response, StreamsLiveResponse_1.default);
89287
+ });
89288
+ };
89289
+ /**
89290
+ * @summary Get paginated list of live streams
89291
+ * @param {*} [queryParameters] query parameters for filtering, sorting and pagination
89292
+ * @throws {BitmovinError}
89293
+ * @memberof LiveApi
89294
+ */
89295
+ LiveApi.prototype.list = function (queryParameters) {
89296
+ var queryParams = {};
89297
+ if (typeof queryParameters === 'function') {
89298
+ queryParams = queryParameters(new StreamsLiveResponseListQueryParams_1.StreamsLiveResponseListQueryParamsBuilder()).buildQueryParams();
89299
+ }
89300
+ else if (queryParameters) {
89301
+ queryParams = queryParameters;
89302
+ }
89303
+ return this.restClient.get('/streams/live', {}, queryParams).then(function (response) {
89304
+ return new PaginationResponse_1.default(response, StreamsLiveResponse_1.default);
89305
+ });
89306
+ };
89307
+ /**
89308
+ * @summary Update live stream by id
89309
+ * @param {string} streamId Id of the stream.
89310
+ * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest Stream fields to update.
89311
+ * @throws {BitmovinError}
89312
+ * @memberof LiveApi
89313
+ */
89314
+ LiveApi.prototype.patchStreamsLive = function (streamId, streamsLiveUpdateRequest) {
89315
+ var pathParamMap = {
89316
+ stream_id: streamId
89317
+ };
89318
+ return this.restClient.patch('/streams/live/{stream_id}', pathParamMap, streamsLiveUpdateRequest).then(function (response) {
89319
+ return (0, Mapper_1.map)(response, StreamsLiveUpdateRequest_1.default);
89320
+ });
89321
+ };
89322
+ return LiveApi;
89323
+ }(BaseAPI_1.BaseAPI));
89324
+ exports["default"] = LiveApi;
89325
+
89326
+
89327
+ /***/ }),
89328
+
89329
+ /***/ "./streams/live/StreamsLiveResponseListQueryParams.ts":
89330
+ /*!************************************************************!*\
89331
+ !*** ./streams/live/StreamsLiveResponseListQueryParams.ts ***!
89332
+ \************************************************************/
89333
+ /***/ ((__unused_webpack_module, exports) => {
89334
+
89335
+ "use strict";
89336
+
89337
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
89338
+ exports.StreamsLiveResponseListQueryParamsBuilder = void 0;
89339
+ var StreamsLiveResponseListQueryParamsBuilder = /** @class */ (function () {
89340
+ function StreamsLiveResponseListQueryParamsBuilder() {
89341
+ this.internalParams = {};
89342
+ }
89343
+ /**
89344
+ *
89345
+ * @param offset Index of the first item to return, starting at 0. Default is 0
89346
+ */
89347
+ StreamsLiveResponseListQueryParamsBuilder.prototype.offset = function (offset) {
89348
+ this.internalParams.offset = offset;
89349
+ return this;
89350
+ };
89351
+ /**
89352
+ *
89353
+ * @param limit Maximum number of items to return. Default is 25, maximum is 100
89354
+ */
89355
+ StreamsLiveResponseListQueryParamsBuilder.prototype.limit = function (limit) {
89356
+ this.internalParams.limit = limit;
89357
+ return this;
89358
+ };
89359
+ /**
89360
+ *
89361
+ * @param sort Order list result according an resource attribute. The fields that can be used for sorting are: + `createdAt`
89362
+ */
89363
+ StreamsLiveResponseListQueryParamsBuilder.prototype.sort = function (sort) {
89364
+ this.internalParams.sort = sort;
89365
+ return this;
89366
+ };
89367
+ StreamsLiveResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
89368
+ return this.internalParams;
89369
+ };
89370
+ return StreamsLiveResponseListQueryParamsBuilder;
89371
+ }());
89372
+ exports.StreamsLiveResponseListQueryParamsBuilder = StreamsLiveResponseListQueryParamsBuilder;
89373
+
89374
+
89375
+ /***/ }),
89376
+
89377
+ /***/ "./streams/live/start/StartApi.ts":
89378
+ /*!****************************************!*\
89379
+ !*** ./streams/live/start/StartApi.ts ***!
89380
+ \****************************************/
89381
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
89382
+
89383
+ "use strict";
89384
+
89385
+ var __extends = (this && this.__extends) || (function () {
89386
+ var extendStatics = function (d, b) {
89387
+ extendStatics = Object.setPrototypeOf ||
89388
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
89389
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
89390
+ return extendStatics(d, b);
89391
+ };
89392
+ return function (d, b) {
89393
+ if (typeof b !== "function" && b !== null)
89394
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
89395
+ extendStatics(d, b);
89396
+ function __() { this.constructor = d; }
89397
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
89398
+ };
89399
+ })();
89400
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
89401
+ var BaseAPI_1 = __webpack_require__(/*! ../../../common/BaseAPI */ "./common/BaseAPI.ts");
89402
+ var Mapper_1 = __webpack_require__(/*! ../../../common/Mapper */ "./common/Mapper.ts");
89403
+ /**
89404
+ * StartApi - object-oriented interface
89405
+ * @export
89406
+ * @class StartApi
89407
+ * @extends {BaseAPI}
89408
+ */
89409
+ var StartApi = /** @class */ (function (_super) {
89410
+ __extends(StartApi, _super);
89411
+ function StartApi(configuration) {
89187
89412
  return _super.call(this, configuration) || this;
89188
89413
  }
89189
89414
  /**
89190
- * @summary Update stream config by id
89191
- * @param {string} configId Id of the stream config.
89192
- * @param {StreamsConfigUpdateRequest} streamsConfigUpdateRequest The updated stream config object.
89415
+ * @summary Start live stream by id
89416
+ * @param {string} streamId Id of the stream.
89193
89417
  * @throws {BitmovinError}
89194
- * @memberof ConfigsApi
89418
+ * @memberof StartApi
89195
89419
  */
89196
- ConfigsApi.prototype.patchStreamConfig = function (configId, streamsConfigUpdateRequest) {
89420
+ StartApi.prototype.update = function (streamId) {
89197
89421
  var pathParamMap = {
89198
- config_id: configId
89422
+ stream_id: streamId
89199
89423
  };
89200
- return this.restClient.patch('/streams/configs/{config_id}', pathParamMap, streamsConfigUpdateRequest).then(function (response) {
89201
- return (0, Mapper_1.map)(response, StreamsConfigResponse_1.default);
89424
+ return this.restClient.put('/streams/live/{stream_id}/start', pathParamMap).then(function (response) {
89425
+ return (0, Mapper_1.map)(response);
89202
89426
  });
89203
89427
  };
89204
- return ConfigsApi;
89428
+ return StartApi;
89205
89429
  }(BaseAPI_1.BaseAPI));
89206
- exports["default"] = ConfigsApi;
89430
+ exports["default"] = StartApi;
89207
89431
 
89208
89432
 
89209
89433
  /***/ }),
89210
89434
 
89211
- /***/ "./streams/live/LiveApi.ts":
89212
- /*!*********************************!*\
89213
- !*** ./streams/live/LiveApi.ts ***!
89214
- \*********************************/
89435
+ /***/ "./streams/live/stop/StopApi.ts":
89436
+ /*!**************************************!*\
89437
+ !*** ./streams/live/stop/StopApi.ts ***!
89438
+ \**************************************/
89215
89439
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
89216
89440
 
89217
89441
  "use strict";
@@ -89232,38 +89456,36 @@ var __extends = (this && this.__extends) || (function () {
89232
89456
  };
89233
89457
  })();
89234
89458
  Object.defineProperty(exports, "__esModule", ({ value: true }));
89235
- var BaseAPI_1 = __webpack_require__(/*! ../../common/BaseAPI */ "./common/BaseAPI.ts");
89236
- var Mapper_1 = __webpack_require__(/*! ../../common/Mapper */ "./common/Mapper.ts");
89237
- var StreamsLiveUpdateRequest_1 = __webpack_require__(/*! ../../models/StreamsLiveUpdateRequest */ "./models/StreamsLiveUpdateRequest.ts");
89459
+ var BaseAPI_1 = __webpack_require__(/*! ../../../common/BaseAPI */ "./common/BaseAPI.ts");
89460
+ var Mapper_1 = __webpack_require__(/*! ../../../common/Mapper */ "./common/Mapper.ts");
89238
89461
  /**
89239
- * LiveApi - object-oriented interface
89462
+ * StopApi - object-oriented interface
89240
89463
  * @export
89241
- * @class LiveApi
89464
+ * @class StopApi
89242
89465
  * @extends {BaseAPI}
89243
89466
  */
89244
- var LiveApi = /** @class */ (function (_super) {
89245
- __extends(LiveApi, _super);
89246
- function LiveApi(configuration) {
89467
+ var StopApi = /** @class */ (function (_super) {
89468
+ __extends(StopApi, _super);
89469
+ function StopApi(configuration) {
89247
89470
  return _super.call(this, configuration) || this;
89248
89471
  }
89249
89472
  /**
89250
- * @summary Update live stream by id
89473
+ * @summary Stop live stream by id
89251
89474
  * @param {string} streamId Id of the stream.
89252
- * @param {StreamsLiveUpdateRequest} streamsLiveUpdateRequest Stream fields to update.
89253
89475
  * @throws {BitmovinError}
89254
- * @memberof LiveApi
89476
+ * @memberof StopApi
89255
89477
  */
89256
- LiveApi.prototype.patchStreamsLive = function (streamId, streamsLiveUpdateRequest) {
89478
+ StopApi.prototype.update = function (streamId) {
89257
89479
  var pathParamMap = {
89258
89480
  stream_id: streamId
89259
89481
  };
89260
- return this.restClient.patch('/streams/live/{stream_id}', pathParamMap, streamsLiveUpdateRequest).then(function (response) {
89261
- return (0, Mapper_1.map)(response, StreamsLiveUpdateRequest_1.default);
89482
+ return this.restClient.put('/streams/live/{stream_id}/stop', pathParamMap).then(function (response) {
89483
+ return (0, Mapper_1.map)(response);
89262
89484
  });
89263
89485
  };
89264
- return LiveApi;
89486
+ return StopApi;
89265
89487
  }(BaseAPI_1.BaseAPI));
89266
- exports["default"] = LiveApi;
89488
+ exports["default"] = StopApi;
89267
89489
 
89268
89490
 
89269
89491
  /***/ }),