feat(profile): 相互リンク機能の追加 (MisskeyIO#675)

This commit is contained in:
まっちゃてぃー。 2024-08-10 01:05:19 +09:00 committed by GitHub
parent b059162324
commit b6a5a36eaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 1130 additions and 20 deletions

View file

@ -179,7 +179,7 @@ export const packedUserLiteSchema = {
behavior: {
type: 'string',
nullable: false, optional: true,
}
},
},
},
},
@ -428,6 +428,80 @@ export const packedUserDetailedNotMeOnlySchema = {
type: 'boolean',
nullable: false, optional: true,
},
mutualBanners: {
type: 'array',
nullable: true, optional: false,
items: {
type: 'object',
nullable: false, optional: false,
properties: {
id: {
type: 'string',
format: 'id',
nullable: false, optional: false,
},
user: {
type: 'object',
nullable: false, optional: false,
ref: 'UserLite',
},
description: {
type: 'string',
nullable: true, optional: false,
},
imgUrl: {
type: 'string',
format: 'url',
nullable: false, optional: false,
},
url: {
type: 'string',
format: 'url',
nullable: false, optional: false,
},
fileId: {
type: 'string',
format: 'id',
nullable: false, optional: false,
},
},
},
},
myMutualBanner: {
type: 'object',
nullable: true, optional: false,
properties: {
id: {
type: 'string',
format: 'id',
nullable: false, optional: false,
},
user: {
type: 'object',
nullable: false, optional: false,
ref: 'UserLite',
},
description: {
type: 'string',
nullable: true, optional: false,
},
imgUrl: {
type: 'string',
format: 'url',
nullable: false, optional: false,
},
url: {
type: 'string',
format: 'url',
nullable: false, optional: false,
},
fileId: {
type: 'string',
format: 'id',
nullable: false, optional: false,
},
},
},
//#endregion
},
} as const;
@ -713,3 +787,37 @@ export const packedUserSchema = {
},
],
} as const;
export const packedUserBannerSchema = {
type: 'object',
properties: {
id: {
type: 'string',
nullable: false, optional: false,
format: 'id',
},
user: {
type: 'object',
nullable: false, optional: false,
ref: 'UserLite',
},
description: {
type: 'string',
nullable: true, optional: false,
},
imgUrl: {
type: 'string',
format: 'url',
nullable: false, optional: false,
},
url: {
type: 'string',
nullable: true, optional: false,
},
fileId: {
type: 'string',
format: 'id',
nullable: false, optional: false,
},
},
} as const;