fix(openapi): flatten nullable unions to avoid nested anyOf/oneOf
This commit is contained in:
@@ -648,7 +648,6 @@ description: 'Admin object schemas from the Fluxer API.'
|
||||
**Related endpoints**
|
||||
|
||||
- [`GET /admin/discovery/applications`](/api-reference/admin/list-discovery-applications)
|
||||
- [`GET /guilds/{guild_id}/discovery`](/api-reference/discovery/get-discovery-status)
|
||||
- [`POST /admin/discovery/applications/{guild_id}/approve`](/api-reference/admin/approve-discovery-application)
|
||||
- [`POST /admin/discovery/applications/{guild_id}/reject`](/api-reference/admin/reject-discovery-application)
|
||||
- [`POST /admin/discovery/guilds/{guild_id}/remove`](/api-reference/admin/remove-guild-from-discovery)
|
||||
@@ -2152,7 +2151,7 @@ Type: [MessageShredStatusNotFoundResponse](#messageshredstatusnotfoundresponse)
|
||||
| Field | Type | Description |
|
||||
|-------|------|-------------|
|
||||
| slot_index | integer (int32) | Slot index to reserve (must be >= 1) |
|
||||
| user_id | ?[SnowflakeType](#snowflaketype) \| enum<`-1`> | User ID to reserve the slot for, or null to unreserve (special value -1 is also valid) |
|
||||
| user_id | [SnowflakeType](#snowflaketype) \| enum<`-1`> \| null | User ID to reserve the slot for, or null to unreserve (special value -1 is also valid) |
|
||||
|
||||
<a id="resolvereportrequest"></a>
|
||||
|
||||
|
||||
@@ -167,6 +167,20 @@ Type: [DiscoveryCategoryResponse](#discoverycategoryresponse)[]
|
||||
| online_count | number | Approximate online member count |
|
||||
| verification_level | number | Verification level |
|
||||
|
||||
<a id="discoverystatusresponse"></a>
|
||||
|
||||
## DiscoveryStatusResponse
|
||||
|
||||
**Related endpoints**
|
||||
|
||||
- [`GET /guilds/{guild_id}/discovery`](/api-reference/discovery/get-discovery-status)
|
||||
|
||||
| Field | Type | Description |
|
||||
|-------|------|-------------|
|
||||
| application? | ?[DiscoveryApplicationResponse](#discoveryapplicationresponse) | Current discovery application, if any |
|
||||
| eligible | boolean | Whether the guild meets the requirements to apply for discovery |
|
||||
| min_member_count | number | Minimum member count required for discovery eligibility |
|
||||
|
||||
<a id="donationcheckoutrequest"></a>
|
||||
|
||||
## DonationCheckoutRequest
|
||||
|
||||
@@ -68,7 +68,7 @@ Type: [ApplicationResponse](#applicationresponse)[]
|
||||
|-------|------|-------------|
|
||||
| bot | ?[ApplicationBotResponse](#applicationbotresponse) | The bot user associated with the application |
|
||||
| bot_public | boolean | Whether the bot can be invited by anyone |
|
||||
| description | null | The description of the application |
|
||||
| description | ?string | The description of the application |
|
||||
| icon | ?string | The icon hash of the application |
|
||||
| id | [SnowflakeType](#snowflaketype) | The unique identifier of the application |
|
||||
| name | string | The name of the application |
|
||||
@@ -109,9 +109,9 @@ Type: [ApplicationResponse](#applicationresponse)[]
|
||||
| bot? | [ApplicationBotResponse](#applicationbotresponse) | |
|
||||
| bot_public | boolean | Whether the bot can be invited by anyone |
|
||||
| bot_require_code_grant | boolean | Whether the bot requires OAuth2 code grant |
|
||||
| description | null | The description of the application |
|
||||
| description | ?string | The description of the application |
|
||||
| flags | [ApplicationFlags](#applicationflags) | |
|
||||
| icon | null | The icon hash of the application |
|
||||
| icon | ?string | The icon hash of the application |
|
||||
| id | [SnowflakeType](#snowflaketype) | The unique identifier of the application |
|
||||
| name | string | The name of the application |
|
||||
|
||||
@@ -381,7 +381,7 @@ The application that was authorized
|
||||
| Field | Type | Description |
|
||||
|-------|------|-------------|
|
||||
| bot_public | boolean | Whether the bot can be invited by anyone |
|
||||
| description | null | The description of the application |
|
||||
| description | ?string | The description of the application |
|
||||
| icon | ?string | The icon hash of the application |
|
||||
| id | [SnowflakeType](#snowflaketype) | The unique identifier of the application |
|
||||
| name | string | The name of the application |
|
||||
@@ -396,9 +396,9 @@ The application associated with the token
|
||||
|-------|------|-------------|
|
||||
| bot_public | boolean | Whether the bot can be invited by anyone |
|
||||
| bot_require_code_grant | boolean | Whether the bot requires OAuth2 code grant |
|
||||
| description | null | The description of the application |
|
||||
| description | ?string | The description of the application |
|
||||
| flags | [ApplicationFlags](#applicationflags) | |
|
||||
| icon | null | The icon hash of the application |
|
||||
| icon | ?string | The icon hash of the application |
|
||||
| id | [SnowflakeType](#snowflaketype) | The unique identifier of the application |
|
||||
| name | string | The name of the application |
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ Resource tables use a compact notation:
|
||||
- [Auth](/resources/auth) (37 schemas)
|
||||
- [Billing](/resources/billing) (3 schemas)
|
||||
- [Channels](/resources/channels) (66 schemas)
|
||||
- [Common](/resources/common) (34 schemas)
|
||||
- [Common](/resources/common) (35 schemas)
|
||||
- [Gateway](/resources/gateway) (2 schemas)
|
||||
- [Gifts](/resources/gifts) (1 schemas)
|
||||
- [Guilds](/resources/guilds) (63 schemas)
|
||||
@@ -163,6 +163,7 @@ Resource tables use a compact notation:
|
||||
- [DiscoveryCategoryResponse](/resources/common#discoverycategoryresponse)
|
||||
- [DiscoveryGuildListResponse](/resources/common#discoveryguildlistresponse)
|
||||
- [DiscoveryGuildResponse](/resources/common#discoveryguildresponse)
|
||||
- [DiscoveryStatusResponse](/resources/common#discoverystatusresponse)
|
||||
- [DonationCheckoutRequest](/resources/common#donationcheckoutrequest)
|
||||
- [DonationCheckoutResponse](/resources/common#donationcheckoutresponse)
|
||||
- [DonationRequestLinkRequest](/resources/common#donationrequestlinkrequest)
|
||||
|
||||
@@ -26,7 +26,7 @@ description: 'Premium object schemas from the Fluxer API.'
|
||||
| Field | Type | Description |
|
||||
|-------|------|-------------|
|
||||
| slot_index | integer (int32) | The slot index |
|
||||
| user_id | ?[SnowflakeType](#snowflaketype) \| enum<`-1`> | User ID that reserved this slot, or null if unreserved (special value -1 is also valid) |
|
||||
| user_id | [SnowflakeType](#snowflaketype) \| enum<`-1`> \| null | User ID that reserved this slot, or null if unreserved (special value -1 is also valid) |
|
||||
|
||||
<a id="priceidsresponsecurrency"></a>
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ description: 'Users object schemas from the Fluxer API.'
|
||||
|-------|------|-------------|
|
||||
| emoji_id? | ?[SnowflakeType](#snowflaketype) | ID of custom emoji to display |
|
||||
| emoji_name? | ?string | Unicode emoji or custom emoji name |
|
||||
| expires_at? | ?string \| integer (int64) | When the custom status expires |
|
||||
| expires_at? | string \| integer (int64) \| null | When the custom status expires |
|
||||
| text? | ?string | Custom status text (max 128 characters) |
|
||||
|
||||
<a id="disabletotprequest"></a>
|
||||
@@ -1186,7 +1186,7 @@ Category of the user report
|
||||
| render_spoilers? | [RenderSpoilers](#renderspoilers) | Spoiler rendering preference |
|
||||
| restricted_guilds? | [SnowflakeType](#snowflaketype)[] | Guilds with DM restrictions |
|
||||
| status? | [UserStatusType](#userstatustype) | |
|
||||
| status_resets_at? | ?string \| integer (int64) | When status resets |
|
||||
| status_resets_at? | string \| integer (int64) \| null | When status resets |
|
||||
| status_resets_to? | ?[UserStatusType](#userstatustype) | |
|
||||
| theme? | [UserThemeType](#userthemetype) | |
|
||||
| time_format? | [TimeFormatTypes](#timeformattypes) | Time format preference |
|
||||
@@ -1394,7 +1394,7 @@ Guild mute configuration
|
||||
|
||||
| Field | Type | Description |
|
||||
|-------|------|-------------|
|
||||
| end_time? | ?string \| integer (int64) | When the mute expires |
|
||||
| end_time? | string \| integer (int64) \| null | When the mute expires |
|
||||
| selected_time_window | integer (int53) | Selected mute duration |
|
||||
|
||||
<a id="userprivateresponsependingbulkmessagedeletion"></a>
|
||||
|
||||
Reference in New Issue
Block a user