@microsoft/agents-activity 1.1.0-alpha.9.g154c2c8a32 → 1.1.4-g8d884129e7

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.
Files changed (43) hide show
  1. package/dist/src/activity.d.ts +213 -27
  2. package/dist/src/activity.js +122 -6
  3. package/dist/src/activity.js.map +1 -1
  4. package/dist/src/activityTypes.d.ts +2 -6
  5. package/dist/src/activityTypes.js +0 -5
  6. package/dist/src/activityTypes.js.map +1 -1
  7. package/dist/src/conversation/channelAccount.d.ts +34 -1
  8. package/dist/src/conversation/channelAccount.js +4 -0
  9. package/dist/src/conversation/channelAccount.js.map +1 -1
  10. package/dist/src/conversation/channels.d.ts +4 -0
  11. package/dist/src/conversation/channels.js +4 -0
  12. package/dist/src/conversation/channels.js.map +1 -1
  13. package/dist/src/conversation/conversationAccount.d.ts +3 -3
  14. package/dist/src/conversation/conversationReference.d.ts +47 -7
  15. package/dist/src/conversation/membershipSource.d.ts +57 -0
  16. package/dist/src/conversation/membershipSource.js +22 -0
  17. package/dist/src/conversation/membershipSource.js.map +1 -0
  18. package/dist/src/conversation/membershipSourceTypes.d.ts +22 -0
  19. package/dist/src/conversation/membershipSourceTypes.js +27 -0
  20. package/dist/src/conversation/membershipSourceTypes.js.map +1 -0
  21. package/dist/src/conversation/membershipTypes.d.ts +22 -0
  22. package/dist/src/conversation/membershipTypes.js +27 -0
  23. package/dist/src/conversation/membershipTypes.js.map +1 -0
  24. package/dist/src/conversation/roleTypes.d.ts +10 -2
  25. package/dist/src/conversation/roleTypes.js +9 -1
  26. package/dist/src/conversation/roleTypes.js.map +1 -1
  27. package/dist/src/entity/productInfo.d.ts +21 -0
  28. package/dist/src/entity/productInfo.js +34 -0
  29. package/dist/src/entity/productInfo.js.map +1 -0
  30. package/dist/src/index.d.ts +3 -1
  31. package/dist/src/index.js +5 -3
  32. package/dist/src/index.js.map +1 -1
  33. package/package.json +2 -2
  34. package/src/activity.ts +128 -8
  35. package/src/activityTypes.ts +0 -6
  36. package/src/conversation/channelAccount.ts +30 -0
  37. package/src/conversation/channels.ts +4 -0
  38. package/src/conversation/membershipSource.ts +50 -0
  39. package/src/conversation/membershipSourceTypes.ts +26 -0
  40. package/src/conversation/membershipTypes.ts +26 -0
  41. package/src/conversation/roleTypes.ts +11 -1
  42. package/src/entity/productInfo.ts +37 -0
  43. package/src/index.ts +3 -1
@@ -25,7 +25,7 @@ import { TextHighlight } from './textHighlight';
25
25
  * Zod schema for validating an Activity object.
26
26
  */
27
27
  export declare const activityZodSchema: z.ZodObject<{
28
- 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
+ type: z.ZodUnion<[z.ZodEnum<["message", "contactRelationUpdate", "conversationUpdate", "typing", "endOfConversation", "event", "invoke", "invokeResponse", "deleteUserData", "messageUpdate", "messageDelete", "installationUpdate", "messageReaction", "suggestion", "trace", "handoff", "command", "commandResult"]>, z.ZodString]>;
29
29
  text: z.ZodOptional<z.ZodString>;
30
30
  id: z.ZodOptional<z.ZodString>;
31
31
  channelId: z.ZodOptional<z.ZodString>;
@@ -33,23 +33,35 @@ export declare const activityZodSchema: z.ZodObject<{
33
33
  id: z.ZodOptional<z.ZodString>;
34
34
  name: z.ZodOptional<z.ZodString>;
35
35
  aadObjectId: z.ZodOptional<z.ZodString>;
36
- role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
36
+ tenantId: z.ZodOptional<z.ZodString>;
37
+ agenticUserId: z.ZodOptional<z.ZodString>;
38
+ agenticAppId: z.ZodOptional<z.ZodString>;
39
+ agenticAppBlueprintId: z.ZodOptional<z.ZodString>;
40
+ role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill", "agenticAppInstance", "agenticUser"]>, z.ZodString]>>;
37
41
  properties: z.ZodOptional<z.ZodUnknown>;
38
42
  }, "strip", z.ZodTypeAny, {
39
43
  id?: string | undefined;
40
44
  name?: string | undefined;
45
+ tenantId?: string | undefined;
41
46
  aadObjectId?: string | undefined;
47
+ agenticUserId?: string | undefined;
48
+ agenticAppId?: string | undefined;
49
+ agenticAppBlueprintId?: string | undefined;
42
50
  role?: string | undefined;
43
51
  properties?: unknown;
44
52
  }, {
45
53
  id?: string | undefined;
46
54
  name?: string | undefined;
55
+ tenantId?: string | undefined;
47
56
  aadObjectId?: string | undefined;
57
+ agenticUserId?: string | undefined;
58
+ agenticAppId?: string | undefined;
59
+ agenticAppBlueprintId?: string | undefined;
48
60
  role?: string | undefined;
49
61
  properties?: unknown;
50
62
  }>>;
51
- timestamp: z.ZodUnion<[z.ZodDate, z.ZodOptional<z.ZodString>, z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>]>;
52
- localTimestamp: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>, z.ZodDate]>>;
63
+ timestamp: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>>;
64
+ localTimestamp: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>>;
53
65
  localTimezone: z.ZodOptional<z.ZodString>;
54
66
  callerId: z.ZodOptional<z.ZodString>;
55
67
  serviceUrl: z.ZodOptional<z.ZodString>;
@@ -60,43 +72,55 @@ export declare const activityZodSchema: z.ZodObject<{
60
72
  id: z.ZodString;
61
73
  name: z.ZodOptional<z.ZodString>;
62
74
  aadObjectId: z.ZodOptional<z.ZodString>;
63
- role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
75
+ role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill", "agenticAppInstance", "agenticUser"]>, z.ZodString]>>;
64
76
  properties: z.ZodOptional<z.ZodUnknown>;
65
77
  }, "strip", z.ZodTypeAny, {
66
78
  id: string;
67
79
  name?: string | undefined;
80
+ tenantId?: string | undefined;
68
81
  aadObjectId?: string | undefined;
69
82
  role?: string | undefined;
70
83
  properties?: unknown;
71
84
  isGroup?: boolean | undefined;
72
85
  conversationType?: string | undefined;
73
- tenantId?: string | undefined;
74
86
  }, {
75
87
  id: string;
76
88
  name?: string | undefined;
89
+ tenantId?: string | undefined;
77
90
  aadObjectId?: string | undefined;
78
91
  role?: string | undefined;
79
92
  properties?: unknown;
80
93
  isGroup?: boolean | undefined;
81
94
  conversationType?: string | undefined;
82
- tenantId?: string | undefined;
83
95
  }>>;
84
96
  recipient: z.ZodOptional<z.ZodObject<{
85
97
  id: z.ZodOptional<z.ZodString>;
86
98
  name: z.ZodOptional<z.ZodString>;
87
99
  aadObjectId: z.ZodOptional<z.ZodString>;
88
- role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
100
+ tenantId: z.ZodOptional<z.ZodString>;
101
+ agenticUserId: z.ZodOptional<z.ZodString>;
102
+ agenticAppId: z.ZodOptional<z.ZodString>;
103
+ agenticAppBlueprintId: z.ZodOptional<z.ZodString>;
104
+ role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill", "agenticAppInstance", "agenticUser"]>, z.ZodString]>>;
89
105
  properties: z.ZodOptional<z.ZodUnknown>;
90
106
  }, "strip", z.ZodTypeAny, {
91
107
  id?: string | undefined;
92
108
  name?: string | undefined;
109
+ tenantId?: string | undefined;
93
110
  aadObjectId?: string | undefined;
111
+ agenticUserId?: string | undefined;
112
+ agenticAppId?: string | undefined;
113
+ agenticAppBlueprintId?: string | undefined;
94
114
  role?: string | undefined;
95
115
  properties?: unknown;
96
116
  }, {
97
117
  id?: string | undefined;
98
118
  name?: string | undefined;
119
+ tenantId?: string | undefined;
99
120
  aadObjectId?: string | undefined;
121
+ agenticUserId?: string | undefined;
122
+ agenticAppId?: string | undefined;
123
+ agenticAppBlueprintId?: string | undefined;
100
124
  role?: string | undefined;
101
125
  properties?: unknown;
102
126
  }>>;
@@ -106,18 +130,30 @@ export declare const activityZodSchema: z.ZodObject<{
106
130
  id: z.ZodOptional<z.ZodString>;
107
131
  name: z.ZodOptional<z.ZodString>;
108
132
  aadObjectId: z.ZodOptional<z.ZodString>;
109
- role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
133
+ tenantId: z.ZodOptional<z.ZodString>;
134
+ agenticUserId: z.ZodOptional<z.ZodString>;
135
+ agenticAppId: z.ZodOptional<z.ZodString>;
136
+ agenticAppBlueprintId: z.ZodOptional<z.ZodString>;
137
+ role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill", "agenticAppInstance", "agenticUser"]>, z.ZodString]>>;
110
138
  properties: z.ZodOptional<z.ZodUnknown>;
111
139
  }, "strip", z.ZodTypeAny, {
112
140
  id?: string | undefined;
113
141
  name?: string | undefined;
142
+ tenantId?: string | undefined;
114
143
  aadObjectId?: string | undefined;
144
+ agenticUserId?: string | undefined;
145
+ agenticAppId?: string | undefined;
146
+ agenticAppBlueprintId?: string | undefined;
115
147
  role?: string | undefined;
116
148
  properties?: unknown;
117
149
  }, {
118
150
  id?: string | undefined;
119
151
  name?: string | undefined;
152
+ tenantId?: string | undefined;
120
153
  aadObjectId?: string | undefined;
154
+ agenticUserId?: string | undefined;
155
+ agenticAppId?: string | undefined;
156
+ agenticAppBlueprintId?: string | undefined;
121
157
  role?: string | undefined;
122
158
  properties?: unknown;
123
159
  }>, "many">>;
@@ -125,18 +161,30 @@ export declare const activityZodSchema: z.ZodObject<{
125
161
  id: z.ZodOptional<z.ZodString>;
126
162
  name: z.ZodOptional<z.ZodString>;
127
163
  aadObjectId: z.ZodOptional<z.ZodString>;
128
- role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
164
+ tenantId: z.ZodOptional<z.ZodString>;
165
+ agenticUserId: z.ZodOptional<z.ZodString>;
166
+ agenticAppId: z.ZodOptional<z.ZodString>;
167
+ agenticAppBlueprintId: z.ZodOptional<z.ZodString>;
168
+ role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill", "agenticAppInstance", "agenticUser"]>, z.ZodString]>>;
129
169
  properties: z.ZodOptional<z.ZodUnknown>;
130
170
  }, "strip", z.ZodTypeAny, {
131
171
  id?: string | undefined;
132
172
  name?: string | undefined;
173
+ tenantId?: string | undefined;
133
174
  aadObjectId?: string | undefined;
175
+ agenticUserId?: string | undefined;
176
+ agenticAppId?: string | undefined;
177
+ agenticAppBlueprintId?: string | undefined;
134
178
  role?: string | undefined;
135
179
  properties?: unknown;
136
180
  }, {
137
181
  id?: string | undefined;
138
182
  name?: string | undefined;
183
+ tenantId?: string | undefined;
139
184
  aadObjectId?: string | undefined;
185
+ agenticUserId?: string | undefined;
186
+ agenticAppId?: string | undefined;
187
+ agenticAppBlueprintId?: string | undefined;
140
188
  role?: string | undefined;
141
189
  properties?: unknown;
142
190
  }>, "many">>;
@@ -254,18 +302,30 @@ export declare const activityZodSchema: z.ZodObject<{
254
302
  id: z.ZodOptional<z.ZodString>;
255
303
  name: z.ZodOptional<z.ZodString>;
256
304
  aadObjectId: z.ZodOptional<z.ZodString>;
257
- role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
305
+ tenantId: z.ZodOptional<z.ZodString>;
306
+ agenticUserId: z.ZodOptional<z.ZodString>;
307
+ agenticAppId: z.ZodOptional<z.ZodString>;
308
+ agenticAppBlueprintId: z.ZodOptional<z.ZodString>;
309
+ role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill", "agenticAppInstance", "agenticUser"]>, z.ZodString]>>;
258
310
  properties: z.ZodOptional<z.ZodUnknown>;
259
311
  }, "strip", z.ZodTypeAny, {
260
312
  id?: string | undefined;
261
313
  name?: string | undefined;
314
+ tenantId?: string | undefined;
262
315
  aadObjectId?: string | undefined;
316
+ agenticUserId?: string | undefined;
317
+ agenticAppId?: string | undefined;
318
+ agenticAppBlueprintId?: string | undefined;
263
319
  role?: string | undefined;
264
320
  properties?: unknown;
265
321
  }, {
266
322
  id?: string | undefined;
267
323
  name?: string | undefined;
324
+ tenantId?: string | undefined;
268
325
  aadObjectId?: string | undefined;
326
+ agenticUserId?: string | undefined;
327
+ agenticAppId?: string | undefined;
328
+ agenticAppBlueprintId?: string | undefined;
269
329
  role?: string | undefined;
270
330
  properties?: unknown;
271
331
  }>>;
@@ -274,18 +334,30 @@ export declare const activityZodSchema: z.ZodObject<{
274
334
  id: z.ZodOptional<z.ZodString>;
275
335
  name: z.ZodOptional<z.ZodString>;
276
336
  aadObjectId: z.ZodOptional<z.ZodString>;
277
- role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
337
+ tenantId: z.ZodOptional<z.ZodString>;
338
+ agenticUserId: z.ZodOptional<z.ZodString>;
339
+ agenticAppId: z.ZodOptional<z.ZodString>;
340
+ agenticAppBlueprintId: z.ZodOptional<z.ZodString>;
341
+ role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill", "agenticAppInstance", "agenticUser"]>, z.ZodString]>>;
278
342
  properties: z.ZodOptional<z.ZodUnknown>;
279
343
  }, "strip", z.ZodTypeAny, {
280
344
  id?: string | undefined;
281
345
  name?: string | undefined;
346
+ tenantId?: string | undefined;
282
347
  aadObjectId?: string | undefined;
348
+ agenticUserId?: string | undefined;
349
+ agenticAppId?: string | undefined;
350
+ agenticAppBlueprintId?: string | undefined;
283
351
  role?: string | undefined;
284
352
  properties?: unknown;
285
353
  }, {
286
354
  id?: string | undefined;
287
355
  name?: string | undefined;
356
+ tenantId?: string | undefined;
288
357
  aadObjectId?: string | undefined;
358
+ agenticUserId?: string | undefined;
359
+ agenticAppId?: string | undefined;
360
+ agenticAppBlueprintId?: string | undefined;
289
361
  role?: string | undefined;
290
362
  properties?: unknown;
291
363
  }>>>;
@@ -296,26 +368,26 @@ export declare const activityZodSchema: z.ZodObject<{
296
368
  id: z.ZodString;
297
369
  name: z.ZodOptional<z.ZodString>;
298
370
  aadObjectId: z.ZodOptional<z.ZodString>;
299
- role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>;
371
+ role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill", "agenticAppInstance", "agenticUser"]>, z.ZodString]>>;
300
372
  properties: z.ZodOptional<z.ZodUnknown>;
301
373
  }, "strip", z.ZodTypeAny, {
302
374
  id: string;
303
375
  name?: string | undefined;
376
+ tenantId?: string | undefined;
304
377
  aadObjectId?: string | undefined;
305
378
  role?: string | undefined;
306
379
  properties?: unknown;
307
380
  isGroup?: boolean | undefined;
308
381
  conversationType?: string | undefined;
309
- tenantId?: string | undefined;
310
382
  }, {
311
383
  id: string;
312
384
  name?: string | undefined;
385
+ tenantId?: string | undefined;
313
386
  aadObjectId?: string | undefined;
314
387
  role?: string | undefined;
315
388
  properties?: unknown;
316
389
  isGroup?: boolean | undefined;
317
390
  conversationType?: string | undefined;
318
- tenantId?: string | undefined;
319
391
  }>;
320
392
  channelId: z.ZodString;
321
393
  serviceUrl: z.ZodOptional<z.ZodString>;
@@ -323,18 +395,22 @@ export declare const activityZodSchema: z.ZodObject<{
323
395
  conversation: {
324
396
  id: string;
325
397
  name?: string | undefined;
398
+ tenantId?: string | undefined;
326
399
  aadObjectId?: string | undefined;
327
400
  role?: string | undefined;
328
401
  properties?: unknown;
329
402
  isGroup?: boolean | undefined;
330
403
  conversationType?: string | undefined;
331
- tenantId?: string | undefined;
332
404
  };
333
405
  channelId: string;
334
406
  user?: {
335
407
  id?: string | undefined;
336
408
  name?: string | undefined;
409
+ tenantId?: string | undefined;
337
410
  aadObjectId?: string | undefined;
411
+ agenticUserId?: string | undefined;
412
+ agenticAppId?: string | undefined;
413
+ agenticAppBlueprintId?: string | undefined;
338
414
  role?: string | undefined;
339
415
  properties?: unknown;
340
416
  } | undefined;
@@ -343,7 +419,11 @@ export declare const activityZodSchema: z.ZodObject<{
343
419
  agent?: {
344
420
  id?: string | undefined;
345
421
  name?: string | undefined;
422
+ tenantId?: string | undefined;
346
423
  aadObjectId?: string | undefined;
424
+ agenticUserId?: string | undefined;
425
+ agenticAppId?: string | undefined;
426
+ agenticAppBlueprintId?: string | undefined;
347
427
  role?: string | undefined;
348
428
  properties?: unknown;
349
429
  } | null | undefined;
@@ -352,18 +432,22 @@ export declare const activityZodSchema: z.ZodObject<{
352
432
  conversation: {
353
433
  id: string;
354
434
  name?: string | undefined;
435
+ tenantId?: string | undefined;
355
436
  aadObjectId?: string | undefined;
356
437
  role?: string | undefined;
357
438
  properties?: unknown;
358
439
  isGroup?: boolean | undefined;
359
440
  conversationType?: string | undefined;
360
- tenantId?: string | undefined;
361
441
  };
362
442
  channelId: string;
363
443
  user?: {
364
444
  id?: string | undefined;
365
445
  name?: string | undefined;
446
+ tenantId?: string | undefined;
366
447
  aadObjectId?: string | undefined;
448
+ agenticUserId?: string | undefined;
449
+ agenticAppId?: string | undefined;
450
+ agenticAppBlueprintId?: string | undefined;
367
451
  role?: string | undefined;
368
452
  properties?: unknown;
369
453
  } | undefined;
@@ -372,14 +456,18 @@ export declare const activityZodSchema: z.ZodObject<{
372
456
  agent?: {
373
457
  id?: string | undefined;
374
458
  name?: string | undefined;
459
+ tenantId?: string | undefined;
375
460
  aadObjectId?: string | undefined;
461
+ agenticUserId?: string | undefined;
462
+ agenticAppId?: string | undefined;
463
+ agenticAppBlueprintId?: string | undefined;
376
464
  role?: string | undefined;
377
465
  properties?: unknown;
378
466
  } | null | undefined;
379
467
  serviceUrl?: string | undefined;
380
468
  }>>;
381
469
  code: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["unknown", "completedSuccessfully", "userCancelled", "agentTimedOut", "agentIssuedInvalidMessage", "channelFailed"]>, z.ZodString]>>;
382
- expiration: z.ZodOptional<z.ZodString>;
470
+ expiration: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>>;
383
471
  importance: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["low", "normal", "high"]>, z.ZodString]>>;
384
472
  deliveryMode: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["normal", "notification", "expectReplies", "ephemeral"]>, z.ZodString]>>;
385
473
  listenFor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -431,30 +519,38 @@ export declare const activityZodSchema: z.ZodObject<{
431
519
  conversation?: {
432
520
  id: string;
433
521
  name?: string | undefined;
522
+ tenantId?: string | undefined;
434
523
  aadObjectId?: string | undefined;
435
524
  role?: string | undefined;
436
525
  properties?: unknown;
437
526
  isGroup?: boolean | undefined;
438
527
  conversationType?: string | undefined;
439
- tenantId?: string | undefined;
440
528
  } | undefined;
441
529
  channelId?: string | undefined;
442
530
  serviceUrl?: string | undefined;
443
531
  from?: {
444
532
  id?: string | undefined;
445
533
  name?: string | undefined;
534
+ tenantId?: string | undefined;
446
535
  aadObjectId?: string | undefined;
536
+ agenticUserId?: string | undefined;
537
+ agenticAppId?: string | undefined;
538
+ agenticAppBlueprintId?: string | undefined;
447
539
  role?: string | undefined;
448
540
  properties?: unknown;
449
541
  } | undefined;
450
- timestamp?: string | Date | undefined;
542
+ timestamp?: Date | undefined;
451
543
  localTimestamp?: Date | undefined;
452
544
  localTimezone?: string | undefined;
453
545
  callerId?: string | undefined;
454
546
  recipient?: {
455
547
  id?: string | undefined;
456
548
  name?: string | undefined;
549
+ tenantId?: string | undefined;
457
550
  aadObjectId?: string | undefined;
551
+ agenticUserId?: string | undefined;
552
+ agenticAppId?: string | undefined;
553
+ agenticAppBlueprintId?: string | undefined;
458
554
  role?: string | undefined;
459
555
  properties?: unknown;
460
556
  } | undefined;
@@ -463,14 +559,22 @@ export declare const activityZodSchema: z.ZodObject<{
463
559
  membersAdded?: {
464
560
  id?: string | undefined;
465
561
  name?: string | undefined;
562
+ tenantId?: string | undefined;
466
563
  aadObjectId?: string | undefined;
564
+ agenticUserId?: string | undefined;
565
+ agenticAppId?: string | undefined;
566
+ agenticAppBlueprintId?: string | undefined;
467
567
  role?: string | undefined;
468
568
  properties?: unknown;
469
569
  }[] | undefined;
470
570
  membersRemoved?: {
471
571
  id?: string | undefined;
472
572
  name?: string | undefined;
573
+ tenantId?: string | undefined;
473
574
  aadObjectId?: string | undefined;
575
+ agenticUserId?: string | undefined;
576
+ agenticAppId?: string | undefined;
577
+ agenticAppBlueprintId?: string | undefined;
474
578
  role?: string | undefined;
475
579
  properties?: unknown;
476
580
  }[] | undefined;
@@ -513,18 +617,22 @@ export declare const activityZodSchema: z.ZodObject<{
513
617
  conversation: {
514
618
  id: string;
515
619
  name?: string | undefined;
620
+ tenantId?: string | undefined;
516
621
  aadObjectId?: string | undefined;
517
622
  role?: string | undefined;
518
623
  properties?: unknown;
519
624
  isGroup?: boolean | undefined;
520
625
  conversationType?: string | undefined;
521
- tenantId?: string | undefined;
522
626
  };
523
627
  channelId: string;
524
628
  user?: {
525
629
  id?: string | undefined;
526
630
  name?: string | undefined;
631
+ tenantId?: string | undefined;
527
632
  aadObjectId?: string | undefined;
633
+ agenticUserId?: string | undefined;
634
+ agenticAppId?: string | undefined;
635
+ agenticAppBlueprintId?: string | undefined;
528
636
  role?: string | undefined;
529
637
  properties?: unknown;
530
638
  } | undefined;
@@ -533,13 +641,17 @@ export declare const activityZodSchema: z.ZodObject<{
533
641
  agent?: {
534
642
  id?: string | undefined;
535
643
  name?: string | undefined;
644
+ tenantId?: string | undefined;
536
645
  aadObjectId?: string | undefined;
646
+ agenticUserId?: string | undefined;
647
+ agenticAppId?: string | undefined;
648
+ agenticAppBlueprintId?: string | undefined;
537
649
  role?: string | undefined;
538
650
  properties?: unknown;
539
651
  } | null | undefined;
540
652
  serviceUrl?: string | undefined;
541
653
  } | undefined;
542
- expiration?: string | undefined;
654
+ expiration?: Date | undefined;
543
655
  importance?: string | undefined;
544
656
  deliveryMode?: string | undefined;
545
657
  listenFor?: string[] | undefined;
@@ -569,19 +681,23 @@ export declare const activityZodSchema: z.ZodObject<{
569
681
  conversation?: {
570
682
  id: string;
571
683
  name?: string | undefined;
684
+ tenantId?: string | undefined;
572
685
  aadObjectId?: string | undefined;
573
686
  role?: string | undefined;
574
687
  properties?: unknown;
575
688
  isGroup?: boolean | undefined;
576
689
  conversationType?: string | undefined;
577
- tenantId?: string | undefined;
578
690
  } | undefined;
579
691
  channelId?: string | undefined;
580
692
  serviceUrl?: string | undefined;
581
693
  from?: {
582
694
  id?: string | undefined;
583
695
  name?: string | undefined;
696
+ tenantId?: string | undefined;
584
697
  aadObjectId?: string | undefined;
698
+ agenticUserId?: string | undefined;
699
+ agenticAppId?: string | undefined;
700
+ agenticAppBlueprintId?: string | undefined;
585
701
  role?: string | undefined;
586
702
  properties?: unknown;
587
703
  } | undefined;
@@ -592,7 +708,11 @@ export declare const activityZodSchema: z.ZodObject<{
592
708
  recipient?: {
593
709
  id?: string | undefined;
594
710
  name?: string | undefined;
711
+ tenantId?: string | undefined;
595
712
  aadObjectId?: string | undefined;
713
+ agenticUserId?: string | undefined;
714
+ agenticAppId?: string | undefined;
715
+ agenticAppBlueprintId?: string | undefined;
596
716
  role?: string | undefined;
597
717
  properties?: unknown;
598
718
  } | undefined;
@@ -601,14 +721,22 @@ export declare const activityZodSchema: z.ZodObject<{
601
721
  membersAdded?: {
602
722
  id?: string | undefined;
603
723
  name?: string | undefined;
724
+ tenantId?: string | undefined;
604
725
  aadObjectId?: string | undefined;
726
+ agenticUserId?: string | undefined;
727
+ agenticAppId?: string | undefined;
728
+ agenticAppBlueprintId?: string | undefined;
605
729
  role?: string | undefined;
606
730
  properties?: unknown;
607
731
  }[] | undefined;
608
732
  membersRemoved?: {
609
733
  id?: string | undefined;
610
734
  name?: string | undefined;
735
+ tenantId?: string | undefined;
611
736
  aadObjectId?: string | undefined;
737
+ agenticUserId?: string | undefined;
738
+ agenticAppId?: string | undefined;
739
+ agenticAppBlueprintId?: string | undefined;
612
740
  role?: string | undefined;
613
741
  properties?: unknown;
614
742
  }[] | undefined;
@@ -651,18 +779,22 @@ export declare const activityZodSchema: z.ZodObject<{
651
779
  conversation: {
652
780
  id: string;
653
781
  name?: string | undefined;
782
+ tenantId?: string | undefined;
654
783
  aadObjectId?: string | undefined;
655
784
  role?: string | undefined;
656
785
  properties?: unknown;
657
786
  isGroup?: boolean | undefined;
658
787
  conversationType?: string | undefined;
659
- tenantId?: string | undefined;
660
788
  };
661
789
  channelId: string;
662
790
  user?: {
663
791
  id?: string | undefined;
664
792
  name?: string | undefined;
793
+ tenantId?: string | undefined;
665
794
  aadObjectId?: string | undefined;
795
+ agenticUserId?: string | undefined;
796
+ agenticAppId?: string | undefined;
797
+ agenticAppBlueprintId?: string | undefined;
666
798
  role?: string | undefined;
667
799
  properties?: unknown;
668
800
  } | undefined;
@@ -671,13 +803,17 @@ export declare const activityZodSchema: z.ZodObject<{
671
803
  agent?: {
672
804
  id?: string | undefined;
673
805
  name?: string | undefined;
806
+ tenantId?: string | undefined;
674
807
  aadObjectId?: string | undefined;
808
+ agenticUserId?: string | undefined;
809
+ agenticAppId?: string | undefined;
810
+ agenticAppBlueprintId?: string | undefined;
675
811
  role?: string | undefined;
676
812
  properties?: unknown;
677
813
  } | null | undefined;
678
814
  serviceUrl?: string | undefined;
679
815
  } | undefined;
680
- expiration?: string | undefined;
816
+ expiration?: string | Date | undefined;
681
817
  importance?: string | undefined;
682
818
  deliveryMode?: string | undefined;
683
819
  listenFor?: string[] | undefined;
@@ -710,9 +846,9 @@ export declare class Activity {
710
846
  */
711
847
  id?: string;
712
848
  /**
713
- * The channel ID where the activity originated.
849
+ * The primary channel ID where the activity originated.
714
850
  */
715
- channelId?: string;
851
+ _channelId?: string;
716
852
  /**
717
853
  * The account of the sender of the activity.
718
854
  */
@@ -899,6 +1035,37 @@ export declare class Activity {
899
1035
  * @returns The created Activity instance.
900
1036
  */
901
1037
  static fromObject(o: object): Activity;
1038
+ /**
1039
+ * Return the combined channel:subChannel value like agent:email
1040
+ */
1041
+ get channelId(): string | undefined;
1042
+ /**
1043
+ * Given a composite channelId like agent:email, return the channel and subChannel.
1044
+ * @param value
1045
+ * @returns [channel, subChannel]
1046
+ */
1047
+ static parseChannelId(value: string): [string | undefined, string | undefined];
1048
+ /**
1049
+ * Sets the channel ID for the activity - if a subChannel is provided, will create the necessary ProductInfo entity
1050
+ * @param value The channel ID value.
1051
+ */
1052
+ set channelId(value: string);
1053
+ /**
1054
+ * Sets the primary channel ID for the activity.
1055
+ */
1056
+ set channelIdChannel(value: string | undefined);
1057
+ /**
1058
+ * Returns the primary channel ID for the activity.
1059
+ */
1060
+ get channelIdChannel(): string | undefined;
1061
+ /**
1062
+ * Returns the sub-channel ID for the activity.
1063
+ */
1064
+ get channelIdSubChannel(): unknown;
1065
+ /**
1066
+ * Sets the sub-channel ID for the activity.
1067
+ */
1068
+ set channelIdSubChannel(value: unknown);
902
1069
  /**
903
1070
  * Creates a continuation activity from a conversation reference.
904
1071
  * @param reference The conversation reference.
@@ -959,4 +1126,23 @@ export declare class Activity {
959
1126
  */
960
1127
  getReplyConversationReference(replyId: string): ConversationReference;
961
1128
  toJsonString(): string;
1129
+ /**
1130
+ * Does this activity represent an agentic request?
1131
+ * @returns True if agentic
1132
+ */
1133
+ isAgenticRequest(): boolean;
1134
+ /**
1135
+ * Retrieves the tenant ID associated with the agentic recipient of the activity, if available; otherwise, returns the tenant ID from the conversation.
1136
+ * @returns The tenant ID of the agentic recipient if present; otherwise, the tenant ID from the conversation. Returns undefined if neither is available.
1137
+ */
1138
+ getAgenticTenantId(): string | undefined;
1139
+ /**
1140
+ * Gets the agent instance ID from the context if its agentic
1141
+ * @returns agent instance id as string
1142
+ */
1143
+ getAgenticInstanceId(): string | undefined;
1144
+ /**
1145
+ * Gets the agentic user (UPN) from the context if it's an agentic request.
1146
+ */
1147
+ getAgenticUser(): string | undefined;
962
1148
  }