@microsoft/agents-hosting-extensions-teams
Version:
Microsoft 365 Agents SDK for JavaScript. Teams extensions
34 lines (30 loc) • 602 B
text/typescript
/**
* Copyright(c) Microsoft Corporation.All rights reserved.
* Licensed under the MIT License.
*/
import { z } from 'zod'
/**
* Represents information about a channel.
*/
export interface ChannelInfo {
/**
* The ID of the channel.
*/
id?: string
/**
* The name of the channel.
*/
name?: string
/**
* The type of the channel.
*/
type?: string
}
/**
* Zod schema for validating ChannelInfo objects.
*/
export const channelInfoZodSchema = z.object({
id: z.string().min(1).optional(),
name: z.string().min(1).optional(),
type: z.string().min(1).optional()
})