(
opts?: z.input<typeof listConversationsQuerySchema>
)
| 267 | } |
| 268 | |
| 269 | async initAttachment(req: AttachmentInitRequest): Promise<AttachmentInitResponse> { |
| 270 | const body = req satisfies AttachmentInitRequest; |
| 271 | return this.httpRequest('/v1/attachments/init', { |
| 272 | method: 'POST', |
| 273 | body, |
| 274 | schema: attachmentInitResponseSchema, |
| 275 | }); |
| 276 | } |
| 277 | |
| 278 | async getAttachmentUrl(req: AttachmentGetUrlRequest): Promise<AttachmentGetUrlResponse> { |
| 279 | return this.httpRequest(`/v1/attachments/${encodeURIComponent(req.attachmentId)}/url`, { |
| 280 | method: 'GET', |
| 281 | query: { conversationId: req.conversationId }, |
| 282 | schema: attachmentGetUrlResponseSchema, |
| 283 | }); |
| 284 | } |
| 285 |
no test coverage detected