2023-07-27 05:31:52 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-01-18 13:27:10 +00:00
|
|
|
export const packedChannelSchema = {
|
|
|
|
type: 'object',
|
|
|
|
properties: {
|
|
|
|
id: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
example: 'xxxxxxxxxx',
|
|
|
|
},
|
|
|
|
createdAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
|
|
|
lastNotedAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
|
|
|
name: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
type: 'string',
|
|
|
|
nullable: true, optional: false,
|
|
|
|
},
|
|
|
|
bannerUrl: {
|
|
|
|
type: 'string',
|
|
|
|
format: 'url',
|
|
|
|
nullable: true, optional: false,
|
|
|
|
},
|
2023-05-05 23:15:17 +00:00
|
|
|
isArchived: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2022-01-18 13:27:10 +00:00
|
|
|
notesCount: {
|
|
|
|
type: 'number',
|
|
|
|
nullable: false, optional: false,
|
|
|
|
},
|
|
|
|
usersCount: {
|
|
|
|
type: 'number',
|
|
|
|
nullable: false, optional: false,
|
|
|
|
},
|
|
|
|
isFollowing: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
},
|
2023-03-31 02:30:27 +00:00
|
|
|
isFavorited: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
},
|
2022-01-18 13:27:10 +00:00
|
|
|
userId: {
|
|
|
|
type: 'string',
|
|
|
|
nullable: true, optional: false,
|
|
|
|
format: 'id',
|
|
|
|
},
|
2023-03-31 06:01:56 +00:00
|
|
|
pinnedNoteIds: {
|
|
|
|
type: 'array',
|
|
|
|
nullable: false, optional: false,
|
|
|
|
items: {
|
|
|
|
type: 'string',
|
|
|
|
format: 'id',
|
|
|
|
},
|
|
|
|
},
|
2023-05-02 00:36:40 +00:00
|
|
|
color: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-08-05 04:58:31 +00:00
|
|
|
isSensitive: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2022-01-18 13:27:10 +00:00
|
|
|
},
|
|
|
|
} as const;
|