1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 14:28:49 +09:00

spec(profile): 相互リンクの型定義の修正 (MisskeyIO#706)

This commit is contained in:
まっちゃとーにゅ 2024-08-17 07:00:26 +09:00 committed by GitHub
parent 09c419e11b
commit f11d0461d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 2 deletions

View File

@ -50,6 +50,7 @@ export class MiUserProfile {
name: string | null; name: string | null;
mutualLinks: { mutualLinks: {
id: string; id: string;
url: string;
fileId: MiDriveFile['id']; fileId: MiDriveFile['id'];
description: string | null; description: string | null;
imgSrc: string; imgSrc: string;

View File

@ -398,7 +398,7 @@ export const packedUserDetailedNotMeOnlySchema = {
type: 'object', type: 'object',
properties: { properties: {
id: { type: 'string', format: 'misskey:id' }, id: { type: 'string', format: 'misskey:id' },
url: { type: 'string' }, url: { type: 'string', format: 'url' },
fileId: { type: 'string', format: 'misskey:id' }, fileId: { type: 'string', format: 'misskey:id' },
description: { type: 'string', nullable: true }, description: { type: 'string', nullable: true },
imgSrc: { type: 'string' }, imgSrc: { type: 'string' },

View File

@ -318,7 +318,7 @@ export type ModerationLogPayloads = {
unsetUserMutualLink: { unsetUserMutualLink: {
userId: string; userId: string;
userUsername: string; userUsername: string;
userMutualLinkSections: { name: string | null; mutualLinks: { fileId: string; description: string | null; imgSrc: string; }[]; }[] | [] userMutualLinkSections: { name: string | null; mutualLinks: { id: string; url: string; fileId: string; description: string | null; imgSrc: string; }[]; }[] | []
} }
}; };

View File

@ -3847,6 +3847,7 @@ export type components = {
mutualLinks: ({ mutualLinks: ({
/** Format: misskey:id */ /** Format: misskey:id */
id: string; id: string;
/** Format: url */
url: string; url: string;
/** Format: misskey:id */ /** Format: misskey:id */
fileId: string; fileId: string;