mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-05-15 10:06:57 +00:00
* チャンネル内→チャンネル外へのリノート制限機能追加
* fix CHANGELOG.md
* コメント対応(canRenoteSwitch→allowRenoteToExternal)
* コメント対応(別チャンネルへのリノート対策)
* コメント対応(canRenote->allowRenoteToExternal)
* fix comment
* Update misskey-js.api.md
* ✌️
---------
Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
84 lines
1.6 KiB
TypeScript
84 lines
1.6 KiB
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
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,
|
|
},
|
|
isArchived: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
notesCount: {
|
|
type: 'number',
|
|
nullable: false, optional: false,
|
|
},
|
|
usersCount: {
|
|
type: 'number',
|
|
nullable: false, optional: false,
|
|
},
|
|
isFollowing: {
|
|
type: 'boolean',
|
|
optional: true, nullable: false,
|
|
},
|
|
isFavorited: {
|
|
type: 'boolean',
|
|
optional: true, nullable: false,
|
|
},
|
|
userId: {
|
|
type: 'string',
|
|
nullable: true, optional: false,
|
|
format: 'id',
|
|
},
|
|
pinnedNoteIds: {
|
|
type: 'array',
|
|
nullable: false, optional: false,
|
|
items: {
|
|
type: 'string',
|
|
format: 'id',
|
|
},
|
|
},
|
|
color: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
isSensitive: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
allowRenoteToExternal: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
},
|
|
} as const;
|