{
"type": "object",
"properties": {}
}{
"type": "object",
"properties": {
"offset": {
"type": "integer",
"description": "Start position in the current view. Default 0.",
"minimum": 0
},
"limit": {
"type": "integer",
"description": "How many to return, up to 50. Default 25.",
"minimum": 1
}
}
}{
"type": "object",
"properties": {
"index": {
"type": "integer",
"description": "Message index within the mailbox.",
"minimum": 0
}
},
"required": [
"index"
]
}{
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "Earliest date, YYYY-MM-DD. Omit for no lower bound."
},
"to": {
"type": "string",
"description": "Latest date, YYYY-MM-DD. Omit for no upper bound."
},
"sort_by": {
"type": "string",
"enum": [
"file",
"date",
"from",
"subject"
],
"description": "Sort order for the list."
}
}
}{
"type": "object",
"properties": {}
}{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Text to look for in subject or sender. Case-insensitive."
},
"from": {
"type": "string",
"description": "Earliest date, YYYY-MM-DD."
},
"to": {
"type": "string",
"description": "Latest date, YYYY-MM-DD."
},
"has_attachment": {
"type": "boolean",
"description": "Only messages carrying an attachment."
},
"cursor": {
"type": "integer",
"description": "Resume position from a previous call. Omit to start at the beginning.",
"minimum": 0
}
}
}