mizzkey/packages/misskey-js/src/schemas/following.ts
2023-05-10 15:07:37 +00:00

25 lines
707 B
TypeScript

import type { JSONSchema7Definition } from 'schema-type';
export const packedFollowingSchema = {
$id: 'https://misskey-hub.net/api/schemas/Following',
type: 'object',
properties: {
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
createdAt: {
type: 'string',
format: 'date-time',
},
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' },
},
required: [
'id',
'createdAt',
'followeeId',
'followerId',
],
} as const satisfies JSONSchema7Definition;