@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
29 lines (27 loc) • 1.3 kB
text/typescript
/**
*
* An interface representing FileDownloadInfo.
* The content of a `file.download.info` attachment, describing an uploaded file received in a personal (1:1) chat.
* The file is fetched from the short-lived, pre-authorized `downloadUrl` with a plain GET (no bearer token).
*
*/
type FileDownloadInfo = {
/**
* @member {string} [downloadUrl] Pre-authorized, short-lived URL the file can be fetched from with a plain GET (no bearer token).
*/
downloadUrl?: string;
/**
* @member {string} [uniqueId] The ODSP/OneDrive identifier for the file. Useful for correlation, dedup and logging, but not for retrieval: a Graph fetch resolves bytes from the attachment's `contentUrl` through `/shares`, and this value arrives as a GUID, which is a SharePoint `listItemUniqueId` shape rather than a Graph `driveItem.id`.
*/
uniqueId?: string;
/**
* @member {string} [fileType] Type of file (extension, e.g. `pdf`, `docx`).
*/
fileType?: string;
/**
* @member {string} [etag] A server-assigned version tag identifying this version of the file's contents, for detecting whether the file changed between reads.
* Read-only; populated when Teams provides it with the file.
*/
etag?: string;
};
export type { FileDownloadInfo };