2023-07-27 07:31:52 +02:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-02-17 07:06:52 +01:00
|
|
|
export const packedFlashSchema = {
|
|
|
|
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: false,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
2023-11-21 03:13:56 +01:00
|
|
|
userId: {
|
2023-02-17 07:06:52 +01:00
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
2023-11-21 03:13:56 +01:00
|
|
|
format: 'id',
|
2023-02-17 07:06:52 +01:00
|
|
|
},
|
2023-11-21 03:13:56 +01:00
|
|
|
user: {
|
|
|
|
type: 'object',
|
|
|
|
ref: 'UserLite',
|
2023-02-17 07:06:52 +01:00
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-11-21 03:13:56 +01:00
|
|
|
title: {
|
2023-02-17 07:06:52 +01:00
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-11-21 03:13:56 +01:00
|
|
|
summary: {
|
2023-02-17 07:06:52 +01:00
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-11-21 03:13:56 +01:00
|
|
|
script: {
|
|
|
|
type: 'string',
|
2023-02-17 07:06:52 +01:00
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
likedCount: {
|
|
|
|
type: 'number',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
|
|
|
isLiked: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|