@microsoft/agents-hosting-teams
Version:
Microsoft 365 Agents SDK for JavaScript
224 lines (223 loc) • 6.66 kB
TypeScript
/**
* 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';
/**
* 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[];
}
/**
* Zod schema for validating TeamsChannelData objects.
*/
export declare const teamsChannelDataZodSchema: z.ZodObject<{
channel: z.ZodOptional<z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type?: string | undefined;
id?: string | undefined;
name?: string | undefined;
}, {
type?: string | undefined;
id?: string | undefined;
name?: string | undefined;
}>>;
eventType: z.ZodOptional<z.ZodString>;
team: z.ZodOptional<z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
aadGroupId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id?: string | undefined;
name?: string | undefined;
aadGroupId?: string | undefined;
}, {
id?: string | undefined;
name?: string | undefined;
aadGroupId?: string | undefined;
}>>;
notification: z.ZodOptional<z.ZodObject<{
alert: z.ZodOptional<z.ZodBoolean>;
alertInMeeting: z.ZodOptional<z.ZodBoolean>;
externalResourceUrl: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
alert?: boolean | undefined;
alertInMeeting?: boolean | undefined;
externalResourceUrl?: string | undefined;
}, {
alert?: boolean | undefined;
alertInMeeting?: boolean | undefined;
externalResourceUrl?: string | undefined;
}>>;
tenant: z.ZodOptional<z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id?: string | undefined;
}, {
id?: string | undefined;
}>>;
meeting: z.ZodOptional<z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id?: string | undefined;
}, {
id?: string | undefined;
}>>;
settings: z.ZodOptional<z.ZodObject<{
selectedChannel: z.ZodOptional<z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type?: string | undefined;
id?: string | undefined;
name?: string | undefined;
}, {
type?: string | undefined;
id?: string | undefined;
name?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
selectedChannel?: {
type?: string | undefined;
id?: string | undefined;
name?: string | undefined;
} | undefined;
}, {
selectedChannel?: {
type?: string | undefined;
id?: string | undefined;
name?: string | undefined;
} | undefined;
}>>;
onBehalfOf: z.ZodOptional<z.ZodArray<z.ZodObject<{
itemid: z.ZodUnion<[z.ZodLiteral<0>, z.ZodNumber]>;
mentionType: z.ZodUnion<[z.ZodString, z.ZodLiteral<"person">]>;
mri: z.ZodString;
displayName: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
itemid: number;
mentionType: string;
mri: string;
displayName?: string | undefined;
}, {
itemid: number;
mentionType: string;
mri: string;
displayName?: string | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
channel?: {
type?: string | undefined;
id?: string | undefined;
name?: string | undefined;
} | undefined;
eventType?: string | undefined;
team?: {
id?: string | undefined;
name?: string | undefined;
aadGroupId?: string | undefined;
} | undefined;
notification?: {
alert?: boolean | undefined;
alertInMeeting?: boolean | undefined;
externalResourceUrl?: string | undefined;
} | undefined;
tenant?: {
id?: string | undefined;
} | undefined;
meeting?: {
id?: string | undefined;
} | undefined;
settings?: {
selectedChannel?: {
type?: string | undefined;
id?: string | undefined;
name?: string | undefined;
} | undefined;
} | undefined;
onBehalfOf?: {
itemid: number;
mentionType: string;
mri: string;
displayName?: string | undefined;
}[] | undefined;
}, {
channel?: {
type?: string | undefined;
id?: string | undefined;
name?: string | undefined;
} | undefined;
eventType?: string | undefined;
team?: {
id?: string | undefined;
name?: string | undefined;
aadGroupId?: string | undefined;
} | undefined;
notification?: {
alert?: boolean | undefined;
alertInMeeting?: boolean | undefined;
externalResourceUrl?: string | undefined;
} | undefined;
tenant?: {
id?: string | undefined;
} | undefined;
meeting?: {
id?: string | undefined;
} | undefined;
settings?: {
selectedChannel?: {
type?: string | undefined;
id?: string | undefined;
name?: string | undefined;
} | undefined;
} | undefined;
onBehalfOf?: {
itemid: number;
mentionType: string;
mri: string;
displayName?: string | undefined;
}[] | undefined;
}>;