verdnatura-chat/app/definitions/rest/v1/invites.ts

26 lines
528 B
TypeScript
Raw Normal View History

2022-02-28 18:00:47 +00:00
import type { IInvite } from '../../IInvite';
import type { IRoom } from '../../IRoom';
export type InvitesEndpoints = {
listInvites: {
GET: () => Array<IInvite>;
};
'removeInvite/:_id': {
DELETE: () => void;
};
'/v1/useInviteToken': {
POST: (params: { token: string }) => {
room: {
rid: IRoom['_id'];
prid: IRoom['prid'];
fname: IRoom['fname'];
name: IRoom['name'];
t: IRoom['t'];
};
};
};
'/v1/validateInviteToken': {
POST: (params: { token: string }) => { valid: boolean };
};
};