@dolbyio/dolbyio-rest-apis-client 3.4.2 → 3.4.4

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.
Files changed (196) hide show
  1. package/dist/{src/authentication.d.ts → authentication.d.ts} +0 -0
  2. package/dist/authentication.js +64 -0
  3. package/dist/{src/communications → communications}/authentication.d.ts +0 -0
  4. package/dist/communications/authentication.js +62 -0
  5. package/dist/{src/communications → communications}/conference.d.ts +0 -0
  6. package/dist/communications/conference.js +380 -0
  7. package/dist/{src/communications → communications}/index.d.ts +0 -0
  8. package/dist/communications/index.js +19 -0
  9. package/dist/{src/communications → communications}/internal/httpHelpers.d.ts +0 -0
  10. package/dist/communications/internal/httpHelpers.js +69 -0
  11. package/dist/{src/communications → communications}/internal/urls.d.ts +0 -0
  12. package/dist/communications/internal/urls.js +10 -0
  13. package/dist/{src/communications → communications}/monitor/conferences.d.ts +0 -0
  14. package/dist/communications/monitor/conferences.js +399 -0
  15. package/dist/{src/communications → communications}/monitor/index.d.ts +0 -0
  16. package/dist/communications/monitor/index.js +15 -0
  17. package/dist/{src/communications → communications}/monitor/recordings.d.ts +0 -0
  18. package/dist/communications/monitor/recordings.js +356 -0
  19. package/dist/{src/communications → communications}/monitor/webhooks.d.ts +0 -0
  20. package/dist/communications/monitor/webhooks.js +140 -0
  21. package/dist/{src/communications → communications}/recording.d.ts +0 -0
  22. package/dist/communications/recording.js +100 -0
  23. package/dist/communications/remix.js +107 -0
  24. package/dist/{src/communications → communications}/streaming.d.ts +0 -0
  25. package/dist/communications/streaming.js +191 -0
  26. package/dist/{src/communications → communications}/types/conference.d.ts +0 -0
  27. package/dist/communications/types/conference.js +5 -0
  28. package/dist/{src/communications → communications}/types/conferences.d.ts +0 -0
  29. package/dist/communications/types/conferences.js +5 -0
  30. package/dist/{src/communications → communications}/types/core.d.ts +0 -0
  31. package/dist/communications/types/core.js +5 -0
  32. package/dist/{src/communications → communications}/types/participant.d.ts +0 -0
  33. package/dist/communications/types/participant.js +1 -0
  34. package/dist/{src/communications → communications}/types/permission.d.ts +0 -0
  35. package/dist/communications/types/permission.js +22 -0
  36. package/dist/{src/communications → communications}/types/recordings.d.ts +0 -0
  37. package/dist/communications/types/recordings.js +5 -0
  38. package/dist/communications/types/remixStatus.js +1 -0
  39. package/dist/{src/communications → communications}/types/rtcpMode.d.ts +0 -0
  40. package/dist/communications/types/rtcpMode.js +13 -0
  41. package/dist/{src/communications → communications}/types/spatialAudio.d.ts +0 -0
  42. package/dist/communications/types/spatialAudio.js +5 -0
  43. package/dist/{src/communications → communications}/types/videoCodec.d.ts +0 -0
  44. package/dist/communications/types/videoCodec.js +12 -0
  45. package/dist/{src/communications → communications}/types/webhooks.d.ts +0 -0
  46. package/dist/communications/types/webhooks.js +5 -0
  47. package/dist/{src/index.d.ts → index.d.ts} +2 -1
  48. package/dist/index.js +17 -0
  49. package/dist/{src/internal → internal}/httpHelpers.d.ts +0 -0
  50. package/dist/internal/httpHelpers.js +217 -0
  51. package/dist/{src/internal → internal}/urls.d.ts +0 -0
  52. package/dist/internal/urls.js +8 -0
  53. package/dist/{src/media → media}/analyze.d.ts +0 -0
  54. package/dist/media/analyze.js +95 -0
  55. package/dist/{src/media → media}/analyzeSpeech.d.ts +0 -0
  56. package/dist/media/analyzeSpeech.js +89 -0
  57. package/dist/{src/media → media}/diagnose.d.ts +0 -0
  58. package/dist/media/diagnose.js +91 -0
  59. package/dist/{src/media → media}/enhance.d.ts +0 -0
  60. package/dist/media/enhance.js +86 -0
  61. package/dist/{src/media → media}/index.d.ts +0 -0
  62. package/dist/media/index.js +27 -0
  63. package/dist/{src/media → media}/internal/httpHelpers.d.ts +0 -0
  64. package/dist/media/internal/httpHelpers.js +61 -0
  65. package/dist/{src/media → media}/internal/jobsHelpers.d.ts +0 -0
  66. package/dist/media/internal/jobsHelpers.js +85 -0
  67. package/dist/{src/media → media}/internal/urls.d.ts +0 -0
  68. package/dist/media/internal/urls.js +8 -0
  69. package/dist/{src/media → media}/io.d.ts +0 -0
  70. package/dist/media/io.js +176 -0
  71. package/dist/{src/media → media}/jobs.d.ts +0 -0
  72. package/dist/media/jobs.js +182 -0
  73. package/dist/{src/media → media}/mastering.d.ts +0 -0
  74. package/dist/media/mastering.js +166 -0
  75. package/dist/{src/media → media}/transcode.d.ts +0 -0
  76. package/dist/media/transcode.js +82 -0
  77. package/dist/{src/media → media}/types/analyze.d.ts +0 -0
  78. package/dist/media/types/analyze.js +5 -0
  79. package/dist/{src/media → media}/types/analyzeSpeech.d.ts +0 -0
  80. package/dist/media/types/analyzeSpeech.js +5 -0
  81. package/dist/{src/media → media}/types/diagnose.d.ts +0 -0
  82. package/dist/media/types/diagnose.js +5 -0
  83. package/dist/{src/media → media}/types/enhance.d.ts +0 -0
  84. package/dist/media/types/enhance.js +5 -0
  85. package/dist/{src/media → media}/types/jobResults.d.ts +0 -0
  86. package/dist/media/types/jobResults.js +5 -0
  87. package/dist/{src/media → media}/types/jobs.d.ts +0 -0
  88. package/dist/media/types/jobs.js +5 -0
  89. package/dist/{src/media → media}/types/mastering.d.ts +0 -0
  90. package/dist/media/types/mastering.js +5 -0
  91. package/dist/{src/media → media}/types/transcode.d.ts +0 -0
  92. package/dist/media/types/transcode.js +5 -0
  93. package/dist/{src/media → media}/types/webhooks.d.ts +0 -0
  94. package/dist/media/types/webhooks.js +5 -0
  95. package/dist/{src/media → media}/webhooks.d.ts +0 -0
  96. package/dist/media/webhooks.js +216 -0
  97. package/dist/{src/types → types}/jwtToken.d.ts +0 -0
  98. package/dist/types/jwtToken.js +1 -0
  99. package/package.json +8 -3
  100. package/dist/package.json +0 -30
  101. package/dist/src/authentication.js +0 -48
  102. package/dist/src/authentication.js.map +0 -1
  103. package/dist/src/communications/authentication.js +0 -46
  104. package/dist/src/communications/authentication.js.map +0 -1
  105. package/dist/src/communications/conference.js +0 -255
  106. package/dist/src/communications/conference.js.map +0 -1
  107. package/dist/src/communications/index.js +0 -37
  108. package/dist/src/communications/index.js.map +0 -1
  109. package/dist/src/communications/internal/httpHelpers.js +0 -47
  110. package/dist/src/communications/internal/httpHelpers.js.map +0 -1
  111. package/dist/src/communications/internal/urls.js +0 -6
  112. package/dist/src/communications/internal/urls.js.map +0 -1
  113. package/dist/src/communications/monitor/conferences.js +0 -271
  114. package/dist/src/communications/monitor/conferences.js.map +0 -1
  115. package/dist/src/communications/monitor/index.js +0 -33
  116. package/dist/src/communications/monitor/index.js.map +0 -1
  117. package/dist/src/communications/monitor/recordings.js +0 -226
  118. package/dist/src/communications/monitor/recordings.js.map +0 -1
  119. package/dist/src/communications/monitor/webhooks.js +0 -104
  120. package/dist/src/communications/monitor/webhooks.js.map +0 -1
  121. package/dist/src/communications/recording.js +0 -69
  122. package/dist/src/communications/recording.js.map +0 -1
  123. package/dist/src/communications/streaming.js +0 -123
  124. package/dist/src/communications/streaming.js.map +0 -1
  125. package/dist/src/communications/types/conference.js +0 -3
  126. package/dist/src/communications/types/conference.js.map +0 -1
  127. package/dist/src/communications/types/conferences.js +0 -3
  128. package/dist/src/communications/types/conferences.js.map +0 -1
  129. package/dist/src/communications/types/core.js +0 -3
  130. package/dist/src/communications/types/core.js.map +0 -1
  131. package/dist/src/communications/types/participant.js +0 -3
  132. package/dist/src/communications/types/participant.js.map +0 -1
  133. package/dist/src/communications/types/permission.js +0 -31
  134. package/dist/src/communications/types/permission.js.map +0 -1
  135. package/dist/src/communications/types/recordings.js +0 -3
  136. package/dist/src/communications/types/recordings.js.map +0 -1
  137. package/dist/src/communications/types/rtcpMode.js +0 -13
  138. package/dist/src/communications/types/rtcpMode.js.map +0 -1
  139. package/dist/src/communications/types/spatialAudio.js +0 -3
  140. package/dist/src/communications/types/spatialAudio.js.map +0 -1
  141. package/dist/src/communications/types/videoCodec.js +0 -9
  142. package/dist/src/communications/types/videoCodec.js.map +0 -1
  143. package/dist/src/communications/types/webhooks.js +0 -3
  144. package/dist/src/communications/types/webhooks.js.map +0 -1
  145. package/dist/src/index.js +0 -33
  146. package/dist/src/index.js.map +0 -1
  147. package/dist/src/internal/httpHelpers.js +0 -184
  148. package/dist/src/internal/httpHelpers.js.map +0 -1
  149. package/dist/src/internal/urls.js +0 -5
  150. package/dist/src/internal/urls.js.map +0 -1
  151. package/dist/src/media/analyze.js +0 -61
  152. package/dist/src/media/analyze.js.map +0 -1
  153. package/dist/src/media/analyzeSpeech.js +0 -55
  154. package/dist/src/media/analyzeSpeech.js.map +0 -1
  155. package/dist/src/media/diagnose.js +0 -57
  156. package/dist/src/media/diagnose.js.map +0 -1
  157. package/dist/src/media/enhance.js +0 -52
  158. package/dist/src/media/enhance.js.map +0 -1
  159. package/dist/src/media/index.js +0 -45
  160. package/dist/src/media/index.js.map +0 -1
  161. package/dist/src/media/internal/httpHelpers.js +0 -76
  162. package/dist/src/media/internal/httpHelpers.js.map +0 -1
  163. package/dist/src/media/internal/jobsHelpers.js +0 -47
  164. package/dist/src/media/internal/jobsHelpers.js.map +0 -1
  165. package/dist/src/media/internal/urls.js +0 -5
  166. package/dist/src/media/internal/urls.js.map +0 -1
  167. package/dist/src/media/io.js +0 -99
  168. package/dist/src/media/io.js.map +0 -1
  169. package/dist/src/media/jobs.js +0 -120
  170. package/dist/src/media/jobs.js.map +0 -1
  171. package/dist/src/media/mastering.js +0 -94
  172. package/dist/src/media/mastering.js.map +0 -1
  173. package/dist/src/media/transcode.js +0 -48
  174. package/dist/src/media/transcode.js.map +0 -1
  175. package/dist/src/media/types/analyze.js +0 -3
  176. package/dist/src/media/types/analyze.js.map +0 -1
  177. package/dist/src/media/types/analyzeSpeech.js +0 -3
  178. package/dist/src/media/types/analyzeSpeech.js.map +0 -1
  179. package/dist/src/media/types/diagnose.js +0 -3
  180. package/dist/src/media/types/diagnose.js.map +0 -1
  181. package/dist/src/media/types/enhance.js +0 -3
  182. package/dist/src/media/types/enhance.js.map +0 -1
  183. package/dist/src/media/types/jobResults.js +0 -3
  184. package/dist/src/media/types/jobResults.js.map +0 -1
  185. package/dist/src/media/types/jobs.js +0 -3
  186. package/dist/src/media/types/jobs.js.map +0 -1
  187. package/dist/src/media/types/mastering.js +0 -3
  188. package/dist/src/media/types/mastering.js.map +0 -1
  189. package/dist/src/media/types/transcode.js +0 -3
  190. package/dist/src/media/types/transcode.js.map +0 -1
  191. package/dist/src/media/types/webhooks.js +0 -3
  192. package/dist/src/media/types/webhooks.js.map +0 -1
  193. package/dist/src/media/webhooks.js +0 -136
  194. package/dist/src/media/webhooks.js.map +0 -1
  195. package/dist/src/types/jwtToken.js +0 -3
  196. package/dist/src/types/jwtToken.js.map +0 -1
@@ -1,184 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.download = exports.sendDelete = exports.sendPut = exports.sendPost = exports.sendGet = void 0;
16
- const fs_1 = __importDefault(require("fs"));
17
- const follow_redirects_1 = require("follow-redirects");
18
- const url_1 = require("url");
19
- const package_json_1 = require("../../package.json");
20
- /**
21
- * Sends a POST request.
22
- *
23
- * @param options request options.
24
- *
25
- * @returns A JSON payload object through a Promise.
26
- */
27
- const sendRequest = (options) => {
28
- return new Promise((resolve, reject) => {
29
- let path = options.path;
30
- if (options.params && Object.keys(options.params).length > 0) {
31
- const searchParams = new url_1.URLSearchParams(options.params);
32
- path += `?${searchParams}`;
33
- }
34
- const opts = {
35
- hostname: options.hostname,
36
- port: 443,
37
- path: path,
38
- method: options.method,
39
- headers: options.headers,
40
- };
41
- // Override the User Agent
42
- opts.headers['User-Agent'] = `DolbyIoRestApiSdk/${package_json_1.version}; Node/${process.versions.node}`;
43
- const req = follow_redirects_1.https.request(opts, (res) => {
44
- console.log(`[${opts.method}] ${res.statusCode} - https://${opts.hostname}${opts.path}`);
45
- let data = '';
46
- res.on('data', (chunk) => {
47
- data = data + chunk.toString();
48
- });
49
- res.on('end', () => {
50
- if (data.length > 0) {
51
- if (res.statusCode < 200 || res.statusCode >= 400) {
52
- reject('This request has been rejected with the response code ' + res.statusCode + ' and description: ' + data);
53
- }
54
- else {
55
- const json = JSON.parse(data);
56
- resolve(json);
57
- }
58
- }
59
- else {
60
- if (res.statusCode < 200 || res.statusCode >= 400) {
61
- reject('This request has been rejected with the response code ' + res.statusCode);
62
- }
63
- else {
64
- resolve(null);
65
- }
66
- }
67
- });
68
- });
69
- req.on('error', (error) => {
70
- console.error(error);
71
- reject(error);
72
- });
73
- if (options.body && options.body.length > 0) {
74
- req.write(options.body);
75
- }
76
- req.end();
77
- });
78
- };
79
- /**
80
- * Sends a GET request.
81
- *
82
- * @param options Request options.
83
- *
84
- * @returns A JSON payload object through a Promise.
85
- */
86
- const sendGet = (options) => {
87
- const sendRequestOptions = Object.assign({ method: 'GET' }, options);
88
- return sendRequest(sendRequestOptions);
89
- };
90
- exports.sendGet = sendGet;
91
- /**
92
- * Sends a POST request.
93
- *
94
- * @param options Request options.
95
- *
96
- * @returns A JSON payload object through a Promise.
97
- */
98
- const sendPost = (options) => {
99
- if (!options.body) {
100
- // The REST APIs don't support an empty payload
101
- options.body = '{}';
102
- options.headers['Content-Type'] = 'application/json';
103
- }
104
- options.headers['Content-Length'] = options.body.length;
105
- const sendRequestOptions = Object.assign({ method: 'POST' }, options);
106
- return sendRequest(sendRequestOptions);
107
- };
108
- exports.sendPost = sendPost;
109
- /**
110
- * Sends a PUT request.
111
- *
112
- * @param options Request options.
113
- *
114
- * @returns A JSON payload object through a Promise.
115
- */
116
- const sendPut = (options) => {
117
- options.headers['Content-Length'] = options.body.length;
118
- const sendRequestOptions = Object.assign({ method: 'PUT' }, options);
119
- return sendRequest(sendRequestOptions);
120
- };
121
- exports.sendPut = sendPut;
122
- /**
123
- * Sends a DELETE request.
124
- *
125
- * @param options Request options.
126
- *
127
- * @returns A JSON payload object through a Promise.
128
- */
129
- const sendDelete = (options) => __awaiter(void 0, void 0, void 0, function* () {
130
- const sendRequestOptions = Object.assign({ method: 'DELETE' }, options);
131
- return yield sendRequest(sendRequestOptions);
132
- });
133
- exports.sendDelete = sendDelete;
134
- /**
135
- * Download a file.
136
- *
137
- * @param filepath Where to save the file.
138
- * @param options Request options.
139
- */
140
- const download = (filepath, options) => {
141
- const sendRequestOptions = Object.assign({ method: 'GET' }, options);
142
- return new Promise((resolve, reject) => {
143
- let path = sendRequestOptions.path;
144
- if (sendRequestOptions.params && Object.keys(sendRequestOptions.params).length > 0) {
145
- const searchParams = new url_1.URLSearchParams(sendRequestOptions.params);
146
- path += `?${searchParams}`;
147
- }
148
- const opts = {
149
- hostname: sendRequestOptions.hostname,
150
- port: 443,
151
- path: path,
152
- method: sendRequestOptions.method,
153
- headers: sendRequestOptions.headers,
154
- };
155
- // Override the User Agent
156
- opts.headers['User-Agent'] = `DolbyIoRestApiSdk/${package_json_1.version}; Node/${process.versions.node}`;
157
- const req = follow_redirects_1.https.request(opts, (res) => {
158
- console.log(`[${opts.method}] ${res.statusCode} - https://${opts.hostname}${opts.path}`);
159
- if (res.statusCode < 200 || res.statusCode >= 400) {
160
- reject('This request has been rejected with the response code ' + res.statusCode);
161
- return;
162
- }
163
- const fileStream = fs_1.default.createWriteStream(filepath, { autoClose: true });
164
- fileStream.on('finish', () => {
165
- resolve();
166
- });
167
- fileStream.on('error', (error) => {
168
- console.error(error);
169
- reject(error);
170
- });
171
- res.pipe(fileStream);
172
- });
173
- req.on('error', (error) => {
174
- console.error(error);
175
- reject(error);
176
- });
177
- if (options.body && options.body.length > 0) {
178
- req.write(options.body);
179
- }
180
- req.end();
181
- });
182
- };
183
- exports.download = download;
184
- //# sourceMappingURL=httpHelpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"httpHelpers.js","sourceRoot":"","sources":["../../../src/internal/httpHelpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,uDAAyC;AAGzC,6BAAsC;AACtC,qDAA6C;AAc7C;;;;;;GAMG;AACH,MAAM,WAAW,GAAG,CAAC,OAA2B,EAAE,EAAE;IAChD,OAAO,IAAI,OAAO,CAAM,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACxC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACxB,IAAI,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC1D,MAAM,YAAY,GAAG,IAAI,qBAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YACzD,IAAI,IAAI,IAAI,YAAY,EAAE,CAAC;SAC9B;QAED,MAAM,IAAI,GAA6B;YACnC,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,IAAI,EAAE,GAAG;YACT,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,OAAO,EAAE,OAAO,CAAC,OAAO;SAC3B,CAAC;QAEF,0BAA0B;QAC1B,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,qBAAqB,sBAAO,UAAU,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QAE3F,MAAM,GAAG,GAAG,wBAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;YACpC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG,CAAC,UAAU,cAAc,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,EAAE,CA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DAAwD,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC;gBAClF,OAAO;aACV;YAED,MAAM,UAAU,GAAG,YAAE,CAAC,iBAAiB,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YAEvE,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE;gBACzB,OAAO,EAAE,CAAC;YACd,CAAC,CAAC,CAAC;YAEH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC7B,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACrB,MAAM,CAAC,KAAK,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC;YAEH,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;QAEH,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACtB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACrB,MAAM,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QAEH,IAAI,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;YACzC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SAC3B;QAED,GAAG,CAAC,GAAG,EAAE,CAAC;IACd,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAxDW,QAAA,QAAQ,YAwDnB"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AUTH_HOSTNAME = void 0;
4
- exports.AUTH_HOSTNAME = 'api.dolby.io';
5
- //# sourceMappingURL=urls.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"urls.js","sourceRoot":"","sources":["../../../src/internal/urls.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,cAAc,CAAC"}
@@ -1,61 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getResults = exports.start = void 0;
13
- const jobsHelpers_1 = require("./internal/jobsHelpers");
14
- /**
15
- * Starts analyzing to learn about your media.
16
- *
17
- * The `input` location of your source media file and `output` location of your Analyze JSON results file are required.
18
- *
19
- * This is an asynchronous operation so you will receive a `job_id` to be used to get the job status and result.
20
- *
21
- * There are additional optional parameters that can be provided to identify the type of content and additional loudness or validation requirements. See the samples for examples of what requests and responses look like.
22
- *
23
- * @link https://docs.dolby.io/media-apis/reference/media-analyze-post
24
- *
25
- * Beta API
26
- * This API is being made available as an early preview.
27
- * If you have feedback on how you'd like to use the API please reach out to share your feedback with our team.
28
- * https://dolby.io/contact
29
- *
30
- * Content Length
31
- *
32
- * Media content with duration less than 2 seconds will not be processed. The API will return an ERROR in this case.
33
- *
34
- * @param accessToken Access token to use for authentication.
35
- * @param jobContent Content of the job description as a JSON payload. You can find the definition at this URL: https://docs.dolby.io/media-apis/reference/media-analyze-post
36
- *
37
- * @returns The job identifier through a `Promise`.
38
- */
39
- const start = (accessToken, jobContent) => __awaiter(void 0, void 0, void 0, function* () {
40
- return yield (0, jobsHelpers_1.startJob)(accessToken, '/media/analyze', jobContent);
41
- });
42
- exports.start = start;
43
- /**
44
- * Gets Analyze Status.
45
- *
46
- * For a given job_id, this method will check the job status.
47
- *
48
- * When `status==Success` you'll be able to retrieve your result from the output location you provided in the original POST.
49
- *
50
- * @link https://docs.dolby.io/media-apis/reference/media-analyze-get
51
- *
52
- * @param accessToken Access token to use for authentication.
53
- * @param jobId Identifier of the job to retrieve.
54
- *
55
- * @returns The `AnalyzeJob` object through a `Promise`.
56
- */
57
- const getResults = (accessToken, jobId) => __awaiter(void 0, void 0, void 0, function* () {
58
- return yield (0, jobsHelpers_1.getJobResults)(accessToken, '/media/analyze', jobId);
59
- });
60
- exports.getResults = getResults;
61
- //# sourceMappingURL=analyze.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"analyze.js","sourceRoot":"","sources":["../../../src/media/analyze.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAiE;AAIjE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACI,MAAM,KAAK,GAAG,CAAO,WAAqB,EAAE,UAAkB,EAA0B,EAAE;IAC7F,OAAO,MAAM,IAAA,sBAAQ,EAAC,WAAW,EAAE,gBAAgB,EAAE,UAAU,CAAC,CAAC;AACrE,CAAC,CAAA,CAAC;AAFW,QAAA,KAAK,SAEhB;AAEF;;;;;;;;;;;;;GAaG;AACI,MAAM,UAAU,GAAG,CAAO,WAAqB,EAAE,KAAa,EAAuB,EAAE;IAC1F,OAAO,MAAM,IAAA,2BAAa,EAAa,WAAW,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;AACjF,CAAC,CAAA,CAAC;AAFW,QAAA,UAAU,cAErB"}
@@ -1,55 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getResults = exports.start = void 0;
13
- const jobsHelpers_1 = require("./internal/jobsHelpers");
14
- /**
15
- * Starts analyzing to learn about speech in your media.
16
- *
17
- * The `input` location of your source media file and `output` location of your Analyze JSON results file are required.
18
- *
19
- * This is an asynchronous operation so you will receive a `job_id` to be used to get the job status and result.
20
- *
21
- * @link https://docs.dolby.io/media-apis/reference/media-analyze-speech-post
22
- *
23
- * Beta API
24
- * This API is being made available as an early preview.
25
- * If you have feedback on how you'd like to use the API please reach out to share your feedback with our team.
26
- * https://dolby.io/contact
27
- *
28
- * @param accessToken Access token to use for authentication.
29
- * @param jobContent Content of the job description as a JSON payload. You can find the definition at this URL: https://docs.dolby.io/media-apis/reference/media-analyze-speech-post
30
- *
31
- * @returns The job identifier through a `Promise`.
32
- */
33
- const start = (accessToken, jobContent) => __awaiter(void 0, void 0, void 0, function* () {
34
- return yield (0, jobsHelpers_1.startJob)(accessToken, '/media/analyze/speech', jobContent);
35
- });
36
- exports.start = start;
37
- /**
38
- * Gets Speech Analytics Status.
39
- *
40
- * For a given job_id, this method will check if the processing task has completed.
41
- *
42
- * When `status` is `Success`, you'll be able to retrieve your result from the `output` location you provided in the original `POST`.
43
- *
44
- * @link https://docs.dolby.io/media-apis/reference/media-analyze-speech-get
45
- *
46
- * @param accessToken Access token to use for authentication.
47
- * @param jobId Identifier of the job to retrieve.
48
- *
49
- * @returns The `AnalyzeSpeechJob` object through a `Promise`.
50
- */
51
- const getResults = (accessToken, jobId) => __awaiter(void 0, void 0, void 0, function* () {
52
- return yield (0, jobsHelpers_1.getJobResults)(accessToken, '/media/analyze/speech', jobId);
53
- });
54
- exports.getResults = getResults;
55
- //# sourceMappingURL=analyzeSpeech.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"analyzeSpeech.js","sourceRoot":"","sources":["../../../src/media/analyzeSpeech.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAiE;AAIjE;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,KAAK,GAAG,CAAO,WAAqB,EAAE,UAAkB,EAA0B,EAAE;IAC7F,OAAO,MAAM,IAAA,sBAAQ,EAAC,WAAW,EAAE,uBAAuB,EAAE,UAAU,CAAC,CAAC;AAC5E,CAAC,CAAA,CAAC;AAFW,QAAA,KAAK,SAEhB;AAEF;;;;;;;;;;;;;GAaG;AACI,MAAM,UAAU,GAAG,CAAO,WAAqB,EAAE,KAAa,EAA6B,EAAE;IAChG,OAAO,MAAM,IAAA,2BAAa,EAAmB,WAAW,EAAE,uBAAuB,EAAE,KAAK,CAAC,CAAC;AAC9F,CAAC,CAAA,CAAC;AAFW,QAAA,UAAU,cAErB"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getResults = exports.start = void 0;
13
- const jobsHelpers_1 = require("./internal/jobsHelpers");
14
- /**
15
- * Starts diagnosing to learn about the audio quality of your media.
16
- *
17
- * The `input` location of your source media file is required.
18
- *
19
- * This is an asynchronous operation so you will receive a `job_id` to be used to get the job status and result.
20
- *
21
- * @link https://docs.dolby.io/media-apis/reference/media-diagnose-post
22
- *
23
- * Beta API
24
- * This API is being made available as an early preview.
25
- * If you have feedback on how you'd like to use the API please reach out to share your feedback with our team.
26
- * https://dolby.io/contact
27
- *
28
- * @param accessToken Access token to use for authentication.
29
- * @param jobContent Content of the job description as a JSON payload. You can find the definition at this URL: https://docs.dolby.io/media-apis/reference/media-diagnose-post
30
- *
31
- * @returns The job identifier through a `Promise`.
32
- */
33
- const start = (accessToken, jobContent) => __awaiter(void 0, void 0, void 0, function* () {
34
- return yield (0, jobsHelpers_1.startJob)(accessToken, '/media/diagnose', jobContent);
35
- });
36
- exports.start = start;
37
- /**
38
- * Gets Diagnose Results.
39
- *
40
- * For a given job_id, this method will check if the processing task has completed.
41
- *
42
- * The `progress` attribute provides a percentage of job progress.
43
- *
44
- * If the `status` is Success then the json result will be returned in the response.
45
- *
46
- * @link https://docs.dolby.io/media-apis/reference/media-diagnose-get
47
- *
48
- * @param accessToken Access token to use for authentication.
49
- * @param jobId Identifier of the job to retrieve.
50
- *
51
- * @returns The `DiagnoseJob` object through a `Promise`.
52
- */
53
- const getResults = (accessToken, jobId) => __awaiter(void 0, void 0, void 0, function* () {
54
- return yield (0, jobsHelpers_1.getJobResults)(accessToken, '/media/diagnose', jobId);
55
- });
56
- exports.getResults = getResults;
57
- //# sourceMappingURL=diagnose.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diagnose.js","sourceRoot":"","sources":["../../../src/media/diagnose.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAiE;AAIjE;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,KAAK,GAAG,CAAO,WAAqB,EAAE,UAAkB,EAA0B,EAAE;IAC7F,OAAO,MAAM,IAAA,sBAAQ,EAAC,WAAW,EAAE,iBAAiB,EAAE,UAAU,CAAC,CAAC;AACtE,CAAC,CAAA,CAAC;AAFW,QAAA,KAAK,SAEhB;AAEF;;;;;;;;;;;;;;;GAeG;AACI,MAAM,UAAU,GAAG,CAAO,WAAqB,EAAE,KAAa,EAAwB,EAAE;IAC3F,OAAO,MAAM,IAAA,2BAAa,EAAc,WAAW,EAAE,iBAAiB,EAAE,KAAK,CAAC,CAAC;AACnF,CAAC,CAAA,CAAC;AAFW,QAAA,UAAU,cAErB"}
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getResults = exports.start = void 0;
13
- const jobsHelpers_1 = require("./internal/jobsHelpers");
14
- /**
15
- * Starts enhancing to improve your media.
16
- *
17
- * The input location for your source media file as well as the output location for the processed result are required.
18
- *
19
- * This is an asynchronous operation so you will receive a job_id where you can retrieve the results when enhancement is complete.
20
- *
21
- * There are additional optional parameters that can be provided to control and select the type of enhancements made. See the samples for some examples of what requests and responses look like.
22
- *
23
- * @link https://docs.dolby.io/media-apis/reference/media-enhance-post
24
- *
25
- * @param accessToken Access token to use for authentication.
26
- * @param jobContent Content of the job description as a JSON payload. You can find the definition at this URL: https://docs.dolby.io/media-apis/reference/media-enhance-post
27
- *
28
- * @returns The job identifier through a `Promise`.
29
- */
30
- const start = (accessToken, jobContent) => __awaiter(void 0, void 0, void 0, function* () {
31
- return yield (0, jobsHelpers_1.startJob)(accessToken, '/media/enhance', jobContent);
32
- });
33
- exports.start = start;
34
- /**
35
- * Gets Enhance Results
36
- *
37
- * For a given job_id, this method will check if the processing task has completed and return the enhanced results.
38
- *
39
- * When the status is Success you'll be able to retrieve your result from the output location you provided in the original POST.
40
- *
41
- * @link https://docs.dolby.io/media-apis/reference/media-enhance-get
42
- *
43
- * @param accessToken Access token to use for authentication.
44
- * @param jobId Identifier of the job to retrieve.
45
- *
46
- * @returns The `EnhanceJob` object through a `Promise`.
47
- */
48
- const getResults = (accessToken, jobId) => __awaiter(void 0, void 0, void 0, function* () {
49
- return yield (0, jobsHelpers_1.getJobResults)(accessToken, '/media/enhance', jobId);
50
- });
51
- exports.getResults = getResults;
52
- //# sourceMappingURL=enhance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enhance.js","sourceRoot":"","sources":["../../../src/media/enhance.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAiE;AAIjE;;;;;;;;;;;;;;;GAeG;AACI,MAAM,KAAK,GAAG,CAAO,WAAqB,EAAE,UAAkB,EAA0B,EAAE;IAC7F,OAAO,MAAM,IAAA,sBAAQ,EAAC,WAAW,EAAE,gBAAgB,EAAE,UAAU,CAAC,CAAC;AACrE,CAAC,CAAA,CAAC;AAFW,QAAA,KAAK,SAEhB;AAEF;;;;;;;;;;;;;GAaG;AACI,MAAM,UAAU,GAAG,CAAO,WAAqB,EAAE,KAAa,EAAuB,EAAE;IAC1F,OAAO,MAAM,IAAA,2BAAa,EAAa,WAAW,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;AACjF,CAAC,CAAA,CAAC;AAFW,QAAA,UAAU,cAErB"}
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.webhooks = exports.transcode = exports.mastering = exports.jobs = exports.io = exports.enhance = exports.diagnose = exports.analyzeSpeech = exports.analyze = void 0;
27
- const analyze = __importStar(require("./analyze"));
28
- exports.analyze = analyze;
29
- const analyzeSpeech = __importStar(require("./analyzeSpeech"));
30
- exports.analyzeSpeech = analyzeSpeech;
31
- const diagnose = __importStar(require("./diagnose"));
32
- exports.diagnose = diagnose;
33
- const enhance = __importStar(require("./enhance"));
34
- exports.enhance = enhance;
35
- const io = __importStar(require("./io"));
36
- exports.io = io;
37
- const jobs = __importStar(require("./jobs"));
38
- exports.jobs = jobs;
39
- const mastering = __importStar(require("./mastering"));
40
- exports.mastering = mastering;
41
- const transcode = __importStar(require("./transcode"));
42
- exports.transcode = transcode;
43
- const webhooks = __importStar(require("./webhooks"));
44
- exports.webhooks = webhooks;
45
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/media/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAqC;AAU5B,0BAAO;AAThB,+DAAiD;AAS/B,sCAAa;AAR/B,qDAAuC;AAQN,4BAAQ;AAPzC,mDAAqC;AAOM,0BAAO;AANlD,yCAA2B;AAMyB,gBAAE;AALtD,6CAA+B;AAKyB,oBAAI;AAJ5D,uDAAyC;AAIqB,8BAAS;AAHvE,uDAAyC;AAGgC,8BAAS;AAFlF,qDAAuC;AAE6C,4BAAQ"}
@@ -1,76 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.sendDelete = exports.sendPut = exports.sendPost = exports.sendGet = void 0;
27
- const httpHelpers = __importStar(require("../../internal/httpHelpers"));
28
- /**
29
- * Sends a GET request.
30
- *
31
- * @param options Request options.
32
- *
33
- * @returns A JSON payload object through a Promise.
34
- */
35
- const sendGet = (options) => {
36
- options.headers['Authorization'] = `Bearer ${options.accessToken.access_token}`;
37
- return httpHelpers.sendGet(options);
38
- };
39
- exports.sendGet = sendGet;
40
- /**
41
- * Sends a POST request.
42
- *
43
- * @param options Request options.
44
- *
45
- * @returns A JSON payload object through a Promise.
46
- */
47
- const sendPost = (options) => {
48
- options.headers['Authorization'] = `Bearer ${options.accessToken.access_token}`;
49
- return httpHelpers.sendPost(options);
50
- };
51
- exports.sendPost = sendPost;
52
- /**
53
- * Sends a PUT request.
54
- *
55
- * @param options Request options.
56
- *
57
- * @returns A JSON payload object through a Promise.
58
- */
59
- const sendPut = (options) => {
60
- options.headers['Authorization'] = `Bearer ${options.accessToken.access_token}`;
61
- return httpHelpers.sendPut(options);
62
- };
63
- exports.sendPut = sendPut;
64
- /**
65
- * Sends a DELETE request.
66
- *
67
- * @param options Request options.
68
- *
69
- * @returns A JSON payload object through a Promise.
70
- */
71
- const sendDelete = (options) => {
72
- options.headers['Authorization'] = `Bearer ${options.accessToken.access_token}`;
73
- return httpHelpers.sendDelete(options);
74
- };
75
- exports.sendDelete = sendDelete;
76
- //# sourceMappingURL=httpHelpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"httpHelpers.js","sourceRoot":"","sources":["../../../../src/media/internal/httpHelpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wEAA0D;AAO1D;;;;;;GAMG;AACI,MAAM,OAAO,GAAG,CAAC,OAA2B,EAAE,EAAE;IACnD,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC;IAEhF,OAAO,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF;;;;;;GAMG;AACI,MAAM,QAAQ,GAAG,CAAC,OAA2B,EAAE,EAAE;IACpD,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC;IAEhF,OAAO,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC,CAAC;AAJW,QAAA,QAAQ,YAInB;AAEF;;;;;;GAMG;AACI,MAAM,OAAO,GAAG,CAAC,OAA2B,EAAE,EAAE;IACnD,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC;IAEhF,OAAO,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF;;;;;;GAMG;AACI,MAAM,UAAU,GAAG,CAAC,OAA2B,EAAE,EAAE;IACtD,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC;IAEhF,OAAO,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AAC3C,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getJobResults = exports.startJob = void 0;
13
- const httpHelpers_1 = require("./httpHelpers");
14
- const urls_1 = require("./urls");
15
- const startJob = (accessToken, urlPath, jobContent) => __awaiter(void 0, void 0, void 0, function* () {
16
- const requestOptions = {
17
- hostname: urls_1.API_HOSTNAME,
18
- path: urlPath,
19
- headers: {
20
- Accept: 'application/json',
21
- 'Content-Type': 'application/json',
22
- },
23
- accessToken,
24
- body: jobContent,
25
- };
26
- const response = yield (0, httpHelpers_1.sendPost)(requestOptions);
27
- if (response.hasOwnProperty('job_id')) {
28
- return response['job_id'];
29
- }
30
- return null;
31
- });
32
- exports.startJob = startJob;
33
- const getJobResults = (accessToken, urlPath, jobId) => __awaiter(void 0, void 0, void 0, function* () {
34
- const requestOptions = {
35
- hostname: urls_1.API_HOSTNAME,
36
- path: urlPath,
37
- params: {
38
- job_id: jobId,
39
- },
40
- headers: {},
41
- accessToken,
42
- };
43
- const response = yield (0, httpHelpers_1.sendGet)(requestOptions);
44
- return response;
45
- });
46
- exports.getJobResults = getJobResults;
47
- //# sourceMappingURL=jobsHelpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jobsHelpers.js","sourceRoot":"","sources":["../../../../src/media/internal/jobsHelpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAsE;AACtE,iCAAsC;AAG/B,MAAM,QAAQ,GAAG,CAAO,WAAqB,EAAE,OAAe,EAAE,UAAkB,EAA0B,EAAE;IACjH,MAAM,cAAc,GAAuB;QACvC,QAAQ,EAAE,mBAAY;QACtB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE;YACL,MAAM,EAAE,kBAAkB;YAC1B,cAAc,EAAE,kBAAkB;SACrC;QACD,WAAW;QACX,IAAI,EAAE,UAAU;KACnB,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAQ,EAAC,cAAc,CAAC,CAAC;IAChD,IAAI,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;QACnC,OAAO,QAAQ,CAAC,QAAQ,CAAC,CAAC;KAC7B;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAA,CAAC;AAlBW,QAAA,QAAQ,YAkBnB;AAEK,MAAM,aAAa,GAAG,CAAgB,WAAqB,EAAE,OAAe,EAAE,KAAa,EAAoB,EAAE;IACpH,MAAM,cAAc,GAAuB;QACvC,QAAQ,EAAE,mBAAY;QACtB,IAAI,EAAE,OAAO;QACb,MAAM,EAAE;YACJ,MAAM,EAAE,KAAK;SAChB;QACD,OAAO,EAAE,EAAE;QACX,WAAW;KACd,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,IAAA,qBAAO,EAAC,cAAc,CAAC,CAAC;IAC/C,OAAO,QAAmB,CAAC;AAC/B,CAAC,CAAA,CAAC;AAbW,QAAA,aAAa,iBAaxB"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.API_HOSTNAME = void 0;
4
- exports.API_HOSTNAME = 'api.dolby.com';
5
- //# sourceMappingURL=urls.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"urls.js","sourceRoot":"","sources":["../../../../src/media/internal/urls.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,eAAe,CAAC"}