mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-04-29 02:37:27 +09:00
* feat: support `<link rel=alternate type=application/activitypub+json>` * Update index.ts * build
54 lines
1.0 KiB
TypeScript
54 lines
1.0 KiB
TypeScript
declare type Summary = {
|
|
/**
|
|
* The description of that web page
|
|
*/
|
|
description: string | null;
|
|
/**
|
|
* The url of the icon of that web page
|
|
*/
|
|
icon: string | null;
|
|
/**
|
|
* The name of site of that web page
|
|
*/
|
|
sitename: string | null;
|
|
/**
|
|
* The url of the thumbnail of that web page
|
|
*/
|
|
thumbnail: string | null;
|
|
/**
|
|
* The player of that web page
|
|
*/
|
|
player: Player;
|
|
/**
|
|
* The title of that web page
|
|
*/
|
|
title: string | null;
|
|
/**
|
|
* Possibly sensitive
|
|
*/
|
|
sensitive?: boolean;
|
|
/**
|
|
* The url of the ActivityPub representation of that web page
|
|
*/
|
|
activityPub: string | null;
|
|
};
|
|
export default Summary;
|
|
export declare type Player = {
|
|
/**
|
|
* The url of the player
|
|
*/
|
|
url: string | null;
|
|
/**
|
|
* The width of the player
|
|
*/
|
|
width: number | null;
|
|
/**
|
|
* The height of the player
|
|
*/
|
|
height: number | null;
|
|
/**
|
|
* The allowed permissions of the iframe
|
|
*/
|
|
allow: string[];
|
|
};
|