oapi: fix guild discovery requirements
This commit is contained in:
parent
441d4241ed
commit
5c0a6f4e55
@ -5746,6 +5746,96 @@
|
|||||||
"id"
|
"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": {
|
"GuildEmojisResponse": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
@ -9475,7 +9565,7 @@
|
|||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/components/schemas/GuildDiscoveryRequirements"
|
"$ref": "#/components/schemas/GuildDiscoveryRequirementsResponse"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3622
assets/schemas.json
3622
assets/schemas.json
File diff suppressed because it is too large
Load Diff
@ -26,7 +26,7 @@ router.get(
|
|||||||
route({
|
route({
|
||||||
responses: {
|
responses: {
|
||||||
200: {
|
200: {
|
||||||
body: "GuildDiscoveryRequirements",
|
body: "GuildDiscoveryRequirementsResponse",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export interface GuildDiscoveryRequirements {
|
export interface GuildDiscoveryRequirementsResponse {
|
||||||
uild_id: string;
|
uild_id: string;
|
||||||
safe_environment: boolean;
|
safe_environment: boolean;
|
||||||
healthy: boolean;
|
healthy: boolean;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user