@microsoft/agents-activity
Version:
Microsoft 365 Agents SDK for JavaScript. Activity Protocol serialization and deserialization.
27 lines (22 loc) • 588 B
text/typescript
/**
* Copyright(c) Microsoft Corporation.All rights reserved.
* Licensed under the MIT License.
*/
import { z } from 'zod'
/**
* Enum defining the type of roster the user is a member of.
*/
export enum MembershipSourceTypes {
/**
* The source is that of a channel and the user is a member of that channel.
*/
Channel = 'channel',
/**
* The source is that of a team and the user is a member of that team.
*/
Team = 'team',
}
/**
* Zod schema for validating membership source types.
*/
export const membershipSourceTypeZodSchema = z.enum(['channel', 'team'])