masto
Version:
Mastodon API client for JavaScript, TypeScript, Node.js, browsers
25 lines (24 loc) • 862 B
TypeScript
import { type MediaAttachment } from "./media-attachment.js";
import { type Status } from "./status.js";
export interface StatusParams extends Pick<Status, "id" | "inReplyToId" | "sensitive" | "spoilerText" | "visibility"> {
/** Content of the status */
text: string;
/** IDs of media attachments */
mediaIds?: string[] | null;
/** ID of the application */
applicationId: string;
}
/**
* Represents a status that will be published at a future scheduled date.
* @see https://docs.joinmastodon.org/entities/scheduledstatus/
*/
export interface ScheduledStatus {
/** ID of the scheduled status in the database. */
id: string;
/** ID of the status in the database. */
scheduledAt: string;
/** Parameters of the status */
params: StatusParams;
/** Media attachments */
mediaAttachments: MediaAttachment[];
}