2024-03-13 09:10:32 +01:00
|
|
|
import type { LysandObject } from "@prisma/client";
|
|
|
|
|
import type { APIAccount } from "~types/entities/account";
|
|
|
|
|
import type { APIField } from "~types/entities/field";
|
|
|
|
|
import type { ContentFormat } from "~types/lysand/Object";
|
|
|
|
|
|
|
|
|
|
declare namespace global {
|
2024-04-07 07:30:49 +02:00
|
|
|
namespace PrismaJson {
|
|
|
|
|
type InstanceLogo = ContentFormat[];
|
|
|
|
|
type ObjectData = LysandObject;
|
|
|
|
|
type ObjectExtensions = LysandObject["extensions"];
|
|
|
|
|
interface UserEndpoints {
|
|
|
|
|
inbox: string;
|
|
|
|
|
liked: string;
|
|
|
|
|
outbox: string;
|
|
|
|
|
disliked: string;
|
|
|
|
|
featured: string;
|
|
|
|
|
followers: string;
|
|
|
|
|
following: string;
|
|
|
|
|
}
|
|
|
|
|
interface UserSource {
|
|
|
|
|
note: string;
|
|
|
|
|
fields: APIField[];
|
|
|
|
|
privacy: APIAccount["privacy"];
|
|
|
|
|
language: string;
|
|
|
|
|
sensitive: boolean;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-03-13 09:10:32 +01:00
|
|
|
}
|