1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 18:32:29 +01:00

oapi: fix guild discovery requirements

This commit is contained in:
Puyodead1 2023-03-24 21:30:23 -04:00
parent 441d4241ed
commit 5c0a6f4e55
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
4 changed files with 3715 additions and 3 deletions

View File

@ -5746,6 +5746,96 @@
"id"
]
},
"GuildDiscoveryRequirementsResponse": {
"type": "object",
"properties": {
"uild_id": {
"type": "string"
},
"safe_environment": {
"type": "boolean"
},
"healthy": {
"type": "boolean"
},
"health_score_pending": {
"type": "boolean"
},
"size": {
"type": "boolean"
},
"nsfw_properties": {},
"protected": {
"type": "boolean"
},
"sufficient": {
"type": "boolean"
},
"sufficient_without_grace_period": {
"type": "boolean"
},
"valid_rules_channel": {
"type": "boolean"
},
"retention_healthy": {
"type": "boolean"
},
"engagement_healthy": {
"type": "boolean"
},
"age": {
"type": "boolean"
},
"minimum_age": {
"type": "integer"
},
"health_score": {
"type": "object",
"properties": {
"avg_nonnew_participators": {
"type": "integer"
},
"avg_nonnew_communicators": {
"type": "integer"
},
"num_intentful_joiners": {
"type": "integer"
},
"perc_ret_w1_intentful": {
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"avg_nonnew_communicators",
"avg_nonnew_participators",
"num_intentful_joiners",
"perc_ret_w1_intentful"
]
},
"minimum_size": {
"type": "integer"
}
},
"required": [
"age",
"engagement_healthy",
"health_score",
"health_score_pending",
"healthy",
"minimum_age",
"minimum_size",
"nsfw_properties",
"protected",
"retention_healthy",
"safe_environment",
"size",
"sufficient",
"sufficient_without_grace_period",
"uild_id",
"valid_rules_channel"
]
},
"GuildEmojisResponse": {
"type": "array",
"items": {
@ -9475,7 +9565,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildDiscoveryRequirements"
"$ref": "#/components/schemas/GuildDiscoveryRequirementsResponse"
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ router.get(
route({
responses: {
200: {
body: "GuildDiscoveryRequirements",
body: "GuildDiscoveryRequirementsResponse",
},
},
}),

View File

@ -1,4 +1,4 @@
export interface GuildDiscoveryRequirements {
export interface GuildDiscoveryRequirementsResponse {
uild_id: string;
safe_environment: boolean;
healthy: boolean;