fix(misskey-js): チャットのChannel型定義を追加
This commit is contained in:
parent
20bc80728c
commit
9c725607a1
|
@ -813,6 +813,54 @@ export type Channels = {
|
||||||
claimTimeIsUp: null | Record<string, never>;
|
claimTimeIsUp: null | Record<string, never>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
chatUser: {
|
||||||
|
params: {
|
||||||
|
otherId: string;
|
||||||
|
};
|
||||||
|
events: {
|
||||||
|
message: (payload: ChatMessageLite) => void;
|
||||||
|
deleted: (payload: ChatMessageLite['id']) => void;
|
||||||
|
react: (payload: {
|
||||||
|
reaction: string;
|
||||||
|
user?: UserLite;
|
||||||
|
messageId: ChatMessageLite['id'];
|
||||||
|
}) => void;
|
||||||
|
unreact: (payload: {
|
||||||
|
reaction: string;
|
||||||
|
user?: UserLite;
|
||||||
|
messageId: ChatMessageLite['id'];
|
||||||
|
}) => void;
|
||||||
|
};
|
||||||
|
receives: {
|
||||||
|
read: {
|
||||||
|
id: ChatMessageLite['id'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
chatRoom: {
|
||||||
|
params: {
|
||||||
|
roomId: string;
|
||||||
|
};
|
||||||
|
events: {
|
||||||
|
message: (payload: ChatMessageLite) => void;
|
||||||
|
deleted: (payload: ChatMessageLite['id']) => void;
|
||||||
|
react: (payload: {
|
||||||
|
reaction: string;
|
||||||
|
user?: UserLite;
|
||||||
|
messageId: ChatMessageLite['id'];
|
||||||
|
}) => void;
|
||||||
|
unreact: (payload: {
|
||||||
|
reaction: string;
|
||||||
|
user?: UserLite;
|
||||||
|
messageId: ChatMessageLite['id'];
|
||||||
|
}) => void;
|
||||||
|
};
|
||||||
|
receives: {
|
||||||
|
read: {
|
||||||
|
id: ChatMessageLite['id'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
|
@ -3655,8 +3703,8 @@ type V2AdminEmojiListResponse = operations['v2___admin___emoji___list']['respons
|
||||||
//
|
//
|
||||||
// src/entities.ts:50:2 - (ae-forgotten-export) The symbol "ModerationLogPayloads" needs to be exported by the entry point index.d.ts
|
// src/entities.ts:50:2 - (ae-forgotten-export) The symbol "ModerationLogPayloads" needs to be exported by the entry point index.d.ts
|
||||||
// src/streaming.ts:57:3 - (ae-forgotten-export) The symbol "ReconnectingWebSocket" needs to be exported by the entry point index.d.ts
|
// src/streaming.ts:57:3 - (ae-forgotten-export) The symbol "ReconnectingWebSocket" needs to be exported by the entry point index.d.ts
|
||||||
// src/streaming.types.ts:217:4 - (ae-forgotten-export) The symbol "ReversiUpdateKey" needs to be exported by the entry point index.d.ts
|
// src/streaming.types.ts:218:4 - (ae-forgotten-export) The symbol "ReversiUpdateKey" needs to be exported by the entry point index.d.ts
|
||||||
// src/streaming.types.ts:227:4 - (ae-forgotten-export) The symbol "ReversiUpdateSettings" needs to be exported by the entry point index.d.ts
|
// src/streaming.types.ts:228:4 - (ae-forgotten-export) The symbol "ReversiUpdateSettings" needs to be exported by the entry point index.d.ts
|
||||||
|
|
||||||
// (No @packageDocumentation comment for this package)
|
// (No @packageDocumentation comment for this package)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import {
|
import {
|
||||||
Antenna,
|
Antenna,
|
||||||
ChatMessage,
|
ChatMessage,
|
||||||
|
ChatMessageLite,
|
||||||
DriveFile,
|
DriveFile,
|
||||||
DriveFolder,
|
DriveFolder,
|
||||||
Note,
|
Note,
|
||||||
|
@ -227,7 +228,55 @@ export type Channels = {
|
||||||
updateSettings: ReversiUpdateSettings<ReversiUpdateKey>;
|
updateSettings: ReversiUpdateSettings<ReversiUpdateKey>;
|
||||||
claimTimeIsUp: null | Record<string, never>;
|
claimTimeIsUp: null | Record<string, never>;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
chatUser: {
|
||||||
|
params: {
|
||||||
|
otherId: string;
|
||||||
|
};
|
||||||
|
events: {
|
||||||
|
message: (payload: ChatMessageLite) => void;
|
||||||
|
deleted: (payload: ChatMessageLite['id']) => void;
|
||||||
|
react: (payload: {
|
||||||
|
reaction: string;
|
||||||
|
user?: UserLite;
|
||||||
|
messageId: ChatMessageLite['id'];
|
||||||
|
}) => void;
|
||||||
|
unreact: (payload: {
|
||||||
|
reaction: string;
|
||||||
|
user?: UserLite;
|
||||||
|
messageId: ChatMessageLite['id'];
|
||||||
|
}) => void;
|
||||||
|
};
|
||||||
|
receives: {
|
||||||
|
read: {
|
||||||
|
id: ChatMessageLite['id'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
chatRoom: {
|
||||||
|
params: {
|
||||||
|
roomId: string;
|
||||||
|
};
|
||||||
|
events: {
|
||||||
|
message: (payload: ChatMessageLite) => void;
|
||||||
|
deleted: (payload: ChatMessageLite['id']) => void;
|
||||||
|
react: (payload: {
|
||||||
|
reaction: string;
|
||||||
|
user?: UserLite;
|
||||||
|
messageId: ChatMessageLite['id'];
|
||||||
|
}) => void;
|
||||||
|
unreact: (payload: {
|
||||||
|
reaction: string;
|
||||||
|
user?: UserLite;
|
||||||
|
messageId: ChatMessageLite['id'];
|
||||||
|
}) => void;
|
||||||
|
};
|
||||||
|
receives: {
|
||||||
|
read: {
|
||||||
|
id: ChatMessageLite['id'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type NoteUpdatedEvent = { id: Note['id'] } & ({
|
export type NoteUpdatedEvent = { id: Note['id'] } & ({
|
||||||
|
|
Loading…
Reference in New Issue