feat(profile): 相互リンク機能の追加 (MisskeyIO#675)
This commit is contained in:
parent
b059162324
commit
b6a5a36eaa
37 changed files with 1130 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue