Update API types
This commit is contained in:
parent
a57c79061c
commit
b3fb7c9271
|
@ -47,11 +47,6 @@ export const paramDef = {
|
||||||
sinceId: { type: 'string', format: 'misskey:id' },
|
sinceId: { type: 'string', format: 'misskey:id' },
|
||||||
untilId: { type: 'string', format: 'misskey:id' },
|
untilId: { type: 'string', format: 'misskey:id' },
|
||||||
limit: { type: 'integer', minimum: 1, maximum: 100, default: 10 },
|
limit: { type: 'integer', minimum: 1, maximum: 100, default: 10 },
|
||||||
host: {
|
|
||||||
type: 'string',
|
|
||||||
nullable: true,
|
|
||||||
description: 'The local host is represented with `null`.',
|
|
||||||
},
|
|
||||||
users: { type: 'array', nullable: true, items: { type: 'string', format: 'misskey:id' } },
|
users: { type: 'array', nullable: true, items: { type: 'string', format: 'misskey:id' } },
|
||||||
sinceDate: { type: 'integer', nullable: true },
|
sinceDate: { type: 'integer', nullable: true },
|
||||||
untilDate: { type: 'integer', nullable: true },
|
untilDate: { type: 'integer', nullable: true },
|
||||||
|
|
|
@ -488,6 +488,12 @@ export type Endpoints = {
|
||||||
expiresAt?: null | number;
|
expiresAt?: null | number;
|
||||||
expiredAfter?: null | number;
|
expiredAfter?: null | number;
|
||||||
};
|
};
|
||||||
|
event?: null | {
|
||||||
|
title: string;
|
||||||
|
start: number;
|
||||||
|
end?: null | number;
|
||||||
|
metadata: Record<string, string[]>;
|
||||||
|
}
|
||||||
}; res: { createdNote: Note }; };
|
}; res: { createdNote: Note }; };
|
||||||
'notes/delete': { req: { noteId: Note['id']; }; res: null; };
|
'notes/delete': { req: { noteId: Note['id']; }; res: null; };
|
||||||
'notes/favorites/create': { req: { noteId: Note['id']; }; res: null; };
|
'notes/favorites/create': { req: { noteId: Note['id']; }; res: null; };
|
||||||
|
@ -499,7 +505,17 @@ export type Endpoints = {
|
||||||
'notes/mentions': { req: { following?: boolean; limit?: number; sinceId?: Note['id']; untilId?: Note['id']; }; res: Note[]; };
|
'notes/mentions': { req: { following?: boolean; limit?: number; sinceId?: Note['id']; untilId?: Note['id']; }; res: Note[]; };
|
||||||
'notes/polls/recommendation': { req: TODO; res: TODO; };
|
'notes/polls/recommendation': { req: TODO; res: TODO; };
|
||||||
'notes/polls/vote': { req: { noteId: Note['id']; choice: number; }; res: null; };
|
'notes/polls/vote': { req: { noteId: Note['id']; choice: number; }; res: null; };
|
||||||
'notes/events/search': { req: TODO; res: Note[]; };
|
'notes/events/search': { req: {
|
||||||
|
query?: string;
|
||||||
|
sinceId?: Note['id'];
|
||||||
|
untilId?: Note['id'];
|
||||||
|
limit?: number;
|
||||||
|
users?: User['id'][];
|
||||||
|
sinceDate?: number;
|
||||||
|
untilDate?: number;
|
||||||
|
sortBy?: 'startDate' | 'craetedAt';
|
||||||
|
filters?: Record<string, string[]>;
|
||||||
|
}; res: Note[]; };
|
||||||
'notes/reactions': { req: { noteId: Note['id']; type?: string | null; limit?: number; }; res: NoteReaction[]; };
|
'notes/reactions': { req: { noteId: Note['id']; type?: string | null; limit?: number; }; res: NoteReaction[]; };
|
||||||
'notes/reactions/create': { req: { noteId: Note['id']; reaction: string; }; res: null; };
|
'notes/reactions/create': { req: { noteId: Note['id']; reaction: string; }; res: null; };
|
||||||
'notes/reactions/delete': { req: { noteId: Note['id']; }; res: null; };
|
'notes/reactions/delete': { req: { noteId: Note['id']; }; res: null; };
|
||||||
|
|
Loading…
Reference in New Issue