UNPKG

@microsoft/agents-activity

Version:

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

22 lines (21 loc) 633 B
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Activity } from '../activity'; import { Entity } from './entity'; export interface ProductInfo extends Entity { type: 'ProductInfo'; id: string; } /** * Remove any ProductInfo entities from the activity * @param activity */ export declare const clearProductInfoFromActivity: (activity: Activity) => void; /** * Add a new ProductInfo entity to the activity and ensure only one exists * @param activity * @param id */ export declare const addProductInfoToActivity: (activity: Activity, id: string) => void;