@bitmovin/api-sdk 1.262.0 → 1.263.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/README.md CHANGED
@@ -31,7 +31,7 @@ If you have any questions regarding the SDK, provided examples or our services,
31
31
  ## Installation
32
32
 
33
33
  ``` bash
34
- npm install @bitmovin/api-sdk@1.262.0
34
+ npm install @bitmovin/api-sdk@1.263.0
35
35
  ```
36
36
 
37
37
  ## Initialization
@@ -1,6 +1,7 @@
1
1
  import { BaseAPI } from '../common/BaseAPI';
2
2
  import Configuration from '../common/Configuration';
3
3
  import AisaApi from './aisa/AisaApi';
4
+ import AssistantApi from './assistant/AssistantApi';
4
5
  /**
5
6
  * AgentsApi - object-oriented interface
6
7
  * @export
@@ -9,5 +10,6 @@ import AisaApi from './aisa/AisaApi';
9
10
  */
10
11
  export default class AgentsApi extends BaseAPI {
11
12
  aisa: AisaApi;
13
+ assistant: AssistantApi;
12
14
  constructor(configuration: Configuration);
13
15
  }
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  var BaseAPI_1 = require("../common/BaseAPI");
19
19
  var AisaApi_1 = require("./aisa/AisaApi");
20
+ var AssistantApi_1 = require("./assistant/AssistantApi");
20
21
  /**
21
22
  * AgentsApi - object-oriented interface
22
23
  * @export
@@ -28,6 +29,7 @@ var AgentsApi = /** @class */ (function (_super) {
28
29
  function AgentsApi(configuration) {
29
30
  var _this = _super.call(this, configuration) || this;
30
31
  _this.aisa = new AisaApi_1.default(configuration);
32
+ _this.assistant = new AssistantApi_1.default(configuration);
31
33
  return _this;
32
34
  }
33
35
  return AgentsApi;
@@ -0,0 +1,13 @@
1
+ import { BaseAPI } from '../../common/BaseAPI';
2
+ import Configuration from '../../common/Configuration';
3
+ import SessionsApi from './sessions/SessionsApi';
4
+ /**
5
+ * AssistantApi - object-oriented interface
6
+ * @export
7
+ * @class AssistantApi
8
+ * @extends {BaseAPI}
9
+ */
10
+ export default class AssistantApi extends BaseAPI {
11
+ sessions: SessionsApi;
12
+ constructor(configuration: Configuration);
13
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var BaseAPI_1 = require("../../common/BaseAPI");
19
+ var SessionsApi_1 = require("./sessions/SessionsApi");
20
+ /**
21
+ * AssistantApi - object-oriented interface
22
+ * @export
23
+ * @class AssistantApi
24
+ * @extends {BaseAPI}
25
+ */
26
+ var AssistantApi = /** @class */ (function (_super) {
27
+ __extends(AssistantApi, _super);
28
+ function AssistantApi(configuration) {
29
+ var _this = _super.call(this, configuration) || this;
30
+ _this.sessions = new SessionsApi_1.default(configuration);
31
+ return _this;
32
+ }
33
+ return AssistantApi;
34
+ }(BaseAPI_1.BaseAPI));
35
+ exports.default = AssistantApi;
@@ -0,0 +1,44 @@
1
+ import { BaseAPI } from '../../../common/BaseAPI';
2
+ import Configuration from '../../../common/Configuration';
3
+ import AgentSessionHistoryResponse from '../../../models/AgentSessionHistoryResponse';
4
+ import AgentSessionListResponse from '../../../models/AgentSessionListResponse';
5
+ import AgentSessionResponse from '../../../models/AgentSessionResponse';
6
+ /**
7
+ * SessionsApi - object-oriented interface
8
+ * @export
9
+ * @class SessionsApi
10
+ * @extends {BaseAPI}
11
+ */
12
+ export default class SessionsApi extends BaseAPI {
13
+ constructor(configuration: Configuration);
14
+ /**
15
+ * @summary Create Agent Session
16
+ * @param {string} xUserId User ID used to scope agent sessions
17
+ * @throws {BitmovinError}
18
+ * @memberof SessionsApi
19
+ */
20
+ create(): Promise<AgentSessionResponse>;
21
+ /**
22
+ * @summary Delete Agent Session
23
+ * @param {string} sessionId Id of the session
24
+ * @param {string} xUserId User ID used to scope agent sessions
25
+ * @throws {BitmovinError}
26
+ * @memberof SessionsApi
27
+ */
28
+ delete(sessionId: string): Promise<AgentSessionResponse>;
29
+ /**
30
+ * @summary Get Agent Session Details
31
+ * @param {string} sessionId Id of the session
32
+ * @param {string} xUserId User ID used to scope agent sessions
33
+ * @throws {BitmovinError}
34
+ * @memberof SessionsApi
35
+ */
36
+ get(sessionId: string): Promise<AgentSessionHistoryResponse>;
37
+ /**
38
+ * @summary List Agent Sessions
39
+ * @param {string} xUserId User ID used to scope agent sessions
40
+ * @throws {BitmovinError}
41
+ * @memberof SessionsApi
42
+ */
43
+ list(): Promise<AgentSessionListResponse>;
44
+ }
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var BaseAPI_1 = require("../../../common/BaseAPI");
19
+ var Mapper_1 = require("../../../common/Mapper");
20
+ var AgentSessionHistoryResponse_1 = require("../../../models/AgentSessionHistoryResponse");
21
+ var AgentSessionListResponse_1 = require("../../../models/AgentSessionListResponse");
22
+ var AgentSessionResponse_1 = require("../../../models/AgentSessionResponse");
23
+ /**
24
+ * SessionsApi - object-oriented interface
25
+ * @export
26
+ * @class SessionsApi
27
+ * @extends {BaseAPI}
28
+ */
29
+ var SessionsApi = /** @class */ (function (_super) {
30
+ __extends(SessionsApi, _super);
31
+ function SessionsApi(configuration) {
32
+ return _super.call(this, configuration) || this;
33
+ }
34
+ /**
35
+ * @summary Create Agent Session
36
+ * @param {string} xUserId User ID used to scope agent sessions
37
+ * @throws {BitmovinError}
38
+ * @memberof SessionsApi
39
+ */
40
+ SessionsApi.prototype.create = function () {
41
+ return this.restClient.post('/agents/assistant/sessions', {}).then(function (response) {
42
+ return (0, Mapper_1.map)(response, AgentSessionResponse_1.default);
43
+ });
44
+ };
45
+ /**
46
+ * @summary Delete Agent Session
47
+ * @param {string} sessionId Id of the session
48
+ * @param {string} xUserId User ID used to scope agent sessions
49
+ * @throws {BitmovinError}
50
+ * @memberof SessionsApi
51
+ */
52
+ SessionsApi.prototype.delete = function (sessionId) {
53
+ var pathParamMap = {
54
+ session_id: sessionId
55
+ };
56
+ return this.restClient.delete('/agents/assistant/sessions/{session_id}', pathParamMap).then(function (response) {
57
+ return (0, Mapper_1.map)(response, AgentSessionResponse_1.default);
58
+ });
59
+ };
60
+ /**
61
+ * @summary Get Agent Session Details
62
+ * @param {string} sessionId Id of the session
63
+ * @param {string} xUserId User ID used to scope agent sessions
64
+ * @throws {BitmovinError}
65
+ * @memberof SessionsApi
66
+ */
67
+ SessionsApi.prototype.get = function (sessionId) {
68
+ var pathParamMap = {
69
+ session_id: sessionId
70
+ };
71
+ return this.restClient.get('/agents/assistant/sessions/{session_id}', pathParamMap).then(function (response) {
72
+ return (0, Mapper_1.map)(response, AgentSessionHistoryResponse_1.default);
73
+ });
74
+ };
75
+ /**
76
+ * @summary List Agent Sessions
77
+ * @param {string} xUserId User ID used to scope agent sessions
78
+ * @throws {BitmovinError}
79
+ * @memberof SessionsApi
80
+ */
81
+ SessionsApi.prototype.list = function () {
82
+ return this.restClient.get('/agents/assistant/sessions', {}).then(function (response) {
83
+ return (0, Mapper_1.map)(response, AgentSessionListResponse_1.default);
84
+ });
85
+ };
86
+ return SessionsApi;
87
+ }(BaseAPI_1.BaseAPI));
88
+ exports.default = SessionsApi;
@@ -2421,6 +2421,7 @@ var __extends = (this && this.__extends) || (function () {
2421
2421
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2422
2422
  var BaseAPI_1 = __webpack_require__(/*! ../common/BaseAPI */ "./common/BaseAPI.ts");
2423
2423
  var AisaApi_1 = __webpack_require__(/*! ./aisa/AisaApi */ "./agents/aisa/AisaApi.ts");
2424
+ var AssistantApi_1 = __webpack_require__(/*! ./assistant/AssistantApi */ "./agents/assistant/AssistantApi.ts");
2424
2425
  /**
2425
2426
  * AgentsApi - object-oriented interface
2426
2427
  * @export
@@ -2432,6 +2433,7 @@ var AgentsApi = /** @class */ (function (_super) {
2432
2433
  function AgentsApi(configuration) {
2433
2434
  var _this = _super.call(this, configuration) || this;
2434
2435
  _this.aisa = new AisaApi_1.default(configuration);
2436
+ _this.assistant = new AssistantApi_1.default(configuration);
2435
2437
  return _this;
2436
2438
  }
2437
2439
  return AgentsApi;
@@ -2584,6 +2586,151 @@ var SessionsApi = /** @class */ (function (_super) {
2584
2586
  exports["default"] = SessionsApi;
2585
2587
 
2586
2588
 
2589
+ /***/ },
2590
+
2591
+ /***/ "./agents/assistant/AssistantApi.ts"
2592
+ /*!******************************************!*\
2593
+ !*** ./agents/assistant/AssistantApi.ts ***!
2594
+ \******************************************/
2595
+ (__unused_webpack_module, exports, __webpack_require__) {
2596
+
2597
+ "use strict";
2598
+
2599
+ var __extends = (this && this.__extends) || (function () {
2600
+ var extendStatics = function (d, b) {
2601
+ extendStatics = Object.setPrototypeOf ||
2602
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2603
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2604
+ return extendStatics(d, b);
2605
+ };
2606
+ return function (d, b) {
2607
+ if (typeof b !== "function" && b !== null)
2608
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2609
+ extendStatics(d, b);
2610
+ function __() { this.constructor = d; }
2611
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2612
+ };
2613
+ })();
2614
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
2615
+ var BaseAPI_1 = __webpack_require__(/*! ../../common/BaseAPI */ "./common/BaseAPI.ts");
2616
+ var SessionsApi_1 = __webpack_require__(/*! ./sessions/SessionsApi */ "./agents/assistant/sessions/SessionsApi.ts");
2617
+ /**
2618
+ * AssistantApi - object-oriented interface
2619
+ * @export
2620
+ * @class AssistantApi
2621
+ * @extends {BaseAPI}
2622
+ */
2623
+ var AssistantApi = /** @class */ (function (_super) {
2624
+ __extends(AssistantApi, _super);
2625
+ function AssistantApi(configuration) {
2626
+ var _this = _super.call(this, configuration) || this;
2627
+ _this.sessions = new SessionsApi_1.default(configuration);
2628
+ return _this;
2629
+ }
2630
+ return AssistantApi;
2631
+ }(BaseAPI_1.BaseAPI));
2632
+ exports["default"] = AssistantApi;
2633
+
2634
+
2635
+ /***/ },
2636
+
2637
+ /***/ "./agents/assistant/sessions/SessionsApi.ts"
2638
+ /*!**************************************************!*\
2639
+ !*** ./agents/assistant/sessions/SessionsApi.ts ***!
2640
+ \**************************************************/
2641
+ (__unused_webpack_module, exports, __webpack_require__) {
2642
+
2643
+ "use strict";
2644
+
2645
+ var __extends = (this && this.__extends) || (function () {
2646
+ var extendStatics = function (d, b) {
2647
+ extendStatics = Object.setPrototypeOf ||
2648
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2649
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2650
+ return extendStatics(d, b);
2651
+ };
2652
+ return function (d, b) {
2653
+ if (typeof b !== "function" && b !== null)
2654
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2655
+ extendStatics(d, b);
2656
+ function __() { this.constructor = d; }
2657
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2658
+ };
2659
+ })();
2660
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
2661
+ var BaseAPI_1 = __webpack_require__(/*! ../../../common/BaseAPI */ "./common/BaseAPI.ts");
2662
+ var Mapper_1 = __webpack_require__(/*! ../../../common/Mapper */ "./common/Mapper.ts");
2663
+ var AgentSessionHistoryResponse_1 = __webpack_require__(/*! ../../../models/AgentSessionHistoryResponse */ "./models/AgentSessionHistoryResponse.ts");
2664
+ var AgentSessionListResponse_1 = __webpack_require__(/*! ../../../models/AgentSessionListResponse */ "./models/AgentSessionListResponse.ts");
2665
+ var AgentSessionResponse_1 = __webpack_require__(/*! ../../../models/AgentSessionResponse */ "./models/AgentSessionResponse.ts");
2666
+ /**
2667
+ * SessionsApi - object-oriented interface
2668
+ * @export
2669
+ * @class SessionsApi
2670
+ * @extends {BaseAPI}
2671
+ */
2672
+ var SessionsApi = /** @class */ (function (_super) {
2673
+ __extends(SessionsApi, _super);
2674
+ function SessionsApi(configuration) {
2675
+ return _super.call(this, configuration) || this;
2676
+ }
2677
+ /**
2678
+ * @summary Create Agent Session
2679
+ * @param {string} xUserId User ID used to scope agent sessions
2680
+ * @throws {BitmovinError}
2681
+ * @memberof SessionsApi
2682
+ */
2683
+ SessionsApi.prototype.create = function () {
2684
+ return this.restClient.post('/agents/assistant/sessions', {}).then(function (response) {
2685
+ return (0, Mapper_1.map)(response, AgentSessionResponse_1.default);
2686
+ });
2687
+ };
2688
+ /**
2689
+ * @summary Delete Agent Session
2690
+ * @param {string} sessionId Id of the session
2691
+ * @param {string} xUserId User ID used to scope agent sessions
2692
+ * @throws {BitmovinError}
2693
+ * @memberof SessionsApi
2694
+ */
2695
+ SessionsApi.prototype.delete = function (sessionId) {
2696
+ var pathParamMap = {
2697
+ session_id: sessionId
2698
+ };
2699
+ return this.restClient.delete('/agents/assistant/sessions/{session_id}', pathParamMap).then(function (response) {
2700
+ return (0, Mapper_1.map)(response, AgentSessionResponse_1.default);
2701
+ });
2702
+ };
2703
+ /**
2704
+ * @summary Get Agent Session Details
2705
+ * @param {string} sessionId Id of the session
2706
+ * @param {string} xUserId User ID used to scope agent sessions
2707
+ * @throws {BitmovinError}
2708
+ * @memberof SessionsApi
2709
+ */
2710
+ SessionsApi.prototype.get = function (sessionId) {
2711
+ var pathParamMap = {
2712
+ session_id: sessionId
2713
+ };
2714
+ return this.restClient.get('/agents/assistant/sessions/{session_id}', pathParamMap).then(function (response) {
2715
+ return (0, Mapper_1.map)(response, AgentSessionHistoryResponse_1.default);
2716
+ });
2717
+ };
2718
+ /**
2719
+ * @summary List Agent Sessions
2720
+ * @param {string} xUserId User ID used to scope agent sessions
2721
+ * @throws {BitmovinError}
2722
+ * @memberof SessionsApi
2723
+ */
2724
+ SessionsApi.prototype.list = function () {
2725
+ return this.restClient.get('/agents/assistant/sessions', {}).then(function (response) {
2726
+ return (0, Mapper_1.map)(response, AgentSessionListResponse_1.default);
2727
+ });
2728
+ };
2729
+ return SessionsApi;
2730
+ }(BaseAPI_1.BaseAPI));
2731
+ exports["default"] = SessionsApi;
2732
+
2733
+
2587
2734
  /***/ },
2588
2735
 
2589
2736
  /***/ "./aiSceneAnalysis/AiSceneAnalysisApi.ts"
@@ -6657,7 +6804,7 @@ var HeaderHandler = /** @class */ (function (_super) {
6657
6804
  var headers = {
6658
6805
  'X-Api-Key': apiKey,
6659
6806
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
6660
- 'X-Api-Client-Version': '1.262.0',
6807
+ 'X-Api-Client-Version': '1.263.0',
6661
6808
  'Content-Type': 'application/json'
6662
6809
  };
6663
6810
  if (tenantOrgId) {
@@ -85374,11 +85521,13 @@ var SceneAnalysisDetailsResponse = /** @class */ (function () {
85374
85521
  return;
85375
85522
  }
85376
85523
  this.scenes = (0, Mapper_1.mapArray)(obj.scenes, Scene_1.default);
85524
+ this.duration = (0, Mapper_1.map)(obj.duration);
85377
85525
  this.description = (0, Mapper_1.map)(obj.description);
85378
85526
  this.keywords = (0, Mapper_1.mapArray)(obj.keywords);
85379
85527
  this.ratings = (0, Mapper_1.mapArray)(obj.ratings, Rating_1.default);
85380
85528
  this.sensitiveTopics = (0, Mapper_1.mapArray)(obj.sensitiveTopics);
85381
85529
  this.iabSensitiveTopicTaxonomies = (0, Mapper_1.mapArray)(obj.iabSensitiveTopicTaxonomies);
85530
+ this.inputLanguageCodes = (0, Mapper_1.mapArray)(obj.inputLanguageCodes);
85382
85531
  this.metadata = (0, Mapper_1.map)(obj.metadata, Metadata_1.default);
85383
85532
  }
85384
85533
  return SceneAnalysisDetailsResponse;