@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
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.updateTranscoder = exports.stopTranscoder = exports.startTranscoder = exports.listTranscoders = exports.listTranscoderProfiles = exports.listTranscoderInstances = exports.getTranscoderInstance = exports.getTranscoder = exports.deleteTranscoder = exports.createTranscoder = void 0;
|
|
8
|
+
var _httpHelpers = require("./internal/httpHelpers");
|
|
9
|
+
var Urls = _interopRequireWildcard(require("../urls"));
|
|
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
|
+
* Lists all transcoders.
|
|
17
|
+
*
|
|
18
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_listtranscoders
|
|
19
|
+
* @beta
|
|
20
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
21
|
+
* If you would like to opt in, please contact our Sales team.
|
|
22
|
+
*
|
|
23
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
24
|
+
* @param options Options to sort the response.
|
|
25
|
+
*
|
|
26
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives an array of {@link Transcoder} objects.
|
|
27
|
+
*/
|
|
28
|
+
var listTranscoders = exports.listTranscoders = /*#__PURE__*/function () {
|
|
29
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(apiSecret, options) {
|
|
30
|
+
var _options$isDescending;
|
|
31
|
+
var params, queryOptions;
|
|
32
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34
|
+
case 0:
|
|
35
|
+
params = {
|
|
36
|
+
sortBy: options.sortBy,
|
|
37
|
+
page: options.page.toString(),
|
|
38
|
+
itemsOnPage: options.itemsOnPage.toString(),
|
|
39
|
+
isDescending: ((_options$isDescending = options.isDescending) !== null && _options$isDescending !== void 0 ? _options$isDescending : false).toString()
|
|
40
|
+
};
|
|
41
|
+
if (options.status) {
|
|
42
|
+
params['status'] = options.status;
|
|
43
|
+
}
|
|
44
|
+
queryOptions = {
|
|
45
|
+
hostname: Urls.getRtsHostname(),
|
|
46
|
+
path: '/api/transcoders',
|
|
47
|
+
params: params,
|
|
48
|
+
headers: {
|
|
49
|
+
Accept: 'application/json',
|
|
50
|
+
Authorization: "Bearer ".concat(apiSecret)
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
_context.next = 5;
|
|
54
|
+
return (0, _httpHelpers.sendGet)(queryOptions);
|
|
55
|
+
case 5:
|
|
56
|
+
return _context.abrupt("return", _context.sent);
|
|
57
|
+
case 6:
|
|
58
|
+
case "end":
|
|
59
|
+
return _context.stop();
|
|
60
|
+
}
|
|
61
|
+
}, _callee);
|
|
62
|
+
}));
|
|
63
|
+
return function listTranscoders(_x, _x2) {
|
|
64
|
+
return _ref.apply(this, arguments);
|
|
65
|
+
};
|
|
66
|
+
}();
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Gets the specified cloud transcoder.
|
|
70
|
+
*
|
|
71
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_gettranscoder
|
|
72
|
+
* @beta
|
|
73
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
74
|
+
* If you would like to opt in, please contact our Sales team.
|
|
75
|
+
*
|
|
76
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
77
|
+
* @param transcoderId Identifier of the cloud transcoder to retrieve.
|
|
78
|
+
*
|
|
79
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link Transcoder} object.
|
|
80
|
+
*/
|
|
81
|
+
var getTranscoder = exports.getTranscoder = /*#__PURE__*/function () {
|
|
82
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(apiSecret, transcoderId) {
|
|
83
|
+
var options;
|
|
84
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
85
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
86
|
+
case 0:
|
|
87
|
+
options = {
|
|
88
|
+
hostname: Urls.getRtsHostname(),
|
|
89
|
+
path: "/api/transcoders/".concat(transcoderId),
|
|
90
|
+
headers: {
|
|
91
|
+
Accept: 'application/json',
|
|
92
|
+
Authorization: "Bearer ".concat(apiSecret)
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
_context2.next = 3;
|
|
96
|
+
return (0, _httpHelpers.sendGet)(options);
|
|
97
|
+
case 3:
|
|
98
|
+
return _context2.abrupt("return", _context2.sent);
|
|
99
|
+
case 4:
|
|
100
|
+
case "end":
|
|
101
|
+
return _context2.stop();
|
|
102
|
+
}
|
|
103
|
+
}, _callee2);
|
|
104
|
+
}));
|
|
105
|
+
return function getTranscoder(_x3, _x4) {
|
|
106
|
+
return _ref2.apply(this, arguments);
|
|
107
|
+
};
|
|
108
|
+
}();
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Deletes the specified cloud transcoder.
|
|
112
|
+
*
|
|
113
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_deletetranscoder
|
|
114
|
+
* @beta
|
|
115
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
116
|
+
* If you would like to opt in, please contact our Sales team.
|
|
117
|
+
*
|
|
118
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
119
|
+
* @param transcoderId Identifier of the cloud transcoder to delete.
|
|
120
|
+
*
|
|
121
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a flag to indicate if the operation succeeded or not.
|
|
122
|
+
*/
|
|
123
|
+
var deleteTranscoder = exports.deleteTranscoder = /*#__PURE__*/function () {
|
|
124
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(apiSecret, transcoderId) {
|
|
125
|
+
var options;
|
|
126
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
127
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
128
|
+
case 0:
|
|
129
|
+
options = {
|
|
130
|
+
hostname: Urls.getRtsHostname(),
|
|
131
|
+
path: "/api/transcoders/".concat(transcoderId),
|
|
132
|
+
headers: {
|
|
133
|
+
Accept: 'application/json',
|
|
134
|
+
Authorization: "Bearer ".concat(apiSecret)
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
_context3.next = 3;
|
|
138
|
+
return (0, _httpHelpers.sendDelete)(options);
|
|
139
|
+
case 3:
|
|
140
|
+
return _context3.abrupt("return", _context3.sent);
|
|
141
|
+
case 4:
|
|
142
|
+
case "end":
|
|
143
|
+
return _context3.stop();
|
|
144
|
+
}
|
|
145
|
+
}, _callee3);
|
|
146
|
+
}));
|
|
147
|
+
return function deleteTranscoder(_x5, _x6) {
|
|
148
|
+
return _ref3.apply(this, arguments);
|
|
149
|
+
};
|
|
150
|
+
}();
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Creates a cloud transcoder.
|
|
154
|
+
*
|
|
155
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_createtranscoder
|
|
156
|
+
* @beta
|
|
157
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
158
|
+
* If you would like to opt in, please contact our Sales team.
|
|
159
|
+
*
|
|
160
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
161
|
+
* @param transcoder Information about the new cloud transcoder.
|
|
162
|
+
*
|
|
163
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link Transcoder} object.
|
|
164
|
+
*/
|
|
165
|
+
var createTranscoder = exports.createTranscoder = /*#__PURE__*/function () {
|
|
166
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(apiSecret, transcoder) {
|
|
167
|
+
var options;
|
|
168
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
169
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
170
|
+
case 0:
|
|
171
|
+
if (transcoder.startNow == null) {
|
|
172
|
+
transcoder.startNow = false;
|
|
173
|
+
}
|
|
174
|
+
if (transcoder.passThrough == null) {
|
|
175
|
+
transcoder.passThrough = false;
|
|
176
|
+
}
|
|
177
|
+
options = {
|
|
178
|
+
hostname: Urls.getRtsHostname(),
|
|
179
|
+
path: '/api/transcoders/',
|
|
180
|
+
headers: {
|
|
181
|
+
Accept: 'application/json',
|
|
182
|
+
'Content-Type': 'application/json',
|
|
183
|
+
Authorization: "Bearer ".concat(apiSecret)
|
|
184
|
+
},
|
|
185
|
+
body: JSON.stringify(transcoder)
|
|
186
|
+
};
|
|
187
|
+
_context4.next = 5;
|
|
188
|
+
return (0, _httpHelpers.sendPost)(options);
|
|
189
|
+
case 5:
|
|
190
|
+
return _context4.abrupt("return", _context4.sent);
|
|
191
|
+
case 6:
|
|
192
|
+
case "end":
|
|
193
|
+
return _context4.stop();
|
|
194
|
+
}
|
|
195
|
+
}, _callee4);
|
|
196
|
+
}));
|
|
197
|
+
return function createTranscoder(_x7, _x8) {
|
|
198
|
+
return _ref4.apply(this, arguments);
|
|
199
|
+
};
|
|
200
|
+
}();
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Configures an existing Transcoder.
|
|
204
|
+
*
|
|
205
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_configuretranscoder
|
|
206
|
+
* @beta
|
|
207
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
208
|
+
* If you would like to opt in, please contact our Sales team.
|
|
209
|
+
*
|
|
210
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
211
|
+
* @param transcoderId Identifier of the cloud transcoder to update.
|
|
212
|
+
* @param transcoder Settings of the cloud transcoder to update.
|
|
213
|
+
*
|
|
214
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link Transcoder} object.
|
|
215
|
+
*/
|
|
216
|
+
var updateTranscoder = exports.updateTranscoder = /*#__PURE__*/function () {
|
|
217
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(apiSecret, transcoderId, transcoder) {
|
|
218
|
+
var options;
|
|
219
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
220
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
221
|
+
case 0:
|
|
222
|
+
options = {
|
|
223
|
+
hostname: Urls.getRtsHostname(),
|
|
224
|
+
path: "/api/transcoders/".concat(transcoderId),
|
|
225
|
+
headers: {
|
|
226
|
+
Accept: 'application/json',
|
|
227
|
+
'Content-Type': 'application/json',
|
|
228
|
+
Authorization: "Bearer ".concat(apiSecret)
|
|
229
|
+
},
|
|
230
|
+
body: JSON.stringify(transcoder)
|
|
231
|
+
};
|
|
232
|
+
_context5.next = 3;
|
|
233
|
+
return (0, _httpHelpers.sendPut)(options);
|
|
234
|
+
case 3:
|
|
235
|
+
return _context5.abrupt("return", _context5.sent);
|
|
236
|
+
case 4:
|
|
237
|
+
case "end":
|
|
238
|
+
return _context5.stop();
|
|
239
|
+
}
|
|
240
|
+
}, _callee5);
|
|
241
|
+
}));
|
|
242
|
+
return function updateTranscoder(_x9, _x10, _x11) {
|
|
243
|
+
return _ref5.apply(this, arguments);
|
|
244
|
+
};
|
|
245
|
+
}();
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Starts the cloud transcoder.
|
|
249
|
+
*
|
|
250
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_starttranscoder
|
|
251
|
+
* @beta
|
|
252
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
253
|
+
* If you would like to opt in, please contact our Sales team.
|
|
254
|
+
*
|
|
255
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
256
|
+
* @param transcoderId Identifier of the cloud transcoder to start.
|
|
257
|
+
*
|
|
258
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a flag to indicate if the operation succeeded or not.
|
|
259
|
+
*/
|
|
260
|
+
var startTranscoder = exports.startTranscoder = /*#__PURE__*/function () {
|
|
261
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(apiSecret, transcoderId) {
|
|
262
|
+
var options;
|
|
263
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
264
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
265
|
+
case 0:
|
|
266
|
+
options = {
|
|
267
|
+
hostname: Urls.getRtsHostname(),
|
|
268
|
+
path: "/api/transcoders/start/".concat(transcoderId),
|
|
269
|
+
headers: {
|
|
270
|
+
Accept: 'application/json',
|
|
271
|
+
Authorization: "Bearer ".concat(apiSecret)
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
_context6.next = 3;
|
|
275
|
+
return (0, _httpHelpers.sendPut)(options);
|
|
276
|
+
case 3:
|
|
277
|
+
return _context6.abrupt("return", _context6.sent);
|
|
278
|
+
case 4:
|
|
279
|
+
case "end":
|
|
280
|
+
return _context6.stop();
|
|
281
|
+
}
|
|
282
|
+
}, _callee6);
|
|
283
|
+
}));
|
|
284
|
+
return function startTranscoder(_x12, _x13) {
|
|
285
|
+
return _ref6.apply(this, arguments);
|
|
286
|
+
};
|
|
287
|
+
}();
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Stops the cloud transcoder.
|
|
291
|
+
*
|
|
292
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_stoptranscoder
|
|
293
|
+
* @beta
|
|
294
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
295
|
+
* If you would like to opt in, please contact our Sales team.
|
|
296
|
+
*
|
|
297
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
298
|
+
* @param transcoderId Identifier of the cloud transcoder to stop.
|
|
299
|
+
*
|
|
300
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a flag to indicate if the operation succeeded or not.
|
|
301
|
+
*/
|
|
302
|
+
var stopTranscoder = exports.stopTranscoder = /*#__PURE__*/function () {
|
|
303
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(apiSecret, transcoderId) {
|
|
304
|
+
var options;
|
|
305
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
306
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
307
|
+
case 0:
|
|
308
|
+
options = {
|
|
309
|
+
hostname: Urls.getRtsHostname(),
|
|
310
|
+
path: "/api/transcoders/stop/".concat(transcoderId),
|
|
311
|
+
headers: {
|
|
312
|
+
Accept: 'application/json',
|
|
313
|
+
Authorization: "Bearer ".concat(apiSecret)
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
_context7.next = 3;
|
|
317
|
+
return (0, _httpHelpers.sendPut)(options);
|
|
318
|
+
case 3:
|
|
319
|
+
return _context7.abrupt("return", _context7.sent);
|
|
320
|
+
case 4:
|
|
321
|
+
case "end":
|
|
322
|
+
return _context7.stop();
|
|
323
|
+
}
|
|
324
|
+
}, _callee7);
|
|
325
|
+
}));
|
|
326
|
+
return function stopTranscoder(_x14, _x15) {
|
|
327
|
+
return _ref7.apply(this, arguments);
|
|
328
|
+
};
|
|
329
|
+
}();
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Lists all transcoder instances.
|
|
333
|
+
* Information on each instance is available for up to 90 days from its end date.
|
|
334
|
+
*
|
|
335
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_listtranscoderinstances
|
|
336
|
+
* @beta
|
|
337
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
338
|
+
* If you would like to opt in, please contact our Sales team
|
|
339
|
+
*
|
|
340
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
341
|
+
* @param options Options to sort the response.
|
|
342
|
+
*
|
|
343
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives an array of {@link TranscoderInstance} objects.
|
|
344
|
+
*/
|
|
345
|
+
var listTranscoderInstances = exports.listTranscoderInstances = /*#__PURE__*/function () {
|
|
346
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(apiSecret, options) {
|
|
347
|
+
var _options$isDescending2;
|
|
348
|
+
var params, queryOptions;
|
|
349
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
350
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
351
|
+
case 0:
|
|
352
|
+
params = {
|
|
353
|
+
sortBy: options.sortBy,
|
|
354
|
+
page: options.page.toString(),
|
|
355
|
+
itemsOnPage: options.itemsOnPage.toString(),
|
|
356
|
+
isDescending: ((_options$isDescending2 = options.isDescending) !== null && _options$isDescending2 !== void 0 ? _options$isDescending2 : false).toString()
|
|
357
|
+
};
|
|
358
|
+
if (options.transcoderId) {
|
|
359
|
+
params['transcoderId'] = options.transcoderId;
|
|
360
|
+
}
|
|
361
|
+
if (options.startDate) {
|
|
362
|
+
params['startDate'] = options.startDate;
|
|
363
|
+
}
|
|
364
|
+
if (options.endDate) {
|
|
365
|
+
params['endDate'] = options.endDate;
|
|
366
|
+
}
|
|
367
|
+
queryOptions = {
|
|
368
|
+
hostname: Urls.getRtsHostname(),
|
|
369
|
+
path: '/api/transcoders/instances',
|
|
370
|
+
params: params,
|
|
371
|
+
headers: {
|
|
372
|
+
Accept: 'application/json',
|
|
373
|
+
Authorization: "Bearer ".concat(apiSecret)
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
_context8.next = 7;
|
|
377
|
+
return (0, _httpHelpers.sendGet)(queryOptions);
|
|
378
|
+
case 7:
|
|
379
|
+
return _context8.abrupt("return", _context8.sent);
|
|
380
|
+
case 8:
|
|
381
|
+
case "end":
|
|
382
|
+
return _context8.stop();
|
|
383
|
+
}
|
|
384
|
+
}, _callee8);
|
|
385
|
+
}));
|
|
386
|
+
return function listTranscoderInstances(_x16, _x17) {
|
|
387
|
+
return _ref8.apply(this, arguments);
|
|
388
|
+
};
|
|
389
|
+
}();
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Gets the specified cloud transcoder instance.
|
|
393
|
+
*
|
|
394
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_gettranscoderinstance
|
|
395
|
+
* @beta
|
|
396
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
397
|
+
* If you would like to opt in, please contact our Sales team.
|
|
398
|
+
*
|
|
399
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
400
|
+
* @param transcoderInstanceId Identifier of the cloud transcoder instance to retrieve.
|
|
401
|
+
*
|
|
402
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives a {@link TranscoderInstance} object.
|
|
403
|
+
*/
|
|
404
|
+
var getTranscoderInstance = exports.getTranscoderInstance = /*#__PURE__*/function () {
|
|
405
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(apiSecret, transcoderInstanceId) {
|
|
406
|
+
var options;
|
|
407
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
408
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
409
|
+
case 0:
|
|
410
|
+
options = {
|
|
411
|
+
hostname: Urls.getRtsHostname(),
|
|
412
|
+
path: "/api/transcoders/instances/".concat(transcoderInstanceId),
|
|
413
|
+
headers: {
|
|
414
|
+
Accept: 'application/json',
|
|
415
|
+
Authorization: "Bearer ".concat(apiSecret)
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
_context9.next = 3;
|
|
419
|
+
return (0, _httpHelpers.sendGet)(options);
|
|
420
|
+
case 3:
|
|
421
|
+
return _context9.abrupt("return", _context9.sent);
|
|
422
|
+
case 4:
|
|
423
|
+
case "end":
|
|
424
|
+
return _context9.stop();
|
|
425
|
+
}
|
|
426
|
+
}, _callee9);
|
|
427
|
+
}));
|
|
428
|
+
return function getTranscoderInstance(_x18, _x19) {
|
|
429
|
+
return _ref9.apply(this, arguments);
|
|
430
|
+
};
|
|
431
|
+
}();
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Lists all transcoder profiles.
|
|
435
|
+
*
|
|
436
|
+
* @link https://docs.dolby.io/streaming-apis/reference/transcoder_listtranscoderprofiles
|
|
437
|
+
* @beta
|
|
438
|
+
* @remarks Cloud transcoder usage is not currently available for general usage.
|
|
439
|
+
* If you would like to opt in, please contact our Sales team.
|
|
440
|
+
*
|
|
441
|
+
* @param apiSecret The API Secret used to authenticate this request.
|
|
442
|
+
* @param options Options to sort the response.
|
|
443
|
+
*
|
|
444
|
+
* @returns A {@link !Promise Promise} whose fulfillment handler receives an array of {@link TranscoderProfile} objects.
|
|
445
|
+
*/
|
|
446
|
+
var listTranscoderProfiles = exports.listTranscoderProfiles = /*#__PURE__*/function () {
|
|
447
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(apiSecret, options) {
|
|
448
|
+
var _options$isDescending3;
|
|
449
|
+
var params, queryOptions;
|
|
450
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
451
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
452
|
+
case 0:
|
|
453
|
+
params = {
|
|
454
|
+
sortBy: options.sortBy,
|
|
455
|
+
page: options.page.toString(),
|
|
456
|
+
itemsOnPage: options.itemsOnPage.toString(),
|
|
457
|
+
isDescending: ((_options$isDescending3 = options.isDescending) !== null && _options$isDescending3 !== void 0 ? _options$isDescending3 : false).toString()
|
|
458
|
+
};
|
|
459
|
+
queryOptions = {
|
|
460
|
+
hostname: Urls.getRtsHostname(),
|
|
461
|
+
path: '/api/transcoders/profiles',
|
|
462
|
+
params: params,
|
|
463
|
+
headers: {
|
|
464
|
+
Accept: 'application/json',
|
|
465
|
+
Authorization: "Bearer ".concat(apiSecret)
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
_context10.next = 4;
|
|
469
|
+
return (0, _httpHelpers.sendGet)(queryOptions);
|
|
470
|
+
case 4:
|
|
471
|
+
return _context10.abrupt("return", _context10.sent);
|
|
472
|
+
case 5:
|
|
473
|
+
case "end":
|
|
474
|
+
return _context10.stop();
|
|
475
|
+
}
|
|
476
|
+
}, _callee10);
|
|
477
|
+
}));
|
|
478
|
+
return function listTranscoderProfiles(_x20, _x21) {
|
|
479
|
+
return _ref10.apply(this, arguments);
|
|
480
|
+
};
|
|
481
|
+
}();
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the settings of the geo cascading feature at the account level.
|
|
3
|
+
*/
|
|
4
|
+
export interface AccountGeoCascade {
|
|
5
|
+
/**
|
|
6
|
+
* Enable or Disable geo cascade.
|
|
7
|
+
*/
|
|
8
|
+
isEnabled: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* List of cluster IDs to geo cascade publish stream.
|
|
11
|
+
* This list cannot be empty when {@link isEnabled} is `true`.
|
|
12
|
+
* This list is ignored when {@link isEnabled} is set to `false`.
|
|
13
|
+
* @defaultValue Defaults to `["all"]` if unset.
|
|
14
|
+
*/
|
|
15
|
+
clusters?: string[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents the geo restrictions rules.
|
|
19
|
+
*/
|
|
20
|
+
export interface GeoRestrictions {
|
|
21
|
+
/** List of allowed countries. */
|
|
22
|
+
allowedCountries: string[];
|
|
23
|
+
/** List of restricted countries. */
|
|
24
|
+
deniedCountries: string[];
|
|
25
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a Dolby Millicast cluster.
|
|
3
|
+
*/
|
|
1
4
|
export interface Cluster {
|
|
2
5
|
/** Unique identifier of the cluster. */
|
|
3
6
|
id: string;
|
|
@@ -5,7 +8,21 @@ export interface Cluster {
|
|
|
5
8
|
name: string;
|
|
6
9
|
/** RTMP publish domain for cluster. */
|
|
7
10
|
rtmp: string;
|
|
11
|
+
/** SRT publish domain for cluster. */
|
|
12
|
+
srt: string;
|
|
13
|
+
/** Location of this cluster. */
|
|
14
|
+
location: {
|
|
15
|
+
/** City of the cluster. */
|
|
16
|
+
city: string;
|
|
17
|
+
/** Region of the cluster. */
|
|
18
|
+
region: string;
|
|
19
|
+
/** Country of the cluster. */
|
|
20
|
+
country: string;
|
|
21
|
+
};
|
|
8
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Represents the response to a {@link read} or {@link update} request.
|
|
25
|
+
*/
|
|
9
26
|
export interface ClusterResponse {
|
|
10
27
|
/** Used as cluster when not explicitly specified during Token creation. */
|
|
11
28
|
defaultCluster: string;
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
urls: string[];
|
|
3
|
-
userName: string;
|
|
4
|
-
credential: string;
|
|
5
|
-
}
|
|
1
|
+
/** Represents the response to a {@link subscribe} request. */
|
|
6
2
|
export interface SubscribeResponse {
|
|
3
|
+
/** List of URLs. */
|
|
7
4
|
urls: string[];
|
|
5
|
+
/** The JWT token used for authentication. */
|
|
8
6
|
jwt: string;
|
|
9
|
-
|
|
7
|
+
/** List of ICE servers. */
|
|
8
|
+
iceServers: {
|
|
9
|
+
/** List of URLs to access this ICE server. */
|
|
10
|
+
urls: string[];
|
|
11
|
+
/** Username to authenticate requests to the ICE server. */
|
|
12
|
+
userName?: string;
|
|
13
|
+
/** Credential to authenticate requests to the ICE server. */
|
|
14
|
+
credential?: string;
|
|
15
|
+
}[];
|
|
16
|
+
/** Dolby Millicast account ID. */
|
|
10
17
|
streamAccountId: string;
|
|
11
18
|
}
|
|
19
|
+
/** Represents the response to a {@link publish} request. */
|
|
12
20
|
export interface PublishResponse extends SubscribeResponse {
|
|
21
|
+
/** `true` if subscribing to this stream requires a subscribe token. */
|
|
13
22
|
subscribeRequiresAuth: boolean;
|
|
14
23
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './account';
|
|
2
|
+
export * from './cluster';
|
|
3
|
+
export * from './director';
|
|
4
|
+
export * from './publishToken';
|
|
5
|
+
export * from './recordFiles';
|
|
6
|
+
export * from './stream';
|
|
7
|
+
export * from './subscribeToken';
|
|
8
|
+
export * from './transcoders';
|
|
9
|
+
export * from './webhooks';
|