@dolbyio/dolbyio-rest-apis-client 6.3.0 → 6.3.1
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/dist/index.js +1 -1
- package/dist/streaming/assets.js +5 -2
- package/dist/streaming/types/asset.d.ts +23 -2
- package/package.json +9 -9
package/dist/index.js
CHANGED
package/dist/streaming/assets.js
CHANGED
|
@@ -50,11 +50,14 @@ var create = exports.create = /*#__PURE__*/function () {
|
|
|
50
50
|
headers: {
|
|
51
51
|
Accept: 'application/json',
|
|
52
52
|
'Content-Type': 'application/json',
|
|
53
|
-
Authorization: "Bearer ".concat(apiSecret)
|
|
54
|
-
'Idempotency-Key': idempotencyKey
|
|
53
|
+
Authorization: "Bearer ".concat(apiSecret)
|
|
55
54
|
},
|
|
56
55
|
body: JSON.stringify(clipRequest)
|
|
57
56
|
};
|
|
57
|
+
if (idempotencyKey) {
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
options.headers['Idempotency-Key'] = idempotencyKey;
|
|
60
|
+
}
|
|
58
61
|
_context.n = 1;
|
|
59
62
|
return (0, _httpHelpers.sendPost)(options);
|
|
60
63
|
case 1:
|
|
@@ -48,6 +48,21 @@ export interface CreateAssetClipRequest {
|
|
|
48
48
|
storage?: MediaAssetStorageModel | null;
|
|
49
49
|
/** Optional. Provide expiry time for live recording clip. */
|
|
50
50
|
expiration?: string | null;
|
|
51
|
+
/** Optional. Id of the OptiView Live channel to create live clip. */
|
|
52
|
+
channelId?: string | null;
|
|
53
|
+
/** Optional. Format of the media asset. */
|
|
54
|
+
targetFormat?: 'mp4' | 'hls' | null;
|
|
55
|
+
/** Optional. ID of the media distribution used to authenticate viewing of this media asset. */
|
|
56
|
+
mediaDistributionId?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Optional.
|
|
59
|
+
* Customize the download url path.
|
|
60
|
+
* Typically the download url has format `https://<domain>/<orgId>/<mediaAssetId>/<fileName>`.
|
|
61
|
+
* The customPath replaces the mediaAssetId so that the url looks like `https://<domain>/<orgId>/<customPath>/<fileName>`. The `customPath` must be unique.
|
|
62
|
+
*
|
|
63
|
+
* Possible values: non-empty and <= 512 characters.
|
|
64
|
+
*/
|
|
65
|
+
customPath?: string | null;
|
|
51
66
|
}
|
|
52
67
|
/**
|
|
53
68
|
* Response data for the Clip storage.
|
|
@@ -113,8 +128,10 @@ export interface MediaAssetFeedSelectionModel {
|
|
|
113
128
|
sourceId?: string | null;
|
|
114
129
|
/** Optional, The simulcastId of the stream the clip belongs to. */
|
|
115
130
|
simulcastId?: string | null;
|
|
116
|
-
/** Optional,
|
|
131
|
+
/** Optional, the priority of the clip request. */
|
|
117
132
|
priority?: number | null;
|
|
133
|
+
/** Optional, the identifier of the OptiView Live channel. */
|
|
134
|
+
channelId?: number | null;
|
|
118
135
|
}
|
|
119
136
|
/**
|
|
120
137
|
* Response data for a clip.
|
|
@@ -243,6 +260,10 @@ export interface UpdateMediaAssetRequest {
|
|
|
243
260
|
* Updates may take up to an hour to take effect.
|
|
244
261
|
*/
|
|
245
262
|
mediaDistributionId?: string;
|
|
246
|
-
/**
|
|
263
|
+
/**
|
|
264
|
+
* Customize a portion of the download url path.
|
|
265
|
+
* As an example assets are returned in a url such as `https://cdn.optiview.dolby.com/vod/<orgId>/<mediaAssetId>/<fileName>`.
|
|
266
|
+
* `customPath` will replace `mediaAssetId` in order for a more predictable path.
|
|
267
|
+
*/
|
|
247
268
|
customPath?: string;
|
|
248
269
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dolbyio/dolbyio-rest-apis-client",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.1",
|
|
4
4
|
"description": "Node.JS wrapper for the Dolby OptiView REST APIs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@babel/cli": "^7
|
|
44
|
-
"@babel/core": "^7
|
|
45
|
-
"@babel/preset-env": "^7
|
|
46
|
-
"@babel/preset-typescript": "^7
|
|
43
|
+
"@babel/cli": "^7",
|
|
44
|
+
"@babel/core": "^7",
|
|
45
|
+
"@babel/preset-env": "^7",
|
|
46
|
+
"@babel/preset-typescript": "^7",
|
|
47
47
|
"@types/follow-redirects": "^1.14.4",
|
|
48
|
-
"@types/node": "^
|
|
48
|
+
"@types/node": "^26.1.1",
|
|
49
49
|
"babel-plugin-inline-replace-variables": "^1.3.1",
|
|
50
50
|
"npm-watch": "^0.13.0",
|
|
51
|
-
"prettier": "^3.
|
|
52
|
-
"typedoc": "^0.28.
|
|
51
|
+
"prettier": "^3.9.5",
|
|
52
|
+
"typedoc": "^0.28.20",
|
|
53
53
|
"typedoc-plugin-mdn-links": "^5.1.1",
|
|
54
|
-
"typescript": "^6
|
|
54
|
+
"typescript": "^6"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"follow-redirects": "^1.16.0",
|