diff --git a/packages/backend-rs/index.d.ts b/packages/backend-rs/index.d.ts index e32025b151..abf1480222 100644 --- a/packages/backend-rs/index.d.ts +++ b/packages/backend-rs/index.d.ts @@ -13,9 +13,9 @@ export const USER_ACTIVE_THRESHOLD: number * List of file types allowed to be viewed directly in the browser * Anything not included here will be responded as application/octet-stream * SVG is not allowed because it generates XSS <- we need to fix this and later allow it to be viewed directly - * https://github.com/sindresorhus/file-type/blob/main/supported.js - * https://github.com/sindresorhus/file-type/blob/main/core.js - * https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Containers + * + * + * */ export const FILE_TYPE_BROWSERSAFE: string[] export interface EnvConfig { @@ -327,7 +327,7 @@ export interface AccessToken { createdAt: DateTimeWithTimeZone token: string hash: string - userId: string + userId: string | null appId: string | null lastUsedAt: DateTimeWithTimeZone | null session: string | null @@ -1003,6 +1003,8 @@ export interface SwSubscription { auth: string publickey: string sendReadMessage: boolean + appAccessTokenId: string | null + subscriptionTypes: Array } export interface UsedUsername { username: string @@ -1143,6 +1145,7 @@ export interface UserProfile { preventAiLearning: boolean isIndexable: boolean mutedPatterns: Array + mentions: Json mutedInstances: Array mutedWords: Array lang: string | null @@ -1175,7 +1178,7 @@ export function updateAntennasOnNewNote(note: Note, noteAuthor: Acct, noteMutedU export function fetchNodeinfo(host: string): Promise export function nodeinfo_2_1(): Promise export function nodeinfo_2_0(): Promise -/** NodeInfo schema version 2.0. https://nodeinfo.diaspora.software/docson/index.html#/ns/schema/2.0 */ +/** NodeInfo schema version 2.0. */ export interface Nodeinfo { /** The schema version, must be 2.0. */ version: string @@ -1324,7 +1327,7 @@ export function getTimestamp(id: string): number * With the length of 16, namely 8 for cuid2, roughly 1427399 IDs are needed * in the same millisecond to reach 50% chance of collision. * - * Ref: https://github.com/paralleldrive/cuid2#parameterized-length + * Ref: */ export function genId(): string /** Generate an ID using a specific datetime */ diff --git a/packages/backend-rs/src/model/entity/user_profile.rs b/packages/backend-rs/src/model/entity/user_profile.rs index 04cd0327cb..e051642df3 100644 --- a/packages/backend-rs/src/model/entity/user_profile.rs +++ b/packages/backend-rs/src/model/entity/user_profile.rs @@ -72,11 +72,11 @@ pub struct Model { pub muted_patterns: Vec, #[sea_orm(column_type = "JsonBinary")] pub mentions: Json, - pub lang: Option, #[sea_orm(column_name = "mutedInstances")] pub muted_instances: Vec, #[sea_orm(column_name = "mutedWords")] pub muted_words: Vec, + pub lang: Option, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]