Enable verbatim module syntax + more API routes

This commit is contained in:
Jesse Wierzbinski 2023-11-22 18:10:37 -10:00
parent 991a2cba84
commit be9b2e3376
No known key found for this signature in database
84 changed files with 438 additions and 192 deletions

View file

@ -1,7 +1,7 @@
import { APIEmoji } from "./emoji";
import { APIField } from "./field";
import { APIRole } from "./role";
import { APISource } from "./source";
import type { APIEmoji } from "./emoji";
import type { APIField } from "./field";
import type { APIRole } from "./role";
import type { APISource } from "./source";
export interface APIAccount {
id: string;

View file

@ -1,5 +1,5 @@
import { APIEmoji } from "./emoji";
import { APIStatusTag } from "./status";
import type { APIEmoji } from "./emoji";
import type { APIStatusTag } from "./status";
export interface APIAnnouncement {
id: string;

View file

@ -1,4 +1,4 @@
import { APIMeta } from "./attachment";
import type { APIMeta } from "./attachment";
export interface APIAsyncAttachment {
id: string;

View file

@ -1,4 +1,4 @@
import { APIStatus } from "./status";
import type { APIStatus } from "./status";
export interface APIContext {
ancestors: APIStatus[];

View file

@ -1,5 +1,5 @@
import { APIAccount } from "./account";
import { APIStatus } from "./status";
import type { APIAccount } from "./account";
import type { APIStatus } from "./status";
export interface APIConversation {
id: string;

View file

@ -1,6 +1,6 @@
import { APIAccount } from "./account";
import { APIStats } from "./stats";
import { APIURLs } from "./urls";
import type { APIAccount } from "./account";
import type { APIStats } from "./stats";
import type { APIURLs } from "./urls";
export interface APIInstance {
uri: string;

View file

@ -1,5 +1,5 @@
import { APIAccount } from "./account";
import { APIStatus } from "./status";
import type { APIAccount } from "./account";
import type { APIStatus } from "./status";
export interface APINotification {
account: APIAccount;

View file

@ -1,4 +1,4 @@
import { APIPollOption } from "./poll_option";
import type { APIPollOption } from "./poll_option";
export interface APIPoll {
id: string;

View file

@ -1,4 +1,4 @@
import { APIAccount } from "./account";
import type { APIAccount } from "./account";
export interface APIReport {
id: string;

View file

@ -1,6 +1,6 @@
import { APIAccount } from "./account";
import { APIStatus } from "./status";
import { APITag } from "./tag";
import type { APIAccount } from "./account";
import type { APIStatus } from "./status";
import type { APITag } from "./tag";
export interface APIResults {
accounts: APIAccount[];

View file

@ -1,5 +1,5 @@
import { APIAttachment } from "./attachment";
import { APIStatusParams } from "./status_params";
import type { APIAttachment } from "./attachment";
import type { APIStatusParams } from "./status_params";
export interface APIScheduledStatus {
id: string;

View file

@ -1,4 +1,4 @@
import { APIField } from "./field";
import type { APIField } from "./field";
export interface APISource {
privacy: string | null;

View file

@ -1,10 +1,10 @@
import { APIAccount } from "./account";
import { APIApplication } from "./application";
import { APIAttachment } from "./attachment";
import { APICard } from "./card";
import { APIEmoji } from "./emoji";
import { APIMention } from "./mention";
import { APIPoll } from "./poll";
import type { APIAccount } from "./account";
import type { APIApplication } from "./application";
import type { APIAttachment } from "./attachment";
import type { APICard } from "./card";
import type { APIEmoji } from "./emoji";
import type { APIMention } from "./mention";
import type { APIPoll } from "./poll";
export interface APIStatus {
id: string;

View file

@ -1,4 +1,4 @@
import { APIHistory } from "./history";
import type { APIHistory } from "./history";
export interface APITag {
name: string;

View file

@ -1,4 +1,4 @@
import { LysandObjectType } from "./Object";
import type { LysandObjectType } from "./Object";
export interface ExtensionType extends LysandObjectType {
type: "Extension";

View file

@ -1,4 +1,4 @@
import { Emoji } from "./extensions/org.lysand/custom_emojis";
import type { Emoji } from "./extensions/org.lysand/custom_emojis";
export interface LysandObjectType {
type: string;

View file

@ -1,4 +1,4 @@
import { ContentFormat } from "../../Object";
import type { ContentFormat } from "../../Object";
export interface Emoji {
name: string;

View file

@ -1,4 +1,4 @@
import { ExtensionType } from "../../Extension";
import type { ExtensionType } from "../../Extension";
export interface OrgLysandPollsVoteType extends ExtensionType {
extension_type: "org.lysand:polls/Vote";

View file

@ -1,4 +1,4 @@
import { ExtensionType } from "../../Extension";
import type { ExtensionType } from "../../Extension";
export interface OrgLysandReactionsType extends ExtensionType {
extension_type: "org.lysand:reactions/Reaction";