@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,16 +7,49 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing the types of actions.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum ActionTypes {
|
|
10
|
+
/**
|
|
11
|
+
* Opens a URL in the default browser.
|
|
12
|
+
*/
|
|
10
13
|
OpenUrl = "openUrl",
|
|
14
|
+
/**
|
|
15
|
+
* Sends a message back to the bot as a simple string.
|
|
16
|
+
*/
|
|
11
17
|
ImBack = "imBack",
|
|
18
|
+
/**
|
|
19
|
+
* Sends a message back to the bot with additional data.
|
|
20
|
+
*/
|
|
12
21
|
PostBack = "postBack",
|
|
22
|
+
/**
|
|
23
|
+
* Plays an audio file.
|
|
24
|
+
*/
|
|
13
25
|
PlayAudio = "playAudio",
|
|
26
|
+
/**
|
|
27
|
+
* Plays a video file.
|
|
28
|
+
*/
|
|
14
29
|
PlayVideo = "playVideo",
|
|
30
|
+
/**
|
|
31
|
+
* Displays an image.
|
|
32
|
+
*/
|
|
15
33
|
ShowImage = "showImage",
|
|
34
|
+
/**
|
|
35
|
+
* Downloads a file.
|
|
36
|
+
*/
|
|
16
37
|
DownloadFile = "downloadFile",
|
|
38
|
+
/**
|
|
39
|
+
* Initiates a sign-in process.
|
|
40
|
+
*/
|
|
17
41
|
Signin = "signin",
|
|
42
|
+
/**
|
|
43
|
+
* Initiates a phone call.
|
|
44
|
+
*/
|
|
18
45
|
Call = "call",
|
|
46
|
+
/**
|
|
47
|
+
* Sends a message back to the bot with additional metadata.
|
|
48
|
+
*/
|
|
19
49
|
MessageBack = "messageBack",
|
|
50
|
+
/**
|
|
51
|
+
* Opens an application.
|
|
52
|
+
*/
|
|
20
53
|
OpenApp = "openApp"
|
|
21
54
|
}
|
|
22
55
|
/**
|
|
@@ -11,16 +11,49 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var ActionTypes;
|
|
13
13
|
(function (ActionTypes) {
|
|
14
|
+
/**
|
|
15
|
+
* Opens a URL in the default browser.
|
|
16
|
+
*/
|
|
14
17
|
ActionTypes["OpenUrl"] = "openUrl";
|
|
18
|
+
/**
|
|
19
|
+
* Sends a message back to the bot as a simple string.
|
|
20
|
+
*/
|
|
15
21
|
ActionTypes["ImBack"] = "imBack";
|
|
22
|
+
/**
|
|
23
|
+
* Sends a message back to the bot with additional data.
|
|
24
|
+
*/
|
|
16
25
|
ActionTypes["PostBack"] = "postBack";
|
|
26
|
+
/**
|
|
27
|
+
* Plays an audio file.
|
|
28
|
+
*/
|
|
17
29
|
ActionTypes["PlayAudio"] = "playAudio";
|
|
30
|
+
/**
|
|
31
|
+
* Plays a video file.
|
|
32
|
+
*/
|
|
18
33
|
ActionTypes["PlayVideo"] = "playVideo";
|
|
34
|
+
/**
|
|
35
|
+
* Displays an image.
|
|
36
|
+
*/
|
|
19
37
|
ActionTypes["ShowImage"] = "showImage";
|
|
38
|
+
/**
|
|
39
|
+
* Downloads a file.
|
|
40
|
+
*/
|
|
20
41
|
ActionTypes["DownloadFile"] = "downloadFile";
|
|
42
|
+
/**
|
|
43
|
+
* Initiates a sign-in process.
|
|
44
|
+
*/
|
|
21
45
|
ActionTypes["Signin"] = "signin";
|
|
46
|
+
/**
|
|
47
|
+
* Initiates a phone call.
|
|
48
|
+
*/
|
|
22
49
|
ActionTypes["Call"] = "call";
|
|
50
|
+
/**
|
|
51
|
+
* Sends a message back to the bot with additional metadata.
|
|
52
|
+
*/
|
|
23
53
|
ActionTypes["MessageBack"] = "messageBack";
|
|
54
|
+
/**
|
|
55
|
+
* Opens an application.
|
|
56
|
+
*/
|
|
24
57
|
ActionTypes["OpenApp"] = "openApp";
|
|
25
58
|
})(ActionTypes || (exports.ActionTypes = ActionTypes = {}));
|
|
26
59
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionTypes.js","sourceRoot":"","sources":["../../../src/action/actionTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"actionTypes.js","sourceRoot":"","sources":["../../../src/action/actionTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,WAuDX;AAvDD,WAAY,WAAW;IACrB;;OAEG;IACH,kCAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,oCAAqB,CAAA;IAErB;;OAEG;IACH,sCAAuB,CAAA;IAEvB;;OAEG;IACH,sCAAuB,CAAA;IAEvB;;OAEG;IACH,sCAAuB,CAAA;IAEvB;;OAEG;IACH,4CAA6B,CAAA;IAE7B;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,4BAAa,CAAA;IAEb;;OAEG;IACH,0CAA2B,CAAA;IAE3B;;OAEG;IACH,kCAAmB,CAAA;AACrB,CAAC,EAvDW,WAAW,2BAAX,WAAW,QAuDtB;AAED;;GAEG;AACU,QAAA,oBAAoB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,CAAA"}
|
|
@@ -7,8 +7,17 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing the state types of a semantic action.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum SemanticActionStateTypes {
|
|
10
|
+
/**
|
|
11
|
+
* Indicates the start of a semantic action.
|
|
12
|
+
*/
|
|
10
13
|
Start = "start",
|
|
14
|
+
/**
|
|
15
|
+
* Indicates the continuation of a semantic action.
|
|
16
|
+
*/
|
|
11
17
|
Continue = "continue",
|
|
18
|
+
/**
|
|
19
|
+
* Indicates the completion of a semantic action.
|
|
20
|
+
*/
|
|
12
21
|
Done = "done"
|
|
13
22
|
}
|
|
14
23
|
/**
|
|
@@ -11,8 +11,17 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var SemanticActionStateTypes;
|
|
13
13
|
(function (SemanticActionStateTypes) {
|
|
14
|
+
/**
|
|
15
|
+
* Indicates the start of a semantic action.
|
|
16
|
+
*/
|
|
14
17
|
SemanticActionStateTypes["Start"] = "start";
|
|
18
|
+
/**
|
|
19
|
+
* Indicates the continuation of a semantic action.
|
|
20
|
+
*/
|
|
15
21
|
SemanticActionStateTypes["Continue"] = "continue";
|
|
22
|
+
/**
|
|
23
|
+
* Indicates the completion of a semantic action.
|
|
24
|
+
*/
|
|
16
25
|
SemanticActionStateTypes["Done"] = "done";
|
|
17
26
|
})(SemanticActionStateTypes || (exports.SemanticActionStateTypes = SemanticActionStateTypes = {}));
|
|
18
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semanticActionStateTypes.js","sourceRoot":"","sources":["../../../src/action/semanticActionStateTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"semanticActionStateTypes.js","sourceRoot":"","sources":["../../../src/action/semanticActionStateTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,wBAeX;AAfD,WAAY,wBAAwB;IAClC;;OAEG;IACH,2CAAe,CAAA;IAEf;;OAEG;IACH,iDAAqB,CAAA;IAErB;;OAEG;IACH,yCAAa,CAAA;AACf,CAAC,EAfW,wBAAwB,wCAAxB,wBAAwB,QAenC;AAED;;GAEG;AACU,QAAA,iCAAiC,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAAA"}
|
package/dist/src/activity.d.ts
CHANGED
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import {
|
|
6
|
+
import { SemanticAction } from './action/semanticAction';
|
|
7
7
|
import { SuggestedActions } from './action/suggestedActions';
|
|
8
8
|
import { ActivityEventNames } from './activityEventNames';
|
|
9
9
|
import { ActivityImportance } from './activityImportance';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { ActivityTypes } from './activityTypes';
|
|
11
|
+
import { Attachment } from './attachment/attachment';
|
|
12
|
+
import { AttachmentLayoutTypes } from './attachment/attachmentLayoutTypes';
|
|
12
13
|
import { ChannelAccount } from './conversation/channelAccount';
|
|
13
14
|
import { ConversationAccount } from './conversation/conversationAccount';
|
|
14
|
-
import { TextFormatTypes } from './textFormatTypes';
|
|
15
|
-
import { AttachmentLayoutTypes } from './attachment/attachmentLayoutTypes';
|
|
16
|
-
import { MessageReaction } from './messageReaction';
|
|
17
|
-
import { InputHints } from './inputHints';
|
|
18
|
-
import { Attachment } from './attachment/attachment';
|
|
19
|
-
import { Entity } from './entity/entity';
|
|
20
15
|
import { ConversationReference } from './conversation/conversationReference';
|
|
21
16
|
import { EndOfConversationCodes } from './conversation/endOfConversationCodes';
|
|
22
17
|
import { DeliveryModes } from './deliveryModes';
|
|
18
|
+
import { Entity } from './entity/entity';
|
|
19
|
+
import { InputHints } from './inputHints';
|
|
20
|
+
import { MessageReaction } from './messageReaction';
|
|
21
|
+
import { TextFormatTypes } from './textFormatTypes';
|
|
22
|
+
import { TextHighlight } from './textHighlight';
|
|
23
23
|
/**
|
|
24
24
|
* Zod schema for validating an Activity object.
|
|
25
25
|
*/
|
|
@@ -222,15 +222,15 @@ export declare const activityZodSchema: z.ZodObject<{
|
|
|
222
222
|
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
223
223
|
}, "strip", z.ZodTypeAny, {
|
|
224
224
|
contentType: string;
|
|
225
|
-
name?: string | undefined;
|
|
226
225
|
contentUrl?: string | undefined;
|
|
227
226
|
content?: unknown;
|
|
227
|
+
name?: string | undefined;
|
|
228
228
|
thumbnailUrl?: string | undefined;
|
|
229
229
|
}, {
|
|
230
230
|
contentType: string;
|
|
231
|
-
name?: string | undefined;
|
|
232
231
|
contentUrl?: string | undefined;
|
|
233
232
|
content?: unknown;
|
|
233
|
+
name?: string | undefined;
|
|
234
234
|
thumbnailUrl?: string | undefined;
|
|
235
235
|
}>, "many">>;
|
|
236
236
|
entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -419,12 +419,12 @@ export declare const activityZodSchema: z.ZodObject<{
|
|
|
419
419
|
type: string;
|
|
420
420
|
value?: unknown;
|
|
421
421
|
code?: string | undefined;
|
|
422
|
-
text?: string | undefined;
|
|
423
|
-
channelData?: any;
|
|
424
422
|
id?: string | undefined;
|
|
425
423
|
entities?: z.objectOutputType<{
|
|
426
424
|
type: z.ZodString;
|
|
427
425
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
426
|
+
text?: string | undefined;
|
|
427
|
+
channelData?: any;
|
|
428
428
|
name?: string | undefined;
|
|
429
429
|
locale?: string | undefined;
|
|
430
430
|
conversation?: {
|
|
@@ -499,9 +499,9 @@ export declare const activityZodSchema: z.ZodObject<{
|
|
|
499
499
|
} | undefined;
|
|
500
500
|
attachments?: {
|
|
501
501
|
contentType: string;
|
|
502
|
-
name?: string | undefined;
|
|
503
502
|
contentUrl?: string | undefined;
|
|
504
503
|
content?: unknown;
|
|
504
|
+
name?: string | undefined;
|
|
505
505
|
thumbnailUrl?: string | undefined;
|
|
506
506
|
}[] | undefined;
|
|
507
507
|
action?: string | undefined;
|
|
@@ -557,12 +557,12 @@ export declare const activityZodSchema: z.ZodObject<{
|
|
|
557
557
|
type: string;
|
|
558
558
|
value?: unknown;
|
|
559
559
|
code?: string | undefined;
|
|
560
|
-
text?: string | undefined;
|
|
561
|
-
channelData?: any;
|
|
562
560
|
id?: string | undefined;
|
|
563
561
|
entities?: z.objectInputType<{
|
|
564
562
|
type: z.ZodString;
|
|
565
563
|
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
564
|
+
text?: string | undefined;
|
|
565
|
+
channelData?: any;
|
|
566
566
|
name?: string | undefined;
|
|
567
567
|
locale?: string | undefined;
|
|
568
568
|
conversation?: {
|
|
@@ -637,9 +637,9 @@ export declare const activityZodSchema: z.ZodObject<{
|
|
|
637
637
|
} | undefined;
|
|
638
638
|
attachments?: {
|
|
639
639
|
contentType: string;
|
|
640
|
-
name?: string | undefined;
|
|
641
640
|
contentUrl?: string | undefined;
|
|
642
641
|
content?: unknown;
|
|
642
|
+
name?: string | undefined;
|
|
643
643
|
thumbnailUrl?: string | undefined;
|
|
644
644
|
}[] | undefined;
|
|
645
645
|
action?: string | undefined;
|
|
@@ -696,51 +696,189 @@ export declare const activityZodSchema: z.ZodObject<{
|
|
|
696
696
|
* Represents an activity in a conversation.
|
|
697
697
|
*/
|
|
698
698
|
export declare class Activity {
|
|
699
|
+
/**
|
|
700
|
+
* The type of the activity.
|
|
701
|
+
*/
|
|
699
702
|
type: ActivityTypes | string;
|
|
703
|
+
/**
|
|
704
|
+
* The text content of the activity.
|
|
705
|
+
*/
|
|
700
706
|
text?: string;
|
|
707
|
+
/**
|
|
708
|
+
* The unique identifier of the activity.
|
|
709
|
+
*/
|
|
701
710
|
id?: string;
|
|
711
|
+
/**
|
|
712
|
+
* The channel ID where the activity originated.
|
|
713
|
+
*/
|
|
702
714
|
channelId?: string;
|
|
715
|
+
/**
|
|
716
|
+
* The account of the sender of the activity.
|
|
717
|
+
*/
|
|
703
718
|
from?: ChannelAccount;
|
|
719
|
+
/**
|
|
720
|
+
* The timestamp of the activity.
|
|
721
|
+
*/
|
|
704
722
|
timestamp?: Date | string;
|
|
723
|
+
/**
|
|
724
|
+
* The local timestamp of the activity.
|
|
725
|
+
*/
|
|
705
726
|
localTimestamp?: Date | string;
|
|
727
|
+
/**
|
|
728
|
+
* The local timezone of the activity.
|
|
729
|
+
*/
|
|
706
730
|
localTimezone?: string;
|
|
731
|
+
/**
|
|
732
|
+
* The caller ID of the activity.
|
|
733
|
+
*/
|
|
707
734
|
callerId?: string;
|
|
735
|
+
/**
|
|
736
|
+
* The service URL of the activity.
|
|
737
|
+
*/
|
|
708
738
|
serviceUrl?: string;
|
|
739
|
+
/**
|
|
740
|
+
* The conversation account associated with the activity.
|
|
741
|
+
*/
|
|
709
742
|
conversation?: ConversationAccount;
|
|
743
|
+
/**
|
|
744
|
+
* The recipient of the activity.
|
|
745
|
+
*/
|
|
710
746
|
recipient?: ChannelAccount;
|
|
747
|
+
/**
|
|
748
|
+
* The text format of the activity.
|
|
749
|
+
*/
|
|
711
750
|
textFormat?: TextFormatTypes | string;
|
|
751
|
+
/**
|
|
752
|
+
* The attachment layout of the activity.
|
|
753
|
+
*/
|
|
712
754
|
attachmentLayout?: AttachmentLayoutTypes | string;
|
|
755
|
+
/**
|
|
756
|
+
* The members added to the conversation.
|
|
757
|
+
*/
|
|
713
758
|
membersAdded?: ChannelAccount[];
|
|
759
|
+
/**
|
|
760
|
+
* The members removed from the conversation.
|
|
761
|
+
*/
|
|
714
762
|
membersRemoved?: ChannelAccount[];
|
|
763
|
+
/**
|
|
764
|
+
* The reactions added to the activity.
|
|
765
|
+
*/
|
|
715
766
|
reactionsAdded?: MessageReaction[];
|
|
767
|
+
/**
|
|
768
|
+
* The reactions removed from the activity.
|
|
769
|
+
*/
|
|
716
770
|
reactionsRemoved?: MessageReaction[];
|
|
771
|
+
/**
|
|
772
|
+
* The topic name of the activity.
|
|
773
|
+
*/
|
|
717
774
|
topicName?: string;
|
|
775
|
+
/**
|
|
776
|
+
* Indicates whether the history is disclosed.
|
|
777
|
+
*/
|
|
718
778
|
historyDisclosed?: boolean;
|
|
779
|
+
/**
|
|
780
|
+
* The locale of the activity.
|
|
781
|
+
*/
|
|
719
782
|
locale?: string;
|
|
783
|
+
/**
|
|
784
|
+
* The speech text of the activity.
|
|
785
|
+
*/
|
|
720
786
|
speak?: string;
|
|
787
|
+
/**
|
|
788
|
+
* The input hint for the activity.
|
|
789
|
+
*/
|
|
721
790
|
inputHint?: InputHints | string;
|
|
791
|
+
/**
|
|
792
|
+
* The summary of the activity.
|
|
793
|
+
*/
|
|
722
794
|
summary?: string;
|
|
795
|
+
/**
|
|
796
|
+
* The suggested actions for the activity.
|
|
797
|
+
*/
|
|
723
798
|
suggestedActions?: SuggestedActions;
|
|
799
|
+
/**
|
|
800
|
+
* The attachments of the activity.
|
|
801
|
+
*/
|
|
724
802
|
attachments?: Attachment[];
|
|
803
|
+
/**
|
|
804
|
+
* The entities associated with the activity.
|
|
805
|
+
*/
|
|
725
806
|
entities?: Entity[];
|
|
807
|
+
/**
|
|
808
|
+
* The channel-specific data for the activity.
|
|
809
|
+
*/
|
|
726
810
|
channelData?: any;
|
|
811
|
+
/**
|
|
812
|
+
* The action associated with the activity.
|
|
813
|
+
*/
|
|
727
814
|
action?: string;
|
|
815
|
+
/**
|
|
816
|
+
* The ID of the activity being replied to.
|
|
817
|
+
*/
|
|
728
818
|
replyToId?: string;
|
|
819
|
+
/**
|
|
820
|
+
* The label for the activity.
|
|
821
|
+
*/
|
|
729
822
|
label?: string;
|
|
823
|
+
/**
|
|
824
|
+
* The value type of the activity.
|
|
825
|
+
*/
|
|
730
826
|
valueType?: string;
|
|
827
|
+
/**
|
|
828
|
+
* The value associated with the activity.
|
|
829
|
+
*/
|
|
731
830
|
value?: unknown;
|
|
831
|
+
/**
|
|
832
|
+
* The name of the activity event.
|
|
833
|
+
*/
|
|
732
834
|
name?: ActivityEventNames | string;
|
|
835
|
+
/**
|
|
836
|
+
* The conversation reference for the activity.
|
|
837
|
+
*/
|
|
733
838
|
relatesTo?: ConversationReference;
|
|
839
|
+
/**
|
|
840
|
+
* The end-of-conversation code for the activity.
|
|
841
|
+
*/
|
|
734
842
|
code?: EndOfConversationCodes | string;
|
|
843
|
+
/**
|
|
844
|
+
* The expiration time of the activity.
|
|
845
|
+
*/
|
|
735
846
|
expiration?: string | Date;
|
|
847
|
+
/**
|
|
848
|
+
* The importance of the activity.
|
|
849
|
+
*/
|
|
736
850
|
importance?: ActivityImportance | string;
|
|
851
|
+
/**
|
|
852
|
+
* The delivery mode of the activity.
|
|
853
|
+
*/
|
|
737
854
|
deliveryMode?: DeliveryModes | string;
|
|
855
|
+
/**
|
|
856
|
+
* The list of keywords to listen for in the activity.
|
|
857
|
+
*/
|
|
738
858
|
listenFor?: string[];
|
|
859
|
+
/**
|
|
860
|
+
* The text highlights in the activity.
|
|
861
|
+
*/
|
|
739
862
|
textHighlights?: TextHighlight[];
|
|
863
|
+
/**
|
|
864
|
+
* The semantic action associated with the activity.
|
|
865
|
+
*/
|
|
740
866
|
semanticAction?: SemanticAction;
|
|
867
|
+
/**
|
|
868
|
+
* The raw timestamp of the activity.
|
|
869
|
+
*/
|
|
741
870
|
rawTimestamp?: string;
|
|
871
|
+
/**
|
|
872
|
+
* The raw expiration time of the activity.
|
|
873
|
+
*/
|
|
742
874
|
rawExpiration?: string;
|
|
875
|
+
/**
|
|
876
|
+
* The raw local timestamp of the activity.
|
|
877
|
+
*/
|
|
743
878
|
rawLocalTimestamp?: string;
|
|
879
|
+
/**
|
|
880
|
+
* Additional properties of the activity.
|
|
881
|
+
*/
|
|
744
882
|
[x: string]: unknown;
|
|
745
883
|
/**
|
|
746
884
|
* Creates a new Activity instance.
|
|
@@ -791,6 +929,17 @@ export declare class Activity {
|
|
|
791
929
|
* @returns The list of mentions.
|
|
792
930
|
*/
|
|
793
931
|
private getMentions;
|
|
932
|
+
/**
|
|
933
|
+
* Normalizes mentions in the activity by removing mention tags and optionally removing recipient mention.
|
|
934
|
+
* @param removeMention Whether to remove the recipient mention from the activity.
|
|
935
|
+
*/
|
|
936
|
+
normalizeMentions(removeMention?: boolean): void;
|
|
937
|
+
/**
|
|
938
|
+
* Removes <at> </at> tags from the specified text.
|
|
939
|
+
* @param text The text to process.
|
|
940
|
+
* @returns The text with <at> </at> tags removed.
|
|
941
|
+
*/
|
|
942
|
+
private static removeAt;
|
|
794
943
|
/**
|
|
795
944
|
* Removes the mention text for a given ID.
|
|
796
945
|
* @param id The ID of the mention to remove.
|
package/dist/src/activity.js
CHANGED
|
@@ -5,26 +5,26 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.Activity = exports.activityZodSchema = void 0;
|
|
8
|
-
const zod_1 = require("zod");
|
|
9
8
|
const uuid_1 = require("uuid");
|
|
10
|
-
const
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
const semanticAction_1 = require("./action/semanticAction");
|
|
11
11
|
const suggestedActions_1 = require("./action/suggestedActions");
|
|
12
12
|
const activityEventNames_1 = require("./activityEventNames");
|
|
13
13
|
const activityImportance_1 = require("./activityImportance");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const activityTypes_1 = require("./activityTypes");
|
|
15
|
+
const attachment_1 = require("./attachment/attachment");
|
|
16
|
+
const attachmentLayoutTypes_1 = require("./attachment/attachmentLayoutTypes");
|
|
16
17
|
const channelAccount_1 = require("./conversation/channelAccount");
|
|
18
|
+
const channels_1 = require("./conversation/channels");
|
|
17
19
|
const conversationAccount_1 = require("./conversation/conversationAccount");
|
|
18
|
-
const textFormatTypes_1 = require("./textFormatTypes");
|
|
19
|
-
const attachmentLayoutTypes_1 = require("./attachment/attachmentLayoutTypes");
|
|
20
|
-
const messageReaction_1 = require("./messageReaction");
|
|
21
|
-
const inputHints_1 = require("./inputHints");
|
|
22
|
-
const attachment_1 = require("./attachment/attachment");
|
|
23
|
-
const entity_1 = require("./entity/entity");
|
|
24
20
|
const conversationReference_1 = require("./conversation/conversationReference");
|
|
25
21
|
const endOfConversationCodes_1 = require("./conversation/endOfConversationCodes");
|
|
26
22
|
const deliveryModes_1 = require("./deliveryModes");
|
|
27
|
-
const
|
|
23
|
+
const entity_1 = require("./entity/entity");
|
|
24
|
+
const inputHints_1 = require("./inputHints");
|
|
25
|
+
const messageReaction_1 = require("./messageReaction");
|
|
26
|
+
const textFormatTypes_1 = require("./textFormatTypes");
|
|
27
|
+
const textHighlight_1 = require("./textHighlight");
|
|
28
28
|
/**
|
|
29
29
|
* Zod schema for validating an Activity object.
|
|
30
30
|
*/
|
|
@@ -226,6 +226,85 @@ class Activity {
|
|
|
226
226
|
}
|
|
227
227
|
return result;
|
|
228
228
|
}
|
|
229
|
+
/**
|
|
230
|
+
* Normalizes mentions in the activity by removing mention tags and optionally removing recipient mention.
|
|
231
|
+
* @param removeMention Whether to remove the recipient mention from the activity.
|
|
232
|
+
*/
|
|
233
|
+
normalizeMentions(removeMention = false) {
|
|
234
|
+
var _a, _b;
|
|
235
|
+
if (this.type === activityTypes_1.ActivityTypes.Message) {
|
|
236
|
+
if (removeMention) {
|
|
237
|
+
// Strip recipient mention tags and text
|
|
238
|
+
this.removeRecipientMention();
|
|
239
|
+
// Strip entity.mention records for recipient id
|
|
240
|
+
if (this.entities !== undefined && ((_a = this.recipient) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
241
|
+
this.entities = this.entities.filter((entity) => {
|
|
242
|
+
var _a;
|
|
243
|
+
if (entity.type.toLowerCase() === 'mention') {
|
|
244
|
+
const mention = entity;
|
|
245
|
+
return mention.mentioned.id !== ((_a = this.recipient) === null || _a === void 0 ? void 0 : _a.id);
|
|
246
|
+
}
|
|
247
|
+
return true;
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
// Remove <at> </at> tags keeping the inner text
|
|
252
|
+
if (this.text) {
|
|
253
|
+
this.text = Activity.removeAt(this.text);
|
|
254
|
+
}
|
|
255
|
+
// Remove <at> </at> tags from mention records keeping the inner text
|
|
256
|
+
if (this.entities !== undefined) {
|
|
257
|
+
const mentions = this.getMentions(this);
|
|
258
|
+
for (const mention of mentions) {
|
|
259
|
+
if (mention.text) {
|
|
260
|
+
mention.text = (_b = Activity.removeAt(mention.text)) === null || _b === void 0 ? void 0 : _b.trim();
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Removes <at> </at> tags from the specified text.
|
|
268
|
+
* @param text The text to process.
|
|
269
|
+
* @returns The text with <at> </at> tags removed.
|
|
270
|
+
*/
|
|
271
|
+
static removeAt(text) {
|
|
272
|
+
if (!text) {
|
|
273
|
+
return text;
|
|
274
|
+
}
|
|
275
|
+
let foundTag;
|
|
276
|
+
do {
|
|
277
|
+
foundTag = false;
|
|
278
|
+
const iAtStart = text.toLowerCase().indexOf('<at');
|
|
279
|
+
if (iAtStart >= 0) {
|
|
280
|
+
const iAtEnd = text.indexOf('>', iAtStart);
|
|
281
|
+
if (iAtEnd > 0) {
|
|
282
|
+
const iAtClose = text.toLowerCase().indexOf('</at>', iAtEnd);
|
|
283
|
+
if (iAtClose > 0) {
|
|
284
|
+
// Replace </at>
|
|
285
|
+
let followingText = text.substring(iAtClose + 5);
|
|
286
|
+
// If first char of followingText is not whitespace, insert space
|
|
287
|
+
if (followingText.length > 0 && !(/\s/.test(followingText[0]))) {
|
|
288
|
+
followingText = ` ${followingText}`;
|
|
289
|
+
}
|
|
290
|
+
text = text.substring(0, iAtClose) + followingText;
|
|
291
|
+
// Get tag content (text between <at...> and </at>)
|
|
292
|
+
const tagContent = text.substring(iAtEnd + 1, iAtClose);
|
|
293
|
+
// Replace <at ...> with just the tag content
|
|
294
|
+
let prefixText = text.substring(0, iAtStart);
|
|
295
|
+
// If prefixText is not empty and doesn't end with whitespace, add a space
|
|
296
|
+
if (prefixText.length > 0 && !(/\s$/.test(prefixText))) {
|
|
297
|
+
prefixText += ' ';
|
|
298
|
+
}
|
|
299
|
+
text = prefixText + tagContent + followingText;
|
|
300
|
+
// We found one, try again, there may be more
|
|
301
|
+
foundTag = true;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
} while (foundTag);
|
|
306
|
+
return text;
|
|
307
|
+
}
|
|
229
308
|
/**
|
|
230
309
|
* Removes the mention text for a given ID.
|
|
231
310
|
* @param id The ID of the mention to remove.
|
package/dist/src/activity.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.js","sourceRoot":"","sources":["../../src/activity.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,+BAAiC;AACjC,mDAAuE;AACvE,gEAAuF;AACvF,6DAAsF;AACtF,6DAAsF;AACtF,mDAAuE;AACvE,4DAAiF;AACjF,kEAAuF;AACvF,4EAAsG;AACtG,uDAA6E;AAC7E,8EAA0G;AAC1G,uDAA6E;AAC7E,6CAA8D;AAC9D,wDAAyE;AACzE,4CAAyD;AACz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,CAAC;CACF;AArhBD,4BAqhBC"}
|
|
@@ -7,7 +7,13 @@ import { z } from 'zod';
|
|
|
7
7
|
* Enum representing activity event names.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum ActivityEventNames {
|
|
10
|
+
/**
|
|
11
|
+
* Event name for continuing a conversation.
|
|
12
|
+
*/
|
|
10
13
|
ContinueConversation = "ContinueConversation",
|
|
14
|
+
/**
|
|
15
|
+
* Event name for creating a new conversation.
|
|
16
|
+
*/
|
|
11
17
|
CreateConversation = "CreateConversation"
|
|
12
18
|
}
|
|
13
19
|
/**
|
|
@@ -11,7 +11,13 @@ const zod_1 = require("zod");
|
|
|
11
11
|
*/
|
|
12
12
|
var ActivityEventNames;
|
|
13
13
|
(function (ActivityEventNames) {
|
|
14
|
+
/**
|
|
15
|
+
* Event name for continuing a conversation.
|
|
16
|
+
*/
|
|
14
17
|
ActivityEventNames["ContinueConversation"] = "ContinueConversation";
|
|
18
|
+
/**
|
|
19
|
+
* Event name for creating a new conversation.
|
|
20
|
+
*/
|
|
15
21
|
ActivityEventNames["CreateConversation"] = "CreateConversation";
|
|
16
22
|
})(ActivityEventNames || (exports.ActivityEventNames = ActivityEventNames = {}));
|
|
17
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activityEventNames.js","sourceRoot":"","sources":["../../src/activityEventNames.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"activityEventNames.js","sourceRoot":"","sources":["../../src/activityEventNames.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC5B;;OAEG;IACH,mEAA6C,CAAA;IAE7C;;OAEG;IACH,+DAAyC,CAAA;AAC3C,CAAC,EAVW,kBAAkB,kCAAlB,kBAAkB,QAU7B;AAED;;GAEG;AACU,QAAA,2BAA2B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAAC,CAAA"}
|