2023-05-10 17:07:37 +02:00
|
|
|
import type { JSONSchema7Definition } from 'schema-type';
|
|
|
|
|
2023-05-02 14:05:17 +02:00
|
|
|
export const packedFollowingSchema = {
|
2023-05-10 17:07:37 +02:00
|
|
|
$id: 'https://misskey-hub.net/api/schemas/Following',
|
|
|
|
|
2023-05-02 14:05:17 +02:00
|
|
|
type: 'object',
|
|
|
|
properties: {
|
2023-05-10 17:07:37 +02:00
|
|
|
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
2023-05-02 14:05:17 +02:00
|
|
|
createdAt: {
|
|
|
|
type: 'string',
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
2023-05-10 17:07:37 +02:00
|
|
|
followeeId: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
|
|
|
followee: { $ref: 'https://misskey-hub.net/api/schemas/UserDetailed' },
|
|
|
|
followerId: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
|
|
|
follower: { $ref: 'https://misskey-hub.net/api/schemas/UserDetailed' },
|
2023-05-02 14:05:17 +02:00
|
|
|
},
|
2023-05-10 17:07:37 +02:00
|
|
|
required: [
|
|
|
|
'id',
|
|
|
|
'createdAt',
|
|
|
|
'followeeId',
|
|
|
|
'followerId',
|
|
|
|
],
|
|
|
|
} as const satisfies JSONSchema7Definition;
|