2023-07-27 07:31:52 +02:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-01-18 14:27:10 +01:00
|
|
|
export const packedFollowingSchema = {
|
|
|
|
type: 'object',
|
|
|
|
properties: {
|
|
|
|
id: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
example: 'xxxxxxxxxx',
|
|
|
|
},
|
|
|
|
createdAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
|
|
|
followeeId: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
},
|
|
|
|
followerId: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
},
|
2023-11-21 03:13:56 +01:00
|
|
|
followee: {
|
|
|
|
type: 'object',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
ref: 'UserDetailed',
|
|
|
|
},
|
2022-01-18 14:27:10 +01:00
|
|
|
follower: {
|
|
|
|
type: 'object',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
ref: 'UserDetailed',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|