2023-07-27 07:31:52 +02:00
|
|
|
/*
|
2024-02-13 16:59:27 +01:00
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 07:31:52 +02:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2020-02-05 02:15:09 +01:00
|
|
|
import { Entity, Column, PrimaryColumn, ManyToOne, JoinColumn } from 'typeorm';
|
2023-09-20 04:33:36 +02:00
|
|
|
import { id } from './util/id.js';
|
2023-08-16 10:51:28 +02:00
|
|
|
import { MiUser } from './User.js';
|
2019-04-07 14:50:36 +02:00
|
|
|
|
2023-08-16 10:51:28 +02:00
|
|
|
@Entity('meta')
|
|
|
|
export class MiMeta {
|
2019-04-16 17:33:02 +02:00
|
|
|
@PrimaryColumn({
|
|
|
|
type: 'varchar',
|
2021-12-09 15:58:30 +01:00
|
|
|
length: 32,
|
2019-04-16 17:33:02 +02:00
|
|
|
})
|
2019-04-07 14:50:36 +02:00
|
|
|
public id: string;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024, nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public name: string | null;
|
|
|
|
|
2023-09-23 05:38:20 +02:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 64, nullable: true,
|
|
|
|
})
|
|
|
|
public shortName: string | null;
|
|
|
|
|
2019-04-07 14:50:36 +02:00
|
|
|
@Column('varchar', {
|
2021-12-09 15:58:30 +01:00
|
|
|
length: 1024, nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public description: string | null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* メンテナの名前
|
|
|
|
*/
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024, nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public maintainerName: string | null;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* メンテナの連絡先
|
|
|
|
*/
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024, nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public maintainerEmail: string | null;
|
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public disableRegistration: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024, array: true, default: '{}',
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public langs: string[];
|
|
|
|
|
2019-05-10 10:30:28 +02:00
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024, array: true, default: '{}',
|
2019-05-10 10:30:28 +02:00
|
|
|
})
|
|
|
|
public pinnedUsers: string[];
|
|
|
|
|
2019-04-07 14:50:36 +02:00
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024, array: true, default: '{}',
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public hiddenTags: string[];
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024, array: true, default: '{}',
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public blockedHosts: string[];
|
|
|
|
|
2023-03-13 09:37:22 +01:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024, array: true, default: '{}',
|
|
|
|
})
|
|
|
|
public sensitiveWords: string[];
|
|
|
|
|
2024-02-09 02:07:18 +01:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024, array: true, default: '{}',
|
|
|
|
})
|
|
|
|
public prohibitedWords: string[];
|
|
|
|
|
2023-10-16 13:11:27 +02:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024, array: true, default: '{}',
|
|
|
|
})
|
|
|
|
public silencedHosts: string[];
|
|
|
|
|
2024-07-30 12:47:45 +02:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024, array: true, default: '{}',
|
|
|
|
})
|
|
|
|
public mediaSilencedHosts: string[];
|
|
|
|
|
2019-04-07 14:50:36 +02:00
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2022-02-09 13:25:48 +01:00
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public themeColor: string | null;
|
|
|
|
|
2020-11-17 06:59:15 +01:00
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2019-04-07 14:50:36 +02:00
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public mascotImageUrl: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public bannerUrl: string | null;
|
|
|
|
|
2020-11-25 13:31:34 +01:00
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2020-11-25 13:31:34 +01:00
|
|
|
})
|
|
|
|
public backgroundImageUrl: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2020-11-25 13:31:34 +01:00
|
|
|
})
|
|
|
|
public logoImageUrl: string | null;
|
|
|
|
|
2019-04-07 14:50:36 +02:00
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2019-04-07 14:50:36 +02:00
|
|
|
nullable: true,
|
|
|
|
})
|
2023-06-09 07:00:53 +02:00
|
|
|
public iconUrl: string | null;
|
2019-04-07 14:50:36 +02:00
|
|
|
|
2023-09-16 10:05:17 +02:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public app192IconUrl: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public app512IconUrl: string | null;
|
|
|
|
|
2019-04-07 14:50:36 +02:00
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
2023-06-09 07:00:53 +02:00
|
|
|
public serverErrorImageUrl: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public notFoundImageUrl: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public infoImageUrl: string | null;
|
2019-04-07 14:50:36 +02:00
|
|
|
|
|
|
|
@Column('boolean', {
|
2023-08-05 07:03:01 +02:00
|
|
|
default: false,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public cacheRemoteFiles: boolean;
|
|
|
|
|
2023-07-15 13:12:20 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public cacheRemoteSensitiveFiles: boolean;
|
|
|
|
|
2020-02-05 02:15:09 +01:00
|
|
|
@Column({
|
|
|
|
...id(),
|
|
|
|
nullable: true,
|
|
|
|
})
|
2023-08-16 10:51:28 +02:00
|
|
|
public proxyAccountId: MiUser['id'] | null;
|
2020-02-05 02:15:09 +01:00
|
|
|
|
2023-08-16 10:51:28 +02:00
|
|
|
@ManyToOne(type => MiUser, {
|
2021-12-09 15:58:30 +01:00
|
|
|
onDelete: 'SET NULL',
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
2020-02-05 02:15:09 +01:00
|
|
|
@JoinColumn()
|
2023-08-16 10:51:28 +02:00
|
|
|
public proxyAccount: MiUser | null;
|
2019-04-07 14:50:36 +02:00
|
|
|
|
2021-10-08 06:37:02 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public emailRequiredForSignup: boolean;
|
|
|
|
|
2023-10-18 02:41:36 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public approvalRequiredForSignup: boolean;
|
|
|
|
|
2020-04-28 07:29:33 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public enableHcaptcha: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2020-04-28 07:29:33 +02:00
|
|
|
})
|
|
|
|
public hcaptchaSiteKey: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2020-04-28 07:29:33 +02:00
|
|
|
})
|
|
|
|
public hcaptchaSecretKey: string | null;
|
|
|
|
|
2024-01-06 12:14:33 +01:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public enableMcaptcha: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public mcaptchaSitekey: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public mcaptchaSecretKey: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public mcaptchaInstanceUrl: string | null;
|
|
|
|
|
2019-04-07 14:50:36 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public enableRecaptcha: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public recaptchaSiteKey: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public recaptchaSecretKey: string | null;
|
|
|
|
|
2022-10-13 02:19:57 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public enableTurnstile: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2022-10-13 02:19:57 +02:00
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public turnstileSiteKey: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2022-10-13 02:19:57 +02:00
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public turnstileSecretKey: string | null;
|
|
|
|
|
2024-02-19 00:33:36 +01:00
|
|
|
// chaptcha系を追加した際にはnodeinfoのレスポンスに追加するのを忘れないようにすること
|
|
|
|
|
2022-07-07 14:06:37 +02:00
|
|
|
@Column('enum', {
|
|
|
|
enum: ['none', 'all', 'local', 'remote'],
|
|
|
|
default: 'none',
|
|
|
|
})
|
|
|
|
public sensitiveMediaDetection: 'none' | 'all' | 'local' | 'remote';
|
|
|
|
|
|
|
|
@Column('enum', {
|
|
|
|
enum: ['medium', 'low', 'high', 'veryLow', 'veryHigh'],
|
|
|
|
default: 'medium',
|
|
|
|
})
|
|
|
|
public sensitiveMediaDetectionSensitivity: 'medium' | 'low' | 'high' | 'veryLow' | 'veryHigh';
|
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public setSensitiveFlagAutomatically: boolean;
|
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public enableSensitiveMediaDetectionForVideos: boolean;
|
|
|
|
|
2023-10-18 07:29:16 +02:00
|
|
|
@Column('boolean', {
|
2023-10-18 07:31:08 +02:00
|
|
|
default: true,
|
2023-10-18 07:29:16 +02:00
|
|
|
})
|
|
|
|
public enableBotTrending: boolean;
|
|
|
|
|
2019-04-07 14:50:36 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public enableEmail: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public email: string | null;
|
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public smtpSecure: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public smtpHost: string | null;
|
|
|
|
|
|
|
|
@Column('integer', {
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public smtpPort: number | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public smtpUser: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public smtpPass: string | null;
|
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public enableServiceWorker: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public swPublicKey: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-04-07 14:50:36 +02:00
|
|
|
})
|
|
|
|
public swPrivateKey: string | null;
|
|
|
|
|
2021-08-15 13:26:44 +02:00
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2021-08-15 13:26:44 +02:00
|
|
|
})
|
|
|
|
public deeplAuthKey: string | null;
|
|
|
|
|
2021-08-24 06:19:21 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public deeplIsPro: boolean;
|
|
|
|
|
2024-01-26 21:29:38 +01:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public deeplFreeMode: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public deeplFreeInstance: string | null;
|
|
|
|
|
2019-05-13 19:57:04 +02:00
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-05-13 19:57:04 +02:00
|
|
|
})
|
2023-03-10 06:53:56 +01:00
|
|
|
public termsOfServiceUrl: string | null;
|
2019-05-13 19:57:04 +02:00
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2024-02-16 11:54:33 +01:00
|
|
|
default: 'https://activitypub.software/TransFem-org/Sharkey/',
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: false,
|
2019-05-13 19:57:04 +02:00
|
|
|
})
|
2024-02-17 05:34:50 +01:00
|
|
|
public repositoryUrl: string | null;
|
2019-05-13 19:57:04 +02:00
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2024-02-16 11:54:33 +01:00
|
|
|
default: 'https://activitypub.software/TransFem-org/Sharkey/-/issues/new',
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-05-13 19:57:04 +02:00
|
|
|
})
|
|
|
|
public feedbackUrl: string | null;
|
2019-05-15 18:07:32 +02:00
|
|
|
|
2023-10-07 06:13:13 +02:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public impressumUrl: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public privacyPolicyUrl: string | null;
|
|
|
|
|
2024-01-09 21:32:47 +01:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public donationUrl: string | null;
|
|
|
|
|
2024-05-31 03:12:23 +02:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public inquiryUrl: string | null;
|
|
|
|
|
2022-03-01 15:58:01 +01:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 8192,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public defaultLightTheme: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 8192,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public defaultDarkTheme: string | null;
|
|
|
|
|
2019-05-15 18:07:32 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public useObjectStorage: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-05-15 18:07:32 +02:00
|
|
|
})
|
|
|
|
public objectStorageBucket: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-05-15 18:07:32 +02:00
|
|
|
})
|
|
|
|
public objectStoragePrefix: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-05-15 18:07:32 +02:00
|
|
|
})
|
|
|
|
public objectStorageBaseUrl: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-05-15 18:07:32 +02:00
|
|
|
})
|
|
|
|
public objectStorageEndpoint: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-05-15 18:07:32 +02:00
|
|
|
})
|
|
|
|
public objectStorageRegion: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-05-15 18:07:32 +02:00
|
|
|
})
|
|
|
|
public objectStorageAccessKey: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
2023-03-10 06:53:56 +01:00
|
|
|
length: 1024,
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-05-15 18:07:32 +02:00
|
|
|
})
|
|
|
|
public objectStorageSecretKey: string | null;
|
|
|
|
|
|
|
|
@Column('integer', {
|
2021-12-09 15:58:30 +01:00
|
|
|
nullable: true,
|
2019-05-15 18:07:32 +02:00
|
|
|
})
|
|
|
|
public objectStoragePort: number | null;
|
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public objectStorageUseSSL: boolean;
|
2020-04-12 13:32:34 +02:00
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public objectStorageUseProxy: boolean;
|
2020-08-13 13:05:01 +02:00
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public objectStorageSetPublicRead: boolean;
|
2021-02-06 03:48:57 +01:00
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public objectStorageS3ForcePathStyle: boolean;
|
2022-07-02 08:12:11 +02:00
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public enableIpLogging: boolean;
|
2022-07-09 08:05:55 +02:00
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public enableActiveEmailValidation: boolean;
|
2023-01-12 13:02:26 +01:00
|
|
|
|
2023-11-18 12:39:48 +01:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public enableVerifymailApi: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public verifymailAuthKey: string | null;
|
|
|
|
|
2023-12-29 10:23:29 +01:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public enableTruemailApi: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public truemailInstance: string | null;
|
2024-01-06 12:14:33 +01:00
|
|
|
|
2023-12-29 10:23:29 +01:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public truemailAuthKey: string | null;
|
|
|
|
|
2023-03-24 07:43:36 +01:00
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public enableChartsForRemoteUser: boolean;
|
|
|
|
|
2023-03-24 11:08:08 +01:00
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public enableChartsForFederatedInstances: boolean;
|
|
|
|
|
2023-07-02 09:02:32 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: false,
|
|
|
|
})
|
|
|
|
public enableServerMachineStats: boolean;
|
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public enableIdenticonGeneration: boolean;
|
|
|
|
|
2023-09-29 00:57:38 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public enableAchievements: boolean;
|
|
|
|
|
2023-01-12 13:02:26 +01:00
|
|
|
@Column('jsonb', {
|
|
|
|
default: { },
|
|
|
|
})
|
2023-01-15 12:52:53 +01:00
|
|
|
public policies: Record<string, any>;
|
2023-04-19 14:24:31 +02:00
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 280,
|
|
|
|
array: true,
|
|
|
|
default: '{}',
|
|
|
|
})
|
|
|
|
public serverRules: string[];
|
2023-04-29 10:03:14 +02:00
|
|
|
|
2023-09-16 10:05:17 +02:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 8192,
|
|
|
|
default: '{}',
|
|
|
|
})
|
|
|
|
public manifestJsonOverride: string;
|
|
|
|
|
2023-12-23 04:06:22 +01:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
array: true,
|
|
|
|
default: '{}',
|
|
|
|
})
|
|
|
|
public bannedEmailDomains: string[];
|
|
|
|
|
2023-04-29 10:03:14 +02:00
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024, array: true, default: '{ "admin", "administrator", "root", "system", "maintainer", "host", "mod", "moderator", "owner", "superuser", "staff", "auth", "i", "me", "everyone", "all", "mention", "mentions", "example", "user", "users", "account", "accounts", "official", "help", "helps", "support", "supports", "info", "information", "informations", "announce", "announces", "announcement", "announcements", "notice", "notification", "notifications", "dev", "developer", "developers", "tech", "misskey" }',
|
|
|
|
})
|
|
|
|
public preservedUsernames: string[];
|
2023-10-04 01:46:27 +02:00
|
|
|
|
2023-10-23 08:17:25 +02:00
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public enableFanoutTimeline: boolean;
|
|
|
|
|
2023-11-16 02:20:57 +01:00
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public enableFanoutTimelineDbFallback: boolean;
|
|
|
|
|
2023-10-04 01:46:27 +02:00
|
|
|
@Column('integer', {
|
|
|
|
default: 300,
|
|
|
|
})
|
|
|
|
public perLocalUserUserTimelineCacheMax: number;
|
|
|
|
|
|
|
|
@Column('integer', {
|
|
|
|
default: 100,
|
|
|
|
})
|
|
|
|
public perRemoteUserUserTimelineCacheMax: number;
|
|
|
|
|
|
|
|
@Column('integer', {
|
|
|
|
default: 300,
|
|
|
|
})
|
|
|
|
public perUserHomeTimelineCacheMax: number;
|
|
|
|
|
|
|
|
@Column('integer', {
|
|
|
|
default: 300,
|
|
|
|
})
|
|
|
|
public perUserListTimelineCacheMax: number;
|
2023-10-08 10:56:44 +02:00
|
|
|
|
|
|
|
@Column('integer', {
|
|
|
|
default: 0,
|
|
|
|
})
|
|
|
|
public notesPerOneAd: number;
|
2023-11-12 22:16:47 +01:00
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 500,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public defaultLike: string | null;
|
2023-12-04 02:10:51 +01:00
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 256, array: true, default: '{}',
|
|
|
|
})
|
|
|
|
public bubbleInstances: string[];
|
2024-03-24 12:53:52 +01:00
|
|
|
|
2024-03-21 10:46:42 +01:00
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public urlPreviewEnabled: boolean;
|
|
|
|
|
|
|
|
@Column('integer', {
|
|
|
|
default: 10000,
|
|
|
|
})
|
|
|
|
public urlPreviewTimeout: number;
|
|
|
|
|
|
|
|
@Column('bigint', {
|
|
|
|
default: 1024 * 1024 * 10,
|
|
|
|
})
|
|
|
|
public urlPreviewMaximumContentLength: number;
|
|
|
|
|
|
|
|
@Column('boolean', {
|
|
|
|
default: true,
|
|
|
|
})
|
|
|
|
public urlPreviewRequireContentLength: boolean;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public urlPreviewSummaryProxyUrl: string | null;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 1024,
|
|
|
|
nullable: true,
|
|
|
|
})
|
|
|
|
public urlPreviewUserAgent: string | null;
|
2019-04-07 14:50:36 +02:00
|
|
|
}
|