{
"$defs": {
"SpaceMember": {
"description": "A space membership. `role_ids` never includes `@everyone`.",
"properties": {
"joined_at": {
"description": "When they joined.",
"format": "date-time",
"type": "string"
},
"member_id": {
"description": "The member.",
"pattern": "^[1-9][0-9]{0,18}$",
"type": "string"
},
"role_ids": {
"description": "Their roles, ascending; never `@everyone`.",
"items": {
"description": "A Sew id: a decimal string of a 64-bit time-sortable id (1 to 9223372036854775807).",
"pattern": "^[1-9][0-9]{0,18}$",
"type": "string"
},
"type": "array"
},
"space_id": {
"description": "The space.",
"pattern": "^[1-9][0-9]{0,18}$",
"type": "string"
},
"timeout_until": {
"description": "End of an active timeout; present only while it is in the future.",
"format": "date-time",
"type": [
"string",
"null"
]
}
},
"required": [
"space_id",
"member_id",
"joined_at",
"role_ids"
],
"type": "object"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Response of `POST /api/v1/spaces/{id}/members/add`.",
"properties": {
"added": {
"description": "The memberships created.",
"items": {
"$ref": "#/$defs/SpaceMember"
},
"type": "array"
},
"already": {
"description": "Ids that already were members.",
"items": {
"description": "A Sew id: a decimal string of a 64-bit time-sortable id (1 to 9223372036854775807).",
"pattern": "^[1-9][0-9]{0,18}$",
"type": "string"
},
"type": "array"
},
"banned": {
"description": "The ids of `skipped` that are banned: present only for BAN_MEMBERS holders and install\nowners and admins.",
"items": {
"description": "A Sew id: a decimal string of a 64-bit time-sortable id (1 to 9223372036854775807).",
"pattern": "^[1-9][0-9]{0,18}$",
"type": "string"
},
"type": "array"
},
"skipped": {
"description": "Ids that were not added and cannot join (a banned target never fails\nthe batch); no reason is given here.",
"items": {
"description": "A Sew id: a decimal string of a 64-bit time-sortable id (1 to 9223372036854775807).",
"pattern": "^[1-9][0-9]{0,18}$",
"type": "string"
},
"type": "array"
}
},
"required": [
"added",
"already"
],
"title": "AddSpaceMembersResponse",
"type": "object"
}