@microsoft/teams.api
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.api" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.api/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.api?activeTab=code" t
44 lines (42 loc) • 1.06 kB
text/typescript
/**
* A single result returned in a `SearchInvokeResponse`. For Adaptive Card dynamic typeahead
* `Input.ChoiceSet`, `title` is the display text and `value` is the submitted value.
*/
type SearchInvokeResult = {
/**
* The display text of the result.
*/
title: string;
/**
* The value submitted when the result is selected.
*/
value: string;
};
/**
* The value payload of a `SearchInvokeResponse`.
*/
type SearchInvokeResponseValue = {
/**
* The list of search results.
*/
results: SearchInvokeResult[];
};
/**
* Defines the structure returned as the result of an Invoke activity with Name of
* 'application/search'.
*/
type SearchInvokeResponse = {
/**
* The response status code.
*/
statusCode: number;
/**
* The type of this response.
*/
type: 'application/vnd.microsoft.search.searchResponse';
/**
* The response value.
*/
value: SearchInvokeResponseValue;
};
export type { SearchInvokeResponse, SearchInvokeResponseValue, SearchInvokeResult };