@microsoft/agents-hosting-teams
Version:
Microsoft 365 Agents SDK for JavaScript
46 lines (45 loc) • 1.11 kB
TypeScript
/**
* Copyright(c) Microsoft Corporation.All rights reserved.
* Licensed under the MIT License.
*/
import { z } from 'zod';
/**
* Represents information about a user on behalf of whom an action is performed.
*/
export interface OnBehalfOf {
/**
* The ID of the item.
*/
itemid: 0 | number;
/**
* The type of mention.
*/
mentionType: 'person' | string;
/**
* The Microsoft Resource Identifier (MRI) of the user.
*/
mri: string;
/**
* The display name of the user.
*/
displayName?: string;
}
/**
* Zod schema for validating OnBehalfOf objects.
*/
export declare const onBehalfOfZodSchema: 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;
}>;