(params: {
direction?: "inbound" | "outbound" | "all";
readStatus?: "unread" | "read" | "all";
sort?: "asc" | "desc";
from?: string;
subjectContains?: string;
conversationId?: string;
since?: string;
until?: string;
labels?: Array<string>;
cursor?: string;
limit?: number;
explicitAddress?: string;
})
| 232 | // Cursor pagination (§6a #3): returns ONE page + next_cursor. `limit` is the |
| 233 | // page size; pass a prior response's next_cursor as `cursor` for the next page. |
| 234 | listMessages(params: { |
| 235 | direction?: "inbound" | "outbound" | "all"; |
| 236 | readStatus?: "unread" | "read" | "all"; |
| 237 | sort?: "asc" | "desc"; |
| 238 | from?: string; |
| 239 | subjectContains?: string; |
| 240 | conversationId?: string; |
| 241 | since?: string; |
| 242 | until?: string; |
| 243 | labels?: Array<string>; |
| 244 | cursor?: string; |
| 245 | limit?: number; |
| 246 | explicitAddress?: string; |
| 247 | }): Promise<Page<MessageSummaryView>> { |
| 248 | const { explicitAddress, cursor, ...rest } = params; |
| 249 | return this.sdk.messages.list(this.resolveAddress(explicitAddress), rest).page(cursor); |
| 250 | } |
| 251 | |
| 252 | // ── Conversations ─────────────────────────────────────────────── |
| 253 |
no test coverage detected