mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
54 lines
1 KiB
TypeScript
54 lines
1 KiB
TypeScript
|
type ratio = {
|
||
|
ratio: string;
|
||
|
label: string;
|
||
|
}
|
||
|
|
||
|
export type instanceMap = {
|
||
|
name: string;
|
||
|
url: string;
|
||
|
dailyRatios: {ratio: string; label: string }[];
|
||
|
thirtyDayUptime: string;
|
||
|
}[]
|
||
|
|
||
|
export type InvidiousInstance = [
|
||
|
string,
|
||
|
{
|
||
|
flag: string;
|
||
|
region: string;
|
||
|
stats: null | {
|
||
|
version: string;
|
||
|
software: {
|
||
|
name: string;
|
||
|
version: string;
|
||
|
branch: string;
|
||
|
};
|
||
|
openRegistrations: boolean;
|
||
|
usage: {
|
||
|
users: {
|
||
|
total: number;
|
||
|
activeHalfyear: number;
|
||
|
activeMonth: number;
|
||
|
};
|
||
|
};
|
||
|
metadata: {
|
||
|
updatedAt: number;
|
||
|
lastChannelRefreshedAt: number;
|
||
|
};
|
||
|
};
|
||
|
cors: boolean | null;
|
||
|
api: boolean | null;
|
||
|
type: "https" | "http" | "onion" | "i2p";
|
||
|
uri: string;
|
||
|
monitor: null | {
|
||
|
monitorId: number;
|
||
|
createdAt: number;
|
||
|
statusClass: string;
|
||
|
name: string;
|
||
|
url: string | null;
|
||
|
type: "HTTP(s)";
|
||
|
dailyRatios: ratio[];
|
||
|
"90dRatio": ratio;
|
||
|
"30dRatio": ratio;
|
||
|
};
|
||
|
}
|
||
|
]
|