chore: update auto-generated files
This commit is contained in:
parent
c1c3d8a8e0
commit
199065502b
2 changed files with 10 additions and 7 deletions
15
packages/backend-rs/index.d.ts
vendored
15
packages/backend-rs/index.d.ts
vendored
|
@ -13,9 +13,9 @@ export const USER_ACTIVE_THRESHOLD: number
|
||||||
* List of file types allowed to be viewed directly in the browser
|
* List of file types allowed to be viewed directly in the browser
|
||||||
* Anything not included here will be responded as application/octet-stream
|
* 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
|
* 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/supported.js>
|
||||||
* https://github.com/sindresorhus/file-type/blob/main/core.js
|
* <https://github.com/sindresorhus/file-type/blob/main/core.js>
|
||||||
* https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Containers
|
* <https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Containers>
|
||||||
*/
|
*/
|
||||||
export const FILE_TYPE_BROWSERSAFE: string[]
|
export const FILE_TYPE_BROWSERSAFE: string[]
|
||||||
export interface EnvConfig {
|
export interface EnvConfig {
|
||||||
|
@ -327,7 +327,7 @@ export interface AccessToken {
|
||||||
createdAt: DateTimeWithTimeZone
|
createdAt: DateTimeWithTimeZone
|
||||||
token: string
|
token: string
|
||||||
hash: string
|
hash: string
|
||||||
userId: string
|
userId: string | null
|
||||||
appId: string | null
|
appId: string | null
|
||||||
lastUsedAt: DateTimeWithTimeZone | null
|
lastUsedAt: DateTimeWithTimeZone | null
|
||||||
session: string | null
|
session: string | null
|
||||||
|
@ -1003,6 +1003,8 @@ export interface SwSubscription {
|
||||||
auth: string
|
auth: string
|
||||||
publickey: string
|
publickey: string
|
||||||
sendReadMessage: boolean
|
sendReadMessage: boolean
|
||||||
|
appAccessTokenId: string | null
|
||||||
|
subscriptionTypes: Array<string>
|
||||||
}
|
}
|
||||||
export interface UsedUsername {
|
export interface UsedUsername {
|
||||||
username: string
|
username: string
|
||||||
|
@ -1143,6 +1145,7 @@ export interface UserProfile {
|
||||||
preventAiLearning: boolean
|
preventAiLearning: boolean
|
||||||
isIndexable: boolean
|
isIndexable: boolean
|
||||||
mutedPatterns: Array<string>
|
mutedPatterns: Array<string>
|
||||||
|
mentions: Json
|
||||||
mutedInstances: Array<string>
|
mutedInstances: Array<string>
|
||||||
mutedWords: Array<string>
|
mutedWords: Array<string>
|
||||||
lang: string | null
|
lang: string | null
|
||||||
|
@ -1175,7 +1178,7 @@ export function updateAntennasOnNewNote(note: Note, noteAuthor: Acct, noteMutedU
|
||||||
export function fetchNodeinfo(host: string): Promise<Nodeinfo>
|
export function fetchNodeinfo(host: string): Promise<Nodeinfo>
|
||||||
export function nodeinfo_2_1(): Promise<any>
|
export function nodeinfo_2_1(): Promise<any>
|
||||||
export function nodeinfo_2_0(): Promise<any>
|
export function nodeinfo_2_0(): Promise<any>
|
||||||
/** NodeInfo schema version 2.0. https://nodeinfo.diaspora.software/docson/index.html#/ns/schema/2.0 */
|
/** NodeInfo schema version 2.0. <https://nodeinfo.diaspora.software/docson/index.html#/ns/schema/2.0> */
|
||||||
export interface Nodeinfo {
|
export interface Nodeinfo {
|
||||||
/** The schema version, must be 2.0. */
|
/** The schema version, must be 2.0. */
|
||||||
version: string
|
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
|
* With the length of 16, namely 8 for cuid2, roughly 1427399 IDs are needed
|
||||||
* in the same millisecond to reach 50% chance of collision.
|
* in the same millisecond to reach 50% chance of collision.
|
||||||
*
|
*
|
||||||
* Ref: https://github.com/paralleldrive/cuid2#parameterized-length
|
* Ref: <https://github.com/paralleldrive/cuid2#parameterized-length>
|
||||||
*/
|
*/
|
||||||
export function genId(): string
|
export function genId(): string
|
||||||
/** Generate an ID using a specific datetime */
|
/** Generate an ID using a specific datetime */
|
||||||
|
|
|
@ -72,11 +72,11 @@ pub struct Model {
|
||||||
pub muted_patterns: Vec<String>,
|
pub muted_patterns: Vec<String>,
|
||||||
#[sea_orm(column_type = "JsonBinary")]
|
#[sea_orm(column_type = "JsonBinary")]
|
||||||
pub mentions: Json,
|
pub mentions: Json,
|
||||||
pub lang: Option<String>,
|
|
||||||
#[sea_orm(column_name = "mutedInstances")]
|
#[sea_orm(column_name = "mutedInstances")]
|
||||||
pub muted_instances: Vec<String>,
|
pub muted_instances: Vec<String>,
|
||||||
#[sea_orm(column_name = "mutedWords")]
|
#[sea_orm(column_name = "mutedWords")]
|
||||||
pub muted_words: Vec<String>,
|
pub muted_words: Vec<String>,
|
||||||
|
pub lang: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
|
Loading…
Reference in a new issue