@bitmovin/api-sdk 1.255.2 → 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.
- package/README.md +1 -1
- package/dist/BitmovinApi.d.ts +2 -0
- package/dist/BitmovinApi.js +2 -0
- package/dist/agents/AgentsApi.d.ts +13 -0
- package/dist/agents/AgentsApi.js +35 -0
- package/dist/agents/aisa/AisaApi.d.ts +13 -0
- package/dist/agents/aisa/AisaApi.js +35 -0
- package/dist/agents/aisa/sessions/SessionsApi.d.ts +44 -0
- package/dist/agents/aisa/sessions/SessionsApi.js +88 -0
- package/dist/bitmovin-api-sdk.browser.js +1433 -253
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/encoding/live/LiveApi.d.ts +4 -0
- package/dist/encoding/live/LiveApi.js +4 -0
- package/dist/encoding/live/dnsMappings/DnsMappingResponseListQueryParams.d.ts +28 -0
- package/dist/encoding/live/dnsMappings/DnsMappingResponseListQueryParams.js +29 -0
- package/dist/encoding/live/dnsMappings/DnsMappingsApi.d.ts +21 -0
- package/dist/encoding/live/dnsMappings/DnsMappingsApi.js +53 -0
- package/dist/encoding/live/encodings/EncodingsApi.d.ts +15 -0
- package/dist/encoding/live/encodings/EncodingsApi.js +37 -0
- package/dist/encoding/live/encodings/actions/ActionsApi.d.ts +21 -0
- package/dist/encoding/live/encodings/actions/ActionsApi.js +49 -0
- package/dist/encoding/live/encodings/dnsMappings/DnsMappingResponseListQueryParams.d.ts +28 -0
- package/dist/encoding/live/encodings/dnsMappings/DnsMappingResponseListQueryParams.js +29 -0
- package/dist/encoding/live/encodings/dnsMappings/DnsMappingsApi.d.ts +56 -0
- package/dist/encoding/live/encodings/dnsMappings/DnsMappingsApi.js +121 -0
- package/dist/models/AbstractCondition.d.ts +1 -2
- package/dist/models/AbstractCondition.js +3 -3
- package/dist/models/AdAnalyticsAbstractFilter.d.ts +1 -2
- package/dist/models/AdAnalyticsAbstractFilter.js +9 -9
- package/dist/models/AdAnalyticsAttribute.d.ts +30 -0
- package/dist/models/AdAnalyticsAttribute.js +30 -0
- package/dist/models/AdPosition.d.ts +5 -0
- package/dist/models/AdPosition.js +1 -0
- package/dist/models/AdaptationSet.d.ts +1 -2
- package/dist/models/AdaptationSet.js +4 -4
- package/dist/models/AgentChatAttachment.d.ts +28 -0
- package/dist/models/AgentChatAttachment.js +21 -0
- package/dist/models/AgentChatAttachmentsData.d.ts +15 -0
- package/dist/models/AgentChatAttachmentsData.js +20 -0
- package/dist/models/AgentChatAttachmentsPart.d.ts +23 -0
- package/dist/models/AgentChatAttachmentsPart.js +46 -0
- package/dist/models/AgentChatMessage.d.ts +27 -0
- package/dist/models/AgentChatMessage.js +22 -0
- package/dist/models/AgentChatMessagePart.d.ts +15 -0
- package/dist/models/AgentChatMessagePart.js +22 -0
- package/dist/models/AgentChatMessagePartType.d.ts +9 -0
- package/dist/models/AgentChatMessagePartType.js +13 -0
- package/dist/models/AgentChatTextPart.d.ts +22 -0
- package/dist/models/AgentChatTextPart.js +45 -0
- package/dist/models/AgentSessionHistoryResponse.d.ts +39 -0
- package/dist/models/AgentSessionHistoryResponse.js +24 -0
- package/dist/models/AgentSessionListItem.d.ts +26 -0
- package/dist/models/AgentSessionListItem.js +21 -0
- package/dist/models/AgentSessionListResponse.d.ts +27 -0
- package/dist/models/AgentSessionListResponse.js +22 -0
- package/dist/models/AgentSessionResponse.d.ts +26 -0
- package/dist/models/AgentSessionResponse.js +21 -0
- package/dist/models/AnalyticsAbstractFilter.d.ts +1 -2
- package/dist/models/AnalyticsAbstractFilter.js +9 -9
- package/dist/models/AnalyticsAttribute.d.ts +11 -0
- package/dist/models/AnalyticsAttribute.js +11 -0
- package/dist/models/AnalyticsOutput.d.ts +1 -2
- package/dist/models/AnalyticsOutput.js +3 -3
- package/dist/models/CodecConfiguration.d.ts +1 -2
- package/dist/models/CodecConfiguration.js +27 -27
- package/dist/models/DashRepresentation.d.ts +1 -2
- package/dist/models/DashRepresentation.js +12 -12
- package/dist/models/DefaultManifestCondition.d.ts +1 -2
- package/dist/models/DefaultManifestCondition.js +3 -3
- package/dist/models/DnsMappingRequest.d.ts +26 -0
- package/dist/models/DnsMappingRequest.js +21 -0
- package/dist/models/DnsMappingResponse.d.ts +33 -0
- package/dist/models/DnsMappingResponse.js +41 -0
- package/dist/models/DolbyAtmosInputFormat.d.ts +2 -1
- package/dist/models/DolbyAtmosInputFormat.js +1 -0
- package/dist/models/Drm.d.ts +1 -2
- package/dist/models/Drm.js +9 -9
- package/dist/models/Filter.d.ts +1 -2
- package/dist/models/Filter.js +16 -16
- package/dist/models/Id3Tag.d.ts +1 -2
- package/dist/models/Id3Tag.js +3 -3
- package/dist/models/Input.d.ts +1 -2
- package/dist/models/Input.js +19 -19
- package/dist/models/InputStream.d.ts +1 -2
- package/dist/models/InputStream.js +13 -13
- package/dist/models/Muxing.d.ts +1 -2
- package/dist/models/Muxing.js +16 -16
- package/dist/models/Output.d.ts +1 -2
- package/dist/models/Output.js +13 -13
- package/dist/models/SidecarFile.d.ts +1 -2
- package/dist/models/SidecarFile.js +1 -1
- package/dist/models/StreamsResponse.d.ts +1 -1
- package/dist/models/StreamsResponse.js +2 -2
- package/dist/models/UpdateEncodingRtmpIngestPointRequest.d.ts +15 -0
- package/dist/models/UpdateEncodingRtmpIngestPointRequest.js +20 -0
- package/dist/models/UpdateEncodingRtmpIngestPointResponse.d.ts +8 -0
- package/dist/models/UpdateEncodingRtmpIngestPointResponse.js +17 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/package.json +1 -1
|
@@ -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";
|
|
@@ -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
|
|
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,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;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentSessionListItem = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class AgentSessionListItem
|
|
8
|
+
*/
|
|
9
|
+
var AgentSessionListItem = /** @class */ (function () {
|
|
10
|
+
function AgentSessionListItem(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.sessionId = (0, Mapper_1.map)(obj.sessionId);
|
|
15
|
+
this.title = (0, Mapper_1.map)(obj.title);
|
|
16
|
+
this.lastUpdateTimeSeconds = (0, Mapper_1.map)(obj.lastUpdateTimeSeconds);
|
|
17
|
+
}
|
|
18
|
+
return AgentSessionListItem;
|
|
19
|
+
}());
|
|
20
|
+
exports.AgentSessionListItem = AgentSessionListItem;
|
|
21
|
+
exports.default = AgentSessionListItem;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import AgentSessionListItem from './AgentSessionListItem';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class AgentSessionListResponse
|
|
5
|
+
*/
|
|
6
|
+
export declare class AgentSessionListResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Agent application name (required)
|
|
9
|
+
* @type {string}
|
|
10
|
+
* @memberof AgentSessionListResponse
|
|
11
|
+
*/
|
|
12
|
+
appName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* User ID (required)
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof AgentSessionListResponse
|
|
17
|
+
*/
|
|
18
|
+
userId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Sessions for the user (required)
|
|
21
|
+
* @type {AgentSessionListItem[]}
|
|
22
|
+
* @memberof AgentSessionListResponse
|
|
23
|
+
*/
|
|
24
|
+
sessions?: AgentSessionListItem[];
|
|
25
|
+
constructor(obj?: Partial<AgentSessionListResponse>);
|
|
26
|
+
}
|
|
27
|
+
export default AgentSessionListResponse;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentSessionListResponse = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
var AgentSessionListItem_1 = require("./AgentSessionListItem");
|
|
6
|
+
/**
|
|
7
|
+
* @export
|
|
8
|
+
* @class AgentSessionListResponse
|
|
9
|
+
*/
|
|
10
|
+
var AgentSessionListResponse = /** @class */ (function () {
|
|
11
|
+
function AgentSessionListResponse(obj) {
|
|
12
|
+
if (!obj) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this.appName = (0, Mapper_1.map)(obj.appName);
|
|
16
|
+
this.userId = (0, Mapper_1.map)(obj.userId);
|
|
17
|
+
this.sessions = (0, Mapper_1.mapArray)(obj.sessions, AgentSessionListItem_1.default);
|
|
18
|
+
}
|
|
19
|
+
return AgentSessionListResponse;
|
|
20
|
+
}());
|
|
21
|
+
exports.AgentSessionListResponse = AgentSessionListResponse;
|
|
22
|
+
exports.default = AgentSessionListResponse;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class AgentSessionResponse
|
|
4
|
+
*/
|
|
5
|
+
export declare class AgentSessionResponse {
|
|
6
|
+
/**
|
|
7
|
+
* Session ID (required)
|
|
8
|
+
* @type {string}
|
|
9
|
+
* @memberof AgentSessionResponse
|
|
10
|
+
*/
|
|
11
|
+
sessionId?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Agent application name (required)
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @memberof AgentSessionResponse
|
|
16
|
+
*/
|
|
17
|
+
appName?: string;
|
|
18
|
+
/**
|
|
19
|
+
* User ID (required)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentSessionResponse
|
|
22
|
+
*/
|
|
23
|
+
userId?: string;
|
|
24
|
+
constructor(obj?: Partial<AgentSessionResponse>);
|
|
25
|
+
}
|
|
26
|
+
export default AgentSessionResponse;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentSessionResponse = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class AgentSessionResponse
|
|
8
|
+
*/
|
|
9
|
+
var AgentSessionResponse = /** @class */ (function () {
|
|
10
|
+
function AgentSessionResponse(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.sessionId = (0, Mapper_1.map)(obj.sessionId);
|
|
15
|
+
this.appName = (0, Mapper_1.map)(obj.appName);
|
|
16
|
+
this.userId = (0, Mapper_1.map)(obj.userId);
|
|
17
|
+
}
|
|
18
|
+
return AgentSessionResponse;
|
|
19
|
+
}());
|
|
20
|
+
exports.AgentSessionResponse = AgentSessionResponse;
|
|
21
|
+
exports.default = AgentSessionResponse;
|