mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-04-08 14:36:38 +09:00

* user.ts、page.ts、drive-folder.tsを各EntityServiceの戻り値をもとに最新化 * 再確認 * fix error * note以外の残りのファイルを対応 * fix CHANGELOG.md * fix CHANGELOG.md * fix user.ts * fix user.ts * コメント対応 * fix note.ts --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
63 lines
1.2 KiB
TypeScript
63 lines
1.2 KiB
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export const packedAnnouncementSchema = {
|
|
type: 'object',
|
|
properties: {
|
|
id: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
example: 'xxxxxxxxxx',
|
|
},
|
|
createdAt: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'date-time',
|
|
},
|
|
updatedAt: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
format: 'date-time',
|
|
},
|
|
text: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
title: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
imageUrl: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
},
|
|
icon: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
display: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
needConfirmationToRead: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
silence: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
forYou: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
isRead: {
|
|
type: 'boolean',
|
|
optional: true, nullable: false,
|
|
},
|
|
},
|
|
} as const;
|