UNPKG

@microsoft/agents-activity

Version:

Microsoft 365 Agents SDK for JavaScript. Activity Protocol serialization and deserialization.

54 lines (53 loc) 1.41 kB
/** * Copyright(c) Microsoft Corporation.All rights reserved. * Licensed under the MIT License. */ import { z } from 'zod'; import { RoleTypes } from './roleTypes'; /** * Represents a channel account. */ export interface ChannelAccount { /** * The unique identifier of the channel account. */ id?: string; /** * The name of the channel account. */ name?: string; /** * The Azure Active Directory object ID of the channel account. */ aadObjectId?: string; /** * The role of the channel account. */ role?: RoleTypes | string; /** * Additional properties of the channel account. */ properties?: unknown; } /** * Zod schema for validating a channel account. */ export declare const channelAccountZodSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; aadObjectId: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["user", "bot", "skill"]>, z.ZodString]>>; properties: z.ZodOptional<z.ZodUnknown>; }, "strip", z.ZodTypeAny, { id?: string | undefined; name?: string | undefined; aadObjectId?: string | undefined; role?: string | undefined; properties?: unknown; }, { id?: string | undefined; name?: string | undefined; aadObjectId?: string | undefined; role?: string | undefined; properties?: unknown; }>;