{
"$defs": {
"ChannelType": {
"description": "Channel type.",
"oneOf": [
{
"const": "text",
"description": "A text channel.",
"type": "string"
},
{
"const": "voice",
"description": "A voice channel.",
"type": "string"
},
{
"const": "announcement",
"description": "An announcement channel: `@everyone` posts only in threads by default.",
"type": "string"
},
{
"const": "dm",
"description": "A 1:1 DM (no space, slug or name; always private).",
"type": "string"
},
{
"const": "group_dm",
"description": "A group DM of up to 9 people.",
"type": "string"
}
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"description": "Query of `GET /api/v1/compliance/channels` (ascending ids after `after`… newest first with\n`before`).",
"properties": {
"before": {
"description": "Channels older than this id.",
"pattern": "^[1-9][0-9]{0,18}$",
"type": [
"string",
"null"
]
},
"kind": {
"anyOf": [
{
"$ref": "#/$defs/ChannelType"
},
{
"type": "null"
}
],
"description": "Only this type."
},
"limit": {
"description": "Page size, 1–100 (default 50).",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"space_id": {
"description": "Only this space's channels.",
"pattern": "^[1-9][0-9]{0,18}$",
"type": [
"string",
"null"
]
}
},
"title": "ComplianceChannelsQuery",
"type": "object"
}