diff --git a/util/src/entities/Config.ts b/util/src/entities/Config.ts
index 492baa4c..2d003c99 100644
--- a/util/src/entities/Config.ts
+++ b/util/src/entities/Config.ts
@@ -2,6 +2,7 @@ import { Column, Entity } from "typeorm";
import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass";
import crypto from "crypto";
import { Snowflake } from "../util/Snowflake";
+import { SessionsReplace } from "..";
@Entity("config")
export class ConfigEntity extends BaseClassWithoutId {
@@ -48,6 +49,11 @@ export interface ConfigValue {
endpointPublic: string | null;
endpointPrivate: string | null;
};
+ api: {
+ defaultVersion: string;
+ activeVersions: string[];
+ useFosscordEnhancements: boolean;
+ };
general: {
instanceName: string;
instanceDescription: string | null;
@@ -172,6 +178,16 @@ export interface ConfigValue {
allowTemplateCreation: Boolean;
allowDiscordTemplates: Boolean;
allowRaws: Boolean;
+ },
+ client: {
+ useTestClient: Boolean;
+ relases: {
+ useLocalRelases: Boolean; //TODO
+ upstreamVersion: string;
+ }
+ },
+ metrics: {
+ timeout: number;
}
}
@@ -186,6 +202,11 @@ export const DefaultConfigOptions: ConfigValue = {
endpointPrivate: null,
endpointPublic: null,
},
+ api: {
+ defaultVersion: "9",
+ activeVersions: ["6", "7", "8", "9"],
+ useFosscordEnhancements: true,
+ },
general: {
instanceName: "Fosscord Instance",
instanceDescription: "This is a Fosscord instance made in pre-relase days",
@@ -346,5 +367,15 @@ export const DefaultConfigOptions: ConfigValue = {
allowTemplateCreation: true,
allowDiscordTemplates: true,
allowRaws: false
+ },
+ client: {
+ useTestClient: true,
+ relases: {
+ useLocalRelases: true,
+ upstreamVersion: "0.0.264"
+ }
+ },
+ metrics: {
+ timeout: 30000
}
};
|