@microsoft/agents-activity 0.1.49
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 +22 -0
- package/dist/src/action/actionTypes.d.ts +25 -0
- package/dist/src/action/actionTypes.js +30 -0
- package/dist/src/action/actionTypes.js.map +1 -0
- package/dist/src/action/cardAction.d.ts +74 -0
- package/dist/src/action/cardAction.js +23 -0
- package/dist/src/action/cardAction.js.map +1 -0
- package/dist/src/action/semanticAction.d.ts +52 -0
- package/dist/src/action/semanticAction.js +19 -0
- package/dist/src/action/semanticAction.js.map +1 -0
- package/dist/src/action/semanticActionStateTypes.d.ts +17 -0
- package/dist/src/action/semanticActionStateTypes.js +22 -0
- package/dist/src/action/semanticActionStateTypes.js.map +1 -0
- package/dist/src/action/suggestedActions.d.ts +77 -0
- package/dist/src/action/suggestedActions.js +17 -0
- package/dist/src/action/suggestedActions.js.map +1 -0
- package/dist/src/activity.d.ts +811 -0
- package/dist/src/activity.js +264 -0
- package/dist/src/activity.js.map +1 -0
- package/dist/src/activityEventNames.d.ts +16 -0
- package/dist/src/activityEventNames.js +21 -0
- package/dist/src/activityEventNames.js.map +1 -0
- package/dist/src/activityImportance.d.ts +17 -0
- package/dist/src/activityImportance.js +22 -0
- package/dist/src/activityImportance.js.map +1 -0
- package/dist/src/activityTypes.d.ts +33 -0
- package/dist/src/activityTypes.js +58 -0
- package/dist/src/activityTypes.js.map +1 -0
- package/dist/src/attachment/attachment.d.ts +37 -0
- package/dist/src/attachment/attachment.js +19 -0
- package/dist/src/attachment/attachment.js.map +1 -0
- package/dist/src/attachment/attachmentLayoutTypes.d.ts +16 -0
- package/dist/src/attachment/attachmentLayoutTypes.js +21 -0
- package/dist/src/attachment/attachmentLayoutTypes.js.map +1 -0
- package/dist/src/callerIdConstants.d.ts +21 -0
- package/dist/src/callerIdConstants.js +25 -0
- package/dist/src/callerIdConstants.js.map +1 -0
- package/dist/src/conversation/channelAccount.d.ts +38 -0
- package/dist/src/conversation/channelAccount.js +20 -0
- package/dist/src/conversation/channelAccount.js.map +1 -0
- package/dist/src/conversation/channels.d.ts +28 -0
- package/dist/src/conversation/channels.js +33 -0
- package/dist/src/conversation/channels.js.map +1 -0
- package/dist/src/conversation/conversationAccount.d.ts +50 -0
- package/dist/src/conversation/conversationAccount.js +23 -0
- package/dist/src/conversation/conversationAccount.js.map +1 -0
- package/dist/src/conversation/conversationReference.d.ts +152 -0
- package/dist/src/conversation/conversationReference.js +23 -0
- package/dist/src/conversation/conversationReference.js.map +1 -0
- package/dist/src/conversation/endOfConversationCodes.d.ts +20 -0
- package/dist/src/conversation/endOfConversationCodes.js +25 -0
- package/dist/src/conversation/endOfConversationCodes.js.map +1 -0
- package/dist/src/conversation/roleTypes.d.ts +17 -0
- package/dist/src/conversation/roleTypes.js +22 -0
- package/dist/src/conversation/roleTypes.js.map +1 -0
- package/dist/src/deliveryModes.d.ts +18 -0
- package/dist/src/deliveryModes.js +23 -0
- package/dist/src/deliveryModes.js.map +1 -0
- package/dist/src/entity/entity.d.ts +28 -0
- package/dist/src/entity/entity.js +15 -0
- package/dist/src/entity/entity.js.map +1 -0
- package/dist/src/entity/geoCoordinates.d.ts +29 -0
- package/dist/src/entity/geoCoordinates.js +7 -0
- package/dist/src/entity/geoCoordinates.js.map +1 -0
- package/dist/src/entity/mention.d.ts +22 -0
- package/dist/src/entity/mention.js +7 -0
- package/dist/src/entity/mention.js.map +1 -0
- package/dist/src/entity/place.d.ts +29 -0
- package/dist/src/entity/place.js +7 -0
- package/dist/src/entity/place.js.map +1 -0
- package/dist/src/entity/thing.d.ts +17 -0
- package/dist/src/entity/thing.js +7 -0
- package/dist/src/entity/thing.js.map +1 -0
- package/dist/src/expectedReplies.d.ts +14 -0
- package/dist/src/expectedReplies.js +7 -0
- package/dist/src/expectedReplies.js.map +1 -0
- package/dist/src/index.d.ts +38 -0
- package/dist/src/index.js +57 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/inputHints.d.ts +17 -0
- package/dist/src/inputHints.js +22 -0
- package/dist/src/inputHints.js.map +1 -0
- package/dist/src/invoke/adaptiveCardInvokeAction.d.ts +45 -0
- package/dist/src/invoke/adaptiveCardInvokeAction.js +18 -0
- package/dist/src/invoke/adaptiveCardInvokeAction.js.map +1 -0
- package/dist/src/messageReaction.d.ts +25 -0
- package/dist/src/messageReaction.js +16 -0
- package/dist/src/messageReaction.js.map +1 -0
- package/dist/src/messageReactionTypes.d.ts +16 -0
- package/dist/src/messageReactionTypes.js +21 -0
- package/dist/src/messageReactionTypes.js.map +1 -0
- package/dist/src/textFormatTypes.d.ts +17 -0
- package/dist/src/textFormatTypes.js +22 -0
- package/dist/src/textFormatTypes.js.map +1 -0
- package/dist/src/textHighlight.d.ts +31 -0
- package/dist/src/textHighlight.js +16 -0
- package/dist/src/textHighlight.js.map +1 -0
- package/package.json +44 -0
- package/src/action/actionTypes.ts +28 -0
- package/src/action/cardAction.ts +59 -0
- package/src/action/semanticAction.ts +35 -0
- package/src/action/semanticActionStateTypes.ts +20 -0
- package/src/action/suggestedActions.ts +29 -0
- package/src/activity.ts +334 -0
- package/src/activityEventNames.ts +19 -0
- package/src/activityImportance.ts +20 -0
- package/src/activityTypes.ts +56 -0
- package/src/attachment/attachment.ts +28 -0
- package/src/attachment/attachmentLayoutTypes.ts +19 -0
- package/src/callerIdConstants.ts +22 -0
- package/src/conversation/channelAccount.ts +29 -0
- package/src/conversation/channels.ts +29 -0
- package/src/conversation/conversationAccount.ts +35 -0
- package/src/conversation/conversationReference.ts +34 -0
- package/src/conversation/endOfConversationCodes.ts +23 -0
- package/src/conversation/roleTypes.ts +20 -0
- package/src/deliveryModes.ts +21 -0
- package/src/entity/entity.ts +27 -0
- package/src/entity/geoCoordinates.ts +30 -0
- package/src/entity/mention.ts +24 -0
- package/src/entity/place.ts +30 -0
- package/src/entity/thing.ts +18 -0
- package/src/expectedReplies.ts +16 -0
- package/src/index.ts +44 -0
- package/src/inputHints.ts +20 -0
- package/src/invoke/adaptiveCardInvokeAction.ts +38 -0
- package/src/messageReaction.ts +24 -0
- package/src/messageReactionTypes.ts +19 -0
- package/src/textFormatTypes.ts +20 -0
- package/src/textHighlight.ts +28 -0
|
@@ -0,0 +1,811 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
import { ActivityTypes } from './activityTypes';
|
|
7
|
+
import { SuggestedActions } from './action/suggestedActions';
|
|
8
|
+
import { ActivityEventNames } from './activityEventNames';
|
|
9
|
+
import { ActivityImportance } from './activityImportance';
|
|
10
|
+
import { TextHighlight } from './textHighlight';
|
|
11
|
+
import { SemanticAction } from './action/semanticAction';
|
|
12
|
+
import { ChannelAccount } from './conversation/channelAccount';
|
|
13
|
+
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
|
+
import { ConversationReference } from './conversation/conversationReference';
|
|
21
|
+
import { EndOfConversationCodes } from './conversation/endOfConversationCodes';
|
|
22
|
+
import { DeliveryModes } from './deliveryModes';
|
|
23
|
+
/**
|
|
24
|
+
* Zod schema for validating an Activity object.
|
|
25
|
+
*/
|
|
26
|
+
export declare const activityZodSchema: z.ZodObject<{
|
|
27
|
+
type: z.ZodUnion<[z.ZodEnum<["message", "contactRelationUpdate", "conversationUpdate", "typing", "endOfConversation", "event", "invoke", "invokeResponse", "deleteUserData", "messageUpdate", "messageDelete", "installationUpdate", "messageReaction", "suggestion", "trace", "handoff", "command", "commandResult", "delay"]>, z.ZodString]>;
|
|
28
|
+
text: z.ZodOptional<z.ZodString>;
|
|
29
|
+
id: z.ZodOptional<z.ZodString>;
|
|
30
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
31
|
+
from: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
id: z.ZodOptional<z.ZodString>;
|
|
33
|
+
name: z.ZodOptional<z.ZodString>;
|
|
34
|
+
aadObjectId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
|
|
36
|
+
properties: z.ZodOptional<z.ZodUnknown>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
id?: string | undefined;
|
|
39
|
+
name?: string | undefined;
|
|
40
|
+
aadObjectId?: string | undefined;
|
|
41
|
+
role?: string | undefined;
|
|
42
|
+
properties?: unknown;
|
|
43
|
+
}, {
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
name?: string | undefined;
|
|
46
|
+
aadObjectId?: string | undefined;
|
|
47
|
+
role?: string | undefined;
|
|
48
|
+
properties?: unknown;
|
|
49
|
+
}>>;
|
|
50
|
+
timestamp: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>]>;
|
|
51
|
+
localTimestamp: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
|
52
|
+
localTimezone: z.ZodOptional<z.ZodString>;
|
|
53
|
+
callerId: z.ZodOptional<z.ZodString>;
|
|
54
|
+
serviceUrl: z.ZodOptional<z.ZodString>;
|
|
55
|
+
conversation: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
isGroup: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
conversationType: z.ZodOptional<z.ZodString>;
|
|
58
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
name: z.ZodOptional<z.ZodString>;
|
|
61
|
+
aadObjectId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
|
|
63
|
+
properties: z.ZodOptional<z.ZodUnknown>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
id: string;
|
|
66
|
+
name?: string | undefined;
|
|
67
|
+
aadObjectId?: string | undefined;
|
|
68
|
+
role?: string | undefined;
|
|
69
|
+
properties?: unknown;
|
|
70
|
+
isGroup?: boolean | undefined;
|
|
71
|
+
conversationType?: string | undefined;
|
|
72
|
+
tenantId?: string | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
id: string;
|
|
75
|
+
name?: string | undefined;
|
|
76
|
+
aadObjectId?: string | undefined;
|
|
77
|
+
role?: string | undefined;
|
|
78
|
+
properties?: unknown;
|
|
79
|
+
isGroup?: boolean | undefined;
|
|
80
|
+
conversationType?: string | undefined;
|
|
81
|
+
tenantId?: string | undefined;
|
|
82
|
+
}>>;
|
|
83
|
+
recipient: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
id: z.ZodOptional<z.ZodString>;
|
|
85
|
+
name: z.ZodOptional<z.ZodString>;
|
|
86
|
+
aadObjectId: z.ZodOptional<z.ZodString>;
|
|
87
|
+
role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
|
|
88
|
+
properties: z.ZodOptional<z.ZodUnknown>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
id?: string | undefined;
|
|
91
|
+
name?: string | undefined;
|
|
92
|
+
aadObjectId?: string | undefined;
|
|
93
|
+
role?: string | undefined;
|
|
94
|
+
properties?: unknown;
|
|
95
|
+
}, {
|
|
96
|
+
id?: string | undefined;
|
|
97
|
+
name?: string | undefined;
|
|
98
|
+
aadObjectId?: string | undefined;
|
|
99
|
+
role?: string | undefined;
|
|
100
|
+
properties?: unknown;
|
|
101
|
+
}>>;
|
|
102
|
+
textFormat: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["markdown", "plain", "xml"]>, z.ZodString]>>;
|
|
103
|
+
attachmentLayout: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["list", "carousel"]>, z.ZodString]>>;
|
|
104
|
+
membersAdded: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
|
+
id: z.ZodOptional<z.ZodString>;
|
|
106
|
+
name: z.ZodOptional<z.ZodString>;
|
|
107
|
+
aadObjectId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
|
|
109
|
+
properties: z.ZodOptional<z.ZodUnknown>;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
id?: string | undefined;
|
|
112
|
+
name?: string | undefined;
|
|
113
|
+
aadObjectId?: string | undefined;
|
|
114
|
+
role?: string | undefined;
|
|
115
|
+
properties?: unknown;
|
|
116
|
+
}, {
|
|
117
|
+
id?: string | undefined;
|
|
118
|
+
name?: string | undefined;
|
|
119
|
+
aadObjectId?: string | undefined;
|
|
120
|
+
role?: string | undefined;
|
|
121
|
+
properties?: unknown;
|
|
122
|
+
}>, "many">>;
|
|
123
|
+
membersRemoved: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
124
|
+
id: z.ZodOptional<z.ZodString>;
|
|
125
|
+
name: z.ZodOptional<z.ZodString>;
|
|
126
|
+
aadObjectId: z.ZodOptional<z.ZodString>;
|
|
127
|
+
role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
|
|
128
|
+
properties: z.ZodOptional<z.ZodUnknown>;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
id?: string | undefined;
|
|
131
|
+
name?: string | undefined;
|
|
132
|
+
aadObjectId?: string | undefined;
|
|
133
|
+
role?: string | undefined;
|
|
134
|
+
properties?: unknown;
|
|
135
|
+
}, {
|
|
136
|
+
id?: string | undefined;
|
|
137
|
+
name?: string | undefined;
|
|
138
|
+
aadObjectId?: string | undefined;
|
|
139
|
+
role?: string | undefined;
|
|
140
|
+
properties?: unknown;
|
|
141
|
+
}>, "many">>;
|
|
142
|
+
reactionsAdded: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
143
|
+
type: z.ZodUnion<[z.ZodEnum<["like", "plusOne"]>, z.ZodString]>;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
type: string;
|
|
146
|
+
}, {
|
|
147
|
+
type: string;
|
|
148
|
+
}>, "many">>;
|
|
149
|
+
reactionsRemoved: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
|
+
type: z.ZodUnion<[z.ZodEnum<["like", "plusOne"]>, z.ZodString]>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
type: string;
|
|
153
|
+
}, {
|
|
154
|
+
type: string;
|
|
155
|
+
}>, "many">>;
|
|
156
|
+
topicName: z.ZodOptional<z.ZodString>;
|
|
157
|
+
historyDisclosed: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
159
|
+
speak: z.ZodOptional<z.ZodString>;
|
|
160
|
+
inputHint: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["acceptingInput", "ignoringInput", "expectingInput"]>, z.ZodString]>>;
|
|
161
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
162
|
+
suggestedActions: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
to: z.ZodArray<z.ZodString, "many">;
|
|
164
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
165
|
+
type: z.ZodUnion<[z.ZodEnum<["openUrl", "imBack", "postBack", "playAudio", "showImage", "downloadFile", "signin", "call", "messageBack", "openApp"]>, z.ZodString]>;
|
|
166
|
+
title: z.ZodString;
|
|
167
|
+
image: z.ZodOptional<z.ZodString>;
|
|
168
|
+
text: z.ZodOptional<z.ZodString>;
|
|
169
|
+
displayText: z.ZodOptional<z.ZodString>;
|
|
170
|
+
value: z.ZodOptional<z.ZodAny>;
|
|
171
|
+
channelData: z.ZodOptional<z.ZodUnknown>;
|
|
172
|
+
imageAltText: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
type: string;
|
|
175
|
+
title: string;
|
|
176
|
+
value?: any;
|
|
177
|
+
image?: string | undefined;
|
|
178
|
+
text?: string | undefined;
|
|
179
|
+
displayText?: string | undefined;
|
|
180
|
+
channelData?: unknown;
|
|
181
|
+
imageAltText?: string | undefined;
|
|
182
|
+
}, {
|
|
183
|
+
type: string;
|
|
184
|
+
title: string;
|
|
185
|
+
value?: any;
|
|
186
|
+
image?: string | undefined;
|
|
187
|
+
text?: string | undefined;
|
|
188
|
+
displayText?: string | undefined;
|
|
189
|
+
channelData?: unknown;
|
|
190
|
+
imageAltText?: string | undefined;
|
|
191
|
+
}>, "many">;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
to: string[];
|
|
194
|
+
actions: {
|
|
195
|
+
type: string;
|
|
196
|
+
title: string;
|
|
197
|
+
value?: any;
|
|
198
|
+
image?: string | undefined;
|
|
199
|
+
text?: string | undefined;
|
|
200
|
+
displayText?: string | undefined;
|
|
201
|
+
channelData?: unknown;
|
|
202
|
+
imageAltText?: string | undefined;
|
|
203
|
+
}[];
|
|
204
|
+
}, {
|
|
205
|
+
to: string[];
|
|
206
|
+
actions: {
|
|
207
|
+
type: string;
|
|
208
|
+
title: string;
|
|
209
|
+
value?: any;
|
|
210
|
+
image?: string | undefined;
|
|
211
|
+
text?: string | undefined;
|
|
212
|
+
displayText?: string | undefined;
|
|
213
|
+
channelData?: unknown;
|
|
214
|
+
imageAltText?: string | undefined;
|
|
215
|
+
}[];
|
|
216
|
+
}>>;
|
|
217
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
|
+
contentType: z.ZodString;
|
|
219
|
+
contentUrl: z.ZodOptional<z.ZodString>;
|
|
220
|
+
content: z.ZodOptional<z.ZodUnknown>;
|
|
221
|
+
name: z.ZodOptional<z.ZodString>;
|
|
222
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
contentType: string;
|
|
225
|
+
contentUrl?: string | undefined;
|
|
226
|
+
content?: unknown;
|
|
227
|
+
name?: string | undefined;
|
|
228
|
+
thumbnailUrl?: string | undefined;
|
|
229
|
+
}, {
|
|
230
|
+
contentType: string;
|
|
231
|
+
contentUrl?: string | undefined;
|
|
232
|
+
content?: unknown;
|
|
233
|
+
name?: string | undefined;
|
|
234
|
+
thumbnailUrl?: string | undefined;
|
|
235
|
+
}>, "many">>;
|
|
236
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
237
|
+
type: z.ZodString;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
type: string;
|
|
240
|
+
}, {
|
|
241
|
+
type: string;
|
|
242
|
+
}>, "many">>;
|
|
243
|
+
channelData: z.ZodOptional<z.ZodAny>;
|
|
244
|
+
action: z.ZodOptional<z.ZodString>;
|
|
245
|
+
replyToId: z.ZodOptional<z.ZodString>;
|
|
246
|
+
label: z.ZodOptional<z.ZodString>;
|
|
247
|
+
valueType: z.ZodOptional<z.ZodString>;
|
|
248
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
249
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["ContinueConversation", "CreateConversation"]>, z.ZodString]>>;
|
|
250
|
+
relatesTo: z.ZodOptional<z.ZodObject<{
|
|
251
|
+
activityId: z.ZodOptional<z.ZodString>;
|
|
252
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
253
|
+
id: z.ZodOptional<z.ZodString>;
|
|
254
|
+
name: z.ZodOptional<z.ZodString>;
|
|
255
|
+
aadObjectId: z.ZodOptional<z.ZodString>;
|
|
256
|
+
role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
|
|
257
|
+
properties: z.ZodOptional<z.ZodUnknown>;
|
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
|
259
|
+
id?: string | undefined;
|
|
260
|
+
name?: string | undefined;
|
|
261
|
+
aadObjectId?: string | undefined;
|
|
262
|
+
role?: string | undefined;
|
|
263
|
+
properties?: unknown;
|
|
264
|
+
}, {
|
|
265
|
+
id?: string | undefined;
|
|
266
|
+
name?: string | undefined;
|
|
267
|
+
aadObjectId?: string | undefined;
|
|
268
|
+
role?: string | undefined;
|
|
269
|
+
properties?: unknown;
|
|
270
|
+
}>>;
|
|
271
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
272
|
+
bot: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
273
|
+
id: z.ZodOptional<z.ZodString>;
|
|
274
|
+
name: z.ZodOptional<z.ZodString>;
|
|
275
|
+
aadObjectId: z.ZodOptional<z.ZodString>;
|
|
276
|
+
role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
|
|
277
|
+
properties: z.ZodOptional<z.ZodUnknown>;
|
|
278
|
+
}, "strip", z.ZodTypeAny, {
|
|
279
|
+
id?: string | undefined;
|
|
280
|
+
name?: string | undefined;
|
|
281
|
+
aadObjectId?: string | undefined;
|
|
282
|
+
role?: string | undefined;
|
|
283
|
+
properties?: unknown;
|
|
284
|
+
}, {
|
|
285
|
+
id?: string | undefined;
|
|
286
|
+
name?: string | undefined;
|
|
287
|
+
aadObjectId?: string | undefined;
|
|
288
|
+
role?: string | undefined;
|
|
289
|
+
properties?: unknown;
|
|
290
|
+
}>>>;
|
|
291
|
+
conversation: z.ZodObject<{
|
|
292
|
+
isGroup: z.ZodOptional<z.ZodBoolean>;
|
|
293
|
+
conversationType: z.ZodOptional<z.ZodString>;
|
|
294
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
295
|
+
id: z.ZodString;
|
|
296
|
+
name: z.ZodOptional<z.ZodString>;
|
|
297
|
+
aadObjectId: z.ZodOptional<z.ZodString>;
|
|
298
|
+
role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
|
|
299
|
+
properties: z.ZodOptional<z.ZodUnknown>;
|
|
300
|
+
}, "strip", z.ZodTypeAny, {
|
|
301
|
+
id: string;
|
|
302
|
+
name?: string | undefined;
|
|
303
|
+
aadObjectId?: string | undefined;
|
|
304
|
+
role?: string | undefined;
|
|
305
|
+
properties?: unknown;
|
|
306
|
+
isGroup?: boolean | undefined;
|
|
307
|
+
conversationType?: string | undefined;
|
|
308
|
+
tenantId?: string | undefined;
|
|
309
|
+
}, {
|
|
310
|
+
id: string;
|
|
311
|
+
name?: string | undefined;
|
|
312
|
+
aadObjectId?: string | undefined;
|
|
313
|
+
role?: string | undefined;
|
|
314
|
+
properties?: unknown;
|
|
315
|
+
isGroup?: boolean | undefined;
|
|
316
|
+
conversationType?: string | undefined;
|
|
317
|
+
tenantId?: string | undefined;
|
|
318
|
+
}>;
|
|
319
|
+
channelId: z.ZodString;
|
|
320
|
+
serviceUrl: z.ZodOptional<z.ZodString>;
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
conversation: {
|
|
323
|
+
id: string;
|
|
324
|
+
name?: string | undefined;
|
|
325
|
+
aadObjectId?: string | undefined;
|
|
326
|
+
role?: string | undefined;
|
|
327
|
+
properties?: unknown;
|
|
328
|
+
isGroup?: boolean | undefined;
|
|
329
|
+
conversationType?: string | undefined;
|
|
330
|
+
tenantId?: string | undefined;
|
|
331
|
+
};
|
|
332
|
+
channelId: string;
|
|
333
|
+
user?: {
|
|
334
|
+
id?: string | undefined;
|
|
335
|
+
name?: string | undefined;
|
|
336
|
+
aadObjectId?: string | undefined;
|
|
337
|
+
role?: string | undefined;
|
|
338
|
+
properties?: unknown;
|
|
339
|
+
} | undefined;
|
|
340
|
+
bot?: {
|
|
341
|
+
id?: string | undefined;
|
|
342
|
+
name?: string | undefined;
|
|
343
|
+
aadObjectId?: string | undefined;
|
|
344
|
+
role?: string | undefined;
|
|
345
|
+
properties?: unknown;
|
|
346
|
+
} | null | undefined;
|
|
347
|
+
activityId?: string | undefined;
|
|
348
|
+
locale?: string | undefined;
|
|
349
|
+
serviceUrl?: string | undefined;
|
|
350
|
+
}, {
|
|
351
|
+
conversation: {
|
|
352
|
+
id: string;
|
|
353
|
+
name?: string | undefined;
|
|
354
|
+
aadObjectId?: string | undefined;
|
|
355
|
+
role?: string | undefined;
|
|
356
|
+
properties?: unknown;
|
|
357
|
+
isGroup?: boolean | undefined;
|
|
358
|
+
conversationType?: string | undefined;
|
|
359
|
+
tenantId?: string | undefined;
|
|
360
|
+
};
|
|
361
|
+
channelId: string;
|
|
362
|
+
user?: {
|
|
363
|
+
id?: string | undefined;
|
|
364
|
+
name?: string | undefined;
|
|
365
|
+
aadObjectId?: string | undefined;
|
|
366
|
+
role?: string | undefined;
|
|
367
|
+
properties?: unknown;
|
|
368
|
+
} | undefined;
|
|
369
|
+
bot?: {
|
|
370
|
+
id?: string | undefined;
|
|
371
|
+
name?: string | undefined;
|
|
372
|
+
aadObjectId?: string | undefined;
|
|
373
|
+
role?: string | undefined;
|
|
374
|
+
properties?: unknown;
|
|
375
|
+
} | null | undefined;
|
|
376
|
+
activityId?: string | undefined;
|
|
377
|
+
locale?: string | undefined;
|
|
378
|
+
serviceUrl?: string | undefined;
|
|
379
|
+
}>>;
|
|
380
|
+
code: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["unknown", "completedSuccessfully", "userCancelled", "botTimedOut", "botIssuedInvalidMessage", "channelFailed"]>, z.ZodString]>>;
|
|
381
|
+
expiration: z.ZodOptional<z.ZodString>;
|
|
382
|
+
importance: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["low", "normal", "high"]>, z.ZodString]>>;
|
|
383
|
+
deliveryMode: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["normal", "notification", "expectReplies", "ephemeral"]>, z.ZodString]>>;
|
|
384
|
+
listenFor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
385
|
+
textHighlights: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
386
|
+
text: z.ZodString;
|
|
387
|
+
occurrence: z.ZodNumber;
|
|
388
|
+
}, "strip", z.ZodTypeAny, {
|
|
389
|
+
text: string;
|
|
390
|
+
occurrence: number;
|
|
391
|
+
}, {
|
|
392
|
+
text: string;
|
|
393
|
+
occurrence: number;
|
|
394
|
+
}>, "many">>;
|
|
395
|
+
semanticAction: z.ZodOptional<z.ZodObject<{
|
|
396
|
+
id: z.ZodString;
|
|
397
|
+
state: z.ZodUnion<[z.ZodEnum<["start", "continue", "done"]>, z.ZodString]>;
|
|
398
|
+
entities: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
399
|
+
type: z.ZodString;
|
|
400
|
+
}, "strip", z.ZodTypeAny, {
|
|
401
|
+
type: string;
|
|
402
|
+
}, {
|
|
403
|
+
type: string;
|
|
404
|
+
}>>;
|
|
405
|
+
}, "strip", z.ZodTypeAny, {
|
|
406
|
+
id: string;
|
|
407
|
+
state: string;
|
|
408
|
+
entities: Record<string, {
|
|
409
|
+
type: string;
|
|
410
|
+
}>;
|
|
411
|
+
}, {
|
|
412
|
+
id: string;
|
|
413
|
+
state: string;
|
|
414
|
+
entities: Record<string, {
|
|
415
|
+
type: string;
|
|
416
|
+
}>;
|
|
417
|
+
}>>;
|
|
418
|
+
}, "strip", z.ZodTypeAny, {
|
|
419
|
+
type: string;
|
|
420
|
+
value?: unknown;
|
|
421
|
+
code?: string | undefined;
|
|
422
|
+
text?: string | undefined;
|
|
423
|
+
channelData?: any;
|
|
424
|
+
id?: string | undefined;
|
|
425
|
+
entities?: {
|
|
426
|
+
type: string;
|
|
427
|
+
}[] | undefined;
|
|
428
|
+
name?: string | undefined;
|
|
429
|
+
locale?: string | undefined;
|
|
430
|
+
conversation?: {
|
|
431
|
+
id: string;
|
|
432
|
+
name?: string | undefined;
|
|
433
|
+
aadObjectId?: string | undefined;
|
|
434
|
+
role?: string | undefined;
|
|
435
|
+
properties?: unknown;
|
|
436
|
+
isGroup?: boolean | undefined;
|
|
437
|
+
conversationType?: string | undefined;
|
|
438
|
+
tenantId?: string | undefined;
|
|
439
|
+
} | undefined;
|
|
440
|
+
channelId?: string | undefined;
|
|
441
|
+
serviceUrl?: string | undefined;
|
|
442
|
+
from?: {
|
|
443
|
+
id?: string | undefined;
|
|
444
|
+
name?: string | undefined;
|
|
445
|
+
aadObjectId?: string | undefined;
|
|
446
|
+
role?: string | undefined;
|
|
447
|
+
properties?: unknown;
|
|
448
|
+
} | undefined;
|
|
449
|
+
timestamp?: string | Date | undefined;
|
|
450
|
+
localTimestamp?: Date | undefined;
|
|
451
|
+
localTimezone?: string | undefined;
|
|
452
|
+
callerId?: string | undefined;
|
|
453
|
+
recipient?: {
|
|
454
|
+
id?: string | undefined;
|
|
455
|
+
name?: string | undefined;
|
|
456
|
+
aadObjectId?: string | undefined;
|
|
457
|
+
role?: string | undefined;
|
|
458
|
+
properties?: unknown;
|
|
459
|
+
} | undefined;
|
|
460
|
+
textFormat?: string | undefined;
|
|
461
|
+
attachmentLayout?: string | undefined;
|
|
462
|
+
membersAdded?: {
|
|
463
|
+
id?: string | undefined;
|
|
464
|
+
name?: string | undefined;
|
|
465
|
+
aadObjectId?: string | undefined;
|
|
466
|
+
role?: string | undefined;
|
|
467
|
+
properties?: unknown;
|
|
468
|
+
}[] | undefined;
|
|
469
|
+
membersRemoved?: {
|
|
470
|
+
id?: string | undefined;
|
|
471
|
+
name?: string | undefined;
|
|
472
|
+
aadObjectId?: string | undefined;
|
|
473
|
+
role?: string | undefined;
|
|
474
|
+
properties?: unknown;
|
|
475
|
+
}[] | undefined;
|
|
476
|
+
reactionsAdded?: {
|
|
477
|
+
type: string;
|
|
478
|
+
}[] | undefined;
|
|
479
|
+
reactionsRemoved?: {
|
|
480
|
+
type: string;
|
|
481
|
+
}[] | undefined;
|
|
482
|
+
topicName?: string | undefined;
|
|
483
|
+
historyDisclosed?: boolean | undefined;
|
|
484
|
+
speak?: string | undefined;
|
|
485
|
+
inputHint?: string | undefined;
|
|
486
|
+
summary?: string | undefined;
|
|
487
|
+
suggestedActions?: {
|
|
488
|
+
to: string[];
|
|
489
|
+
actions: {
|
|
490
|
+
type: string;
|
|
491
|
+
title: string;
|
|
492
|
+
value?: any;
|
|
493
|
+
image?: string | undefined;
|
|
494
|
+
text?: string | undefined;
|
|
495
|
+
displayText?: string | undefined;
|
|
496
|
+
channelData?: unknown;
|
|
497
|
+
imageAltText?: string | undefined;
|
|
498
|
+
}[];
|
|
499
|
+
} | undefined;
|
|
500
|
+
attachments?: {
|
|
501
|
+
contentType: string;
|
|
502
|
+
contentUrl?: string | undefined;
|
|
503
|
+
content?: unknown;
|
|
504
|
+
name?: string | undefined;
|
|
505
|
+
thumbnailUrl?: string | undefined;
|
|
506
|
+
}[] | undefined;
|
|
507
|
+
action?: string | undefined;
|
|
508
|
+
replyToId?: string | undefined;
|
|
509
|
+
label?: string | undefined;
|
|
510
|
+
valueType?: string | undefined;
|
|
511
|
+
relatesTo?: {
|
|
512
|
+
conversation: {
|
|
513
|
+
id: string;
|
|
514
|
+
name?: string | undefined;
|
|
515
|
+
aadObjectId?: string | undefined;
|
|
516
|
+
role?: string | undefined;
|
|
517
|
+
properties?: unknown;
|
|
518
|
+
isGroup?: boolean | undefined;
|
|
519
|
+
conversationType?: string | undefined;
|
|
520
|
+
tenantId?: string | undefined;
|
|
521
|
+
};
|
|
522
|
+
channelId: string;
|
|
523
|
+
user?: {
|
|
524
|
+
id?: string | undefined;
|
|
525
|
+
name?: string | undefined;
|
|
526
|
+
aadObjectId?: string | undefined;
|
|
527
|
+
role?: string | undefined;
|
|
528
|
+
properties?: unknown;
|
|
529
|
+
} | undefined;
|
|
530
|
+
bot?: {
|
|
531
|
+
id?: string | undefined;
|
|
532
|
+
name?: string | undefined;
|
|
533
|
+
aadObjectId?: string | undefined;
|
|
534
|
+
role?: string | undefined;
|
|
535
|
+
properties?: unknown;
|
|
536
|
+
} | null | undefined;
|
|
537
|
+
activityId?: string | undefined;
|
|
538
|
+
locale?: string | undefined;
|
|
539
|
+
serviceUrl?: string | undefined;
|
|
540
|
+
} | undefined;
|
|
541
|
+
expiration?: string | undefined;
|
|
542
|
+
importance?: string | undefined;
|
|
543
|
+
deliveryMode?: string | undefined;
|
|
544
|
+
listenFor?: string[] | undefined;
|
|
545
|
+
textHighlights?: {
|
|
546
|
+
text: string;
|
|
547
|
+
occurrence: number;
|
|
548
|
+
}[] | undefined;
|
|
549
|
+
semanticAction?: {
|
|
550
|
+
id: string;
|
|
551
|
+
state: string;
|
|
552
|
+
entities: Record<string, {
|
|
553
|
+
type: string;
|
|
554
|
+
}>;
|
|
555
|
+
} | undefined;
|
|
556
|
+
}, {
|
|
557
|
+
type: string;
|
|
558
|
+
value?: unknown;
|
|
559
|
+
code?: string | undefined;
|
|
560
|
+
text?: string | undefined;
|
|
561
|
+
channelData?: any;
|
|
562
|
+
id?: string | undefined;
|
|
563
|
+
entities?: {
|
|
564
|
+
type: string;
|
|
565
|
+
}[] | undefined;
|
|
566
|
+
name?: string | undefined;
|
|
567
|
+
locale?: string | undefined;
|
|
568
|
+
conversation?: {
|
|
569
|
+
id: string;
|
|
570
|
+
name?: string | undefined;
|
|
571
|
+
aadObjectId?: string | undefined;
|
|
572
|
+
role?: string | undefined;
|
|
573
|
+
properties?: unknown;
|
|
574
|
+
isGroup?: boolean | undefined;
|
|
575
|
+
conversationType?: string | undefined;
|
|
576
|
+
tenantId?: string | undefined;
|
|
577
|
+
} | undefined;
|
|
578
|
+
channelId?: string | undefined;
|
|
579
|
+
serviceUrl?: string | undefined;
|
|
580
|
+
from?: {
|
|
581
|
+
id?: string | undefined;
|
|
582
|
+
name?: string | undefined;
|
|
583
|
+
aadObjectId?: string | undefined;
|
|
584
|
+
role?: string | undefined;
|
|
585
|
+
properties?: unknown;
|
|
586
|
+
} | undefined;
|
|
587
|
+
timestamp?: string | undefined;
|
|
588
|
+
localTimestamp?: string | undefined;
|
|
589
|
+
localTimezone?: string | undefined;
|
|
590
|
+
callerId?: string | undefined;
|
|
591
|
+
recipient?: {
|
|
592
|
+
id?: string | undefined;
|
|
593
|
+
name?: string | undefined;
|
|
594
|
+
aadObjectId?: string | undefined;
|
|
595
|
+
role?: string | undefined;
|
|
596
|
+
properties?: unknown;
|
|
597
|
+
} | undefined;
|
|
598
|
+
textFormat?: string | undefined;
|
|
599
|
+
attachmentLayout?: string | undefined;
|
|
600
|
+
membersAdded?: {
|
|
601
|
+
id?: string | undefined;
|
|
602
|
+
name?: string | undefined;
|
|
603
|
+
aadObjectId?: string | undefined;
|
|
604
|
+
role?: string | undefined;
|
|
605
|
+
properties?: unknown;
|
|
606
|
+
}[] | undefined;
|
|
607
|
+
membersRemoved?: {
|
|
608
|
+
id?: string | undefined;
|
|
609
|
+
name?: string | undefined;
|
|
610
|
+
aadObjectId?: string | undefined;
|
|
611
|
+
role?: string | undefined;
|
|
612
|
+
properties?: unknown;
|
|
613
|
+
}[] | undefined;
|
|
614
|
+
reactionsAdded?: {
|
|
615
|
+
type: string;
|
|
616
|
+
}[] | undefined;
|
|
617
|
+
reactionsRemoved?: {
|
|
618
|
+
type: string;
|
|
619
|
+
}[] | undefined;
|
|
620
|
+
topicName?: string | undefined;
|
|
621
|
+
historyDisclosed?: boolean | undefined;
|
|
622
|
+
speak?: string | undefined;
|
|
623
|
+
inputHint?: string | undefined;
|
|
624
|
+
summary?: string | undefined;
|
|
625
|
+
suggestedActions?: {
|
|
626
|
+
to: string[];
|
|
627
|
+
actions: {
|
|
628
|
+
type: string;
|
|
629
|
+
title: string;
|
|
630
|
+
value?: any;
|
|
631
|
+
image?: string | undefined;
|
|
632
|
+
text?: string | undefined;
|
|
633
|
+
displayText?: string | undefined;
|
|
634
|
+
channelData?: unknown;
|
|
635
|
+
imageAltText?: string | undefined;
|
|
636
|
+
}[];
|
|
637
|
+
} | undefined;
|
|
638
|
+
attachments?: {
|
|
639
|
+
contentType: string;
|
|
640
|
+
contentUrl?: string | undefined;
|
|
641
|
+
content?: unknown;
|
|
642
|
+
name?: string | undefined;
|
|
643
|
+
thumbnailUrl?: string | undefined;
|
|
644
|
+
}[] | undefined;
|
|
645
|
+
action?: string | undefined;
|
|
646
|
+
replyToId?: string | undefined;
|
|
647
|
+
label?: string | undefined;
|
|
648
|
+
valueType?: string | undefined;
|
|
649
|
+
relatesTo?: {
|
|
650
|
+
conversation: {
|
|
651
|
+
id: string;
|
|
652
|
+
name?: string | undefined;
|
|
653
|
+
aadObjectId?: string | undefined;
|
|
654
|
+
role?: string | undefined;
|
|
655
|
+
properties?: unknown;
|
|
656
|
+
isGroup?: boolean | undefined;
|
|
657
|
+
conversationType?: string | undefined;
|
|
658
|
+
tenantId?: string | undefined;
|
|
659
|
+
};
|
|
660
|
+
channelId: string;
|
|
661
|
+
user?: {
|
|
662
|
+
id?: string | undefined;
|
|
663
|
+
name?: string | undefined;
|
|
664
|
+
aadObjectId?: string | undefined;
|
|
665
|
+
role?: string | undefined;
|
|
666
|
+
properties?: unknown;
|
|
667
|
+
} | undefined;
|
|
668
|
+
bot?: {
|
|
669
|
+
id?: string | undefined;
|
|
670
|
+
name?: string | undefined;
|
|
671
|
+
aadObjectId?: string | undefined;
|
|
672
|
+
role?: string | undefined;
|
|
673
|
+
properties?: unknown;
|
|
674
|
+
} | null | undefined;
|
|
675
|
+
activityId?: string | undefined;
|
|
676
|
+
locale?: string | undefined;
|
|
677
|
+
serviceUrl?: string | undefined;
|
|
678
|
+
} | undefined;
|
|
679
|
+
expiration?: string | undefined;
|
|
680
|
+
importance?: string | undefined;
|
|
681
|
+
deliveryMode?: string | undefined;
|
|
682
|
+
listenFor?: string[] | undefined;
|
|
683
|
+
textHighlights?: {
|
|
684
|
+
text: string;
|
|
685
|
+
occurrence: number;
|
|
686
|
+
}[] | undefined;
|
|
687
|
+
semanticAction?: {
|
|
688
|
+
id: string;
|
|
689
|
+
state: string;
|
|
690
|
+
entities: Record<string, {
|
|
691
|
+
type: string;
|
|
692
|
+
}>;
|
|
693
|
+
} | undefined;
|
|
694
|
+
}>;
|
|
695
|
+
/**
|
|
696
|
+
* Represents an activity in a conversation.
|
|
697
|
+
*/
|
|
698
|
+
export declare class Activity {
|
|
699
|
+
type: ActivityTypes | string;
|
|
700
|
+
text?: string;
|
|
701
|
+
id?: string;
|
|
702
|
+
channelId?: string;
|
|
703
|
+
from?: ChannelAccount;
|
|
704
|
+
timestamp?: Date | string;
|
|
705
|
+
localTimestamp?: Date | string;
|
|
706
|
+
localTimezone?: string;
|
|
707
|
+
callerId?: string;
|
|
708
|
+
serviceUrl?: string;
|
|
709
|
+
conversation?: ConversationAccount;
|
|
710
|
+
recipient?: ChannelAccount;
|
|
711
|
+
textFormat?: TextFormatTypes | string;
|
|
712
|
+
attachmentLayout?: AttachmentLayoutTypes | string;
|
|
713
|
+
membersAdded?: ChannelAccount[];
|
|
714
|
+
membersRemoved?: ChannelAccount[];
|
|
715
|
+
reactionsAdded?: MessageReaction[];
|
|
716
|
+
reactionsRemoved?: MessageReaction[];
|
|
717
|
+
topicName?: string;
|
|
718
|
+
historyDisclosed?: boolean;
|
|
719
|
+
locale?: string;
|
|
720
|
+
speak?: string;
|
|
721
|
+
inputHint?: InputHints | string;
|
|
722
|
+
summary?: string;
|
|
723
|
+
suggestedActions?: SuggestedActions;
|
|
724
|
+
attachments?: Attachment[];
|
|
725
|
+
entities?: Entity[];
|
|
726
|
+
channelData?: any;
|
|
727
|
+
action?: string;
|
|
728
|
+
replyToId?: string;
|
|
729
|
+
label?: string;
|
|
730
|
+
valueType?: string;
|
|
731
|
+
value?: unknown;
|
|
732
|
+
name?: ActivityEventNames | string;
|
|
733
|
+
relatesTo?: ConversationReference;
|
|
734
|
+
code?: EndOfConversationCodes | string;
|
|
735
|
+
expiration?: string | Date;
|
|
736
|
+
importance?: ActivityImportance | string;
|
|
737
|
+
deliveryMode?: DeliveryModes | string;
|
|
738
|
+
listenFor?: string[];
|
|
739
|
+
textHighlights?: TextHighlight[];
|
|
740
|
+
semanticAction?: SemanticAction;
|
|
741
|
+
rawTimestamp?: string;
|
|
742
|
+
rawExpiration?: string;
|
|
743
|
+
rawLocalTimestamp?: string;
|
|
744
|
+
[x: string]: unknown;
|
|
745
|
+
/**
|
|
746
|
+
* Creates a new Activity instance.
|
|
747
|
+
* @param t The type of the activity.
|
|
748
|
+
* @throws Will throw an error if the activity type is invalid.
|
|
749
|
+
*/
|
|
750
|
+
constructor(t: ActivityTypes | string);
|
|
751
|
+
/**
|
|
752
|
+
* Creates an Activity instance from a JSON string.
|
|
753
|
+
* @param json The JSON string representing the activity.
|
|
754
|
+
* @returns The created Activity instance.
|
|
755
|
+
*/
|
|
756
|
+
static fromJson(json: string): Activity;
|
|
757
|
+
/**
|
|
758
|
+
* Creates an Activity instance from an object.
|
|
759
|
+
* @param o The object representing the activity.
|
|
760
|
+
* @returns The created Activity instance.
|
|
761
|
+
*/
|
|
762
|
+
static fromObject(o: object): Activity;
|
|
763
|
+
/**
|
|
764
|
+
* Creates a continuation activity from a conversation reference.
|
|
765
|
+
* @param reference The conversation reference.
|
|
766
|
+
* @returns The created continuation activity.
|
|
767
|
+
*/
|
|
768
|
+
static getContinuationActivity(reference: ConversationReference): Activity;
|
|
769
|
+
/**
|
|
770
|
+
* Gets the appropriate reply-to ID for the activity.
|
|
771
|
+
* @returns The reply-to ID, or undefined if not applicable.
|
|
772
|
+
*/
|
|
773
|
+
private getAppropriateReplyToId;
|
|
774
|
+
/**
|
|
775
|
+
* Gets the conversation reference for the activity.
|
|
776
|
+
* @returns The conversation reference.
|
|
777
|
+
* @throws Will throw an error if required properties are undefined.
|
|
778
|
+
*/
|
|
779
|
+
getConversationReference(): ConversationReference;
|
|
780
|
+
/**
|
|
781
|
+
* Applies a conversation reference to the activity.
|
|
782
|
+
* @param reference The conversation reference.
|
|
783
|
+
* @param isIncoming Whether the activity is incoming.
|
|
784
|
+
* @returns The updated activity.
|
|
785
|
+
*/
|
|
786
|
+
applyConversationReference(reference: ConversationReference, isIncoming?: boolean): Activity;
|
|
787
|
+
clone(): Activity;
|
|
788
|
+
/**
|
|
789
|
+
* Gets the mentions in the activity.
|
|
790
|
+
* @param activity The activity.
|
|
791
|
+
* @returns The list of mentions.
|
|
792
|
+
*/
|
|
793
|
+
private getMentions;
|
|
794
|
+
/**
|
|
795
|
+
* Removes the mention text for a given ID.
|
|
796
|
+
* @param id The ID of the mention to remove.
|
|
797
|
+
* @returns The updated text.
|
|
798
|
+
*/
|
|
799
|
+
private removeMentionText;
|
|
800
|
+
/**
|
|
801
|
+
* Removes the recipient mention from the activity text.
|
|
802
|
+
* @returns The updated text.
|
|
803
|
+
*/
|
|
804
|
+
removeRecipientMention(): string;
|
|
805
|
+
/**
|
|
806
|
+
* Gets the conversation reference for a reply.
|
|
807
|
+
* @param replyId The ID of the reply.
|
|
808
|
+
* @returns The conversation reference.
|
|
809
|
+
*/
|
|
810
|
+
getReplyConversationReference(replyId: string): ConversationReference;
|
|
811
|
+
}
|