@microsoft/agents-activity 0.2.14 → 0.3.5
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 +138 -0
- 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 +15 -0
- 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 +183 -0
- 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,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"}
|
|
@@ -7,8 +7,17 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing the different role types in a conversation.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum RoleTypes {
|
|
10
|
+
/**
|
|
11
|
+
* Represents a user in the conversation.
|
|
12
|
+
*/
|
|
10
13
|
User = "user",
|
|
14
|
+
/**
|
|
15
|
+
* Represents an agent or bot in the conversation.
|
|
16
|
+
*/
|
|
11
17
|
Agent = "bot",
|
|
18
|
+
/**
|
|
19
|
+
* Represents a skill in the conversation.
|
|
20
|
+
*/
|
|
12
21
|
Skill = "skill"
|
|
13
22
|
}
|
|
14
23
|
/**
|
|
@@ -11,8 +11,17 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var RoleTypes;
|
|
13
13
|
(function (RoleTypes) {
|
|
14
|
+
/**
|
|
15
|
+
* Represents a user in the conversation.
|
|
16
|
+
*/
|
|
14
17
|
RoleTypes["User"] = "user";
|
|
18
|
+
/**
|
|
19
|
+
* Represents an agent or bot in the conversation.
|
|
20
|
+
*/
|
|
15
21
|
RoleTypes["Agent"] = "bot";
|
|
22
|
+
/**
|
|
23
|
+
* Represents a skill in the conversation.
|
|
24
|
+
*/
|
|
16
25
|
RoleTypes["Skill"] = "skill";
|
|
17
26
|
})(RoleTypes || (exports.RoleTypes = RoleTypes = {}));
|
|
18
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roleTypes.js","sourceRoot":"","sources":["../../../src/conversation/roleTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"roleTypes.js","sourceRoot":"","sources":["../../../src/conversation/roleTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,SAeX;AAfD,WAAY,SAAS;IACnB;;OAEG;IACH,0BAAa,CAAA;IAEb;;OAEG;IACH,0BAAa,CAAA;IAEb;;OAEG;IACH,4BAAe,CAAA;AACjB,CAAC,EAfW,SAAS,yBAAT,SAAS,QAepB;AAED;;GAEG;AACU,QAAA,iBAAiB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA"}
|
|
@@ -7,9 +7,21 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing delivery modes.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum DeliveryModes {
|
|
10
|
+
/**
|
|
11
|
+
* Represents the normal delivery mode.
|
|
12
|
+
*/
|
|
10
13
|
Normal = "normal",
|
|
14
|
+
/**
|
|
15
|
+
* Represents a notification delivery mode.
|
|
16
|
+
*/
|
|
11
17
|
Notification = "notification",
|
|
18
|
+
/**
|
|
19
|
+
* Represents a delivery mode where replies are expected.
|
|
20
|
+
*/
|
|
12
21
|
ExpectReplies = "expectReplies",
|
|
22
|
+
/**
|
|
23
|
+
* Represents an ephemeral delivery mode.
|
|
24
|
+
*/
|
|
13
25
|
Ephemeral = "ephemeral"
|
|
14
26
|
}
|
|
15
27
|
/**
|
|
@@ -11,9 +11,21 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var DeliveryModes;
|
|
13
13
|
(function (DeliveryModes) {
|
|
14
|
+
/**
|
|
15
|
+
* Represents the normal delivery mode.
|
|
16
|
+
*/
|
|
14
17
|
DeliveryModes["Normal"] = "normal";
|
|
18
|
+
/**
|
|
19
|
+
* Represents a notification delivery mode.
|
|
20
|
+
*/
|
|
15
21
|
DeliveryModes["Notification"] = "notification";
|
|
22
|
+
/**
|
|
23
|
+
* Represents a delivery mode where replies are expected.
|
|
24
|
+
*/
|
|
16
25
|
DeliveryModes["ExpectReplies"] = "expectReplies";
|
|
26
|
+
/**
|
|
27
|
+
* Represents an ephemeral delivery mode.
|
|
28
|
+
*/
|
|
17
29
|
DeliveryModes["Ephemeral"] = "ephemeral";
|
|
18
30
|
})(DeliveryModes || (exports.DeliveryModes = DeliveryModes = {}));
|
|
19
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deliveryModes.js","sourceRoot":"","sources":["../../src/deliveryModes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"deliveryModes.js","sourceRoot":"","sources":["../../src/deliveryModes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,aAoBX;AApBD,WAAY,aAAa;IACvB;;OAEG;IACH,kCAAiB,CAAA;IAEjB;;OAEG;IACH,8CAA6B,CAAA;IAE7B;;OAEG;IACH,gDAA+B,CAAA;IAE/B;;OAEG;IACH,wCAAuB,CAAA;AACzB,CAAC,EApBW,aAAa,6BAAb,aAAa,QAoBxB;AAED;;GAEG;AACU,QAAA,sBAAsB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,CAAC,CAAC,CAAA"}
|
package/dist/src/inputHints.d.ts
CHANGED
|
@@ -7,8 +7,17 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing input hints.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum InputHints {
|
|
10
|
+
/**
|
|
11
|
+
* Indicates that the bot is ready to accept input from the user.
|
|
12
|
+
*/
|
|
10
13
|
AcceptingInput = "acceptingInput",
|
|
14
|
+
/**
|
|
15
|
+
* Indicates that the bot is ignoring input from the user.
|
|
16
|
+
*/
|
|
11
17
|
IgnoringInput = "ignoringInput",
|
|
18
|
+
/**
|
|
19
|
+
* Indicates that the bot is expecting input from the user.
|
|
20
|
+
*/
|
|
12
21
|
ExpectingInput = "expectingInput"
|
|
13
22
|
}
|
|
14
23
|
/**
|
package/dist/src/inputHints.js
CHANGED
|
@@ -11,8 +11,17 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var InputHints;
|
|
13
13
|
(function (InputHints) {
|
|
14
|
+
/**
|
|
15
|
+
* Indicates that the bot is ready to accept input from the user.
|
|
16
|
+
*/
|
|
14
17
|
InputHints["AcceptingInput"] = "acceptingInput";
|
|
18
|
+
/**
|
|
19
|
+
* Indicates that the bot is ignoring input from the user.
|
|
20
|
+
*/
|
|
15
21
|
InputHints["IgnoringInput"] = "ignoringInput";
|
|
22
|
+
/**
|
|
23
|
+
* Indicates that the bot is expecting input from the user.
|
|
24
|
+
*/
|
|
16
25
|
InputHints["ExpectingInput"] = "expectingInput";
|
|
17
26
|
})(InputHints || (exports.InputHints = InputHints = {}));
|
|
18
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputHints.js","sourceRoot":"","sources":["../../src/inputHints.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"inputHints.js","sourceRoot":"","sources":["../../src/inputHints.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,UAeX;AAfD,WAAY,UAAU;IACpB;;OAEG;IACH,+CAAiC,CAAA;IAEjC;;OAEG;IACH,6CAA+B,CAAA;IAE/B;;OAEG;IACH,+CAAiC,CAAA;AACnC,CAAC,EAfW,UAAU,0BAAV,UAAU,QAerB;AAED;;GAEG;AACU,QAAA,mBAAmB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC,CAAA"}
|
|
@@ -7,7 +7,13 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing message reaction types.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum MessageReactionTypes {
|
|
10
|
+
/**
|
|
11
|
+
* Represents a 'like' reaction to a message.
|
|
12
|
+
*/
|
|
10
13
|
Like = "like",
|
|
14
|
+
/**
|
|
15
|
+
* Represents a '+1' reaction to a message.
|
|
16
|
+
*/
|
|
11
17
|
PlusOne = "plusOne"
|
|
12
18
|
}
|
|
13
19
|
/**
|
|
@@ -11,7 +11,13 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var MessageReactionTypes;
|
|
13
13
|
(function (MessageReactionTypes) {
|
|
14
|
+
/**
|
|
15
|
+
* Represents a 'like' reaction to a message.
|
|
16
|
+
*/
|
|
14
17
|
MessageReactionTypes["Like"] = "like";
|
|
18
|
+
/**
|
|
19
|
+
* Represents a '+1' reaction to a message.
|
|
20
|
+
*/
|
|
15
21
|
MessageReactionTypes["PlusOne"] = "plusOne";
|
|
16
22
|
})(MessageReactionTypes || (exports.MessageReactionTypes = MessageReactionTypes = {}));
|
|
17
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageReactionTypes.js","sourceRoot":"","sources":["../../src/messageReactionTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"messageReactionTypes.js","sourceRoot":"","sources":["../../src/messageReactionTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,oBAUX;AAVD,WAAY,oBAAoB;IAC9B;;OAEG;IACH,qCAAa,CAAA;IAEb;;OAEG;IACH,2CAAmB,CAAA;AACrB,CAAC,EAVW,oBAAoB,oCAApB,oBAAoB,QAU/B;AAED;;GAEG;AACU,QAAA,6BAA6B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA"}
|
|
@@ -7,8 +7,17 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing text format types.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum TextFormatTypes {
|
|
10
|
+
/**
|
|
11
|
+
* Represents text formatted using Markdown.
|
|
12
|
+
*/
|
|
10
13
|
Markdown = "markdown",
|
|
14
|
+
/**
|
|
15
|
+
* Represents plain text without any formatting.
|
|
16
|
+
*/
|
|
11
17
|
Plain = "plain",
|
|
18
|
+
/**
|
|
19
|
+
* Represents text formatted using XML.
|
|
20
|
+
*/
|
|
12
21
|
Xml = "xml"
|
|
13
22
|
}
|
|
14
23
|
/**
|
|
@@ -11,8 +11,17 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var TextFormatTypes;
|
|
13
13
|
(function (TextFormatTypes) {
|
|
14
|
+
/**
|
|
15
|
+
* Represents text formatted using Markdown.
|
|
16
|
+
*/
|
|
14
17
|
TextFormatTypes["Markdown"] = "markdown";
|
|
18
|
+
/**
|
|
19
|
+
* Represents plain text without any formatting.
|
|
20
|
+
*/
|
|
15
21
|
TextFormatTypes["Plain"] = "plain";
|
|
22
|
+
/**
|
|
23
|
+
* Represents text formatted using XML.
|
|
24
|
+
*/
|
|
16
25
|
TextFormatTypes["Xml"] = "xml";
|
|
17
26
|
})(TextFormatTypes || (exports.TextFormatTypes = TextFormatTypes = {}));
|
|
18
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textFormatTypes.js","sourceRoot":"","sources":["../../src/textFormatTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"textFormatTypes.js","sourceRoot":"","sources":["../../src/textFormatTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,eAeX;AAfD,WAAY,eAAe;IACzB;;OAEG;IACH,wCAAqB,CAAA;IAErB;;OAEG;IACH,kCAAe,CAAA;IAEf;;OAEG;IACH,8BAAW,CAAA;AACb,CAAC,EAfW,eAAe,+BAAf,eAAe,QAe1B;AAED;;GAEG;AACU,QAAA,wBAAwB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@microsoft/agents-activity",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.5",
|
|
5
5
|
"homepage": "https://github.com/microsoft/Agents-for-js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"types": "dist/src/index.d.ts",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"uuid": "^11.1.0",
|
|
23
|
-
"zod": "^3.24.
|
|
23
|
+
"zod": "^3.24.4"
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"files": [
|