@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 CHANGED
@@ -34,4 +34,4 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
34
34
  // Expose the logger to control when/where to log
35
35
 
36
36
  /** Gets the version of this library. */
37
- var version = exports.version = "6.3.0";
37
+ var version = exports.version = "6.3.1";
@@ -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, int32, the priority of the clip request. */
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
- /** Customise the download url path. */
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.0",
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.28.6",
44
- "@babel/core": "^7.29.0",
45
- "@babel/preset-env": "^7.29.0",
46
- "@babel/preset-typescript": "^7.28.5",
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": "^25.6.2",
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.8.3",
52
- "typedoc": "^0.28.19",
51
+ "prettier": "^3.9.5",
52
+ "typedoc": "^0.28.20",
53
53
  "typedoc-plugin-mdn-links": "^5.1.1",
54
- "typescript": "^6.0.3"
54
+ "typescript": "^6"
55
55
  },
56
56
  "dependencies": {
57
57
  "follow-redirects": "^1.16.0",