@microsoft/agents-activity 0.2.14 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/action/actionTypes.d.ts +33 -0
- package/dist/src/action/actionTypes.js +33 -0
- package/dist/src/action/actionTypes.js.map +1 -1
- package/dist/src/action/semanticActionStateTypes.d.ts +9 -0
- package/dist/src/action/semanticActionStateTypes.js +9 -0
- package/dist/src/action/semanticActionStateTypes.js.map +1 -1
- package/dist/src/activity.d.ts +166 -17
- package/dist/src/activity.js +90 -11
- package/dist/src/activity.js.map +1 -1
- package/dist/src/activityEventNames.d.ts +6 -0
- package/dist/src/activityEventNames.js +6 -0
- package/dist/src/activityEventNames.js.map +1 -1
- package/dist/src/activityImportance.d.ts +9 -0
- package/dist/src/activityImportance.js +9 -0
- package/dist/src/activityImportance.js.map +1 -1
- package/dist/src/activityTypes.d.ts +57 -0
- package/dist/src/activityTypes.js +57 -0
- package/dist/src/activityTypes.js.map +1 -1
- package/dist/src/attachment/attachment.d.ts +17 -2
- package/dist/src/attachment/attachment.js.map +1 -1
- package/dist/src/attachment/attachmentLayoutTypes.d.ts +6 -0
- package/dist/src/attachment/attachmentLayoutTypes.js +6 -0
- package/dist/src/attachment/attachmentLayoutTypes.js.map +1 -1
- package/dist/src/conversation/channelAccount.d.ts +15 -0
- package/dist/src/conversation/channelAccount.js.map +1 -1
- package/dist/src/conversation/channels.d.ts +57 -0
- package/dist/src/conversation/channels.js +57 -0
- package/dist/src/conversation/channels.js.map +1 -1
- package/dist/src/conversation/conversationAccount.d.ts +24 -0
- package/dist/src/conversation/conversationAccount.js.map +1 -1
- package/dist/src/conversation/conversationReference.d.ts +21 -0
- package/dist/src/conversation/conversationReference.js.map +1 -1
- package/dist/src/conversation/endOfConversationCodes.d.ts +18 -0
- package/dist/src/conversation/endOfConversationCodes.js +18 -0
- package/dist/src/conversation/endOfConversationCodes.js.map +1 -1
- package/dist/src/conversation/roleTypes.d.ts +9 -0
- package/dist/src/conversation/roleTypes.js +9 -0
- package/dist/src/conversation/roleTypes.js.map +1 -1
- package/dist/src/deliveryModes.d.ts +12 -0
- package/dist/src/deliveryModes.js +12 -0
- package/dist/src/deliveryModes.js.map +1 -1
- package/dist/src/inputHints.d.ts +9 -0
- package/dist/src/inputHints.js +9 -0
- package/dist/src/inputHints.js.map +1 -1
- package/dist/src/messageReactionTypes.d.ts +6 -0
- package/dist/src/messageReactionTypes.js +6 -0
- package/dist/src/messageReactionTypes.js.map +1 -1
- package/dist/src/textFormatTypes.d.ts +9 -0
- package/dist/src/textFormatTypes.js +9 -0
- package/dist/src/textFormatTypes.js.map +1 -1
- package/package.json +2 -2
- package/src/action/actionTypes.ts +43 -0
- package/src/action/semanticActionStateTypes.ts +11 -0
- package/src/activity.ts +285 -11
- package/src/activityEventNames.ts +7 -0
- package/src/activityImportance.ts +11 -0
- package/src/activityTypes.ts +75 -0
- package/src/attachment/attachment.ts +19 -0
- package/src/attachment/attachmentLayoutTypes.ts +7 -0
- package/src/conversation/channelAccount.ts +19 -0
- package/src/conversation/channels.ts +75 -0
- package/src/conversation/conversationAccount.ts +31 -0
- package/src/conversation/conversationReference.ts +27 -0
- package/src/conversation/endOfConversationCodes.ts +23 -0
- package/src/conversation/roleTypes.ts +11 -0
- package/src/deliveryModes.ts +15 -0
- package/src/inputHints.ts +11 -0
- package/src/messageReactionTypes.ts +7 -0
- package/src/textFormatTypes.ts +11 -0
|
@@ -7,8 +7,17 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing activity importance levels.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum ActivityImportance {
|
|
10
|
+
/**
|
|
11
|
+
* Indicates low importance.
|
|
12
|
+
*/
|
|
10
13
|
Low = "low",
|
|
14
|
+
/**
|
|
15
|
+
* Indicates normal importance.
|
|
16
|
+
*/
|
|
11
17
|
Normal = "normal",
|
|
18
|
+
/**
|
|
19
|
+
* Indicates high importance.
|
|
20
|
+
*/
|
|
12
21
|
High = "high"
|
|
13
22
|
}
|
|
14
23
|
/**
|
|
@@ -11,8 +11,17 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var ActivityImportance;
|
|
13
13
|
(function (ActivityImportance) {
|
|
14
|
+
/**
|
|
15
|
+
* Indicates low importance.
|
|
16
|
+
*/
|
|
14
17
|
ActivityImportance["Low"] = "low";
|
|
18
|
+
/**
|
|
19
|
+
* Indicates normal importance.
|
|
20
|
+
*/
|
|
15
21
|
ActivityImportance["Normal"] = "normal";
|
|
22
|
+
/**
|
|
23
|
+
* Indicates high importance.
|
|
24
|
+
*/
|
|
16
25
|
ActivityImportance["High"] = "high";
|
|
17
26
|
})(ActivityImportance || (exports.ActivityImportance = ActivityImportance = {}));
|
|
18
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activityImportance.js","sourceRoot":"","sources":["../../src/activityImportance.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"activityImportance.js","sourceRoot":"","sources":["../../src/activityImportance.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,kBAeX;AAfD,WAAY,kBAAkB;IAC5B;;OAEG;IACH,iCAAW,CAAA;IAEX;;OAEG;IACH,uCAAiB,CAAA;IAEjB;;OAEG;IACH,mCAAa,CAAA;AACf,CAAC,EAfW,kBAAkB,kCAAlB,kBAAkB,QAe7B;AAED;;GAEG;AACU,QAAA,2BAA2B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAA"}
|
|
@@ -7,24 +7,81 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing activity types.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum ActivityTypes {
|
|
10
|
+
/**
|
|
11
|
+
* A message activity.
|
|
12
|
+
*/
|
|
10
13
|
Message = "message",
|
|
14
|
+
/**
|
|
15
|
+
* An update to a contact relationship.
|
|
16
|
+
*/
|
|
11
17
|
ContactRelationUpdate = "contactRelationUpdate",
|
|
18
|
+
/**
|
|
19
|
+
* An update to a conversation.
|
|
20
|
+
*/
|
|
12
21
|
ConversationUpdate = "conversationUpdate",
|
|
22
|
+
/**
|
|
23
|
+
* A typing indicator activity.
|
|
24
|
+
*/
|
|
13
25
|
Typing = "typing",
|
|
26
|
+
/**
|
|
27
|
+
* Indicates the end of a conversation.
|
|
28
|
+
*/
|
|
14
29
|
EndOfConversation = "endOfConversation",
|
|
30
|
+
/**
|
|
31
|
+
* An event activity.
|
|
32
|
+
*/
|
|
15
33
|
Event = "event",
|
|
34
|
+
/**
|
|
35
|
+
* An invoke activity.
|
|
36
|
+
*/
|
|
16
37
|
Invoke = "invoke",
|
|
38
|
+
/**
|
|
39
|
+
* A response to an invoke activity.
|
|
40
|
+
*/
|
|
17
41
|
InvokeResponse = "invokeResponse",
|
|
42
|
+
/**
|
|
43
|
+
* An activity to delete user data.
|
|
44
|
+
*/
|
|
18
45
|
DeleteUserData = "deleteUserData",
|
|
46
|
+
/**
|
|
47
|
+
* An update to a message.
|
|
48
|
+
*/
|
|
19
49
|
MessageUpdate = "messageUpdate",
|
|
50
|
+
/**
|
|
51
|
+
* A deletion of a message.
|
|
52
|
+
*/
|
|
20
53
|
MessageDelete = "messageDelete",
|
|
54
|
+
/**
|
|
55
|
+
* An update to an installation.
|
|
56
|
+
*/
|
|
21
57
|
InstallationUpdate = "installationUpdate",
|
|
58
|
+
/**
|
|
59
|
+
* A reaction to a message.
|
|
60
|
+
*/
|
|
22
61
|
MessageReaction = "messageReaction",
|
|
62
|
+
/**
|
|
63
|
+
* A suggestion activity.
|
|
64
|
+
*/
|
|
23
65
|
Suggestion = "suggestion",
|
|
66
|
+
/**
|
|
67
|
+
* A trace activity for debugging.
|
|
68
|
+
*/
|
|
24
69
|
Trace = "trace",
|
|
70
|
+
/**
|
|
71
|
+
* A handoff activity to another bot or human.
|
|
72
|
+
*/
|
|
25
73
|
Handoff = "handoff",
|
|
74
|
+
/**
|
|
75
|
+
* A command activity.
|
|
76
|
+
*/
|
|
26
77
|
Command = "command",
|
|
78
|
+
/**
|
|
79
|
+
* A result of a command activity.
|
|
80
|
+
*/
|
|
27
81
|
CommandResult = "commandResult",
|
|
82
|
+
/**
|
|
83
|
+
* A delay activity.
|
|
84
|
+
*/
|
|
28
85
|
Delay = "delay"
|
|
29
86
|
}
|
|
30
87
|
/**
|
|
@@ -11,24 +11,81 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var ActivityTypes;
|
|
13
13
|
(function (ActivityTypes) {
|
|
14
|
+
/**
|
|
15
|
+
* A message activity.
|
|
16
|
+
*/
|
|
14
17
|
ActivityTypes["Message"] = "message";
|
|
18
|
+
/**
|
|
19
|
+
* An update to a contact relationship.
|
|
20
|
+
*/
|
|
15
21
|
ActivityTypes["ContactRelationUpdate"] = "contactRelationUpdate";
|
|
22
|
+
/**
|
|
23
|
+
* An update to a conversation.
|
|
24
|
+
*/
|
|
16
25
|
ActivityTypes["ConversationUpdate"] = "conversationUpdate";
|
|
26
|
+
/**
|
|
27
|
+
* A typing indicator activity.
|
|
28
|
+
*/
|
|
17
29
|
ActivityTypes["Typing"] = "typing";
|
|
30
|
+
/**
|
|
31
|
+
* Indicates the end of a conversation.
|
|
32
|
+
*/
|
|
18
33
|
ActivityTypes["EndOfConversation"] = "endOfConversation";
|
|
34
|
+
/**
|
|
35
|
+
* An event activity.
|
|
36
|
+
*/
|
|
19
37
|
ActivityTypes["Event"] = "event";
|
|
38
|
+
/**
|
|
39
|
+
* An invoke activity.
|
|
40
|
+
*/
|
|
20
41
|
ActivityTypes["Invoke"] = "invoke";
|
|
42
|
+
/**
|
|
43
|
+
* A response to an invoke activity.
|
|
44
|
+
*/
|
|
21
45
|
ActivityTypes["InvokeResponse"] = "invokeResponse";
|
|
46
|
+
/**
|
|
47
|
+
* An activity to delete user data.
|
|
48
|
+
*/
|
|
22
49
|
ActivityTypes["DeleteUserData"] = "deleteUserData";
|
|
50
|
+
/**
|
|
51
|
+
* An update to a message.
|
|
52
|
+
*/
|
|
23
53
|
ActivityTypes["MessageUpdate"] = "messageUpdate";
|
|
54
|
+
/**
|
|
55
|
+
* A deletion of a message.
|
|
56
|
+
*/
|
|
24
57
|
ActivityTypes["MessageDelete"] = "messageDelete";
|
|
58
|
+
/**
|
|
59
|
+
* An update to an installation.
|
|
60
|
+
*/
|
|
25
61
|
ActivityTypes["InstallationUpdate"] = "installationUpdate";
|
|
62
|
+
/**
|
|
63
|
+
* A reaction to a message.
|
|
64
|
+
*/
|
|
26
65
|
ActivityTypes["MessageReaction"] = "messageReaction";
|
|
66
|
+
/**
|
|
67
|
+
* A suggestion activity.
|
|
68
|
+
*/
|
|
27
69
|
ActivityTypes["Suggestion"] = "suggestion";
|
|
70
|
+
/**
|
|
71
|
+
* A trace activity for debugging.
|
|
72
|
+
*/
|
|
28
73
|
ActivityTypes["Trace"] = "trace";
|
|
74
|
+
/**
|
|
75
|
+
* A handoff activity to another bot or human.
|
|
76
|
+
*/
|
|
29
77
|
ActivityTypes["Handoff"] = "handoff";
|
|
78
|
+
/**
|
|
79
|
+
* A command activity.
|
|
80
|
+
*/
|
|
30
81
|
ActivityTypes["Command"] = "command";
|
|
82
|
+
/**
|
|
83
|
+
* A result of a command activity.
|
|
84
|
+
*/
|
|
31
85
|
ActivityTypes["CommandResult"] = "commandResult";
|
|
86
|
+
/**
|
|
87
|
+
* A delay activity.
|
|
88
|
+
*/
|
|
32
89
|
ActivityTypes["Delay"] = "delay";
|
|
33
90
|
})(ActivityTypes || (exports.ActivityTypes = ActivityTypes = {}));
|
|
34
91
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activityTypes.js","sourceRoot":"","sources":["../../src/activityTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"activityTypes.js","sourceRoot":"","sources":["../../src/activityTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,aA+FX;AA/FD,WAAY,aAAa;IACvB;;OAEG;IACH,oCAAmB,CAAA;IAEnB;;OAEG;IACH,gEAA+C,CAAA;IAE/C;;OAEG;IACH,0DAAyC,CAAA;IAEzC;;OAEG;IACH,kCAAiB,CAAA;IAEjB;;OAEG;IACH,wDAAuC,CAAA;IAEvC;;OAEG;IACH,gCAAe,CAAA;IAEf;;OAEG;IACH,kCAAiB,CAAA;IAEjB;;OAEG;IACH,kDAAiC,CAAA;IAEjC;;OAEG;IACH,kDAAiC,CAAA;IAEjC;;OAEG;IACH,gDAA+B,CAAA;IAE/B;;OAEG;IACH,gDAA+B,CAAA;IAE/B;;OAEG;IACH,0DAAyC,CAAA;IAEzC;;OAEG;IACH,oDAAmC,CAAA;IAEnC;;OAEG;IACH,0CAAyB,CAAA;IAEzB;;OAEG;IACH,gCAAe,CAAA;IAEf;;OAEG;IACH,oCAAmB,CAAA;IAEnB;;OAEG;IACH,oCAAmB,CAAA;IAEnB;;OAEG;IACH,gDAA+B,CAAA;IAE/B;;OAEG;IACH,gCAAe,CAAA;AACjB,CAAC,EA/FW,aAAa,6BAAb,aAAa,QA+FxB;AAED;;GAEG;AACU,QAAA,sBAAsB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC3C,SAAS;IACT,uBAAuB;IACvB,oBAAoB;IACpB,QAAQ;IACR,mBAAmB;IACnB,OAAO;IACP,QAAQ;IACR,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,oBAAoB;IACpB,iBAAiB;IACjB,YAAY;IACZ,OAAO;IACP,SAAS;IACT,SAAS;IACT,eAAe;IACf,OAAO;CACR,CAAC,CAAA"}
|
|
@@ -7,10 +7,25 @@ import { z } from 'zod';
|
|
|
7
7
|
* Interface representing an attachment.
|
|
8
8
|
*/
|
|
9
9
|
export interface Attachment {
|
|
10
|
+
/**
|
|
11
|
+
* The MIME type of the attachment content.
|
|
12
|
+
*/
|
|
10
13
|
contentType: string;
|
|
14
|
+
/**
|
|
15
|
+
* The URL of the attachment content.
|
|
16
|
+
*/
|
|
11
17
|
contentUrl?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The content of the attachment.
|
|
20
|
+
*/
|
|
12
21
|
content?: unknown;
|
|
22
|
+
/**
|
|
23
|
+
* The name of the attachment.
|
|
24
|
+
*/
|
|
13
25
|
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The URL of the thumbnail for the attachment.
|
|
28
|
+
*/
|
|
14
29
|
thumbnailUrl?: string;
|
|
15
30
|
}
|
|
16
31
|
/**
|
|
@@ -24,14 +39,14 @@ export declare const attachmentZodSchema: z.ZodObject<{
|
|
|
24
39
|
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
25
40
|
}, "strip", z.ZodTypeAny, {
|
|
26
41
|
contentType: string;
|
|
27
|
-
name?: string | undefined;
|
|
28
42
|
contentUrl?: string | undefined;
|
|
29
43
|
content?: unknown;
|
|
44
|
+
name?: string | undefined;
|
|
30
45
|
thumbnailUrl?: string | undefined;
|
|
31
46
|
}, {
|
|
32
47
|
contentType: string;
|
|
33
|
-
name?: string | undefined;
|
|
34
48
|
contentUrl?: string | undefined;
|
|
35
49
|
content?: unknown;
|
|
50
|
+
name?: string | undefined;
|
|
36
51
|
thumbnailUrl?: string | undefined;
|
|
37
52
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.js","sourceRoot":"","sources":["../../../src/attachment/attachment.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;
|
|
1
|
+
{"version":3,"file":"attachment.js","sourceRoot":"","sources":["../../../src/attachment/attachment.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAgCvB;;GAEG;AACU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAA"}
|
|
@@ -7,7 +7,13 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing the layout types for attachments.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum AttachmentLayoutTypes {
|
|
10
|
+
/**
|
|
11
|
+
* Displays attachments in a list format.
|
|
12
|
+
*/
|
|
10
13
|
List = "list",
|
|
14
|
+
/**
|
|
15
|
+
* Displays attachments in a carousel format.
|
|
16
|
+
*/
|
|
11
17
|
Carousel = "carousel"
|
|
12
18
|
}
|
|
13
19
|
/**
|
|
@@ -11,7 +11,13 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var AttachmentLayoutTypes;
|
|
13
13
|
(function (AttachmentLayoutTypes) {
|
|
14
|
+
/**
|
|
15
|
+
* Displays attachments in a list format.
|
|
16
|
+
*/
|
|
14
17
|
AttachmentLayoutTypes["List"] = "list";
|
|
18
|
+
/**
|
|
19
|
+
* Displays attachments in a carousel format.
|
|
20
|
+
*/
|
|
15
21
|
AttachmentLayoutTypes["Carousel"] = "carousel";
|
|
16
22
|
})(AttachmentLayoutTypes || (exports.AttachmentLayoutTypes = AttachmentLayoutTypes = {}));
|
|
17
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachmentLayoutTypes.js","sourceRoot":"","sources":["../../../src/attachment/attachmentLayoutTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"attachmentLayoutTypes.js","sourceRoot":"","sources":["../../../src/attachment/attachmentLayoutTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,qBAUX;AAVD,WAAY,qBAAqB;IAC/B;;OAEG;IACH,sCAAa,CAAA;IAEb;;OAEG;IACH,8CAAqB,CAAA;AACvB,CAAC,EAVW,qBAAqB,qCAArB,qBAAqB,QAUhC;AAED;;GAEG;AACU,QAAA,8BAA8B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAA"}
|
|
@@ -8,10 +8,25 @@ import { RoleTypes } from './roleTypes';
|
|
|
8
8
|
* Interface representing a channel account.
|
|
9
9
|
*/
|
|
10
10
|
export interface ChannelAccount {
|
|
11
|
+
/**
|
|
12
|
+
* The unique identifier of the channel account.
|
|
13
|
+
*/
|
|
11
14
|
id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The name of the channel account.
|
|
17
|
+
*/
|
|
12
18
|
name?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The Azure Active Directory object ID of the channel account.
|
|
21
|
+
*/
|
|
13
22
|
aadObjectId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The role of the channel account.
|
|
25
|
+
*/
|
|
14
26
|
role?: RoleTypes | string;
|
|
27
|
+
/**
|
|
28
|
+
* Additional properties of the channel account.
|
|
29
|
+
*/
|
|
15
30
|
properties?: unknown;
|
|
16
31
|
}
|
|
17
32
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelAccount.js","sourceRoot":"","sources":["../../../src/conversation/channelAccount.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,2CAA0D;
|
|
1
|
+
{"version":3,"file":"channelAccount.js","sourceRoot":"","sources":["../../../src/conversation/channelAccount.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,2CAA0D;AAgC1D;;GAEG;AACU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzC,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,6BAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChE,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAA"}
|
|
@@ -6,23 +6,80 @@
|
|
|
6
6
|
* Enum representing the different channels an agent can communicate through.
|
|
7
7
|
*/
|
|
8
8
|
export declare enum Channels {
|
|
9
|
+
/**
|
|
10
|
+
* Represents the Alexa channel.
|
|
11
|
+
*/
|
|
9
12
|
Alexa = "alexa",
|
|
13
|
+
/**
|
|
14
|
+
* Represents the Console channel.
|
|
15
|
+
*/
|
|
10
16
|
Console = "console",
|
|
17
|
+
/**
|
|
18
|
+
* Represents the Directline channel.
|
|
19
|
+
*/
|
|
11
20
|
Directline = "directline",
|
|
21
|
+
/**
|
|
22
|
+
* Represents the Directline Speech channel.
|
|
23
|
+
*/
|
|
12
24
|
DirectlineSpeech = "directlinespeech",
|
|
25
|
+
/**
|
|
26
|
+
* Represents the Email channel.
|
|
27
|
+
*/
|
|
13
28
|
Email = "email",
|
|
29
|
+
/**
|
|
30
|
+
* Represents the Emulator channel.
|
|
31
|
+
*/
|
|
14
32
|
Emulator = "emulator",
|
|
33
|
+
/**
|
|
34
|
+
* Represents the Facebook channel.
|
|
35
|
+
*/
|
|
15
36
|
Facebook = "facebook",
|
|
37
|
+
/**
|
|
38
|
+
* Represents the GroupMe channel.
|
|
39
|
+
*/
|
|
16
40
|
Groupme = "groupme",
|
|
41
|
+
/**
|
|
42
|
+
* Represents the Line channel.
|
|
43
|
+
*/
|
|
17
44
|
Line = "line",
|
|
45
|
+
/**
|
|
46
|
+
* Represents the Microsoft Teams channel.
|
|
47
|
+
*/
|
|
18
48
|
Msteams = "msteams",
|
|
49
|
+
/**
|
|
50
|
+
* Represents the Omnichannel.
|
|
51
|
+
*/
|
|
19
52
|
Omni = "omnichannel",
|
|
53
|
+
/**
|
|
54
|
+
* Represents the Outlook channel.
|
|
55
|
+
*/
|
|
20
56
|
Outlook = "outlook",
|
|
57
|
+
/**
|
|
58
|
+
* Represents the Skype channel.
|
|
59
|
+
*/
|
|
21
60
|
Skype = "skype",
|
|
61
|
+
/**
|
|
62
|
+
* Represents the Slack channel.
|
|
63
|
+
*/
|
|
22
64
|
Slack = "slack",
|
|
65
|
+
/**
|
|
66
|
+
* Represents the SMS channel.
|
|
67
|
+
*/
|
|
23
68
|
Sms = "sms",
|
|
69
|
+
/**
|
|
70
|
+
* Represents the Telegram channel.
|
|
71
|
+
*/
|
|
24
72
|
Telegram = "telegram",
|
|
73
|
+
/**
|
|
74
|
+
* Represents the Telephony channel.
|
|
75
|
+
*/
|
|
25
76
|
Telephony = "telephony",
|
|
77
|
+
/**
|
|
78
|
+
* Represents the Test channel.
|
|
79
|
+
*/
|
|
26
80
|
Test = "test",
|
|
81
|
+
/**
|
|
82
|
+
* Represents the Webchat channel.
|
|
83
|
+
*/
|
|
27
84
|
Webchat = "webchat"
|
|
28
85
|
}
|
|
@@ -10,24 +10,81 @@ exports.Channels = void 0;
|
|
|
10
10
|
*/
|
|
11
11
|
var Channels;
|
|
12
12
|
(function (Channels) {
|
|
13
|
+
/**
|
|
14
|
+
* Represents the Alexa channel.
|
|
15
|
+
*/
|
|
13
16
|
Channels["Alexa"] = "alexa";
|
|
17
|
+
/**
|
|
18
|
+
* Represents the Console channel.
|
|
19
|
+
*/
|
|
14
20
|
Channels["Console"] = "console";
|
|
21
|
+
/**
|
|
22
|
+
* Represents the Directline channel.
|
|
23
|
+
*/
|
|
15
24
|
Channels["Directline"] = "directline";
|
|
25
|
+
/**
|
|
26
|
+
* Represents the Directline Speech channel.
|
|
27
|
+
*/
|
|
16
28
|
Channels["DirectlineSpeech"] = "directlinespeech";
|
|
29
|
+
/**
|
|
30
|
+
* Represents the Email channel.
|
|
31
|
+
*/
|
|
17
32
|
Channels["Email"] = "email";
|
|
33
|
+
/**
|
|
34
|
+
* Represents the Emulator channel.
|
|
35
|
+
*/
|
|
18
36
|
Channels["Emulator"] = "emulator";
|
|
37
|
+
/**
|
|
38
|
+
* Represents the Facebook channel.
|
|
39
|
+
*/
|
|
19
40
|
Channels["Facebook"] = "facebook";
|
|
41
|
+
/**
|
|
42
|
+
* Represents the GroupMe channel.
|
|
43
|
+
*/
|
|
20
44
|
Channels["Groupme"] = "groupme";
|
|
45
|
+
/**
|
|
46
|
+
* Represents the Line channel.
|
|
47
|
+
*/
|
|
21
48
|
Channels["Line"] = "line";
|
|
49
|
+
/**
|
|
50
|
+
* Represents the Microsoft Teams channel.
|
|
51
|
+
*/
|
|
22
52
|
Channels["Msteams"] = "msteams";
|
|
53
|
+
/**
|
|
54
|
+
* Represents the Omnichannel.
|
|
55
|
+
*/
|
|
23
56
|
Channels["Omni"] = "omnichannel";
|
|
57
|
+
/**
|
|
58
|
+
* Represents the Outlook channel.
|
|
59
|
+
*/
|
|
24
60
|
Channels["Outlook"] = "outlook";
|
|
61
|
+
/**
|
|
62
|
+
* Represents the Skype channel.
|
|
63
|
+
*/
|
|
25
64
|
Channels["Skype"] = "skype";
|
|
65
|
+
/**
|
|
66
|
+
* Represents the Slack channel.
|
|
67
|
+
*/
|
|
26
68
|
Channels["Slack"] = "slack";
|
|
69
|
+
/**
|
|
70
|
+
* Represents the SMS channel.
|
|
71
|
+
*/
|
|
27
72
|
Channels["Sms"] = "sms";
|
|
73
|
+
/**
|
|
74
|
+
* Represents the Telegram channel.
|
|
75
|
+
*/
|
|
28
76
|
Channels["Telegram"] = "telegram";
|
|
77
|
+
/**
|
|
78
|
+
* Represents the Telephony channel.
|
|
79
|
+
*/
|
|
29
80
|
Channels["Telephony"] = "telephony";
|
|
81
|
+
/**
|
|
82
|
+
* Represents the Test channel.
|
|
83
|
+
*/
|
|
30
84
|
Channels["Test"] = "test";
|
|
85
|
+
/**
|
|
86
|
+
* Represents the Webchat channel.
|
|
87
|
+
*/
|
|
31
88
|
Channels["Webchat"] = "webchat";
|
|
32
89
|
})(Channels || (exports.Channels = Channels = {}));
|
|
33
90
|
//# sourceMappingURL=channels.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.js","sourceRoot":"","sources":["../../../src/conversation/channels.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"channels.js","sourceRoot":"","sources":["../../../src/conversation/channels.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,IAAY,QA+FX;AA/FD,WAAY,QAAQ;IAClB;;OAEG;IACH,2BAAe,CAAA;IAEf;;OAEG;IACH,+BAAmB,CAAA;IAEnB;;OAEG;IACH,qCAAyB,CAAA;IAEzB;;OAEG;IACH,iDAAqC,CAAA;IAErC;;OAEG;IACH,2BAAe,CAAA;IAEf;;OAEG;IACH,iCAAqB,CAAA;IAErB;;OAEG;IACH,iCAAqB,CAAA;IAErB;;OAEG;IACH,+BAAmB,CAAA;IAEnB;;OAEG;IACH,yBAAa,CAAA;IAEb;;OAEG;IACH,+BAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAoB,CAAA;IAEpB;;OAEG;IACH,+BAAmB,CAAA;IAEnB;;OAEG;IACH,2BAAe,CAAA;IAEf;;OAEG;IACH,2BAAe,CAAA;IAEf;;OAEG;IACH,uBAAW,CAAA;IAEX;;OAEG;IACH,iCAAqB,CAAA;IAErB;;OAEG;IACH,mCAAuB,CAAA;IAEvB;;OAEG;IACH,yBAAa,CAAA;IAEb;;OAEG;IACH,+BAAmB,CAAA;AACrB,CAAC,EA/FW,QAAQ,wBAAR,QAAQ,QA+FnB"}
|
|
@@ -8,13 +8,37 @@ import { RoleTypes } from './roleTypes';
|
|
|
8
8
|
* Interface representing a conversation account.
|
|
9
9
|
*/
|
|
10
10
|
export interface ConversationAccount {
|
|
11
|
+
/**
|
|
12
|
+
* The unique identifier of the conversation account.
|
|
13
|
+
*/
|
|
11
14
|
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* The type of the conversation (e.g., personal, group, etc.).
|
|
17
|
+
*/
|
|
12
18
|
conversationType?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The tenant ID associated with the conversation account.
|
|
21
|
+
*/
|
|
13
22
|
tenantId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Indicates whether the conversation is a group.
|
|
25
|
+
*/
|
|
14
26
|
isGroup?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The name of the conversation account.
|
|
29
|
+
*/
|
|
15
30
|
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The Azure Active Directory object ID of the conversation account.
|
|
33
|
+
*/
|
|
16
34
|
aadObjectId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The role of the conversation account.
|
|
37
|
+
*/
|
|
17
38
|
role?: RoleTypes | string;
|
|
39
|
+
/**
|
|
40
|
+
* Additional properties of the conversation account.
|
|
41
|
+
*/
|
|
18
42
|
properties?: unknown;
|
|
19
43
|
}
|
|
20
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationAccount.js","sourceRoot":"","sources":["../../../src/conversation/conversationAccount.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,2CAA0D;
|
|
1
|
+
{"version":3,"file":"conversationAccount.js","sourceRoot":"","sources":["../../../src/conversation/conversationAccount.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,2CAA0D;AA+C1D;;GAEG;AACU,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC9C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzC,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,6BAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChE,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAA"}
|
|
@@ -9,12 +9,33 @@ import { ConversationAccount } from './conversationAccount';
|
|
|
9
9
|
* Interface representing a reference to a conversation.
|
|
10
10
|
*/
|
|
11
11
|
export interface ConversationReference {
|
|
12
|
+
/**
|
|
13
|
+
* The ID of the activity. Optional.
|
|
14
|
+
*/
|
|
12
15
|
activityId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The user involved in the conversation. Optional.
|
|
18
|
+
*/
|
|
13
19
|
user?: ChannelAccount;
|
|
20
|
+
/**
|
|
21
|
+
* The locale of the conversation. Optional.
|
|
22
|
+
*/
|
|
14
23
|
locale?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The agent involved in the conversation. Can be undefined or null. Optional.
|
|
26
|
+
*/
|
|
15
27
|
agent?: ChannelAccount | undefined | null;
|
|
28
|
+
/**
|
|
29
|
+
* The conversation account details.
|
|
30
|
+
*/
|
|
16
31
|
conversation: ConversationAccount;
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the channel where the conversation is taking place.
|
|
34
|
+
*/
|
|
17
35
|
channelId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The service URL for the conversation. Optional.
|
|
38
|
+
*/
|
|
18
39
|
serviceUrl?: string | undefined;
|
|
19
40
|
}
|
|
20
41
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationReference.js","sourceRoot":"","sources":["../../../src/conversation/conversationReference.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,qDAA0E;AAC1E,+DAAyF;
|
|
1
|
+
{"version":3,"file":"conversationReference.js","sourceRoot":"","sources":["../../../src/conversation/conversationReference.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,qDAA0E;AAC1E,+DAAyF;AA0CzF;;GAEG;AACU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxC,IAAI,EAAE,wCAAuB,CAAC,QAAQ,EAAE;IACxC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpC,KAAK,EAAE,wCAAuB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACpD,YAAY,EAAE,kDAA4B;IAC1C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA"}
|
|
@@ -7,11 +7,29 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing the different end of conversation codes.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum EndOfConversationCodes {
|
|
10
|
+
/**
|
|
11
|
+
* The end of conversation reason is unknown.
|
|
12
|
+
*/
|
|
10
13
|
Unknown = "unknown",
|
|
14
|
+
/**
|
|
15
|
+
* The conversation completed successfully.
|
|
16
|
+
*/
|
|
11
17
|
CompletedSuccessfully = "completedSuccessfully",
|
|
18
|
+
/**
|
|
19
|
+
* The user cancelled the conversation.
|
|
20
|
+
*/
|
|
12
21
|
UserCancelled = "userCancelled",
|
|
22
|
+
/**
|
|
23
|
+
* The agent timed out during the conversation.
|
|
24
|
+
*/
|
|
13
25
|
AgentTimedOut = "agentTimedOut",
|
|
26
|
+
/**
|
|
27
|
+
* The agent issued an invalid message.
|
|
28
|
+
*/
|
|
14
29
|
AgentIssuedInvalidMessage = "agentIssuedInvalidMessage",
|
|
30
|
+
/**
|
|
31
|
+
* The channel failed during the conversation.
|
|
32
|
+
*/
|
|
15
33
|
ChannelFailed = "channelFailed"
|
|
16
34
|
}
|
|
17
35
|
/**
|
|
@@ -11,11 +11,29 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var EndOfConversationCodes;
|
|
13
13
|
(function (EndOfConversationCodes) {
|
|
14
|
+
/**
|
|
15
|
+
* The end of conversation reason is unknown.
|
|
16
|
+
*/
|
|
14
17
|
EndOfConversationCodes["Unknown"] = "unknown";
|
|
18
|
+
/**
|
|
19
|
+
* The conversation completed successfully.
|
|
20
|
+
*/
|
|
15
21
|
EndOfConversationCodes["CompletedSuccessfully"] = "completedSuccessfully";
|
|
22
|
+
/**
|
|
23
|
+
* The user cancelled the conversation.
|
|
24
|
+
*/
|
|
16
25
|
EndOfConversationCodes["UserCancelled"] = "userCancelled";
|
|
26
|
+
/**
|
|
27
|
+
* The agent timed out during the conversation.
|
|
28
|
+
*/
|
|
17
29
|
EndOfConversationCodes["AgentTimedOut"] = "agentTimedOut";
|
|
30
|
+
/**
|
|
31
|
+
* The agent issued an invalid message.
|
|
32
|
+
*/
|
|
18
33
|
EndOfConversationCodes["AgentIssuedInvalidMessage"] = "agentIssuedInvalidMessage";
|
|
34
|
+
/**
|
|
35
|
+
* The channel failed during the conversation.
|
|
36
|
+
*/
|
|
19
37
|
EndOfConversationCodes["ChannelFailed"] = "channelFailed";
|
|
20
38
|
})(EndOfConversationCodes || (exports.EndOfConversationCodes = EndOfConversationCodes = {}));
|
|
21
39
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endOfConversationCodes.js","sourceRoot":"","sources":["../../../src/conversation/endOfConversationCodes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"endOfConversationCodes.js","sourceRoot":"","sources":["../../../src/conversation/endOfConversationCodes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,sBA8BX;AA9BD,WAAY,sBAAsB;IAChC;;OAEG;IACH,6CAAmB,CAAA;IAEnB;;OAEG;IACH,yEAA+C,CAAA;IAE/C;;OAEG;IACH,yDAA+B,CAAA;IAE/B;;OAEG;IACH,yDAA+B,CAAA;IAE/B;;OAEG;IACH,iFAAuD,CAAA;IAEvD;;OAEG;IACH,yDAA+B,CAAA;AACjC,CAAC,EA9BW,sBAAsB,sCAAtB,sBAAsB,QA8BjC;AAED;;GAEG;AACU,QAAA,+BAA+B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,uBAAuB,EAAE,eAAe,EAAE,eAAe,EAAE,2BAA2B,EAAE,eAAe,CAAC,CAAC,CAAA"}
|