@dolbyio/dolbyio-rest-apis-client 4.0.2 → 5.0.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/LICENSE +1 -1
- package/README.md +60 -118
- package/dist/index.d.ts +15 -6
- package/dist/index.js +33 -14
- package/dist/internal/httpHelpers.js +15 -21
- package/dist/media/analyze.d.ts +1 -6
- package/dist/media/analyze.js +3 -8
- package/dist/media/analyzeMusic.d.ts +1 -6
- package/dist/media/analyzeMusic.js +3 -8
- package/dist/media/analyzeSpeech.d.ts +1 -6
- package/dist/media/analyzeSpeech.js +3 -8
- package/dist/media/authentication.d.ts +15 -0
- package/dist/media/authentication.js +65 -0
- package/dist/media/diagnose.d.ts +1 -6
- package/dist/media/diagnose.js +3 -8
- package/dist/media/enhance.d.ts +1 -1
- package/dist/media/enhance.js +3 -3
- package/dist/media/index.d.ts +12 -11
- package/dist/media/index.js +50 -23
- package/dist/media/internal/httpHelpers.d.ts +1 -1
- package/dist/media/internal/httpHelpers.js +2 -2
- package/dist/media/internal/jobsHelpers.d.ts +1 -1
- package/dist/media/internal/jobsHelpers.js +5 -5
- package/dist/media/io.d.ts +1 -1
- package/dist/media/io.js +5 -5
- package/dist/media/jobs.d.ts +1 -1
- package/dist/media/jobs.js +5 -5
- package/dist/media/mastering.d.ts +1 -1
- package/dist/media/mastering.js +3 -3
- package/dist/media/transcode.d.ts +1 -1
- package/dist/media/transcode.js +3 -3
- package/dist/media/types/analyzeMusic.d.ts +43 -50
- package/dist/media/types/diagnose.d.ts +66 -79
- package/dist/media/types/index.d.ts +11 -0
- package/dist/media/types/index.js +126 -0
- package/dist/media/types/jobs.d.ts +2 -0
- package/dist/media/types/jwtToken.d.ts +13 -0
- package/dist/media/types/webhooks.d.ts +6 -7
- package/dist/media/webhooks.d.ts +2 -1
- package/dist/media/webhooks.js +5 -5
- package/dist/streaming/account.d.ts +48 -0
- package/dist/streaming/account.js +184 -0
- package/dist/streaming/cluster.d.ts +19 -0
- package/dist/streaming/cluster.js +25 -5
- package/dist/streaming/director.d.ts +2 -2
- package/dist/streaming/director.js +7 -7
- package/dist/streaming/index.d.ts +18 -7
- package/dist/streaming/index.js +44 -15
- package/dist/streaming/internal/httpHelpers.js +5 -5
- package/dist/streaming/publishToken.d.ts +86 -3
- package/dist/streaming/publishToken.js +96 -6
- package/dist/streaming/recordFiles.d.ts +55 -0
- package/dist/streaming/recordFiles.js +214 -0
- package/dist/streaming/stream.d.ts +24 -2
- package/dist/streaming/stream.js +32 -6
- package/dist/streaming/subscribeToken.d.ts +54 -0
- package/dist/streaming/subscribeToken.js +63 -5
- package/dist/streaming/transcoders.d.ts +143 -0
- package/dist/streaming/transcoders.js +481 -0
- package/dist/streaming/types/account.d.ts +25 -0
- package/dist/streaming/types/cluster.d.ts +17 -0
- package/dist/streaming/types/core.d.ts +1 -0
- package/dist/streaming/types/director.d.ts +15 -6
- package/dist/streaming/types/index.d.ts +9 -0
- package/dist/streaming/types/index.js +104 -0
- package/dist/streaming/types/publishToken.d.ts +273 -12
- package/dist/streaming/types/recordFiles.d.ts +49 -0
- package/dist/streaming/types/stream.d.ts +3 -0
- package/dist/streaming/types/subscribeToken.d.ts +150 -4
- package/dist/streaming/types/transcoders.d.ts +138 -0
- package/dist/streaming/types/webhooks.d.ts +69 -0
- package/dist/streaming/webhooks.d.ts +57 -0
- package/dist/streaming/webhooks.js +224 -0
- package/dist/urls.d.ts +0 -2
- package/dist/urls.js +1 -5
- package/package.json +15 -11
- package/dist/authentication.d.ts +0 -29
- package/dist/authentication.js +0 -82
- package/dist/communications/authentication.d.ts +0 -14
- package/dist/communications/authentication.js +0 -62
- package/dist/communications/conference.d.ts +0 -95
- package/dist/communications/conference.js +0 -404
- package/dist/communications/index.d.ts +0 -6
- package/dist/communications/index.js +0 -19
- package/dist/communications/internal/httpHelpers.d.ts +0 -10
- package/dist/communications/internal/httpHelpers.js +0 -67
- package/dist/communications/monitor/conferences.d.ts +0 -91
- package/dist/communications/monitor/conferences.js +0 -389
- package/dist/communications/monitor/index.d.ts +0 -4
- package/dist/communications/monitor/index.js +0 -15
- package/dist/communications/monitor/recordings.d.ts +0 -77
- package/dist/communications/monitor/recordings.js +0 -287
- package/dist/communications/monitor/webhooks.d.ts +0 -24
- package/dist/communications/monitor/webhooks.js +0 -136
- package/dist/communications/recording.d.ts +0 -44
- package/dist/communications/recording.js +0 -117
- package/dist/communications/remix.js +0 -122
- package/dist/communications/streaming.d.ts +0 -76
- package/dist/communications/streaming.js +0 -217
- package/dist/communications/types/authentication.d.ts +0 -25
- package/dist/communications/types/conference.d.ts +0 -76
- package/dist/communications/types/conferences.d.ts +0 -140
- package/dist/communications/types/core.d.ts +0 -30
- package/dist/communications/types/mixOptions.d.ts +0 -39
- package/dist/communications/types/participant.d.ts +0 -6
- package/dist/communications/types/participant.js +0 -1
- package/dist/communications/types/permission.d.ts +0 -26
- package/dist/communications/types/permission.js +0 -21
- package/dist/communications/types/recordings.d.ts +0 -85
- package/dist/communications/types/recordings.js +0 -5
- package/dist/communications/types/remixStatus.js +0 -1
- package/dist/communications/types/rtcpMode.d.ts +0 -8
- package/dist/communications/types/rtcpMode.js +0 -12
- package/dist/communications/types/rtsStream.d.ts +0 -10
- package/dist/communications/types/rtsStream.js +0 -1
- package/dist/communications/types/spatialAudio.d.ts +0 -18
- package/dist/communications/types/spatialAudio.js +0 -5
- package/dist/communications/types/videoCodec.d.ts +0 -4
- package/dist/communications/types/videoCodec.js +0 -11
- package/dist/communications/types/webhooks.d.ts +0 -38
- package/dist/internal/utils.d.ts +0 -6
- package/dist/internal/utils.js +0 -5
- package/dist/streaming/geo.d.ts +0 -27
- package/dist/streaming/geo.js +0 -106
- package/dist/streaming/types/geo.d.ts +0 -4
- package/dist/streaming/types/geo.js +0 -5
- package/dist/types/jwtToken.d.ts +0 -6
- package/dist/types/jwtToken.js +0 -1
- /package/dist/{communications/types/authentication.js → media/types/jwtToken.js} +0 -0
- /package/dist/{communications/types/conference.js → streaming/types/account.js} +0 -0
- /package/dist/{communications/types/conferences.js → streaming/types/recordFiles.js} +0 -0
- /package/dist/{communications/types/core.js → streaming/types/stream.js} +0 -0
- /package/dist/{communications/types/mixOptions.js → streaming/types/transcoders.js} +0 -0
- /package/dist/{communications → streaming}/types/webhooks.js +0 -0
package/dist/streaming/stream.js
CHANGED
|
@@ -5,13 +5,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.stopAll = exports.stop = void 0;
|
|
8
|
-
var _httpHelpers = require("
|
|
8
|
+
var _httpHelpers = require("./internal/httpHelpers");
|
|
9
9
|
var Urls = _interopRequireWildcard(require("../urls"));
|
|
10
|
-
function _getRequireWildcardCache(
|
|
11
|
-
function _interopRequireWildcard(
|
|
12
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw
|
|
13
|
-
function asyncGeneratorStep(
|
|
14
|
-
function _asyncToGenerator(
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
12
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
13
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
14
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
15
|
+
/**
|
|
16
|
+
* Stops an active stream.
|
|
17
|
+
*
|
|
18
|
+
* @link https://docs.dolby.io/streaming-apis/reference/stream_stopstream
|
|
19
|
+
* @note Prior to stopping the stream, you must call {@link disable}.
|
|
20
|
+
*
|
|
21
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
22
|
+
* @param streamId Identifier of the stream to stop.
|
|
23
|
+
*
|
|
24
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link StreamStopResponse} object.
|
|
25
|
+
*/
|
|
15
26
|
var stop = exports.stop = /*#__PURE__*/function () {
|
|
16
27
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(apiSecret, streamId) {
|
|
17
28
|
var body, options;
|
|
@@ -34,6 +45,8 @@ var stop = exports.stop = /*#__PURE__*/function () {
|
|
|
34
45
|
_context.next = 4;
|
|
35
46
|
return (0, _httpHelpers.sendPost)(options);
|
|
36
47
|
case 4:
|
|
48
|
+
return _context.abrupt("return", _context.sent);
|
|
49
|
+
case 5:
|
|
37
50
|
case "end":
|
|
38
51
|
return _context.stop();
|
|
39
52
|
}
|
|
@@ -43,6 +56,17 @@ var stop = exports.stop = /*#__PURE__*/function () {
|
|
|
43
56
|
return _ref.apply(this, arguments);
|
|
44
57
|
};
|
|
45
58
|
}();
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Stops all currently active streams associated with your account.
|
|
62
|
+
*
|
|
63
|
+
* @link https://docs.dolby.io/streaming-apis/reference/stream_stopbyaccount
|
|
64
|
+
* @note Prior to stopping a stream, you must call {@link disable}.
|
|
65
|
+
*
|
|
66
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
67
|
+
*
|
|
68
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link StreamStopResponse} object.
|
|
69
|
+
*/
|
|
46
70
|
var stopAll = exports.stopAll = /*#__PURE__*/function () {
|
|
47
71
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(apiSecret) {
|
|
48
72
|
var options;
|
|
@@ -61,6 +85,8 @@ var stopAll = exports.stopAll = /*#__PURE__*/function () {
|
|
|
61
85
|
_context2.next = 3;
|
|
62
86
|
return (0, _httpHelpers.sendPost)(options);
|
|
63
87
|
case 3:
|
|
88
|
+
return _context2.abrupt("return", _context2.sent);
|
|
89
|
+
case 4:
|
|
64
90
|
case "end":
|
|
65
91
|
return _context2.stop();
|
|
66
92
|
}
|
|
@@ -1,6 +1,60 @@
|
|
|
1
1
|
import { CreateSubscribeToken, SubscribeToken, UpdateSubscribeToken } from './types/subscribeToken';
|
|
2
|
+
/**
|
|
3
|
+
* Gets the specified subscribe token.
|
|
4
|
+
*
|
|
5
|
+
* @link https://docs.dolby.io/streaming-apis/reference/subscribetokenv1_readtoken
|
|
6
|
+
*
|
|
7
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
8
|
+
* @param tokenId Identifier of the subscribe token to read.
|
|
9
|
+
*
|
|
10
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link SubscribeToken} object.
|
|
11
|
+
*/
|
|
2
12
|
export declare const read: (apiSecret: string, tokenId: number) => Promise<SubscribeToken>;
|
|
13
|
+
/**
|
|
14
|
+
* Deletes the subscribe token.
|
|
15
|
+
*
|
|
16
|
+
* @link https://docs.dolby.io/streaming-apis/reference/subscribetokenv1_deletetoken
|
|
17
|
+
*
|
|
18
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
19
|
+
* @param tokenId Identifier of the subscribe token to delete.
|
|
20
|
+
*
|
|
21
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a flag to indicate if the operation succeeded or not.
|
|
22
|
+
*/
|
|
3
23
|
export declare const deleteToken: (apiSecret: string, tokenId: number) => Promise<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* Updates the subscribe token.
|
|
26
|
+
*
|
|
27
|
+
* @link https://docs.dolby.io/streaming-apis/reference/subscribetokenv1_updatetoken
|
|
28
|
+
*
|
|
29
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
30
|
+
* @param tokenId Identifier of the subscribe token to update.
|
|
31
|
+
* @param subscribeToken Settings of the subscribe token to update.
|
|
32
|
+
*
|
|
33
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link SubscribeToken} object.
|
|
34
|
+
*/
|
|
4
35
|
export declare const update: (apiSecret: string, tokenId: number, subscribeToken: UpdateSubscribeToken) => Promise<SubscribeToken>;
|
|
36
|
+
/**
|
|
37
|
+
* Lists all subscribe tokens with specific sorting and pagination.
|
|
38
|
+
*
|
|
39
|
+
* @link https://docs.dolby.io/streaming-apis/reference/subscribetokenv1_listtokens
|
|
40
|
+
*
|
|
41
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
42
|
+
* @param sortBy How to sort the response.
|
|
43
|
+
* @param page Number of the page to retrieve.
|
|
44
|
+
* @param itemsOnPage Number of items per page.
|
|
45
|
+
* @param isDescending Sort by descending order.
|
|
46
|
+
*
|
|
47
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives an array of {@link SubscribeToken} objects.
|
|
48
|
+
*/
|
|
5
49
|
export declare const list: (apiSecret: string, sortBy: 'Name' | 'AddedOn', page: number, itemsOnPage: number, isDescending?: boolean) => Promise<SubscribeToken[]>;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a subscribe token.
|
|
52
|
+
*
|
|
53
|
+
* @link https://docs.dolby.io/streaming-apis/reference/subscribetokenv1_createtoken
|
|
54
|
+
*
|
|
55
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
56
|
+
* @param subscribeToken Information about the new subscribe token.
|
|
57
|
+
*
|
|
58
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link SubscribeToken} object.
|
|
59
|
+
*/
|
|
6
60
|
export declare const create: (apiSecret: string, subscribeToken: CreateSubscribeToken) => Promise<SubscribeToken>;
|
|
@@ -7,11 +7,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.update = exports.read = exports.list = exports.deleteToken = exports.create = void 0;
|
|
8
8
|
var _httpHelpers = require("./internal/httpHelpers");
|
|
9
9
|
var Urls = _interopRequireWildcard(require("../urls"));
|
|
10
|
-
function _getRequireWildcardCache(
|
|
11
|
-
function _interopRequireWildcard(
|
|
12
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw
|
|
13
|
-
function asyncGeneratorStep(
|
|
14
|
-
function _asyncToGenerator(
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
12
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
13
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
14
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
15
|
+
/**
|
|
16
|
+
* Gets the specified subscribe token.
|
|
17
|
+
*
|
|
18
|
+
* @link https://docs.dolby.io/streaming-apis/reference/subscribetokenv1_readtoken
|
|
19
|
+
*
|
|
20
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
21
|
+
* @param tokenId Identifier of the subscribe token to read.
|
|
22
|
+
*
|
|
23
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link SubscribeToken} object.
|
|
24
|
+
*/
|
|
15
25
|
var read = exports.read = /*#__PURE__*/function () {
|
|
16
26
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(apiSecret, tokenId) {
|
|
17
27
|
var options;
|
|
@@ -40,6 +50,17 @@ var read = exports.read = /*#__PURE__*/function () {
|
|
|
40
50
|
return _ref.apply(this, arguments);
|
|
41
51
|
};
|
|
42
52
|
}();
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Deletes the subscribe token.
|
|
56
|
+
*
|
|
57
|
+
* @link https://docs.dolby.io/streaming-apis/reference/subscribetokenv1_deletetoken
|
|
58
|
+
*
|
|
59
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
60
|
+
* @param tokenId Identifier of the subscribe token to delete.
|
|
61
|
+
*
|
|
62
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a flag to indicate if the operation succeeded or not.
|
|
63
|
+
*/
|
|
43
64
|
var deleteToken = exports.deleteToken = /*#__PURE__*/function () {
|
|
44
65
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(apiSecret, tokenId) {
|
|
45
66
|
var options;
|
|
@@ -68,6 +89,18 @@ var deleteToken = exports.deleteToken = /*#__PURE__*/function () {
|
|
|
68
89
|
return _ref2.apply(this, arguments);
|
|
69
90
|
};
|
|
70
91
|
}();
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Updates the subscribe token.
|
|
95
|
+
*
|
|
96
|
+
* @link https://docs.dolby.io/streaming-apis/reference/subscribetokenv1_updatetoken
|
|
97
|
+
*
|
|
98
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
99
|
+
* @param tokenId Identifier of the subscribe token to update.
|
|
100
|
+
* @param subscribeToken Settings of the subscribe token to update.
|
|
101
|
+
*
|
|
102
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link SubscribeToken} object.
|
|
103
|
+
*/
|
|
71
104
|
var update = exports.update = /*#__PURE__*/function () {
|
|
72
105
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(apiSecret, tokenId, subscribeToken) {
|
|
73
106
|
var options;
|
|
@@ -98,6 +131,20 @@ var update = exports.update = /*#__PURE__*/function () {
|
|
|
98
131
|
return _ref3.apply(this, arguments);
|
|
99
132
|
};
|
|
100
133
|
}();
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Lists all subscribe tokens with specific sorting and pagination.
|
|
137
|
+
*
|
|
138
|
+
* @link https://docs.dolby.io/streaming-apis/reference/subscribetokenv1_listtokens
|
|
139
|
+
*
|
|
140
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
141
|
+
* @param sortBy How to sort the response.
|
|
142
|
+
* @param page Number of the page to retrieve.
|
|
143
|
+
* @param itemsOnPage Number of items per page.
|
|
144
|
+
* @param isDescending Sort by descending order.
|
|
145
|
+
*
|
|
146
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives an array of {@link SubscribeToken} objects.
|
|
147
|
+
*/
|
|
101
148
|
var list = exports.list = /*#__PURE__*/function () {
|
|
102
149
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(apiSecret, sortBy, page, itemsOnPage) {
|
|
103
150
|
var isDescending,
|
|
@@ -137,6 +184,17 @@ var list = exports.list = /*#__PURE__*/function () {
|
|
|
137
184
|
return _ref4.apply(this, arguments);
|
|
138
185
|
};
|
|
139
186
|
}();
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Creates a subscribe token.
|
|
190
|
+
*
|
|
191
|
+
* @link https://docs.dolby.io/streaming-apis/reference/subscribetokenv1_createtoken
|
|
192
|
+
*
|
|
193
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
194
|
+
* @param subscribeToken Information about the new subscribe token.
|
|
195
|
+
*
|
|
196
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link SubscribeToken} object.
|
|
197
|
+
*/
|
|
140
198
|
var create = exports.create = /*#__PURE__*/function () {
|
|
141
199
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(apiSecret, subscribeToken) {
|
|
142
200
|
var options;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { ListTranscodersSortOptions, ListTranscodersInstancesSortOptions, ListTranscodersProfilesSortOptions, Transcoder, TranscoderProfile, TranscoderInstance, CreateTranscoderRequest, UpdateTranscoderRequest } from './types/transcoders';
|
|
2
|
+
/**
|
|
3
|
+
* Lists all transcoders.
|
|
4
|
+
*
|
|
5
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_listtranscoders
|
|
6
|
+
* @beta
|
|
7
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
8
|
+
* If you would like to opt in, please contact our Sales team.
|
|
9
|
+
*
|
|
10
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
11
|
+
* @param options Options to sort the response.
|
|
12
|
+
*
|
|
13
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives an array of {@link Transcoder} objects.
|
|
14
|
+
*/
|
|
15
|
+
export declare const listTranscoders: (apiSecret: string, options: ListTranscodersSortOptions) => Promise<Transcoder[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the specified cloud transcoder.
|
|
18
|
+
*
|
|
19
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_gettranscoder
|
|
20
|
+
* @beta
|
|
21
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
22
|
+
* If you would like to opt in, please contact our Sales team.
|
|
23
|
+
*
|
|
24
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
25
|
+
* @param transcoderId Identifier of the cloud transcoder to retrieve.
|
|
26
|
+
*
|
|
27
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link Transcoder} object.
|
|
28
|
+
*/
|
|
29
|
+
export declare const getTranscoder: (apiSecret: string, transcoderId: string) => Promise<Transcoder>;
|
|
30
|
+
/**
|
|
31
|
+
* Deletes the specified cloud transcoder.
|
|
32
|
+
*
|
|
33
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_deletetranscoder
|
|
34
|
+
* @beta
|
|
35
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
36
|
+
* If you would like to opt in, please contact our Sales team.
|
|
37
|
+
*
|
|
38
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
39
|
+
* @param transcoderId Identifier of the cloud transcoder to delete.
|
|
40
|
+
*
|
|
41
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a flag to indicate if the operation succeeded or not.
|
|
42
|
+
*/
|
|
43
|
+
export declare const deleteTranscoder: (apiSecret: string, transcoderId: number) => Promise<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* Creates a cloud transcoder.
|
|
46
|
+
*
|
|
47
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_createtranscoder
|
|
48
|
+
* @beta
|
|
49
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
50
|
+
* If you would like to opt in, please contact our Sales team.
|
|
51
|
+
*
|
|
52
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
53
|
+
* @param transcoder Information about the new cloud transcoder.
|
|
54
|
+
*
|
|
55
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link Transcoder} object.
|
|
56
|
+
*/
|
|
57
|
+
export declare const createTranscoder: (apiSecret: string, transcoder: CreateTranscoderRequest) => Promise<Transcoder>;
|
|
58
|
+
/**
|
|
59
|
+
* Configures an existing Transcoder.
|
|
60
|
+
*
|
|
61
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_configuretranscoder
|
|
62
|
+
* @beta
|
|
63
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
64
|
+
* If you would like to opt in, please contact our Sales team.
|
|
65
|
+
*
|
|
66
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
67
|
+
* @param transcoderId Identifier of the cloud transcoder to update.
|
|
68
|
+
* @param transcoder Settings of the cloud transcoder to update.
|
|
69
|
+
*
|
|
70
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link Transcoder} object.
|
|
71
|
+
*/
|
|
72
|
+
export declare const updateTranscoder: (apiSecret: string, transcoderId: string, transcoder: UpdateTranscoderRequest) => Promise<Transcoder>;
|
|
73
|
+
/**
|
|
74
|
+
* Starts the cloud transcoder.
|
|
75
|
+
*
|
|
76
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_starttranscoder
|
|
77
|
+
* @beta
|
|
78
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
79
|
+
* If you would like to opt in, please contact our Sales team.
|
|
80
|
+
*
|
|
81
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
82
|
+
* @param transcoderId Identifier of the cloud transcoder to start.
|
|
83
|
+
*
|
|
84
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a flag to indicate if the operation succeeded or not.
|
|
85
|
+
*/
|
|
86
|
+
export declare const startTranscoder: (apiSecret: string, transcoderId: string) => Promise<boolean>;
|
|
87
|
+
/**
|
|
88
|
+
* Stops the cloud transcoder.
|
|
89
|
+
*
|
|
90
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_stoptranscoder
|
|
91
|
+
* @beta
|
|
92
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
93
|
+
* If you would like to opt in, please contact our Sales team.
|
|
94
|
+
*
|
|
95
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
96
|
+
* @param transcoderId Identifier of the cloud transcoder to stop.
|
|
97
|
+
*
|
|
98
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a flag to indicate if the operation succeeded or not.
|
|
99
|
+
*/
|
|
100
|
+
export declare const stopTranscoder: (apiSecret: string, transcoderId: string) => Promise<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* Lists all transcoder instances.
|
|
103
|
+
* Information on each instance is available for up to 90 days from its end date.
|
|
104
|
+
*
|
|
105
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_listtranscoderinstances
|
|
106
|
+
* @beta
|
|
107
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
108
|
+
* If you would like to opt in, please contact our Sales team
|
|
109
|
+
*
|
|
110
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
111
|
+
* @param options Options to sort the response.
|
|
112
|
+
*
|
|
113
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives an array of {@link TranscoderInstance} objects.
|
|
114
|
+
*/
|
|
115
|
+
export declare const listTranscoderInstances: (apiSecret: string, options: ListTranscodersInstancesSortOptions) => Promise<TranscoderInstance[]>;
|
|
116
|
+
/**
|
|
117
|
+
* Gets the specified cloud transcoder instance.
|
|
118
|
+
*
|
|
119
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_gettranscoderinstance
|
|
120
|
+
* @beta
|
|
121
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
122
|
+
* If you would like to opt in, please contact our Sales team.
|
|
123
|
+
*
|
|
124
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
125
|
+
* @param transcoderInstanceId Identifier of the cloud transcoder instance to retrieve.
|
|
126
|
+
*
|
|
127
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link TranscoderInstance} object.
|
|
128
|
+
*/
|
|
129
|
+
export declare const getTranscoderInstance: (apiSecret: string, transcoderInstanceId: string) => Promise<TranscoderInstance>;
|
|
130
|
+
/**
|
|
131
|
+
* Lists all transcoder profiles.
|
|
132
|
+
*
|
|
133
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_listtranscoderprofiles
|
|
134
|
+
* @beta
|
|
135
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
136
|
+
* If you would like to opt in, please contact our Sales team.
|
|
137
|
+
*
|
|
138
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
139
|
+
* @param options Options to sort the response.
|
|
140
|
+
*
|
|
141
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives an array of {@link TranscoderProfile} objects.
|
|
142
|
+
*/
|
|
143
|
+
export declare const listTranscoderProfiles: (apiSecret: string, options: ListTranscodersProfilesSortOptions) => Promise<TranscoderProfile[]>;
|