@microsoft/agents-activity 0.1.49 → 0.2.8-g3bf5832077

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 (33) hide show
  1. package/dist/src/action/semanticAction.d.ts +11 -11
  2. package/dist/src/activity.d.ts +45 -44
  3. package/dist/src/activity.js +9 -6
  4. package/dist/src/activity.js.map +1 -1
  5. package/dist/src/callerIdConstants.d.ts +2 -2
  6. package/dist/src/callerIdConstants.js +2 -2
  7. package/dist/src/callerIdConstants.js.map +1 -1
  8. package/dist/src/conversation/conversationParameters.d.ts +38 -0
  9. package/dist/src/conversation/conversationParameters.js +7 -0
  10. package/dist/src/conversation/conversationParameters.js.map +1 -0
  11. package/dist/src/conversation/conversationReference.d.ts +8 -8
  12. package/dist/src/conversation/conversationReference.js +1 -1
  13. package/dist/src/conversation/conversationReference.js.map +1 -1
  14. package/dist/src/conversation/endOfConversationCodes.d.ts +3 -3
  15. package/dist/src/conversation/endOfConversationCodes.js +3 -3
  16. package/dist/src/conversation/endOfConversationCodes.js.map +1 -1
  17. package/dist/src/conversation/roleTypes.d.ts +1 -1
  18. package/dist/src/conversation/roleTypes.js +1 -1
  19. package/dist/src/conversation/roleTypes.js.map +1 -1
  20. package/dist/src/entity/entity.d.ts +5 -5
  21. package/dist/src/entity/entity.js +1 -1
  22. package/dist/src/entity/entity.js.map +1 -1
  23. package/dist/src/index.d.ts +1 -0
  24. package/dist/src/index.js.map +1 -1
  25. package/package.json +2 -5
  26. package/src/activity.ts +10 -6
  27. package/src/callerIdConstants.ts +2 -2
  28. package/src/conversation/conversationParameters.ts +40 -0
  29. package/src/conversation/conversationReference.ts +2 -2
  30. package/src/conversation/endOfConversationCodes.ts +3 -3
  31. package/src/conversation/roleTypes.ts +1 -1
  32. package/src/entity/entity.ts +1 -1
  33. package/src/index.ts +1 -0
@@ -32,21 +32,21 @@ export declare const semanticActionZodSchema: z.ZodObject<{
32
32
  state: z.ZodUnion<[z.ZodEnum<["start", "continue", "done"]>, z.ZodString]>;
33
33
  entities: z.ZodRecord<z.ZodString, z.ZodObject<{
34
34
  type: z.ZodString;
35
- }, "strip", z.ZodTypeAny, {
36
- type: string;
37
- }, {
38
- type: string;
39
- }>>;
35
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
36
+ type: z.ZodString;
37
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
38
+ type: z.ZodString;
39
+ }, z.ZodTypeAny, "passthrough">>>;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  id: string;
42
42
  state: string;
43
- entities: Record<string, {
44
- type: string;
45
- }>;
43
+ entities: Record<string, z.objectOutputType<{
44
+ type: z.ZodString;
45
+ }, z.ZodTypeAny, "passthrough">>;
46
46
  }, {
47
47
  id: string;
48
48
  state: string;
49
- entities: Record<string, {
50
- type: string;
51
- }>;
49
+ entities: Record<string, z.objectInputType<{
50
+ type: z.ZodString;
51
+ }, z.ZodTypeAny, "passthrough">>;
52
52
  }>;
@@ -47,7 +47,7 @@ export declare const activityZodSchema: z.ZodObject<{
47
47
  role?: string | undefined;
48
48
  properties?: unknown;
49
49
  }>>;
50
- timestamp: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>]>;
50
+ timestamp: z.ZodUnion<[z.ZodDate, z.ZodOptional<z.ZodString>, z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>]>;
51
51
  localTimestamp: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
52
52
  localTimezone: z.ZodOptional<z.ZodString>;
53
53
  callerId: z.ZodOptional<z.ZodString>;
@@ -235,11 +235,11 @@ export declare const activityZodSchema: z.ZodObject<{
235
235
  }>, "many">>;
236
236
  entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
237
237
  type: z.ZodString;
238
- }, "strip", z.ZodTypeAny, {
239
- type: string;
240
- }, {
241
- type: string;
242
- }>, "many">>;
238
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
239
+ type: z.ZodString;
240
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
241
+ type: z.ZodString;
242
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
243
243
  channelData: z.ZodOptional<z.ZodAny>;
244
244
  action: z.ZodOptional<z.ZodString>;
245
245
  replyToId: z.ZodOptional<z.ZodString>;
@@ -269,7 +269,7 @@ export declare const activityZodSchema: z.ZodObject<{
269
269
  properties?: unknown;
270
270
  }>>;
271
271
  locale: z.ZodOptional<z.ZodString>;
272
- bot: z.ZodNullable<z.ZodOptional<z.ZodObject<{
272
+ agent: z.ZodNullable<z.ZodOptional<z.ZodObject<{
273
273
  id: z.ZodOptional<z.ZodString>;
274
274
  name: z.ZodOptional<z.ZodString>;
275
275
  aadObjectId: z.ZodOptional<z.ZodString>;
@@ -337,15 +337,15 @@ export declare const activityZodSchema: z.ZodObject<{
337
337
  role?: string | undefined;
338
338
  properties?: unknown;
339
339
  } | undefined;
340
- bot?: {
340
+ activityId?: string | undefined;
341
+ locale?: string | undefined;
342
+ agent?: {
341
343
  id?: string | undefined;
342
344
  name?: string | undefined;
343
345
  aadObjectId?: string | undefined;
344
346
  role?: string | undefined;
345
347
  properties?: unknown;
346
348
  } | null | undefined;
347
- activityId?: string | undefined;
348
- locale?: string | undefined;
349
349
  serviceUrl?: string | undefined;
350
350
  }, {
351
351
  conversation: {
@@ -366,18 +366,18 @@ export declare const activityZodSchema: z.ZodObject<{
366
366
  role?: string | undefined;
367
367
  properties?: unknown;
368
368
  } | undefined;
369
- bot?: {
369
+ activityId?: string | undefined;
370
+ locale?: string | undefined;
371
+ agent?: {
370
372
  id?: string | undefined;
371
373
  name?: string | undefined;
372
374
  aadObjectId?: string | undefined;
373
375
  role?: string | undefined;
374
376
  properties?: unknown;
375
377
  } | null | undefined;
376
- activityId?: string | undefined;
377
- locale?: string | undefined;
378
378
  serviceUrl?: string | undefined;
379
379
  }>>;
380
- code: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["unknown", "completedSuccessfully", "userCancelled", "botTimedOut", "botIssuedInvalidMessage", "channelFailed"]>, z.ZodString]>>;
380
+ code: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["unknown", "completedSuccessfully", "userCancelled", "agentTimedOut", "agentIssuedInvalidMessage", "channelFailed"]>, z.ZodString]>>;
381
381
  expiration: z.ZodOptional<z.ZodString>;
382
382
  importance: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["low", "normal", "high"]>, z.ZodString]>>;
383
383
  deliveryMode: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["normal", "notification", "expectReplies", "ephemeral"]>, z.ZodString]>>;
@@ -397,23 +397,23 @@ export declare const activityZodSchema: z.ZodObject<{
397
397
  state: z.ZodUnion<[z.ZodEnum<["start", "continue", "done"]>, z.ZodString]>;
398
398
  entities: z.ZodRecord<z.ZodString, z.ZodObject<{
399
399
  type: z.ZodString;
400
- }, "strip", z.ZodTypeAny, {
401
- type: string;
402
- }, {
403
- type: string;
404
- }>>;
400
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
401
+ type: z.ZodString;
402
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
403
+ type: z.ZodString;
404
+ }, z.ZodTypeAny, "passthrough">>>;
405
405
  }, "strip", z.ZodTypeAny, {
406
406
  id: string;
407
407
  state: string;
408
- entities: Record<string, {
409
- type: string;
410
- }>;
408
+ entities: Record<string, z.objectOutputType<{
409
+ type: z.ZodString;
410
+ }, z.ZodTypeAny, "passthrough">>;
411
411
  }, {
412
412
  id: string;
413
413
  state: string;
414
- entities: Record<string, {
415
- type: string;
416
- }>;
414
+ entities: Record<string, z.objectInputType<{
415
+ type: z.ZodString;
416
+ }, z.ZodTypeAny, "passthrough">>;
417
417
  }>>;
418
418
  }, "strip", z.ZodTypeAny, {
419
419
  type: string;
@@ -422,9 +422,9 @@ export declare const activityZodSchema: z.ZodObject<{
422
422
  text?: string | undefined;
423
423
  channelData?: any;
424
424
  id?: string | undefined;
425
- entities?: {
426
- type: string;
427
- }[] | undefined;
425
+ entities?: z.objectOutputType<{
426
+ type: z.ZodString;
427
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
428
428
  name?: string | undefined;
429
429
  locale?: string | undefined;
430
430
  conversation?: {
@@ -527,15 +527,15 @@ export declare const activityZodSchema: z.ZodObject<{
527
527
  role?: string | undefined;
528
528
  properties?: unknown;
529
529
  } | undefined;
530
- bot?: {
530
+ activityId?: string | undefined;
531
+ locale?: string | undefined;
532
+ agent?: {
531
533
  id?: string | undefined;
532
534
  name?: string | undefined;
533
535
  aadObjectId?: string | undefined;
534
536
  role?: string | undefined;
535
537
  properties?: unknown;
536
538
  } | null | undefined;
537
- activityId?: string | undefined;
538
- locale?: string | undefined;
539
539
  serviceUrl?: string | undefined;
540
540
  } | undefined;
541
541
  expiration?: string | undefined;
@@ -549,9 +549,9 @@ export declare const activityZodSchema: z.ZodObject<{
549
549
  semanticAction?: {
550
550
  id: string;
551
551
  state: string;
552
- entities: Record<string, {
553
- type: string;
554
- }>;
552
+ entities: Record<string, z.objectOutputType<{
553
+ type: z.ZodString;
554
+ }, z.ZodTypeAny, "passthrough">>;
555
555
  } | undefined;
556
556
  }, {
557
557
  type: string;
@@ -560,9 +560,9 @@ export declare const activityZodSchema: z.ZodObject<{
560
560
  text?: string | undefined;
561
561
  channelData?: any;
562
562
  id?: string | undefined;
563
- entities?: {
564
- type: string;
565
- }[] | undefined;
563
+ entities?: z.objectInputType<{
564
+ type: z.ZodString;
565
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
566
566
  name?: string | undefined;
567
567
  locale?: string | undefined;
568
568
  conversation?: {
@@ -584,7 +584,7 @@ export declare const activityZodSchema: z.ZodObject<{
584
584
  role?: string | undefined;
585
585
  properties?: unknown;
586
586
  } | undefined;
587
- timestamp?: string | undefined;
587
+ timestamp?: string | Date | undefined;
588
588
  localTimestamp?: string | undefined;
589
589
  localTimezone?: string | undefined;
590
590
  callerId?: string | undefined;
@@ -665,15 +665,15 @@ export declare const activityZodSchema: z.ZodObject<{
665
665
  role?: string | undefined;
666
666
  properties?: unknown;
667
667
  } | undefined;
668
- bot?: {
668
+ activityId?: string | undefined;
669
+ locale?: string | undefined;
670
+ agent?: {
669
671
  id?: string | undefined;
670
672
  name?: string | undefined;
671
673
  aadObjectId?: string | undefined;
672
674
  role?: string | undefined;
673
675
  properties?: unknown;
674
676
  } | null | undefined;
675
- activityId?: string | undefined;
676
- locale?: string | undefined;
677
677
  serviceUrl?: string | undefined;
678
678
  } | undefined;
679
679
  expiration?: string | undefined;
@@ -687,9 +687,9 @@ export declare const activityZodSchema: z.ZodObject<{
687
687
  semanticAction?: {
688
688
  id: string;
689
689
  state: string;
690
- entities: Record<string, {
691
- type: string;
692
- }>;
690
+ entities: Record<string, z.objectInputType<{
691
+ type: z.ZodString;
692
+ }, z.ZodTypeAny, "passthrough">>;
693
693
  } | undefined;
694
694
  }>;
695
695
  /**
@@ -808,4 +808,5 @@ export declare class Activity {
808
808
  * @returns The conversation reference.
809
809
  */
810
810
  getReplyConversationReference(replyId: string): ConversationReference;
811
+ toJsonString(): string;
811
812
  }
@@ -34,7 +34,7 @@ exports.activityZodSchema = zod_1.z.object({
34
34
  id: zod_1.z.string().min(1).optional(),
35
35
  channelId: zod_1.z.string().min(1).optional(),
36
36
  from: channelAccount_1.channelAccountZodSchema.optional(),
37
- timestamp: zod_1.z.union([zod_1.z.string().min(1).datetime().optional(), zod_1.z.string().min(1).transform(s => new Date(s)).optional()]),
37
+ timestamp: zod_1.z.union([zod_1.z.date(), zod_1.z.string().min(1).datetime().optional(), zod_1.z.string().min(1).transform(s => new Date(s)).optional()]),
38
38
  localTimestamp: zod_1.z.string().min(1).transform(s => new Date(s)).optional(),
39
39
  localTimezone: zod_1.z.string().min(1).optional(),
40
40
  callerId: zod_1.z.string().min(1).optional(),
@@ -55,7 +55,7 @@ exports.activityZodSchema = zod_1.z.object({
55
55
  summary: zod_1.z.string().min(1).optional(),
56
56
  suggestedActions: suggestedActions_1.suggestedActionsZodSchema.optional(),
57
57
  attachments: zod_1.z.array(attachment_1.attachmentZodSchema).optional(),
58
- entities: zod_1.z.array(entity_1.entityZodSchema).optional(),
58
+ entities: zod_1.z.array(entity_1.entityZodSchema.passthrough()).optional(),
59
59
  channelData: zod_1.z.any().optional(),
60
60
  action: zod_1.z.string().min(1).optional(),
61
61
  replyToId: zod_1.z.string().min(1).optional(),
@@ -126,7 +126,7 @@ class Activity {
126
126
  locale: reference.locale,
127
127
  serviceUrl: reference.serviceUrl,
128
128
  conversation: reference.conversation,
129
- recipient: reference.bot,
129
+ recipient: reference.agent,
130
130
  from: reference.user,
131
131
  relatesTo: reference
132
132
  };
@@ -165,7 +165,7 @@ class Activity {
165
165
  return {
166
166
  activityId: this.getAppropriateReplyToId(),
167
167
  user: this.from,
168
- bot: this.recipient,
168
+ agent: this.recipient,
169
169
  conversation: this.conversation,
170
170
  channelId: this.channelId,
171
171
  locale: this.locale,
@@ -186,13 +186,13 @@ class Activity {
186
186
  this.conversation = reference.conversation;
187
187
  if (isIncoming) {
188
188
  this.from = reference.user;
189
- this.recipient = (_b = reference.bot) !== null && _b !== void 0 ? _b : undefined;
189
+ this.recipient = (_b = reference.agent) !== null && _b !== void 0 ? _b : undefined;
190
190
  if (reference.activityId) {
191
191
  this.id = reference.activityId;
192
192
  }
193
193
  }
194
194
  else {
195
- this.from = (_c = reference.bot) !== null && _c !== void 0 ? _c : undefined;
195
+ this.from = (_c = reference.agent) !== null && _c !== void 0 ? _c : undefined;
196
196
  this.recipient = reference.user;
197
197
  if (reference.activityId) {
198
198
  this.replyToId = reference.activityId;
@@ -259,6 +259,9 @@ class Activity {
259
259
  reference.activityId = replyId;
260
260
  return reference;
261
261
  }
262
+ toJsonString() {
263
+ return JSON.stringify(this);
264
+ }
262
265
  }
263
266
  exports.Activity = Activity;
264
267
  //# sourceMappingURL=activity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"activity.js","sourceRoot":"","sources":["../../src/activity.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WAAW,CAAC,IAAI,CAAC,CAAA;QACvC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,EAAW,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;QAC3F,IAAI,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YAC/C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;QACpE,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,IAAI,EAAE,CAAA;IACxB,CAAC;IAED;;;OAGG;IACI,sBAAsB;QAC3B,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC;YAClD,OAAO,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;QAClD,CAAC;QACD,OAAO,EAAE,CAAA;IACX,CAAC;IAED;;;;OAIG;IACI,6BAA6B,CAClC,OAAe;QAEf,MAAM,SAAS,GAA0B,IAAI,CAAC,wBAAwB,EAAE,CAAA;QAExE,SAAS,CAAC,UAAU,GAAG,OAAO,CAAA;QAE9B,OAAO,SAAS,CAAA;IAClB,CAAC;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;IAC7B,CAAC;CACF;AAnQD,4BAmQC"}
@@ -15,7 +15,7 @@ export declare const CallerIdConstants: {
15
15
  */
16
16
  USGovChannel: string;
17
17
  /**
18
- * Bot-to-bot prefix for caller ID.
18
+ * Agent prefix for caller ID.
19
19
  */
20
- BotToBotPrefix: string;
20
+ AgentPrefix: string;
21
21
  };
@@ -18,8 +18,8 @@ exports.CallerIdConstants = {
18
18
  */
19
19
  USGovChannel: 'urn:botframework:azureusgov',
20
20
  /**
21
- * Bot-to-bot prefix for caller ID.
21
+ * Agent prefix for caller ID.
22
22
  */
23
- BotToBotPrefix: 'urn:botframework:aadappid:'
23
+ AgentPrefix: 'urn:botframework:aadappid:'
24
24
  };
25
25
  //# sourceMappingURL=callerIdConstants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"callerIdConstants.js","sourceRoot":"","sources":["../../src/callerIdConstants.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B;;OAEG;IACH,kBAAkB,EAAE,wBAAwB;IAC5C;;OAEG;IACH,YAAY,EAAE,6BAA6B;IAC3C;;OAEG;IACH,cAAc,EAAE,4BAA4B;CAC7C,CAAA"}
1
+ {"version":3,"file":"callerIdConstants.js","sourceRoot":"","sources":["../../src/callerIdConstants.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B;;OAEG;IACH,kBAAkB,EAAE,wBAAwB;IAC5C;;OAEG;IACH,YAAY,EAAE,6BAA6B;IAC3C;;OAEG;IACH,WAAW,EAAE,4BAA4B;CAC1C,CAAA"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Copyright(c) Microsoft Corporation.All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+ import { Activity, ChannelAccount } from '../';
6
+ /**
7
+ * Represents the parameters for creating a conversation.
8
+ */
9
+ export interface ConversationParameters {
10
+ /**
11
+ * Indicates whether the conversation is a group conversation.
12
+ */
13
+ isGroup: boolean;
14
+ /**
15
+ * The bot account initiating the conversation.
16
+ */
17
+ agent?: ChannelAccount;
18
+ /**
19
+ * The members to include in the conversation.
20
+ */
21
+ members?: ChannelAccount[];
22
+ /**
23
+ * The topic name of the conversation.
24
+ */
25
+ topicName?: string;
26
+ /**
27
+ * The tenant ID of the conversation.
28
+ */
29
+ tenantId?: string;
30
+ /**
31
+ * The initial activity to send to the conversation.
32
+ */
33
+ activity: Activity;
34
+ /**
35
+ * Channel-specific data for the conversation.
36
+ */
37
+ channelData: unknown;
38
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright(c) Microsoft Corporation.All rights reserved.
4
+ * Licensed under the MIT License.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=conversationParameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversationParameters.js","sourceRoot":"","sources":["../../../src/conversation/conversationParameters.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
@@ -12,7 +12,7 @@ export interface ConversationReference {
12
12
  activityId?: string;
13
13
  user?: ChannelAccount;
14
14
  locale?: string;
15
- bot?: ChannelAccount | undefined | null;
15
+ agent?: ChannelAccount | undefined | null;
16
16
  conversation: ConversationAccount;
17
17
  channelId: string;
18
18
  serviceUrl?: string | undefined;
@@ -42,7 +42,7 @@ export declare const conversationReferenceZodSchema: z.ZodObject<{
42
42
  properties?: unknown;
43
43
  }>>;
44
44
  locale: z.ZodOptional<z.ZodString>;
45
- bot: z.ZodNullable<z.ZodOptional<z.ZodObject<{
45
+ agent: z.ZodNullable<z.ZodOptional<z.ZodObject<{
46
46
  id: z.ZodOptional<z.ZodString>;
47
47
  name: z.ZodOptional<z.ZodString>;
48
48
  aadObjectId: z.ZodOptional<z.ZodString>;
@@ -110,15 +110,15 @@ export declare const conversationReferenceZodSchema: z.ZodObject<{
110
110
  role?: string | undefined;
111
111
  properties?: unknown;
112
112
  } | undefined;
113
- bot?: {
113
+ activityId?: string | undefined;
114
+ locale?: string | undefined;
115
+ agent?: {
114
116
  id?: string | undefined;
115
117
  name?: string | undefined;
116
118
  aadObjectId?: string | undefined;
117
119
  role?: string | undefined;
118
120
  properties?: unknown;
119
121
  } | null | undefined;
120
- activityId?: string | undefined;
121
- locale?: string | undefined;
122
122
  serviceUrl?: string | undefined;
123
123
  }, {
124
124
  conversation: {
@@ -139,14 +139,14 @@ export declare const conversationReferenceZodSchema: z.ZodObject<{
139
139
  role?: string | undefined;
140
140
  properties?: unknown;
141
141
  } | undefined;
142
- bot?: {
142
+ activityId?: string | undefined;
143
+ locale?: string | undefined;
144
+ agent?: {
143
145
  id?: string | undefined;
144
146
  name?: string | undefined;
145
147
  aadObjectId?: string | undefined;
146
148
  role?: string | undefined;
147
149
  properties?: unknown;
148
150
  } | null | undefined;
149
- activityId?: string | undefined;
150
- locale?: string | undefined;
151
151
  serviceUrl?: string | undefined;
152
152
  }>;
@@ -15,7 +15,7 @@ exports.conversationReferenceZodSchema = zod_1.z.object({
15
15
  activityId: zod_1.z.string().min(1).optional(),
16
16
  user: channelAccount_1.channelAccountZodSchema.optional(),
17
17
  locale: zod_1.z.string().min(1).optional(),
18
- bot: channelAccount_1.channelAccountZodSchema.optional().nullable(),
18
+ agent: channelAccount_1.channelAccountZodSchema.optional().nullable(),
19
19
  conversation: conversationAccount_1.conversationAccountZodSchema,
20
20
  channelId: zod_1.z.string().min(1),
21
21
  serviceUrl: zod_1.z.string().min(1).optional()
@@ -1 +1 @@
1
- {"version":3,"file":"conversationReference.js","sourceRoot":"","sources":["../../../src/conversation/conversationReference.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,qDAA0E;AAC1E,+DAAyF;AAezF;;GAEG;AACU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxC,IAAI,EAAE,wCAAuB,CAAC,QAAQ,EAAE;IACxC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpC,GAAG,EAAE,wCAAuB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAClD,YAAY,EAAE,kDAA4B;IAC1C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA"}
1
+ {"version":3,"file":"conversationReference.js","sourceRoot":"","sources":["../../../src/conversation/conversationReference.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,qDAA0E;AAC1E,+DAAyF;AAezF;;GAEG;AACU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxC,IAAI,EAAE,wCAAuB,CAAC,QAAQ,EAAE;IACxC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpC,KAAK,EAAE,wCAAuB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACpD,YAAY,EAAE,kDAA4B;IAC1C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA"}
@@ -10,11 +10,11 @@ export declare enum EndOfConversationCodes {
10
10
  Unknown = "unknown",
11
11
  CompletedSuccessfully = "completedSuccessfully",
12
12
  UserCancelled = "userCancelled",
13
- BotTimedOut = "botTimedOut",
14
- BotIssuedInvalidMessage = "botIssuedInvalidMessage",
13
+ AgentTimedOut = "agentTimedOut",
14
+ AgentIssuedInvalidMessage = "agentIssuedInvalidMessage",
15
15
  ChannelFailed = "channelFailed"
16
16
  }
17
17
  /**
18
18
  * Zod schema for validating end of conversation codes.
19
19
  */
20
- export declare const endOfConversationCodesZodSchema: z.ZodEnum<["unknown", "completedSuccessfully", "userCancelled", "botTimedOut", "botIssuedInvalidMessage", "channelFailed"]>;
20
+ export declare const endOfConversationCodesZodSchema: z.ZodEnum<["unknown", "completedSuccessfully", "userCancelled", "agentTimedOut", "agentIssuedInvalidMessage", "channelFailed"]>;
@@ -14,12 +14,12 @@ var EndOfConversationCodes;
14
14
  EndOfConversationCodes["Unknown"] = "unknown";
15
15
  EndOfConversationCodes["CompletedSuccessfully"] = "completedSuccessfully";
16
16
  EndOfConversationCodes["UserCancelled"] = "userCancelled";
17
- EndOfConversationCodes["BotTimedOut"] = "botTimedOut";
18
- EndOfConversationCodes["BotIssuedInvalidMessage"] = "botIssuedInvalidMessage";
17
+ EndOfConversationCodes["AgentTimedOut"] = "agentTimedOut";
18
+ EndOfConversationCodes["AgentIssuedInvalidMessage"] = "agentIssuedInvalidMessage";
19
19
  EndOfConversationCodes["ChannelFailed"] = "channelFailed";
20
20
  })(EndOfConversationCodes || (exports.EndOfConversationCodes = EndOfConversationCodes = {}));
21
21
  /**
22
22
  * Zod schema for validating end of conversation codes.
23
23
  */
24
- exports.endOfConversationCodesZodSchema = zod_1.z.enum(['unknown', 'completedSuccessfully', 'userCancelled', 'botTimedOut', 'botIssuedInvalidMessage', 'channelFailed']);
24
+ exports.endOfConversationCodesZodSchema = zod_1.z.enum(['unknown', 'completedSuccessfully', 'userCancelled', 'agentTimedOut', 'agentIssuedInvalidMessage', 'channelFailed']);
25
25
  //# sourceMappingURL=endOfConversationCodes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"endOfConversationCodes.js","sourceRoot":"","sources":["../../../src/conversation/endOfConversationCodes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,yEAA+C,CAAA;IAC/C,yDAA+B,CAAA;IAC/B,qDAA2B,CAAA;IAC3B,6EAAmD,CAAA;IACnD,yDAA+B,CAAA;AACjC,CAAC,EAPW,sBAAsB,sCAAtB,sBAAsB,QAOjC;AAED;;GAEG;AACU,QAAA,+BAA+B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,uBAAuB,EAAE,eAAe,EAAE,aAAa,EAAE,yBAAyB,EAAE,eAAe,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"endOfConversationCodes.js","sourceRoot":"","sources":["../../../src/conversation/endOfConversationCodes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,yEAA+C,CAAA;IAC/C,yDAA+B,CAAA;IAC/B,yDAA+B,CAAA;IAC/B,iFAAuD,CAAA;IACvD,yDAA+B,CAAA;AACjC,CAAC,EAPW,sBAAsB,sCAAtB,sBAAsB,QAOjC;AAED;;GAEG;AACU,QAAA,+BAA+B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,uBAAuB,EAAE,eAAe,EAAE,eAAe,EAAE,2BAA2B,EAAE,eAAe,CAAC,CAAC,CAAA"}
@@ -8,7 +8,7 @@ import { z } from 'zod';
8
8
  */
9
9
  export declare enum RoleTypes {
10
10
  User = "user",
11
- Bot = "bot",
11
+ Agent = "bot",
12
12
  Skill = "skill"
13
13
  }
14
14
  /**
@@ -12,7 +12,7 @@ const zod_1 = require("zod");
12
12
  var RoleTypes;
13
13
  (function (RoleTypes) {
14
14
  RoleTypes["User"] = "user";
15
- RoleTypes["Bot"] = "bot";
15
+ RoleTypes["Agent"] = "bot";
16
16
  RoleTypes["Skill"] = "skill";
17
17
  })(RoleTypes || (exports.RoleTypes = RoleTypes = {}));
18
18
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"roleTypes.js","sourceRoot":"","sources":["../../../src/conversation/roleTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,wBAAW,CAAA;IACX,4BAAe,CAAA;AACjB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED;;GAEG;AACU,QAAA,iBAAiB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"roleTypes.js","sourceRoot":"","sources":["../../../src/conversation/roleTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,4BAAe,CAAA;AACjB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED;;GAEG;AACU,QAAA,iBAAiB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA"}
@@ -21,8 +21,8 @@ export interface Entity {
21
21
  */
22
22
  export declare const entityZodSchema: z.ZodObject<{
23
23
  type: z.ZodString;
24
- }, "strip", z.ZodTypeAny, {
25
- type: string;
26
- }, {
27
- type: string;
28
- }>;
24
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
25
+ type: z.ZodString;
26
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
27
+ type: z.ZodString;
28
+ }, z.ZodTypeAny, "passthrough">>;
@@ -11,5 +11,5 @@ const zod_1 = require("zod");
11
11
  */
12
12
  exports.entityZodSchema = zod_1.z.object({
13
13
  type: zod_1.z.string().min(1)
14
- });
14
+ }).passthrough();
15
15
  //# sourceMappingURL=entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/entity/entity.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAgBvB;;GAEG;AACU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxB,CAAC,CAAA"}
1
+ {"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/entity/entity.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAgBvB;;GAEG;AACU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxB,CAAC,CAAC,WAAW,EAAE,CAAA"}
@@ -17,6 +17,7 @@ export { Channels } from './conversation/channels';
17
17
  export { ConversationAccount } from './conversation/conversationAccount';
18
18
  export { ConversationReference } from './conversation/conversationReference';
19
19
  export { EndOfConversationCodes } from './conversation/endOfConversationCodes';
20
+ export { ConversationParameters } from './conversation/conversationParameters';
20
21
  export { RoleTypes } from './conversation/roleTypes';
21
22
  export { Entity } from './entity/entity';
22
23
  export { Mention } from './entity/mention';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAEH;;GAEG;AACH,oDAAkD;AAAzC,0GAAA,WAAW,OAAA;AAGpB,8EAA4E;AAAnE,oIAAA,wBAAwB,OAAA;AAIjC,4EAA0E;AAAjE,8HAAA,qBAAqB,OAAA;AAG9B,oDAAkD;AAAzC,oGAAA,QAAQ,OAAA;AAGjB,gFAA8E;AAArE,gIAAA,sBAAsB,OAAA;AAC/B,sDAAoD;AAA3C,sGAAA,SAAS,OAAA;AAQlB,oEAAiD;AAEjD,uCAAwD;AAA/C,oGAAA,QAAQ,OAAA;AAAE,6GAAA,iBAAiB,OAAA;AACpC,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAC3B,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAC3B,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AAEtB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AAEnB,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA;AAC7B,qDAAmD;AAA1C,kHAAA,eAAe,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAEH;;GAEG;AACH,oDAAkD;AAAzC,0GAAA,WAAW,OAAA;AAGpB,8EAA4E;AAAnE,oIAAA,wBAAwB,OAAA;AAIjC,4EAA0E;AAAjE,8HAAA,qBAAqB,OAAA;AAG9B,oDAAkD;AAAzC,oGAAA,QAAQ,OAAA;AAGjB,gFAA8E;AAArE,gIAAA,sBAAsB,OAAA;AAE/B,sDAAoD;AAA3C,sGAAA,SAAS,OAAA;AAQlB,oEAAiD;AAEjD,uCAAwD;AAA/C,oGAAA,QAAQ,OAAA;AAAE,6GAAA,iBAAiB,OAAA;AACpC,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAC3B,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAC3B,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AAEtB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AAEnB,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA;AAC7B,qDAAmD;AAA1C,kHAAA,eAAe,OAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@microsoft/agents-activity",
4
- "version": "0.1.49",
4
+ "version": "0.2.8-g3bf5832077",
5
5
  "homepage": "https://github.com/microsoft/Agents-for-js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -20,10 +20,7 @@
20
20
  "types": "dist/src/index.d.ts",
21
21
  "dependencies": {
22
22
  "uuid": "^11.1.0",
23
- "zod": "^3.24.2"
24
- },
25
- "devDependencies": {
26
- "@types/express": "^5.0.1"
23
+ "zod": "^3.24.3"
27
24
  },
28
25
  "license": "MIT",
29
26
  "files": [
package/src/activity.ts CHANGED
@@ -34,7 +34,7 @@ export const activityZodSchema = z.object({
34
34
  id: z.string().min(1).optional(),
35
35
  channelId: z.string().min(1).optional(),
36
36
  from: channelAccountZodSchema.optional(),
37
- timestamp: z.union([z.string().min(1).datetime().optional(), z.string().min(1).transform(s => new Date(s)).optional()]),
37
+ timestamp: z.union([z.date(), z.string().min(1).datetime().optional(), z.string().min(1).transform(s => new Date(s)).optional()]),
38
38
  localTimestamp: z.string().min(1).transform(s => new Date(s)).optional(),
39
39
  localTimezone: z.string().min(1).optional(),
40
40
  callerId: z.string().min(1).optional(),
@@ -55,7 +55,7 @@ export const activityZodSchema = z.object({
55
55
  summary: z.string().min(1).optional(),
56
56
  suggestedActions: suggestedActionsZodSchema.optional(),
57
57
  attachments: z.array(attachmentZodSchema).optional(),
58
- entities: z.array(entityZodSchema).optional(),
58
+ entities: z.array(entityZodSchema.passthrough()).optional(),
59
59
  channelData: z.any().optional(),
60
60
  action: z.string().min(1).optional(),
61
61
  replyToId: z.string().min(1).optional(),
@@ -178,7 +178,7 @@ export class Activity {
178
178
  locale: reference.locale,
179
179
  serviceUrl: reference.serviceUrl,
180
180
  conversation: reference.conversation,
181
- recipient: reference.bot,
181
+ recipient: reference.agent,
182
182
  from: reference.user,
183
183
  relatesTo: reference
184
184
  }
@@ -223,7 +223,7 @@ export class Activity {
223
223
  return {
224
224
  activityId: this.getAppropriateReplyToId(),
225
225
  user: this.from,
226
- bot: this.recipient,
226
+ agent: this.recipient,
227
227
  conversation: this.conversation,
228
228
  channelId: this.channelId,
229
229
  locale: this.locale,
@@ -247,12 +247,12 @@ export class Activity {
247
247
  this.conversation = reference.conversation
248
248
  if (isIncoming) {
249
249
  this.from = reference.user
250
- this.recipient = reference.bot ?? undefined
250
+ this.recipient = reference.agent ?? undefined
251
251
  if (reference.activityId) {
252
252
  this.id = reference.activityId
253
253
  }
254
254
  } else {
255
- this.from = reference.bot ?? undefined
255
+ this.from = reference.agent ?? undefined
256
256
  this.recipient = reference.user
257
257
  if (reference.activityId) {
258
258
  this.replyToId = reference.activityId
@@ -331,4 +331,8 @@ export class Activity {
331
331
 
332
332
  return reference
333
333
  }
334
+
335
+ public toJsonString (): string {
336
+ return JSON.stringify(this)
337
+ }
334
338
  }
@@ -16,7 +16,7 @@ export const CallerIdConstants = {
16
16
  */
17
17
  USGovChannel: 'urn:botframework:azureusgov',
18
18
  /**
19
- * Bot-to-bot prefix for caller ID.
19
+ * Agent prefix for caller ID.
20
20
  */
21
- BotToBotPrefix: 'urn:botframework:aadappid:'
21
+ AgentPrefix: 'urn:botframework:aadappid:'
22
22
  }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Copyright(c) Microsoft Corporation.All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { Activity, ChannelAccount } from '../'
7
+
8
+ /**
9
+ * Represents the parameters for creating a conversation.
10
+ */
11
+ export interface ConversationParameters {
12
+ /**
13
+ * Indicates whether the conversation is a group conversation.
14
+ */
15
+ isGroup: boolean
16
+ /**
17
+ * The bot account initiating the conversation.
18
+ */
19
+ agent?: ChannelAccount
20
+ /**
21
+ * The members to include in the conversation.
22
+ */
23
+ members?: ChannelAccount[]
24
+ /**
25
+ * The topic name of the conversation.
26
+ */
27
+ topicName?: string
28
+ /**
29
+ * The tenant ID of the conversation.
30
+ */
31
+ tenantId?: string
32
+ /**
33
+ * The initial activity to send to the conversation.
34
+ */
35
+ activity: Activity
36
+ /**
37
+ * Channel-specific data for the conversation.
38
+ */
39
+ channelData: unknown
40
+ }
@@ -14,7 +14,7 @@ export interface ConversationReference {
14
14
  activityId?: string
15
15
  user?: ChannelAccount
16
16
  locale?: string
17
- bot?: ChannelAccount | undefined | null
17
+ agent?: ChannelAccount | undefined | null
18
18
  conversation: ConversationAccount
19
19
  channelId: string
20
20
  serviceUrl?: string | undefined
@@ -27,7 +27,7 @@ export const conversationReferenceZodSchema = z.object({
27
27
  activityId: z.string().min(1).optional(),
28
28
  user: channelAccountZodSchema.optional(),
29
29
  locale: z.string().min(1).optional(),
30
- bot: channelAccountZodSchema.optional().nullable(),
30
+ agent: channelAccountZodSchema.optional().nullable(),
31
31
  conversation: conversationAccountZodSchema,
32
32
  channelId: z.string().min(1),
33
33
  serviceUrl: z.string().min(1).optional()
@@ -12,12 +12,12 @@ export enum EndOfConversationCodes {
12
12
  Unknown = 'unknown',
13
13
  CompletedSuccessfully = 'completedSuccessfully',
14
14
  UserCancelled = 'userCancelled',
15
- BotTimedOut = 'botTimedOut',
16
- BotIssuedInvalidMessage = 'botIssuedInvalidMessage',
15
+ AgentTimedOut = 'agentTimedOut',
16
+ AgentIssuedInvalidMessage = 'agentIssuedInvalidMessage',
17
17
  ChannelFailed = 'channelFailed',
18
18
  }
19
19
 
20
20
  /**
21
21
  * Zod schema for validating end of conversation codes.
22
22
  */
23
- export const endOfConversationCodesZodSchema = z.enum(['unknown', 'completedSuccessfully', 'userCancelled', 'botTimedOut', 'botIssuedInvalidMessage', 'channelFailed'])
23
+ export const endOfConversationCodesZodSchema = z.enum(['unknown', 'completedSuccessfully', 'userCancelled', 'agentTimedOut', 'agentIssuedInvalidMessage', 'channelFailed'])
@@ -10,7 +10,7 @@ import { z } from 'zod'
10
10
  */
11
11
  export enum RoleTypes {
12
12
  User = 'user',
13
- Bot = 'bot',
13
+ Agent = 'bot',
14
14
  Skill = 'skill',
15
15
  }
16
16
 
@@ -24,4 +24,4 @@ export interface Entity {
24
24
  */
25
25
  export const entityZodSchema = z.object({
26
26
  type: z.string().min(1)
27
- })
27
+ }).passthrough()
package/src/index.ts CHANGED
@@ -20,6 +20,7 @@ export { Channels } from './conversation/channels'
20
20
  export { ConversationAccount } from './conversation/conversationAccount'
21
21
  export { ConversationReference } from './conversation/conversationReference'
22
22
  export { EndOfConversationCodes } from './conversation/endOfConversationCodes'
23
+ export { ConversationParameters } from './conversation/conversationParameters'
23
24
  export { RoleTypes } from './conversation/roleTypes'
24
25
 
25
26
  export { Entity } from './entity/entity'