Audit chat message mutations
This commit is contained in:
1 parent
c59be97b79
commit
e78e9a8aa0
8 files changed
+232
-1
No files matched your search
@@ -123,6 +123,21 @@ export interface SendMessageInput {
|
||||
attachmentFileIds?: string[];
|
||||
}
|
||||
|
||||
export interface EditMessageInput {
|
||||
orgId: string;
|
||||
messageId: string;
|
||||
actorType: SendMessageInput["senderType"];
|
||||
actorId: string | null;
|
||||
bodyMd: string;
|
||||
}
|
||||
|
||||
export interface DeleteMessageInput {
|
||||
orgId: string;
|
||||
messageId: string;
|
||||
actorType: SendMessageInput["senderType"];
|
||||
actorId: string | null;
|
||||
}
|
||||
|
||||
export interface CreateChatSpaceInput {
|
||||
orgId: string;
|
||||
spaceType: "company" | "department" | "project" | "direct";
|
||||
|
||||
@@ -22,7 +22,9 @@ import type {
|
||||
CreateSocialAccountInput,
|
||||
CreateTaskInput,
|
||||
DecideApprovalInput,
|
||||
DeleteMessageInput,
|
||||
DeleteOrganizationInput,
|
||||
EditMessageInput,
|
||||
ImportFileInput,
|
||||
ImportSkillDirectoryInput,
|
||||
GrantRoleInput,
|
||||
@@ -72,6 +74,8 @@ export interface DesktopApi {
|
||||
grantRole(input: GrantRoleInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
createChatSpace(input: CreateChatSpaceInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
sendMessage(input: SendMessageInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
editMessage(input: EditMessageInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
deleteMessage(input: DeleteMessageInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
markChatSpaceRead(input: MarkChatSpaceReadInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
saveProviderCredential(input: SaveProviderCredentialInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
revokeProviderCredential(input: RevokeProviderCredentialInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
|
||||
@@ -14,6 +14,8 @@ export const IPC_CHANNELS = {
|
||||
grantRole: "agentcompany:grant-role",
|
||||
createChatSpace: "agentcompany:create-chat-space",
|
||||
sendMessage: "agentcompany:send-message",
|
||||
editMessage: "agentcompany:edit-message",
|
||||
deleteMessage: "agentcompany:delete-message",
|
||||
markChatSpaceRead: "agentcompany:mark-chat-space-read",
|
||||
saveProviderCredential: "agentcompany:save-provider-credential",
|
||||
revokeProviderCredential: "agentcompany:revoke-provider-credential",
|
||||
|
||||
Reference in new issue
Block a user