/** * Copyright(c) Microsoft Corporation.All rights reserved. * Licensed under the MIT License. */ import { z } from 'zod'; import { ChannelInfo } from './channelInfo'; import { NotificationInfo } from './notificationInfo'; import { OnBehalfOf } from './onBehalfOf'; import { TeamsChannelDataSettings } from './teamsChannelDataSettings'; import { TeamsMeetingInfo } from './teamsMeetingInfo'; import { TenantInfo } from './tenantInfo'; import { TeamInfo } from './teamInfo'; import { MembershipSource } from '@microsoft/agents-activity'; /** * Represents data for a Teams channel. */ export interface TeamsChannelData { /** * Information about the channel. */ channel?: ChannelInfo; /** * The type of event. */ eventType?: string; /** * Information about the team. */ team?: TeamInfo; /** * Information about the notification. */ notification?: NotificationInfo; /** * Information about the tenant. */ tenant?: TenantInfo; /** * Information about the meeting. */ meeting?: TeamsMeetingInfo; /** * Settings for the Teams channel data. */ settings?: TeamsChannelDataSettings; /** * Information about the users on behalf of whom the action is performed. */ onBehalfOf?: OnBehalfOf[]; /** * List of teams that a channel was shared with. */ sharedWithTeams?: TeamInfo[]; /** * List of teams that a channel was unshared from. */ unsharedFromTeams?: TeamInfo[]; /** * Information about the source of a member that was added or removed from a shared channel. */ membershipSource?: MembershipSource; } /** * Zod schema for validating TeamsChannelData objects. */ export declare const teamsChannelDataZodSchema: z.ZodObject<{ channel: z.ZodOptional; name: z.ZodOptional; type: z.ZodOptional>; }, z.core.$strip>>; eventType: z.ZodOptional; team: z.ZodOptional; name: z.ZodOptional; aadGroupId: z.ZodOptional; tenantId: z.ZodOptional; }, z.core.$strip>>; notification: z.ZodOptional; alertInMeeting: z.ZodOptional; externalResourceUrl: z.ZodOptional; }, z.core.$strip>>; tenant: z.ZodOptional; }, z.core.$strip>>; meeting: z.ZodOptional; }, z.core.$strip>>; settings: z.ZodOptional; name: z.ZodOptional; type: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; onBehalfOf: z.ZodOptional, z.ZodNumber]>; mentionType: z.ZodUnion]>; mri: z.ZodString; displayName: z.ZodOptional; }, z.core.$strip>>>; sharedWithTeams: z.ZodOptional; name: z.ZodOptional; aadGroupId: z.ZodOptional; tenantId: z.ZodOptional; }, z.core.$strip>>>; unsharedFromTeams: z.ZodOptional; name: z.ZodOptional; aadGroupId: z.ZodOptional; tenantId: z.ZodOptional; }, z.core.$strip>>>; membershipSource: z.ZodOptional; id: z.ZodString; name: z.ZodOptional; membershipType: z.ZodEnum<{ direct: "direct"; transitive: "transitive"; }>; aadGroupId: z.ZodOptional; tenantId: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** * Parses the given object as TeamsChannelData. * * @param {object} o - The object to parse. * @returns {TeamsChannelData} - The parsed TeamsChannelData. */ export declare function parseTeamsChannelData(o: object): TeamsChannelData;