@microsoft/agents-activity
Version:
Microsoft 365 Agents SDK for JavaScript. Activity Protocol serialization and deserialization.
28 lines (24 loc) • 472 B
text/typescript
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { z } from 'zod'
/**
* Represents a generic Entity.
*/
export interface Entity {
/**
* The type of the entity.
*/
type: string
/**
* Additional properties of the entity.
*/
[key: string]: unknown
}
/**
* Zod schema for validating Entity objects.
*/
export const entityZodSchema = z.object({
type: z.string().min(1)
}).passthrough()