-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
96 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
libs/shinkai-node-state/src/lib/mutations/sendMesssageWithFilesToInbox/index.ts
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
libs/shinkai-node-state/src/v2/mutations/sendMesssageWithFilesToInbox/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { sendTextMessageWithFilesToJob } from '@shinkai_network/shinkai-message-ts/api'; | ||
|
||
import { SendMessageWithFilesToInboxInput } from './types'; | ||
|
||
export const sendMessageWithFilesToJob = async ({ | ||
nodeAddress, | ||
message, | ||
jobId, | ||
files, | ||
}: SendMessageWithFilesToInboxInput) => { | ||
return await sendTextMessageWithFilesToJob( | ||
nodeAddress, | ||
message, | ||
jobId, | ||
files, | ||
); | ||
}; |
12 changes: 5 additions & 7 deletions
12
...ons/sendMesssageWithFilesToInbox/types.ts → ...ons/sendMesssageWithFilesToInbox/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import type { | ||
CredentialsPayload, | ||
ShinkaiMessage, | ||
} from '@shinkai_network/shinkai-message-ts/models'; | ||
|
||
export type SendMessageWithFilesToInboxInput = CredentialsPayload & { | ||
export type SendMessageWithFilesToInboxInput = { | ||
nodeAddress: string; | ||
sender: string; | ||
receiver: string; | ||
senderSubidentity: string; | ||
token: string; | ||
message: string; | ||
inboxId: string; | ||
jobId: string; | ||
files: File[]; | ||
}; | ||
|
||
export type SendMessageWithFilesToInboxOutput = { | ||
inboxId: string; | ||
jobId: string; | ||
message: ShinkaiMessage; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters