@bitmovin/api-sdk 1.256.0 → 1.257.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.
Files changed (79) hide show
  1. package/README.md +1 -1
  2. package/dist/BitmovinApi.d.ts +2 -0
  3. package/dist/BitmovinApi.js +2 -0
  4. package/dist/agents/AgentsApi.d.ts +13 -0
  5. package/dist/agents/AgentsApi.js +35 -0
  6. package/dist/agents/aisa/AisaApi.d.ts +13 -0
  7. package/dist/agents/aisa/AisaApi.js +35 -0
  8. package/dist/agents/aisa/sessions/SessionsApi.d.ts +44 -0
  9. package/dist/agents/aisa/sessions/SessionsApi.js +88 -0
  10. package/dist/bitmovin-api-sdk.browser.js +814 -169
  11. package/dist/bitmovin-api-sdk.browser.min.js +1 -1
  12. package/dist/common/RestClient.js +1 -1
  13. package/dist/models/AbstractCondition.d.ts +1 -2
  14. package/dist/models/AbstractCondition.js +3 -3
  15. package/dist/models/AdAnalyticsAbstractFilter.d.ts +1 -2
  16. package/dist/models/AdAnalyticsAbstractFilter.js +9 -9
  17. package/dist/models/AdAnalyticsAttribute.d.ts +30 -0
  18. package/dist/models/AdAnalyticsAttribute.js +30 -0
  19. package/dist/models/AdPosition.d.ts +5 -0
  20. package/dist/models/AdPosition.js +1 -0
  21. package/dist/models/AdaptationSet.d.ts +1 -2
  22. package/dist/models/AdaptationSet.js +4 -4
  23. package/dist/models/AgentChatAttachment.d.ts +28 -0
  24. package/dist/models/AgentChatAttachment.js +21 -0
  25. package/dist/models/AgentChatAttachmentsData.d.ts +15 -0
  26. package/dist/models/AgentChatAttachmentsData.js +20 -0
  27. package/dist/models/AgentChatAttachmentsPart.d.ts +23 -0
  28. package/dist/models/AgentChatAttachmentsPart.js +46 -0
  29. package/dist/models/AgentChatMessage.d.ts +27 -0
  30. package/dist/models/AgentChatMessage.js +22 -0
  31. package/dist/models/AgentChatMessagePart.d.ts +15 -0
  32. package/dist/models/AgentChatMessagePart.js +22 -0
  33. package/dist/models/AgentChatMessagePartType.d.ts +9 -0
  34. package/dist/models/AgentChatMessagePartType.js +13 -0
  35. package/dist/models/AgentChatTextPart.d.ts +22 -0
  36. package/dist/models/AgentChatTextPart.js +45 -0
  37. package/dist/models/AgentSessionHistoryResponse.d.ts +39 -0
  38. package/dist/models/AgentSessionHistoryResponse.js +24 -0
  39. package/dist/models/AgentSessionListItem.d.ts +26 -0
  40. package/dist/models/AgentSessionListItem.js +21 -0
  41. package/dist/models/AgentSessionListResponse.d.ts +27 -0
  42. package/dist/models/AgentSessionListResponse.js +22 -0
  43. package/dist/models/AgentSessionResponse.d.ts +26 -0
  44. package/dist/models/AgentSessionResponse.js +21 -0
  45. package/dist/models/AnalyticsAbstractFilter.d.ts +1 -2
  46. package/dist/models/AnalyticsAbstractFilter.js +9 -9
  47. package/dist/models/AnalyticsAttribute.d.ts +11 -0
  48. package/dist/models/AnalyticsAttribute.js +11 -0
  49. package/dist/models/AnalyticsOutput.d.ts +1 -2
  50. package/dist/models/AnalyticsOutput.js +3 -3
  51. package/dist/models/CodecConfiguration.d.ts +1 -2
  52. package/dist/models/CodecConfiguration.js +27 -27
  53. package/dist/models/DashRepresentation.d.ts +1 -2
  54. package/dist/models/DashRepresentation.js +12 -12
  55. package/dist/models/DefaultManifestCondition.d.ts +1 -2
  56. package/dist/models/DefaultManifestCondition.js +3 -3
  57. package/dist/models/DolbyAtmosInputFormat.d.ts +2 -1
  58. package/dist/models/DolbyAtmosInputFormat.js +1 -0
  59. package/dist/models/Drm.d.ts +1 -2
  60. package/dist/models/Drm.js +9 -9
  61. package/dist/models/Filter.d.ts +1 -2
  62. package/dist/models/Filter.js +16 -16
  63. package/dist/models/Id3Tag.d.ts +1 -2
  64. package/dist/models/Id3Tag.js +3 -3
  65. package/dist/models/Input.d.ts +1 -2
  66. package/dist/models/Input.js +19 -19
  67. package/dist/models/InputStream.d.ts +1 -2
  68. package/dist/models/InputStream.js +13 -13
  69. package/dist/models/Muxing.d.ts +1 -2
  70. package/dist/models/Muxing.js +16 -16
  71. package/dist/models/Output.d.ts +1 -2
  72. package/dist/models/Output.js +13 -13
  73. package/dist/models/SidecarFile.d.ts +1 -2
  74. package/dist/models/SidecarFile.js +1 -1
  75. package/dist/models/StreamsResponse.d.ts +1 -1
  76. package/dist/models/StreamsResponse.js +2 -2
  77. package/dist/models/index.d.ts +11 -0
  78. package/dist/models/index.js +11 -0
  79. package/package.json +1 -1
@@ -240,7 +240,7 @@ var HeaderHandler = /** @class */ (function (_super) {
240
240
  var headers = {
241
241
  'X-Api-Key': apiKey,
242
242
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
243
- 'X-Api-Client-Version': '1.256.0',
243
+ 'X-Api-Client-Version': '1.257.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -1,6 +1,5 @@
1
1
  import AndConjunction from './AndConjunction';
2
2
  import Condition from './Condition';
3
- import ConditionType from './ConditionType';
4
3
  import OrConjunction from './OrConjunction';
5
4
  export type AbstractConditionUnion = Condition | AndConjunction | OrConjunction;
6
5
  /**
@@ -10,7 +9,7 @@ export type AbstractConditionUnion = Condition | AndConjunction | OrConjunction;
10
9
  export declare class AbstractCondition {
11
10
  protected static readonly _discriminatorName = "type";
12
11
  protected static readonly _discriminatorMapping: {
13
- [key in keyof typeof ConditionType]: string;
12
+ [key: string]: string;
14
13
  };
15
14
  constructor(obj?: Partial<AbstractCondition>);
16
15
  }
@@ -13,9 +13,9 @@ var AbstractCondition = /** @class */ (function () {
13
13
  }
14
14
  AbstractCondition._discriminatorName = 'type';
15
15
  AbstractCondition._discriminatorMapping = {
16
- CONDITION: 'Condition',
17
- AND: 'AndConjunction',
18
- OR: 'OrConjunction'
16
+ "CONDITION": 'Condition',
17
+ "AND": 'AndConjunction',
18
+ "OR": 'OrConjunction'
19
19
  };
20
20
  return AbstractCondition;
21
21
  }());
@@ -8,7 +8,6 @@ import AdAnalyticsLessThanFilter from './AdAnalyticsLessThanFilter';
8
8
  import AdAnalyticsLessThanOrEqualFilter from './AdAnalyticsLessThanOrEqualFilter';
9
9
  import AdAnalyticsNotContainsFilter from './AdAnalyticsNotContainsFilter';
10
10
  import AdAnalyticsNotEqualFilter from './AdAnalyticsNotEqualFilter';
11
- import AnalyticsQueryOperator from './AnalyticsQueryOperator';
12
11
  export type AdAnalyticsAbstractFilterUnion = AdAnalyticsInFilter | AdAnalyticsEqualFilter | AdAnalyticsNotEqualFilter | AdAnalyticsLessThanFilter | AdAnalyticsLessThanOrEqualFilter | AdAnalyticsGreaterThanFilter | AdAnalyticsGreaterThanOrEqualFilter | AdAnalyticsContainsFilter | AdAnalyticsNotContainsFilter;
13
12
  /**
14
13
  * @export
@@ -17,7 +16,7 @@ export type AdAnalyticsAbstractFilterUnion = AdAnalyticsInFilter | AdAnalyticsEq
17
16
  export declare class AdAnalyticsAbstractFilter {
18
17
  protected static readonly _discriminatorName = "operator";
19
18
  protected static readonly _discriminatorMapping: {
20
- [key in keyof typeof AnalyticsQueryOperator]: string;
19
+ [key: string]: string;
21
20
  };
22
21
  /**
23
22
  * @type {AdAnalyticsAttribute}
@@ -15,15 +15,15 @@ var AdAnalyticsAbstractFilter = /** @class */ (function () {
15
15
  }
16
16
  AdAnalyticsAbstractFilter._discriminatorName = 'operator';
17
17
  AdAnalyticsAbstractFilter._discriminatorMapping = {
18
- IN: 'AdAnalyticsInFilter',
19
- EQ: 'AdAnalyticsEqualFilter',
20
- NE: 'AdAnalyticsNotEqualFilter',
21
- LT: 'AdAnalyticsLessThanFilter',
22
- LTE: 'AdAnalyticsLessThanOrEqualFilter',
23
- GT: 'AdAnalyticsGreaterThanFilter',
24
- GTE: 'AdAnalyticsGreaterThanOrEqualFilter',
25
- CONTAINS: 'AdAnalyticsContainsFilter',
26
- NOTCONTAINS: 'AdAnalyticsNotContainsFilter'
18
+ "IN": 'AdAnalyticsInFilter',
19
+ "EQ": 'AdAnalyticsEqualFilter',
20
+ "NE": 'AdAnalyticsNotEqualFilter',
21
+ "LT": 'AdAnalyticsLessThanFilter',
22
+ "LTE": 'AdAnalyticsLessThanOrEqualFilter',
23
+ "GT": 'AdAnalyticsGreaterThanFilter',
24
+ "GTE": 'AdAnalyticsGreaterThanOrEqualFilter',
25
+ "CONTAINS": 'AdAnalyticsContainsFilter',
26
+ "NOTCONTAINS": 'AdAnalyticsNotContainsFilter'
27
27
  };
28
28
  return AdAnalyticsAbstractFilter;
29
29
  }());
@@ -81,6 +81,36 @@ export declare enum AdAnalyticsAttribute {
81
81
  CUSTOM_DATA_28 = "CUSTOM_DATA_28",
82
82
  CUSTOM_DATA_29 = "CUSTOM_DATA_29",
83
83
  CUSTOM_DATA_30 = "CUSTOM_DATA_30",
84
+ CUSTOM_DATA_31 = "CUSTOM_DATA_31",
85
+ CUSTOM_DATA_32 = "CUSTOM_DATA_32",
86
+ CUSTOM_DATA_33 = "CUSTOM_DATA_33",
87
+ CUSTOM_DATA_34 = "CUSTOM_DATA_34",
88
+ CUSTOM_DATA_35 = "CUSTOM_DATA_35",
89
+ CUSTOM_DATA_36 = "CUSTOM_DATA_36",
90
+ CUSTOM_DATA_37 = "CUSTOM_DATA_37",
91
+ CUSTOM_DATA_38 = "CUSTOM_DATA_38",
92
+ CUSTOM_DATA_39 = "CUSTOM_DATA_39",
93
+ CUSTOM_DATA_40 = "CUSTOM_DATA_40",
94
+ CUSTOM_DATA_41 = "CUSTOM_DATA_41",
95
+ CUSTOM_DATA_42 = "CUSTOM_DATA_42",
96
+ CUSTOM_DATA_43 = "CUSTOM_DATA_43",
97
+ CUSTOM_DATA_44 = "CUSTOM_DATA_44",
98
+ CUSTOM_DATA_45 = "CUSTOM_DATA_45",
99
+ CUSTOM_DATA_46 = "CUSTOM_DATA_46",
100
+ CUSTOM_DATA_47 = "CUSTOM_DATA_47",
101
+ CUSTOM_DATA_48 = "CUSTOM_DATA_48",
102
+ CUSTOM_DATA_49 = "CUSTOM_DATA_49",
103
+ CUSTOM_DATA_50 = "CUSTOM_DATA_50",
104
+ CUSTOM_DATA_51 = "CUSTOM_DATA_51",
105
+ CUSTOM_DATA_52 = "CUSTOM_DATA_52",
106
+ CUSTOM_DATA_53 = "CUSTOM_DATA_53",
107
+ CUSTOM_DATA_54 = "CUSTOM_DATA_54",
108
+ CUSTOM_DATA_55 = "CUSTOM_DATA_55",
109
+ CUSTOM_DATA_56 = "CUSTOM_DATA_56",
110
+ CUSTOM_DATA_57 = "CUSTOM_DATA_57",
111
+ CUSTOM_DATA_58 = "CUSTOM_DATA_58",
112
+ CUSTOM_DATA_59 = "CUSTOM_DATA_59",
113
+ CUSTOM_DATA_60 = "CUSTOM_DATA_60",
84
114
  CUSTOM_USER_ID = "CUSTOM_USER_ID",
85
115
  DAY = "DAY",
86
116
  DEAL_ID = "DEAL_ID",
@@ -85,6 +85,36 @@ var AdAnalyticsAttribute;
85
85
  AdAnalyticsAttribute["CUSTOM_DATA_28"] = "CUSTOM_DATA_28";
86
86
  AdAnalyticsAttribute["CUSTOM_DATA_29"] = "CUSTOM_DATA_29";
87
87
  AdAnalyticsAttribute["CUSTOM_DATA_30"] = "CUSTOM_DATA_30";
88
+ AdAnalyticsAttribute["CUSTOM_DATA_31"] = "CUSTOM_DATA_31";
89
+ AdAnalyticsAttribute["CUSTOM_DATA_32"] = "CUSTOM_DATA_32";
90
+ AdAnalyticsAttribute["CUSTOM_DATA_33"] = "CUSTOM_DATA_33";
91
+ AdAnalyticsAttribute["CUSTOM_DATA_34"] = "CUSTOM_DATA_34";
92
+ AdAnalyticsAttribute["CUSTOM_DATA_35"] = "CUSTOM_DATA_35";
93
+ AdAnalyticsAttribute["CUSTOM_DATA_36"] = "CUSTOM_DATA_36";
94
+ AdAnalyticsAttribute["CUSTOM_DATA_37"] = "CUSTOM_DATA_37";
95
+ AdAnalyticsAttribute["CUSTOM_DATA_38"] = "CUSTOM_DATA_38";
96
+ AdAnalyticsAttribute["CUSTOM_DATA_39"] = "CUSTOM_DATA_39";
97
+ AdAnalyticsAttribute["CUSTOM_DATA_40"] = "CUSTOM_DATA_40";
98
+ AdAnalyticsAttribute["CUSTOM_DATA_41"] = "CUSTOM_DATA_41";
99
+ AdAnalyticsAttribute["CUSTOM_DATA_42"] = "CUSTOM_DATA_42";
100
+ AdAnalyticsAttribute["CUSTOM_DATA_43"] = "CUSTOM_DATA_43";
101
+ AdAnalyticsAttribute["CUSTOM_DATA_44"] = "CUSTOM_DATA_44";
102
+ AdAnalyticsAttribute["CUSTOM_DATA_45"] = "CUSTOM_DATA_45";
103
+ AdAnalyticsAttribute["CUSTOM_DATA_46"] = "CUSTOM_DATA_46";
104
+ AdAnalyticsAttribute["CUSTOM_DATA_47"] = "CUSTOM_DATA_47";
105
+ AdAnalyticsAttribute["CUSTOM_DATA_48"] = "CUSTOM_DATA_48";
106
+ AdAnalyticsAttribute["CUSTOM_DATA_49"] = "CUSTOM_DATA_49";
107
+ AdAnalyticsAttribute["CUSTOM_DATA_50"] = "CUSTOM_DATA_50";
108
+ AdAnalyticsAttribute["CUSTOM_DATA_51"] = "CUSTOM_DATA_51";
109
+ AdAnalyticsAttribute["CUSTOM_DATA_52"] = "CUSTOM_DATA_52";
110
+ AdAnalyticsAttribute["CUSTOM_DATA_53"] = "CUSTOM_DATA_53";
111
+ AdAnalyticsAttribute["CUSTOM_DATA_54"] = "CUSTOM_DATA_54";
112
+ AdAnalyticsAttribute["CUSTOM_DATA_55"] = "CUSTOM_DATA_55";
113
+ AdAnalyticsAttribute["CUSTOM_DATA_56"] = "CUSTOM_DATA_56";
114
+ AdAnalyticsAttribute["CUSTOM_DATA_57"] = "CUSTOM_DATA_57";
115
+ AdAnalyticsAttribute["CUSTOM_DATA_58"] = "CUSTOM_DATA_58";
116
+ AdAnalyticsAttribute["CUSTOM_DATA_59"] = "CUSTOM_DATA_59";
117
+ AdAnalyticsAttribute["CUSTOM_DATA_60"] = "CUSTOM_DATA_60";
88
118
  AdAnalyticsAttribute["CUSTOM_USER_ID"] = "CUSTOM_USER_ID";
89
119
  AdAnalyticsAttribute["DAY"] = "DAY";
90
120
  AdAnalyticsAttribute["DEAL_ID"] = "DEAL_ID";
@@ -8,6 +8,11 @@ export declare class AdPosition {
8
8
  * @memberof AdPosition
9
9
  */
10
10
  position?: number;
11
+ /**
12
+ * @type {number}
13
+ * @memberof AdPosition
14
+ */
15
+ duration?: number;
11
16
  constructor(obj?: Partial<AdPosition>);
12
17
  }
13
18
  export default AdPosition;
@@ -12,6 +12,7 @@ var AdPosition = /** @class */ (function () {
12
12
  return;
13
13
  }
14
14
  this.position = (0, Mapper_1.map)(obj.position);
15
+ this.duration = (0, Mapper_1.map)(obj.duration);
15
16
  }
16
17
  return AdPosition;
17
18
  }());
@@ -1,6 +1,5 @@
1
1
  import Accessibility from './Accessibility';
2
2
  import AdaptationSetRole from './AdaptationSetRole';
3
- import AdaptationSetType from './AdaptationSetType';
4
3
  import AudioAdaptationSet from './AudioAdaptationSet';
5
4
  import BitmovinResponse from './BitmovinResponse';
6
5
  import CustomAttribute from './CustomAttribute';
@@ -16,7 +15,7 @@ export type AdaptationSetUnion = VideoAdaptationSet | AudioAdaptationSet | Image
16
15
  export declare class AdaptationSet extends BitmovinResponse {
17
16
  protected static readonly _discriminatorName = "type";
18
17
  protected static readonly _discriminatorMapping: {
19
- [key in keyof typeof AdaptationSetType]: string;
18
+ [key: string]: string;
20
19
  };
21
20
  /**
22
21
  * Custom adaptation set attributes
@@ -40,10 +40,10 @@ var AdaptationSet = /** @class */ (function (_super) {
40
40
  }
41
41
  AdaptationSet._discriminatorName = 'type';
42
42
  AdaptationSet._discriminatorMapping = {
43
- VIDEO: 'VideoAdaptationSet',
44
- AUDIO: 'AudioAdaptationSet',
45
- IMAGE: 'ImageAdaptationSet',
46
- SUBTITLE: 'SubtitleAdaptationSet'
43
+ "VIDEO": 'VideoAdaptationSet',
44
+ "AUDIO": 'AudioAdaptationSet',
45
+ "IMAGE": 'ImageAdaptationSet',
46
+ "SUBTITLE": 'SubtitleAdaptationSet'
47
47
  };
48
48
  return AdaptationSet;
49
49
  }(BitmovinResponse_1.default));
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @export
3
+ * @class AgentChatAttachment
4
+ */
5
+ export declare class AgentChatAttachment {
6
+ /**
7
+ * Attachment kind (required)
8
+ * @type {string}
9
+ * @memberof AgentChatAttachment
10
+ */
11
+ kind?: string;
12
+ /**
13
+ * Tool call identifier
14
+ * @type {string}
15
+ * @memberof AgentChatAttachment
16
+ */
17
+ toolCallId?: string;
18
+ /**
19
+ * Attachment attributes map (required)
20
+ * @type {{ [key: string]: any; }}
21
+ * @memberof AgentChatAttachment
22
+ */
23
+ attributes?: {
24
+ [key: string]: any;
25
+ };
26
+ constructor(obj?: Partial<AgentChatAttachment>);
27
+ }
28
+ export default AgentChatAttachment;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentChatAttachment = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class AgentChatAttachment
8
+ */
9
+ var AgentChatAttachment = /** @class */ (function () {
10
+ function AgentChatAttachment(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.kind = (0, Mapper_1.map)(obj.kind);
15
+ this.toolCallId = (0, Mapper_1.map)(obj.toolCallId);
16
+ this.attributes = (0, Mapper_1.map)(obj.attributes);
17
+ }
18
+ return AgentChatAttachment;
19
+ }());
20
+ exports.AgentChatAttachment = AgentChatAttachment;
21
+ exports.default = AgentChatAttachment;
@@ -0,0 +1,15 @@
1
+ import AgentChatAttachment from './AgentChatAttachment';
2
+ /**
3
+ * @export
4
+ * @class AgentChatAttachmentsData
5
+ */
6
+ export declare class AgentChatAttachmentsData {
7
+ /**
8
+ * Attachment list (required)
9
+ * @type {AgentChatAttachment[]}
10
+ * @memberof AgentChatAttachmentsData
11
+ */
12
+ attachments?: AgentChatAttachment[];
13
+ constructor(obj?: Partial<AgentChatAttachmentsData>);
14
+ }
15
+ export default AgentChatAttachmentsData;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentChatAttachmentsData = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ var AgentChatAttachment_1 = require("./AgentChatAttachment");
6
+ /**
7
+ * @export
8
+ * @class AgentChatAttachmentsData
9
+ */
10
+ var AgentChatAttachmentsData = /** @class */ (function () {
11
+ function AgentChatAttachmentsData(obj) {
12
+ if (!obj) {
13
+ return;
14
+ }
15
+ this.attachments = (0, Mapper_1.mapArray)(obj.attachments, AgentChatAttachment_1.default);
16
+ }
17
+ return AgentChatAttachmentsData;
18
+ }());
19
+ exports.AgentChatAttachmentsData = AgentChatAttachmentsData;
20
+ exports.default = AgentChatAttachmentsData;
@@ -0,0 +1,23 @@
1
+ import AgentChatAttachmentsData from './AgentChatAttachmentsData';
2
+ import AgentChatMessagePart from './AgentChatMessagePart';
3
+ import AgentChatMessagePartType from './AgentChatMessagePartType';
4
+ /**
5
+ * @export
6
+ * @class AgentChatAttachmentsPart
7
+ */
8
+ export declare class AgentChatAttachmentsPart extends AgentChatMessagePart {
9
+ /**
10
+ * Discriminator property for AgentChatMessagePart
11
+ * @type {string}
12
+ * @memberof AgentChatAttachmentsPart
13
+ */
14
+ readonly type: AgentChatMessagePartType;
15
+ /**
16
+ * Attachment payload (required)
17
+ * @type {AgentChatAttachmentsData}
18
+ * @memberof AgentChatAttachmentsPart
19
+ */
20
+ data?: AgentChatAttachmentsData;
21
+ constructor(obj?: Partial<AgentChatAttachmentsPart>);
22
+ }
23
+ export default AgentChatAttachmentsPart;
@@ -0,0 +1,46 @@
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
+ exports.AgentChatAttachmentsPart = void 0;
19
+ var Mapper_1 = require("../common/Mapper");
20
+ var AgentChatAttachmentsData_1 = require("./AgentChatAttachmentsData");
21
+ var AgentChatMessagePart_1 = require("./AgentChatMessagePart");
22
+ var AgentChatMessagePartType_1 = require("./AgentChatMessagePartType");
23
+ /**
24
+ * @export
25
+ * @class AgentChatAttachmentsPart
26
+ */
27
+ var AgentChatAttachmentsPart = /** @class */ (function (_super) {
28
+ __extends(AgentChatAttachmentsPart, _super);
29
+ function AgentChatAttachmentsPart(obj) {
30
+ var _this = _super.call(this, obj) || this;
31
+ /**
32
+ * Discriminator property for AgentChatMessagePart
33
+ * @type {string}
34
+ * @memberof AgentChatAttachmentsPart
35
+ */
36
+ _this.type = AgentChatMessagePartType_1.default.DATA_ATTACHMENTS;
37
+ if (!obj) {
38
+ return _this;
39
+ }
40
+ _this.data = (0, Mapper_1.map)(obj.data, AgentChatAttachmentsData_1.default);
41
+ return _this;
42
+ }
43
+ return AgentChatAttachmentsPart;
44
+ }(AgentChatMessagePart_1.default));
45
+ exports.AgentChatAttachmentsPart = AgentChatAttachmentsPart;
46
+ exports.default = AgentChatAttachmentsPart;
@@ -0,0 +1,27 @@
1
+ import AgentChatMessagePart from './AgentChatMessagePart';
2
+ /**
3
+ * @export
4
+ * @class AgentChatMessage
5
+ */
6
+ export declare class AgentChatMessage {
7
+ /**
8
+ * Message ID (required)
9
+ * @type {string}
10
+ * @memberof AgentChatMessage
11
+ */
12
+ id?: string;
13
+ /**
14
+ * Message role (required)
15
+ * @type {string}
16
+ * @memberof AgentChatMessage
17
+ */
18
+ role?: string;
19
+ /**
20
+ * Message parts (required)
21
+ * @type {AgentChatMessagePart[]}
22
+ * @memberof AgentChatMessage
23
+ */
24
+ parts?: AgentChatMessagePart[];
25
+ constructor(obj?: Partial<AgentChatMessage>);
26
+ }
27
+ export default AgentChatMessage;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentChatMessage = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ var AgentChatMessagePart_1 = require("./AgentChatMessagePart");
6
+ /**
7
+ * @export
8
+ * @class AgentChatMessage
9
+ */
10
+ var AgentChatMessage = /** @class */ (function () {
11
+ function AgentChatMessage(obj) {
12
+ if (!obj) {
13
+ return;
14
+ }
15
+ this.id = (0, Mapper_1.map)(obj.id);
16
+ this.role = (0, Mapper_1.map)(obj.role);
17
+ this.parts = (0, Mapper_1.mapArray)(obj.parts, AgentChatMessagePart_1.default);
18
+ }
19
+ return AgentChatMessage;
20
+ }());
21
+ exports.AgentChatMessage = AgentChatMessage;
22
+ exports.default = AgentChatMessage;
@@ -0,0 +1,15 @@
1
+ import AgentChatAttachmentsPart from './AgentChatAttachmentsPart';
2
+ import AgentChatTextPart from './AgentChatTextPart';
3
+ export type AgentChatMessagePartUnion = AgentChatTextPart | AgentChatAttachmentsPart;
4
+ /**
5
+ * @export
6
+ * @class AgentChatMessagePart
7
+ */
8
+ export declare class AgentChatMessagePart {
9
+ protected static readonly _discriminatorName = "type";
10
+ protected static readonly _discriminatorMapping: {
11
+ [key: string]: string;
12
+ };
13
+ constructor(obj?: Partial<AgentChatMessagePart>);
14
+ }
15
+ export default AgentChatMessagePart;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentChatMessagePart = void 0;
4
+ /**
5
+ * @export
6
+ * @class AgentChatMessagePart
7
+ */
8
+ var AgentChatMessagePart = /** @class */ (function () {
9
+ function AgentChatMessagePart(obj) {
10
+ if (!obj) {
11
+ return;
12
+ }
13
+ }
14
+ AgentChatMessagePart._discriminatorName = 'type';
15
+ AgentChatMessagePart._discriminatorMapping = {
16
+ "text": 'AgentChatTextPart',
17
+ "data-attachments": 'AgentChatAttachmentsPart'
18
+ };
19
+ return AgentChatMessagePart;
20
+ }());
21
+ exports.AgentChatMessagePart = AgentChatMessagePart;
22
+ exports.default = AgentChatMessagePart;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @export
3
+ * @enum {string}
4
+ */
5
+ export declare enum AgentChatMessagePartType {
6
+ TEXT = "text",
7
+ DATA_ATTACHMENTS = "data-attachments"
8
+ }
9
+ export default AgentChatMessagePartType;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentChatMessagePartType = void 0;
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var AgentChatMessagePartType;
9
+ (function (AgentChatMessagePartType) {
10
+ AgentChatMessagePartType["TEXT"] = "text";
11
+ AgentChatMessagePartType["DATA_ATTACHMENTS"] = "data-attachments";
12
+ })(AgentChatMessagePartType || (exports.AgentChatMessagePartType = AgentChatMessagePartType = {}));
13
+ exports.default = AgentChatMessagePartType;
@@ -0,0 +1,22 @@
1
+ import AgentChatMessagePart from './AgentChatMessagePart';
2
+ import AgentChatMessagePartType from './AgentChatMessagePartType';
3
+ /**
4
+ * @export
5
+ * @class AgentChatTextPart
6
+ */
7
+ export declare class AgentChatTextPart extends AgentChatMessagePart {
8
+ /**
9
+ * Discriminator property for AgentChatMessagePart
10
+ * @type {string}
11
+ * @memberof AgentChatTextPart
12
+ */
13
+ readonly type: AgentChatMessagePartType;
14
+ /**
15
+ * Text message content (required)
16
+ * @type {string}
17
+ * @memberof AgentChatTextPart
18
+ */
19
+ text?: string;
20
+ constructor(obj?: Partial<AgentChatTextPart>);
21
+ }
22
+ export default AgentChatTextPart;
@@ -0,0 +1,45 @@
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
+ exports.AgentChatTextPart = void 0;
19
+ var Mapper_1 = require("../common/Mapper");
20
+ var AgentChatMessagePart_1 = require("./AgentChatMessagePart");
21
+ var AgentChatMessagePartType_1 = require("./AgentChatMessagePartType");
22
+ /**
23
+ * @export
24
+ * @class AgentChatTextPart
25
+ */
26
+ var AgentChatTextPart = /** @class */ (function (_super) {
27
+ __extends(AgentChatTextPart, _super);
28
+ function AgentChatTextPart(obj) {
29
+ var _this = _super.call(this, obj) || this;
30
+ /**
31
+ * Discriminator property for AgentChatMessagePart
32
+ * @type {string}
33
+ * @memberof AgentChatTextPart
34
+ */
35
+ _this.type = AgentChatMessagePartType_1.default.TEXT;
36
+ if (!obj) {
37
+ return _this;
38
+ }
39
+ _this.text = (0, Mapper_1.map)(obj.text);
40
+ return _this;
41
+ }
42
+ return AgentChatTextPart;
43
+ }(AgentChatMessagePart_1.default));
44
+ exports.AgentChatTextPart = AgentChatTextPart;
45
+ exports.default = AgentChatTextPart;
@@ -0,0 +1,39 @@
1
+ import AgentChatMessage from './AgentChatMessage';
2
+ /**
3
+ * @export
4
+ * @class AgentSessionHistoryResponse
5
+ */
6
+ export declare class AgentSessionHistoryResponse {
7
+ /**
8
+ * Session ID (required)
9
+ * @type {string}
10
+ * @memberof AgentSessionHistoryResponse
11
+ */
12
+ sessionId?: string;
13
+ /**
14
+ * Agent application name (required)
15
+ * @type {string}
16
+ * @memberof AgentSessionHistoryResponse
17
+ */
18
+ appName?: string;
19
+ /**
20
+ * User ID (required)
21
+ * @type {string}
22
+ * @memberof AgentSessionHistoryResponse
23
+ */
24
+ userId?: string;
25
+ /**
26
+ * Session title
27
+ * @type {string}
28
+ * @memberof AgentSessionHistoryResponse
29
+ */
30
+ title?: string;
31
+ /**
32
+ * Session message history (required)
33
+ * @type {AgentChatMessage[]}
34
+ * @memberof AgentSessionHistoryResponse
35
+ */
36
+ messages?: AgentChatMessage[];
37
+ constructor(obj?: Partial<AgentSessionHistoryResponse>);
38
+ }
39
+ export default AgentSessionHistoryResponse;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentSessionHistoryResponse = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ var AgentChatMessage_1 = require("./AgentChatMessage");
6
+ /**
7
+ * @export
8
+ * @class AgentSessionHistoryResponse
9
+ */
10
+ var AgentSessionHistoryResponse = /** @class */ (function () {
11
+ function AgentSessionHistoryResponse(obj) {
12
+ if (!obj) {
13
+ return;
14
+ }
15
+ this.sessionId = (0, Mapper_1.map)(obj.sessionId);
16
+ this.appName = (0, Mapper_1.map)(obj.appName);
17
+ this.userId = (0, Mapper_1.map)(obj.userId);
18
+ this.title = (0, Mapper_1.map)(obj.title);
19
+ this.messages = (0, Mapper_1.mapArray)(obj.messages, AgentChatMessage_1.default);
20
+ }
21
+ return AgentSessionHistoryResponse;
22
+ }());
23
+ exports.AgentSessionHistoryResponse = AgentSessionHistoryResponse;
24
+ exports.default = AgentSessionHistoryResponse;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @export
3
+ * @class AgentSessionListItem
4
+ */
5
+ export declare class AgentSessionListItem {
6
+ /**
7
+ * Session ID (required)
8
+ * @type {string}
9
+ * @memberof AgentSessionListItem
10
+ */
11
+ sessionId?: string;
12
+ /**
13
+ * Session title
14
+ * @type {string}
15
+ * @memberof AgentSessionListItem
16
+ */
17
+ title?: string;
18
+ /**
19
+ * Last update time in seconds
20
+ * @type {number}
21
+ * @memberof AgentSessionListItem
22
+ */
23
+ lastUpdateTimeSeconds?: number;
24
+ constructor(obj?: Partial<AgentSessionListItem>);
25
+ }
26
+ export default AgentSessionListItem;