@microsoft/agents-activity 1.0.15 → 1.1.0-alpha.12.gecd5464d28

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.
@@ -65,21 +65,21 @@ export declare const activityZodSchema: z.ZodObject<{
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  id: string;
67
67
  name?: string | undefined;
68
+ tenantId?: string | undefined;
68
69
  aadObjectId?: string | undefined;
69
70
  role?: string | undefined;
70
71
  properties?: unknown;
71
72
  isGroup?: boolean | undefined;
72
73
  conversationType?: string | undefined;
73
- tenantId?: string | undefined;
74
74
  }, {
75
75
  id: string;
76
76
  name?: string | undefined;
77
+ tenantId?: string | undefined;
77
78
  aadObjectId?: string | undefined;
78
79
  role?: string | undefined;
79
80
  properties?: unknown;
80
81
  isGroup?: boolean | undefined;
81
82
  conversationType?: string | undefined;
82
- tenantId?: string | undefined;
83
83
  }>>;
84
84
  recipient: z.ZodOptional<z.ZodObject<{
85
85
  id: z.ZodOptional<z.ZodString>;
@@ -301,21 +301,21 @@ export declare const activityZodSchema: z.ZodObject<{
301
301
  }, "strip", z.ZodTypeAny, {
302
302
  id: string;
303
303
  name?: string | undefined;
304
+ tenantId?: string | undefined;
304
305
  aadObjectId?: string | undefined;
305
306
  role?: string | undefined;
306
307
  properties?: unknown;
307
308
  isGroup?: boolean | undefined;
308
309
  conversationType?: string | undefined;
309
- tenantId?: string | undefined;
310
310
  }, {
311
311
  id: string;
312
312
  name?: string | undefined;
313
+ tenantId?: string | undefined;
313
314
  aadObjectId?: string | undefined;
314
315
  role?: string | undefined;
315
316
  properties?: unknown;
316
317
  isGroup?: boolean | undefined;
317
318
  conversationType?: string | undefined;
318
- tenantId?: string | undefined;
319
319
  }>;
320
320
  channelId: z.ZodString;
321
321
  serviceUrl: z.ZodOptional<z.ZodString>;
@@ -323,12 +323,12 @@ export declare const activityZodSchema: z.ZodObject<{
323
323
  conversation: {
324
324
  id: string;
325
325
  name?: string | undefined;
326
+ tenantId?: string | undefined;
326
327
  aadObjectId?: string | undefined;
327
328
  role?: string | undefined;
328
329
  properties?: unknown;
329
330
  isGroup?: boolean | undefined;
330
331
  conversationType?: string | undefined;
331
- tenantId?: string | undefined;
332
332
  };
333
333
  channelId: string;
334
334
  user?: {
@@ -352,12 +352,12 @@ export declare const activityZodSchema: z.ZodObject<{
352
352
  conversation: {
353
353
  id: string;
354
354
  name?: string | undefined;
355
+ tenantId?: string | undefined;
355
356
  aadObjectId?: string | undefined;
356
357
  role?: string | undefined;
357
358
  properties?: unknown;
358
359
  isGroup?: boolean | undefined;
359
360
  conversationType?: string | undefined;
360
- tenantId?: string | undefined;
361
361
  };
362
362
  channelId: string;
363
363
  user?: {
@@ -431,12 +431,12 @@ export declare const activityZodSchema: z.ZodObject<{
431
431
  conversation?: {
432
432
  id: string;
433
433
  name?: string | undefined;
434
+ tenantId?: string | undefined;
434
435
  aadObjectId?: string | undefined;
435
436
  role?: string | undefined;
436
437
  properties?: unknown;
437
438
  isGroup?: boolean | undefined;
438
439
  conversationType?: string | undefined;
439
- tenantId?: string | undefined;
440
440
  } | undefined;
441
441
  channelId?: string | undefined;
442
442
  serviceUrl?: string | undefined;
@@ -513,12 +513,12 @@ export declare const activityZodSchema: z.ZodObject<{
513
513
  conversation: {
514
514
  id: string;
515
515
  name?: string | undefined;
516
+ tenantId?: string | undefined;
516
517
  aadObjectId?: string | undefined;
517
518
  role?: string | undefined;
518
519
  properties?: unknown;
519
520
  isGroup?: boolean | undefined;
520
521
  conversationType?: string | undefined;
521
- tenantId?: string | undefined;
522
522
  };
523
523
  channelId: string;
524
524
  user?: {
@@ -569,12 +569,12 @@ export declare const activityZodSchema: z.ZodObject<{
569
569
  conversation?: {
570
570
  id: string;
571
571
  name?: string | undefined;
572
+ tenantId?: string | undefined;
572
573
  aadObjectId?: string | undefined;
573
574
  role?: string | undefined;
574
575
  properties?: unknown;
575
576
  isGroup?: boolean | undefined;
576
577
  conversationType?: string | undefined;
577
- tenantId?: string | undefined;
578
578
  } | undefined;
579
579
  channelId?: string | undefined;
580
580
  serviceUrl?: string | undefined;
@@ -651,12 +651,12 @@ export declare const activityZodSchema: z.ZodObject<{
651
651
  conversation: {
652
652
  id: string;
653
653
  name?: string | undefined;
654
+ tenantId?: string | undefined;
654
655
  aadObjectId?: string | undefined;
655
656
  role?: string | undefined;
656
657
  properties?: unknown;
657
658
  isGroup?: boolean | undefined;
658
659
  conversationType?: string | undefined;
659
- tenantId?: string | undefined;
660
660
  };
661
661
  channelId: string;
662
662
  user?: {
@@ -70,7 +70,7 @@ exports.activityZodSchema = zod_1.z.object({
70
70
  deliveryMode: zod_1.z.union([deliveryModes_1.deliveryModesZodSchema, zod_1.z.string().min(1)]).optional(),
71
71
  listenFor: zod_1.z.array(zod_1.z.string().min(1)).optional(),
72
72
  textHighlights: zod_1.z.array(textHighlight_1.textHighlightZodSchema).optional(),
73
- semanticAction: semanticAction_1.semanticActionZodSchema.optional()
73
+ semanticAction: semanticAction_1.semanticActionZodSchema.optional(),
74
74
  });
75
75
  /**
76
76
  * Represents an activity in a conversation.
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { z } from 'zod';
6
6
  import { RoleTypes } from './roleTypes';
7
+ import { MembershipSource } from './membershipSource';
7
8
  /**
8
9
  * Represents a channel account.
9
10
  */
@@ -28,6 +29,10 @@ export interface ChannelAccount {
28
29
  * Additional properties of the channel account.
29
30
  */
30
31
  properties?: unknown;
32
+ /**
33
+ * List of membership sources associated with the channel account.
34
+ */
35
+ membershipSources?: MembershipSource[];
31
36
  }
32
37
  /**
33
38
  * Zod schema for validating a channel account.
@@ -1 +1 @@
1
- {"version":3,"file":"channelAccount.js","sourceRoot":"","sources":["../../../src/conversation/channelAccount.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,2CAA0D;AAgC1D;;GAEG;AACU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzC,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,6BAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChE,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAA"}
1
+ {"version":3,"file":"channelAccount.js","sourceRoot":"","sources":["../../../src/conversation/channelAccount.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,2CAA0D;AAsC1D;;GAEG;AACU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzC,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,6BAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChE,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAA"}
@@ -56,19 +56,19 @@ export declare const conversationAccountZodSchema: z.ZodObject<{
56
56
  }, "strip", z.ZodTypeAny, {
57
57
  id: string;
58
58
  name?: string | undefined;
59
+ tenantId?: string | undefined;
59
60
  aadObjectId?: string | undefined;
60
61
  role?: string | undefined;
61
62
  properties?: unknown;
62
63
  isGroup?: boolean | undefined;
63
64
  conversationType?: string | undefined;
64
- tenantId?: string | undefined;
65
65
  }, {
66
66
  id: string;
67
67
  name?: string | undefined;
68
+ tenantId?: string | undefined;
68
69
  aadObjectId?: string | undefined;
69
70
  role?: string | undefined;
70
71
  properties?: unknown;
71
72
  isGroup?: boolean | undefined;
72
73
  conversationType?: string | undefined;
73
- tenantId?: string | undefined;
74
74
  }>;
@@ -94,21 +94,21 @@ export declare const conversationReferenceZodSchema: z.ZodObject<{
94
94
  }, "strip", z.ZodTypeAny, {
95
95
  id: string;
96
96
  name?: string | undefined;
97
+ tenantId?: string | undefined;
97
98
  aadObjectId?: string | undefined;
98
99
  role?: string | undefined;
99
100
  properties?: unknown;
100
101
  isGroup?: boolean | undefined;
101
102
  conversationType?: string | undefined;
102
- tenantId?: string | undefined;
103
103
  }, {
104
104
  id: string;
105
105
  name?: string | undefined;
106
+ tenantId?: string | undefined;
106
107
  aadObjectId?: string | undefined;
107
108
  role?: string | undefined;
108
109
  properties?: unknown;
109
110
  isGroup?: boolean | undefined;
110
111
  conversationType?: string | undefined;
111
- tenantId?: string | undefined;
112
112
  }>;
113
113
  channelId: z.ZodString;
114
114
  serviceUrl: z.ZodOptional<z.ZodString>;
@@ -116,12 +116,12 @@ export declare const conversationReferenceZodSchema: z.ZodObject<{
116
116
  conversation: {
117
117
  id: string;
118
118
  name?: string | undefined;
119
+ tenantId?: string | undefined;
119
120
  aadObjectId?: string | undefined;
120
121
  role?: string | undefined;
121
122
  properties?: unknown;
122
123
  isGroup?: boolean | undefined;
123
124
  conversationType?: string | undefined;
124
- tenantId?: string | undefined;
125
125
  };
126
126
  channelId: string;
127
127
  user?: {
@@ -145,12 +145,12 @@ export declare const conversationReferenceZodSchema: z.ZodObject<{
145
145
  conversation: {
146
146
  id: string;
147
147
  name?: string | undefined;
148
+ tenantId?: string | undefined;
148
149
  aadObjectId?: string | undefined;
149
150
  role?: string | undefined;
150
151
  properties?: unknown;
151
152
  isGroup?: boolean | undefined;
152
153
  conversationType?: string | undefined;
153
- tenantId?: string | undefined;
154
154
  };
155
155
  channelId: string;
156
156
  user?: {
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Copyright(c) Microsoft Corporation.All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+ import { z } from 'zod';
6
+ import { MembershipSourceTypes } from './membershipSourceTypes';
7
+ import { MembershipTypes } from './membershipTypes';
8
+ /**
9
+ * Interface representing a membership source.
10
+ */
11
+ export interface MembershipSource {
12
+ /**
13
+ * The type of roster the user is a member of.
14
+ */
15
+ sourceType: MembershipSourceTypes;
16
+ /**
17
+ * The unique identifier of the membership source.
18
+ */
19
+ id: string;
20
+ /**
21
+ * The users relationship to the current channel.
22
+ */
23
+ membershipType: MembershipTypes;
24
+ /**
25
+ * The group ID of the team associated with this membership source.
26
+ */
27
+ teamGroupId: string;
28
+ /**
29
+ * Optional. The tenant ID for the user.
30
+ */
31
+ tenantId?: string;
32
+ }
33
+ /**
34
+ * Zod schema for validating a membership source.
35
+ */
36
+ export declare const membershipSourceZodSchema: z.ZodObject<{
37
+ sourceType: z.ZodEnum<["channel", "team"]>;
38
+ id: z.ZodString;
39
+ name: z.ZodOptional<z.ZodString>;
40
+ membershipType: z.ZodEnum<["direct", "transitive"]>;
41
+ teamGroupId: z.ZodOptional<z.ZodString>;
42
+ tenantId: z.ZodOptional<z.ZodString>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ id: string;
45
+ sourceType: "channel" | "team";
46
+ membershipType: "direct" | "transitive";
47
+ name?: string | undefined;
48
+ teamGroupId?: string | undefined;
49
+ tenantId?: string | undefined;
50
+ }, {
51
+ id: string;
52
+ sourceType: "channel" | "team";
53
+ membershipType: "direct" | "transitive";
54
+ name?: string | undefined;
55
+ teamGroupId?: string | undefined;
56
+ tenantId?: string | undefined;
57
+ }>;
@@ -0,0 +1,22 @@
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
+ exports.membershipSourceZodSchema = void 0;
8
+ const zod_1 = require("zod");
9
+ const membershipSourceTypes_1 = require("./membershipSourceTypes");
10
+ const membershipTypes_1 = require("./membershipTypes");
11
+ /**
12
+ * Zod schema for validating a membership source.
13
+ */
14
+ exports.membershipSourceZodSchema = zod_1.z.object({
15
+ sourceType: membershipSourceTypes_1.membershipSourceTypeZodSchema,
16
+ id: zod_1.z.string().min(1),
17
+ name: zod_1.z.string().optional(),
18
+ membershipType: membershipTypes_1.membershipTypeZodSchema,
19
+ teamGroupId: zod_1.z.string().min(1).optional(),
20
+ tenantId: zod_1.z.string().min(1).optional(),
21
+ });
22
+ //# sourceMappingURL=membershipSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"membershipSource.js","sourceRoot":"","sources":["../../../src/conversation/membershipSource.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,mEAA8F;AAC9F,uDAA4E;AAgC5E;;GAEG;AACU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,qDAA6B;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,cAAc,EAAE,yCAAuB;IACvC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright(c) Microsoft Corporation.All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+ import { z } from 'zod';
6
+ /**
7
+ * Enum defining the type of roster the user is a member of.
8
+ */
9
+ export declare enum MembershipSourceTypes {
10
+ /**
11
+ * The source is that of a channel and the user is a member of that channel.
12
+ */
13
+ Channel = "channel",
14
+ /**
15
+ * The source is that of a team and the user is a member of that team.
16
+ */
17
+ Team = "team"
18
+ }
19
+ /**
20
+ * Zod schema for validating membership source types.
21
+ */
22
+ export declare const membershipSourceTypeZodSchema: z.ZodEnum<["channel", "team"]>;
@@ -0,0 +1,27 @@
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
+ exports.membershipSourceTypeZodSchema = exports.MembershipSourceTypes = void 0;
8
+ const zod_1 = require("zod");
9
+ /**
10
+ * Enum defining the type of roster the user is a member of.
11
+ */
12
+ var MembershipSourceTypes;
13
+ (function (MembershipSourceTypes) {
14
+ /**
15
+ * The source is that of a channel and the user is a member of that channel.
16
+ */
17
+ MembershipSourceTypes["Channel"] = "channel";
18
+ /**
19
+ * The source is that of a team and the user is a member of that team.
20
+ */
21
+ MembershipSourceTypes["Team"] = "team";
22
+ })(MembershipSourceTypes || (exports.MembershipSourceTypes = MembershipSourceTypes = {}));
23
+ /**
24
+ * Zod schema for validating membership source types.
25
+ */
26
+ exports.membershipSourceTypeZodSchema = zod_1.z.enum(['channel', 'team']);
27
+ //# sourceMappingURL=membershipSourceTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"membershipSourceTypes.js","sourceRoot":"","sources":["../../../src/conversation/membershipSourceTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,qBAUX;AAVD,WAAY,qBAAqB;IAC/B;;OAEG;IACH,4CAAmB,CAAA;IAEnB;;OAEG;IACH,sCAAa,CAAA;AACf,CAAC,EAVW,qBAAqB,qCAArB,qBAAqB,QAUhC;AAED;;GAEG;AACU,QAAA,6BAA6B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright(c) Microsoft Corporation.All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+ import { z } from 'zod';
6
+ /**
7
+ * Enum expressing the users relationship to the current channel.
8
+ */
9
+ export declare enum MembershipTypes {
10
+ /**
11
+ * The user is a direct member of a channel.
12
+ */
13
+ Direct = "direct",
14
+ /**
15
+ * The user is a member of a channel through a group.
16
+ */
17
+ Transitive = "transitive"
18
+ }
19
+ /**
20
+ * Zod schema for validating membership source types.
21
+ */
22
+ export declare const membershipTypeZodSchema: z.ZodEnum<["direct", "transitive"]>;
@@ -0,0 +1,27 @@
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
+ exports.membershipTypeZodSchema = exports.MembershipTypes = void 0;
8
+ const zod_1 = require("zod");
9
+ /**
10
+ * Enum expressing the users relationship to the current channel.
11
+ */
12
+ var MembershipTypes;
13
+ (function (MembershipTypes) {
14
+ /**
15
+ * The user is a direct member of a channel.
16
+ */
17
+ MembershipTypes["Direct"] = "direct";
18
+ /**
19
+ * The user is a member of a channel through a group.
20
+ */
21
+ MembershipTypes["Transitive"] = "transitive";
22
+ })(MembershipTypes || (exports.MembershipTypes = MembershipTypes = {}));
23
+ /**
24
+ * Zod schema for validating membership source types.
25
+ */
26
+ exports.membershipTypeZodSchema = zod_1.z.enum(['direct', 'transitive']);
27
+ //# sourceMappingURL=membershipTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"membershipTypes.js","sourceRoot":"","sources":["../../../src/conversation/membershipTypes.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAEvB;;GAEG;AACH,IAAY,eAUX;AAVD,WAAY,eAAe;IACzB;;OAEG;IACH,oCAAiB,CAAA;IAEjB;;OAEG;IACH,4CAAyB,CAAA;AAC3B,CAAC,EAVW,eAAe,+BAAf,eAAe,QAU1B;AAED;;GAEG;AACU,QAAA,uBAAuB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAA"}
@@ -18,6 +18,9 @@ export { ConversationAccount } from './conversation/conversationAccount';
18
18
  export { ConversationReference } from './conversation/conversationReference';
19
19
  export { EndOfConversationCodes } from './conversation/endOfConversationCodes';
20
20
  export { ConversationParameters } from './conversation/conversationParameters';
21
+ export { MembershipSource } from './conversation/membershipSource';
22
+ export { MembershipSourceTypes } from './conversation/membershipSourceTypes';
23
+ export { MembershipTypes } from './conversation/membershipTypes';
21
24
  export { RoleTypes } from './conversation/roleTypes';
22
25
  export { Entity } from './entity/entity';
23
26
  export { Mention } from './entity/mention';
package/dist/src/index.js CHANGED
@@ -18,7 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.Logger = exports.debug = exports.ActivityTreatments = exports.TextFormatTypes = exports.MessageReactionTypes = exports.InputHints = exports.DeliveryModes = exports.CallerIdConstants = exports.ActivityTypes = exports.ActivityImportance = exports.ActivityEventNames = exports.activityZodSchema = exports.Activity = exports.RoleTypes = exports.EndOfConversationCodes = exports.Channels = exports.AttachmentLayoutTypes = exports.SemanticActionStateTypes = exports.ActionTypes = void 0;
21
+ exports.Logger = exports.debug = exports.ActivityTreatments = exports.TextFormatTypes = exports.MessageReactionTypes = exports.InputHints = exports.DeliveryModes = exports.CallerIdConstants = exports.ActivityTypes = exports.ActivityImportance = exports.ActivityEventNames = exports.activityZodSchema = exports.Activity = exports.RoleTypes = exports.MembershipTypes = exports.MembershipSourceTypes = exports.EndOfConversationCodes = exports.Channels = exports.AttachmentLayoutTypes = exports.SemanticActionStateTypes = exports.ActionTypes = void 0;
22
22
  /**
23
23
  * Export statements for various modules.
24
24
  */
@@ -32,6 +32,10 @@ var channels_1 = require("./conversation/channels");
32
32
  Object.defineProperty(exports, "Channels", { enumerable: true, get: function () { return channels_1.Channels; } });
33
33
  var endOfConversationCodes_1 = require("./conversation/endOfConversationCodes");
34
34
  Object.defineProperty(exports, "EndOfConversationCodes", { enumerable: true, get: function () { return endOfConversationCodes_1.EndOfConversationCodes; } });
35
+ var membershipSourceTypes_1 = require("./conversation/membershipSourceTypes");
36
+ Object.defineProperty(exports, "MembershipSourceTypes", { enumerable: true, get: function () { return membershipSourceTypes_1.MembershipSourceTypes; } });
37
+ var membershipTypes_1 = require("./conversation/membershipTypes");
38
+ Object.defineProperty(exports, "MembershipTypes", { enumerable: true, get: function () { return membershipTypes_1.MembershipTypes; } });
35
39
  var roleTypes_1 = require("./conversation/roleTypes");
36
40
  Object.defineProperty(exports, "RoleTypes", { enumerable: true, get: function () { return roleTypes_1.RoleTypes; } });
37
41
  __exportStar(require("./entity/AIEntity"), exports);
@@ -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;AAE/B,sDAAoD;AAA3C,sGAAA,SAAS,OAAA;AAOlB,oDAAiC;AAEjC,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;AAExB,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAC3B,mCAAwC;AAA/B,+FAAA,KAAK,OAAA;AAAE,gGAAA,MAAM,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;AAG/B,8EAA4E;AAAnE,8HAAA,qBAAqB,OAAA;AAC9B,kEAAgE;AAAvD,kHAAA,eAAe,OAAA;AACxB,sDAAoD;AAA3C,sGAAA,SAAS,OAAA;AAOlB,oDAAiC;AAEjC,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;AAExB,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAC3B,mCAAwC;AAA/B,+FAAA,KAAK,OAAA;AAAE,gGAAA,MAAM,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": "1.0.15",
4
+ "version": "1.1.0-alpha.12.gecd5464d28",
5
5
  "homepage": "https://github.com/microsoft/Agents-for-js",
6
6
  "repository": {
7
7
  "type": "git",
package/src/activity.ts CHANGED
@@ -70,7 +70,7 @@ export const activityZodSchema = z.object({
70
70
  deliveryMode: z.union([deliveryModesZodSchema, z.string().min(1)]).optional(),
71
71
  listenFor: z.array(z.string().min(1)).optional(),
72
72
  textHighlights: z.array(textHighlightZodSchema).optional(),
73
- semanticAction: semanticActionZodSchema.optional()
73
+ semanticAction: semanticActionZodSchema.optional(),
74
74
  })
75
75
 
76
76
  /**
@@ -5,6 +5,7 @@
5
5
 
6
6
  import { z } from 'zod'
7
7
  import { roleTypeZodSchema, RoleTypes } from './roleTypes'
8
+ import { MembershipSource } from './membershipSource'
8
9
 
9
10
  /**
10
11
  * Represents a channel account.
@@ -34,6 +35,11 @@ export interface ChannelAccount {
34
35
  * Additional properties of the channel account.
35
36
  */
36
37
  properties?: unknown
38
+
39
+ /**
40
+ * List of membership sources associated with the channel account.
41
+ */
42
+ membershipSources?: MembershipSource[]
37
43
  }
38
44
 
39
45
  /**
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Copyright(c) Microsoft Corporation.All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { z } from 'zod'
7
+ import { MembershipSourceTypes, membershipSourceTypeZodSchema } from './membershipSourceTypes'
8
+ import { MembershipTypes, membershipTypeZodSchema } from './membershipTypes'
9
+
10
+ /**
11
+ * Interface representing a membership source.
12
+ */
13
+ export interface MembershipSource {
14
+ /**
15
+ * The type of roster the user is a member of.
16
+ */
17
+ sourceType: MembershipSourceTypes;
18
+
19
+ /**
20
+ * The unique identifier of the membership source.
21
+ */
22
+ id: string
23
+
24
+ /**
25
+ * The users relationship to the current channel.
26
+ */
27
+ membershipType: MembershipTypes;
28
+
29
+ /**
30
+ * The group ID of the team associated with this membership source.
31
+ */
32
+ teamGroupId: string
33
+
34
+ /**
35
+ * Optional. The tenant ID for the user.
36
+ */
37
+ tenantId?: string
38
+ }
39
+
40
+ /**
41
+ * Zod schema for validating a membership source.
42
+ */
43
+ export const membershipSourceZodSchema = z.object({
44
+ sourceType: membershipSourceTypeZodSchema,
45
+ id: z.string().min(1),
46
+ name: z.string().optional(),
47
+ membershipType: membershipTypeZodSchema,
48
+ teamGroupId: z.string().min(1).optional(),
49
+ tenantId: z.string().min(1).optional(),
50
+ })
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright(c) Microsoft Corporation.All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { z } from 'zod'
7
+
8
+ /**
9
+ * Enum defining the type of roster the user is a member of.
10
+ */
11
+ export enum MembershipSourceTypes {
12
+ /**
13
+ * The source is that of a channel and the user is a member of that channel.
14
+ */
15
+ Channel = 'channel',
16
+
17
+ /**
18
+ * The source is that of a team and the user is a member of that team.
19
+ */
20
+ Team = 'team',
21
+ }
22
+
23
+ /**
24
+ * Zod schema for validating membership source types.
25
+ */
26
+ export const membershipSourceTypeZodSchema = z.enum(['channel', 'team'])
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright(c) Microsoft Corporation.All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { z } from 'zod'
7
+
8
+ /**
9
+ * Enum expressing the users relationship to the current channel.
10
+ */
11
+ export enum MembershipTypes {
12
+ /**
13
+ * The user is a direct member of a channel.
14
+ */
15
+ Direct = 'direct',
16
+
17
+ /**
18
+ * The user is a member of a channel through a group.
19
+ */
20
+ Transitive = 'transitive',
21
+ }
22
+
23
+ /**
24
+ * Zod schema for validating membership source types.
25
+ */
26
+ export const membershipTypeZodSchema = z.enum(['direct', 'transitive'])
package/src/index.ts CHANGED
@@ -21,6 +21,9 @@ export { ConversationAccount } from './conversation/conversationAccount'
21
21
  export { ConversationReference } from './conversation/conversationReference'
22
22
  export { EndOfConversationCodes } from './conversation/endOfConversationCodes'
23
23
  export { ConversationParameters } from './conversation/conversationParameters'
24
+ export { MembershipSource } from './conversation/membershipSource'
25
+ export { MembershipSourceTypes } from './conversation/membershipSourceTypes'
26
+ export { MembershipTypes } from './conversation/membershipTypes'
24
27
  export { RoleTypes } from './conversation/roleTypes'
25
28
 
26
29
  export { Entity } from './entity/entity'