(
historySequence = 1,
messageId = `history-${historySequence}`,
stream?: { messageId: string; lastTimestamp: number }
)
| 452 | }); |
| 453 | |
| 454 | const sinceCaughtUpEvent = ( |
| 455 | historySequence = 1, |
| 456 | messageId = `history-${historySequence}`, |
| 457 | stream?: { messageId: string; lastTimestamp: number } |
| 458 | ): WorkspaceChatMessage => |
| 459 | caughtUpEvent({ |
| 460 | replay: "since", |
| 461 | cursor: { history: { messageId, historySequence }, ...(stream ? { stream } : {}) }, |
| 462 | }); |
| 463 | |
| 464 | const streamEndEvent = ( |
| 465 | workspaceId: string, |
no test coverage detected