(messageID: string, input: Partial<TextPart> = {})
| 32 | }) |
| 33 | |
| 34 | const textPart = (messageID: string, input: Partial<TextPart> = {}): TextPart => ({ |
| 35 | id: "part", |
| 36 | sessionID: "child", |
| 37 | messageID, |
| 38 | type: "text", |
| 39 | text: "text", |
| 40 | ...input, |
| 41 | }) |
| 42 | |
| 43 | const response = (data: MessageResponse["data"] = [], cursor?: string): MessageResponse => ({ |
| 44 | data, |
no outgoing calls
no test coverage detected