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