@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
|
@@ -9,16 +9,59 @@ import { z } from 'zod'
|
|
|
9
9
|
* Enum representing the types of actions.
|
|
10
10
|
*/
|
|
11
11
|
export enum ActionTypes {
|
|
12
|
+
/**
|
|
13
|
+
* Opens a URL in the default browser.
|
|
14
|
+
*/
|
|
12
15
|
OpenUrl = 'openUrl',
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Sends a message back to the bot as a simple string.
|
|
19
|
+
*/
|
|
13
20
|
ImBack = 'imBack',
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Sends a message back to the bot with additional data.
|
|
24
|
+
*/
|
|
14
25
|
PostBack = 'postBack',
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Plays an audio file.
|
|
29
|
+
*/
|
|
15
30
|
PlayAudio = 'playAudio',
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Plays a video file.
|
|
34
|
+
*/
|
|
16
35
|
PlayVideo = 'playVideo',
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Displays an image.
|
|
39
|
+
*/
|
|
17
40
|
ShowImage = 'showImage',
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Downloads a file.
|
|
44
|
+
*/
|
|
18
45
|
DownloadFile = 'downloadFile',
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Initiates a sign-in process.
|
|
49
|
+
*/
|
|
19
50
|
Signin = 'signin',
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Initiates a phone call.
|
|
54
|
+
*/
|
|
20
55
|
Call = 'call',
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Sends a message back to the bot with additional metadata.
|
|
59
|
+
*/
|
|
21
60
|
MessageBack = 'messageBack',
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Opens an application.
|
|
64
|
+
*/
|
|
22
65
|
OpenApp = 'openApp',
|
|
23
66
|
}
|
|
24
67
|
|
|
@@ -9,8 +9,19 @@ import { z } from 'zod'
|
|
|
9
9
|
* Enum representing the state types of a semantic action.
|
|
10
10
|
*/
|
|
11
11
|
export enum SemanticActionStateTypes {
|
|
12
|
+
/**
|
|
13
|
+
* Indicates the start of a semantic action.
|
|
14
|
+
*/
|
|
12
15
|
Start = 'start',
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Indicates the continuation of a semantic action.
|
|
19
|
+
*/
|
|
13
20
|
Continue = 'continue',
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Indicates the completion of a semantic action.
|
|
24
|
+
*/
|
|
14
25
|
Done = 'done',
|
|
15
26
|
}
|
|
16
27
|
|
package/src/activity.ts
CHANGED
|
@@ -77,51 +77,234 @@ export const activityZodSchema = z.object({
|
|
|
77
77
|
* Represents an activity in a conversation.
|
|
78
78
|
*/
|
|
79
79
|
export class Activity {
|
|
80
|
+
/**
|
|
81
|
+
* The type of the activity.
|
|
82
|
+
*/
|
|
80
83
|
type: ActivityTypes | string
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The text content of the activity.
|
|
87
|
+
*/
|
|
81
88
|
text?: string
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The unique identifier of the activity.
|
|
92
|
+
*/
|
|
82
93
|
id?: string
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The channel ID where the activity originated.
|
|
97
|
+
*/
|
|
83
98
|
channelId?: string
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The account of the sender of the activity.
|
|
102
|
+
*/
|
|
84
103
|
from?: ChannelAccount
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The timestamp of the activity.
|
|
107
|
+
*/
|
|
85
108
|
timestamp?: Date | string
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The local timestamp of the activity.
|
|
112
|
+
*/
|
|
86
113
|
localTimestamp?: Date | string
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The local timezone of the activity.
|
|
117
|
+
*/
|
|
87
118
|
localTimezone?: string
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The caller ID of the activity.
|
|
122
|
+
*/
|
|
88
123
|
callerId?: string
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The service URL of the activity.
|
|
127
|
+
*/
|
|
89
128
|
serviceUrl?: string
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The conversation account associated with the activity.
|
|
132
|
+
*/
|
|
90
133
|
conversation?: ConversationAccount
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The recipient of the activity.
|
|
137
|
+
*/
|
|
91
138
|
recipient?: ChannelAccount
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The text format of the activity.
|
|
142
|
+
*/
|
|
92
143
|
textFormat?: TextFormatTypes | string
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The attachment layout of the activity.
|
|
147
|
+
*/
|
|
93
148
|
attachmentLayout?: AttachmentLayoutTypes | string
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The members added to the conversation.
|
|
152
|
+
*/
|
|
94
153
|
membersAdded?: ChannelAccount[]
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The members removed from the conversation.
|
|
157
|
+
*/
|
|
95
158
|
membersRemoved?: ChannelAccount[]
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The reactions added to the activity.
|
|
162
|
+
*/
|
|
96
163
|
reactionsAdded?: MessageReaction[]
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The reactions removed from the activity.
|
|
167
|
+
*/
|
|
97
168
|
reactionsRemoved?: MessageReaction[]
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The topic name of the activity.
|
|
172
|
+
*/
|
|
98
173
|
topicName?: string
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Indicates whether the history is disclosed.
|
|
177
|
+
*/
|
|
99
178
|
historyDisclosed?: boolean
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The locale of the activity.
|
|
182
|
+
*/
|
|
100
183
|
locale?: string
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The speech text of the activity.
|
|
187
|
+
*/
|
|
101
188
|
speak?: string
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The input hint for the activity.
|
|
192
|
+
*/
|
|
102
193
|
inputHint?: InputHints | string
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The summary of the activity.
|
|
197
|
+
*/
|
|
103
198
|
summary?: string
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The suggested actions for the activity.
|
|
202
|
+
*/
|
|
104
203
|
suggestedActions?: SuggestedActions
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The attachments of the activity.
|
|
207
|
+
*/
|
|
105
208
|
attachments?: Attachment[]
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The entities associated with the activity.
|
|
212
|
+
*/
|
|
106
213
|
entities?: Entity[]
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The channel-specific data for the activity.
|
|
217
|
+
*/
|
|
107
218
|
channelData?: any
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* The action associated with the activity.
|
|
222
|
+
*/
|
|
108
223
|
action?: string
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The ID of the activity being replied to.
|
|
227
|
+
*/
|
|
109
228
|
replyToId?: string
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* The label for the activity.
|
|
232
|
+
*/
|
|
110
233
|
label?: string
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* The value type of the activity.
|
|
237
|
+
*/
|
|
111
238
|
valueType?: string
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The value associated with the activity.
|
|
242
|
+
*/
|
|
112
243
|
value?: unknown
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* The name of the activity event.
|
|
247
|
+
*/
|
|
113
248
|
name?: ActivityEventNames | string
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The conversation reference for the activity.
|
|
252
|
+
*/
|
|
114
253
|
relatesTo?: ConversationReference
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The end-of-conversation code for the activity.
|
|
257
|
+
*/
|
|
115
258
|
code?: EndOfConversationCodes | string
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* The expiration time of the activity.
|
|
262
|
+
*/
|
|
116
263
|
expiration?: string | Date
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The importance of the activity.
|
|
267
|
+
*/
|
|
117
268
|
importance?: ActivityImportance | string
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The delivery mode of the activity.
|
|
272
|
+
*/
|
|
118
273
|
deliveryMode?: DeliveryModes | string
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* The list of keywords to listen for in the activity.
|
|
277
|
+
*/
|
|
119
278
|
listenFor?: string[]
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* The text highlights in the activity.
|
|
282
|
+
*/
|
|
120
283
|
textHighlights?: TextHighlight[]
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* The semantic action associated with the activity.
|
|
287
|
+
*/
|
|
121
288
|
semanticAction?: SemanticAction
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* The raw timestamp of the activity.
|
|
292
|
+
*/
|
|
122
293
|
rawTimestamp?: string
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* The raw expiration time of the activity.
|
|
297
|
+
*/
|
|
123
298
|
rawExpiration?: string
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* The raw local timestamp of the activity.
|
|
302
|
+
*/
|
|
124
303
|
rawLocalTimestamp?: string
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Additional properties of the activity.
|
|
307
|
+
*/
|
|
125
308
|
[x: string]: unknown
|
|
126
309
|
|
|
127
310
|
/**
|
|
@@ -9,7 +9,14 @@ import { z } from 'zod'
|
|
|
9
9
|
* Enum representing activity event names.
|
|
10
10
|
*/
|
|
11
11
|
export enum ActivityEventNames {
|
|
12
|
+
/**
|
|
13
|
+
* Event name for continuing a conversation.
|
|
14
|
+
*/
|
|
12
15
|
ContinueConversation = 'ContinueConversation',
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Event name for creating a new conversation.
|
|
19
|
+
*/
|
|
13
20
|
CreateConversation = 'CreateConversation',
|
|
14
21
|
}
|
|
15
22
|
|
|
@@ -9,8 +9,19 @@ import { z } from 'zod'
|
|
|
9
9
|
* Enum representing activity importance levels.
|
|
10
10
|
*/
|
|
11
11
|
export enum ActivityImportance {
|
|
12
|
+
/**
|
|
13
|
+
* Indicates low importance.
|
|
14
|
+
*/
|
|
12
15
|
Low = 'low',
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Indicates normal importance.
|
|
19
|
+
*/
|
|
13
20
|
Normal = 'normal',
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Indicates high importance.
|
|
24
|
+
*/
|
|
14
25
|
High = 'high',
|
|
15
26
|
}
|
|
16
27
|
|
package/src/activityTypes.ts
CHANGED
|
@@ -9,24 +9,99 @@ import { z } from 'zod'
|
|
|
9
9
|
* Enum representing activity types.
|
|
10
10
|
*/
|
|
11
11
|
export enum ActivityTypes {
|
|
12
|
+
/**
|
|
13
|
+
* A message activity.
|
|
14
|
+
*/
|
|
12
15
|
Message = 'message',
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* An update to a contact relationship.
|
|
19
|
+
*/
|
|
13
20
|
ContactRelationUpdate = 'contactRelationUpdate',
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* An update to a conversation.
|
|
24
|
+
*/
|
|
14
25
|
ConversationUpdate = 'conversationUpdate',
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* A typing indicator activity.
|
|
29
|
+
*/
|
|
15
30
|
Typing = 'typing',
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Indicates the end of a conversation.
|
|
34
|
+
*/
|
|
16
35
|
EndOfConversation = 'endOfConversation',
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* An event activity.
|
|
39
|
+
*/
|
|
17
40
|
Event = 'event',
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* An invoke activity.
|
|
44
|
+
*/
|
|
18
45
|
Invoke = 'invoke',
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* A response to an invoke activity.
|
|
49
|
+
*/
|
|
19
50
|
InvokeResponse = 'invokeResponse',
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* An activity to delete user data.
|
|
54
|
+
*/
|
|
20
55
|
DeleteUserData = 'deleteUserData',
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* An update to a message.
|
|
59
|
+
*/
|
|
21
60
|
MessageUpdate = 'messageUpdate',
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* A deletion of a message.
|
|
64
|
+
*/
|
|
22
65
|
MessageDelete = 'messageDelete',
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* An update to an installation.
|
|
69
|
+
*/
|
|
23
70
|
InstallationUpdate = 'installationUpdate',
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* A reaction to a message.
|
|
74
|
+
*/
|
|
24
75
|
MessageReaction = 'messageReaction',
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* A suggestion activity.
|
|
79
|
+
*/
|
|
25
80
|
Suggestion = 'suggestion',
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* A trace activity for debugging.
|
|
84
|
+
*/
|
|
26
85
|
Trace = 'trace',
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* A handoff activity to another bot or human.
|
|
89
|
+
*/
|
|
27
90
|
Handoff = 'handoff',
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* A command activity.
|
|
94
|
+
*/
|
|
28
95
|
Command = 'command',
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* A result of a command activity.
|
|
99
|
+
*/
|
|
29
100
|
CommandResult = 'commandResult',
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* A delay activity.
|
|
104
|
+
*/
|
|
30
105
|
Delay = 'delay'
|
|
31
106
|
}
|
|
32
107
|
|
|
@@ -9,10 +9,29 @@ import { z } from 'zod'
|
|
|
9
9
|
* Interface representing an attachment.
|
|
10
10
|
*/
|
|
11
11
|
export interface Attachment {
|
|
12
|
+
/**
|
|
13
|
+
* The MIME type of the attachment content.
|
|
14
|
+
*/
|
|
12
15
|
contentType: string
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The URL of the attachment content.
|
|
19
|
+
*/
|
|
13
20
|
contentUrl?: string
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The content of the attachment.
|
|
24
|
+
*/
|
|
14
25
|
content?: unknown
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The name of the attachment.
|
|
29
|
+
*/
|
|
15
30
|
name?: string
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The URL of the thumbnail for the attachment.
|
|
34
|
+
*/
|
|
16
35
|
thumbnailUrl?: string
|
|
17
36
|
}
|
|
18
37
|
|
|
@@ -9,7 +9,14 @@ import { z } from 'zod'
|
|
|
9
9
|
* Enum representing the layout types for attachments.
|
|
10
10
|
*/
|
|
11
11
|
export enum AttachmentLayoutTypes {
|
|
12
|
+
/**
|
|
13
|
+
* Displays attachments in a list format.
|
|
14
|
+
*/
|
|
12
15
|
List = 'list',
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Displays attachments in a carousel format.
|
|
19
|
+
*/
|
|
13
20
|
Carousel = 'carousel',
|
|
14
21
|
}
|
|
15
22
|
|
|
@@ -10,10 +10,29 @@ import { roleTypeZodSchema, RoleTypes } from './roleTypes'
|
|
|
10
10
|
* Interface representing a channel account.
|
|
11
11
|
*/
|
|
12
12
|
export interface ChannelAccount {
|
|
13
|
+
/**
|
|
14
|
+
* The unique identifier of the channel account.
|
|
15
|
+
*/
|
|
13
16
|
id?: string
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The name of the channel account.
|
|
20
|
+
*/
|
|
14
21
|
name?: string
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The Azure Active Directory object ID of the channel account.
|
|
25
|
+
*/
|
|
15
26
|
aadObjectId?: string
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The role of the channel account.
|
|
30
|
+
*/
|
|
16
31
|
role?: RoleTypes | string
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Additional properties of the channel account.
|
|
35
|
+
*/
|
|
17
36
|
properties?: unknown
|
|
18
37
|
}
|
|
19
38
|
|
|
@@ -7,23 +7,98 @@
|
|
|
7
7
|
* Enum representing the different channels an agent can communicate through.
|
|
8
8
|
*/
|
|
9
9
|
export enum Channels {
|
|
10
|
+
/**
|
|
11
|
+
* Represents the Alexa channel.
|
|
12
|
+
*/
|
|
10
13
|
Alexa = 'alexa',
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Represents the Console channel.
|
|
17
|
+
*/
|
|
11
18
|
Console = 'console',
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Represents the Directline channel.
|
|
22
|
+
*/
|
|
12
23
|
Directline = 'directline',
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Represents the Directline Speech channel.
|
|
27
|
+
*/
|
|
13
28
|
DirectlineSpeech = 'directlinespeech',
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Represents the Email channel.
|
|
32
|
+
*/
|
|
14
33
|
Email = 'email',
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Represents the Emulator channel.
|
|
37
|
+
*/
|
|
15
38
|
Emulator = 'emulator',
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Represents the Facebook channel.
|
|
42
|
+
*/
|
|
16
43
|
Facebook = 'facebook',
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Represents the GroupMe channel.
|
|
47
|
+
*/
|
|
17
48
|
Groupme = 'groupme',
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Represents the Line channel.
|
|
52
|
+
*/
|
|
18
53
|
Line = 'line',
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Represents the Microsoft Teams channel.
|
|
57
|
+
*/
|
|
19
58
|
Msteams = 'msteams',
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Represents the Omnichannel.
|
|
62
|
+
*/
|
|
20
63
|
Omni = 'omnichannel',
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Represents the Outlook channel.
|
|
67
|
+
*/
|
|
21
68
|
Outlook = 'outlook',
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Represents the Skype channel.
|
|
72
|
+
*/
|
|
22
73
|
Skype = 'skype',
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Represents the Slack channel.
|
|
77
|
+
*/
|
|
23
78
|
Slack = 'slack',
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Represents the SMS channel.
|
|
82
|
+
*/
|
|
24
83
|
Sms = 'sms',
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Represents the Telegram channel.
|
|
87
|
+
*/
|
|
25
88
|
Telegram = 'telegram',
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Represents the Telephony channel.
|
|
92
|
+
*/
|
|
26
93
|
Telephony = 'telephony',
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Represents the Test channel.
|
|
97
|
+
*/
|
|
27
98
|
Test = 'test',
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Represents the Webchat channel.
|
|
102
|
+
*/
|
|
28
103
|
Webchat = 'webchat',
|
|
29
104
|
}
|
|
@@ -10,13 +10,44 @@ import { roleTypeZodSchema, RoleTypes } from './roleTypes'
|
|
|
10
10
|
* Interface representing a conversation account.
|
|
11
11
|
*/
|
|
12
12
|
export interface ConversationAccount {
|
|
13
|
+
/**
|
|
14
|
+
* The unique identifier of the conversation account.
|
|
15
|
+
*/
|
|
13
16
|
id: string
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The type of the conversation (e.g., personal, group, etc.).
|
|
20
|
+
*/
|
|
14
21
|
conversationType?: string
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The tenant ID associated with the conversation account.
|
|
25
|
+
*/
|
|
15
26
|
tenantId?: string
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Indicates whether the conversation is a group.
|
|
30
|
+
*/
|
|
16
31
|
isGroup?: boolean
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The name of the conversation account.
|
|
35
|
+
*/
|
|
17
36
|
name?: string
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The Azure Active Directory object ID of the conversation account.
|
|
40
|
+
*/
|
|
18
41
|
aadObjectId?: string
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The role of the conversation account.
|
|
45
|
+
*/
|
|
19
46
|
role?: RoleTypes | string
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Additional properties of the conversation account.
|
|
50
|
+
*/
|
|
20
51
|
properties?: unknown
|
|
21
52
|
}
|
|
22
53
|
|
|
@@ -11,12 +11,39 @@ import { ConversationAccount, conversationAccountZodSchema } from './conversatio
|
|
|
11
11
|
* Interface representing a reference to a conversation.
|
|
12
12
|
*/
|
|
13
13
|
export interface ConversationReference {
|
|
14
|
+
/**
|
|
15
|
+
* The ID of the activity. Optional.
|
|
16
|
+
*/
|
|
14
17
|
activityId?: string
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The user involved in the conversation. Optional.
|
|
21
|
+
*/
|
|
15
22
|
user?: ChannelAccount
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The locale of the conversation. Optional.
|
|
26
|
+
*/
|
|
16
27
|
locale?: string
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The agent involved in the conversation. Can be undefined or null. Optional.
|
|
31
|
+
*/
|
|
17
32
|
agent?: ChannelAccount | undefined | null
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The conversation account details.
|
|
36
|
+
*/
|
|
18
37
|
conversation: ConversationAccount
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The ID of the channel where the conversation is taking place.
|
|
41
|
+
*/
|
|
19
42
|
channelId: string
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The service URL for the conversation. Optional.
|
|
46
|
+
*/
|
|
20
47
|
serviceUrl?: string | undefined
|
|
21
48
|
}
|
|
22
49
|
|