fix(openapi): use a regular int64 type for visionary slot user id

This commit is contained in:
Hampus Kraft 2026-02-17 15:18:40 +00:00
parent 5eb02e272d
commit b19e9fb243
No known key found for this signature in database
GPG Key ID: 6090864C465A454D
5 changed files with 21 additions and 26 deletions

View File

@ -62477,9 +62477,9 @@
"type": "string", "type": "string",
"description": "Discovery description" "description": "Discovery description"
}, },
"category_id": { "category_type": {
"type": "number", "type": "number",
"description": "Discovery category ID" "description": "Discovery category type"
}, },
"applied_at": { "applied_at": {
"type": "string", "type": "string",
@ -62512,7 +62512,7 @@
"guild_id", "guild_id",
"status", "status",
"description", "description",
"category_id", "category_type",
"applied_at" "applied_at"
] ]
}, },
@ -67240,7 +67240,7 @@
"user_id": { "user_id": {
"anyOf": [ "anyOf": [
{ {
"$ref": "#/components/schemas/SnowflakeType" "$ref": "#/components/schemas/Int64StringType"
}, },
{ {
"type": "null" "type": "null"
@ -67296,7 +67296,7 @@
"user_id": { "user_id": {
"anyOf": [ "anyOf": [
{ {
"$ref": "#/components/schemas/SnowflakeType" "$ref": "#/components/schemas/Int64StringType"
}, },
{ {
"type": "null" "type": "null"
@ -73535,9 +73535,9 @@
], ],
"description": "Discovery description" "description": "Discovery description"
}, },
"category_id": { "category_type": {
"type": "number", "type": "number",
"description": "Discovery category ID" "description": "Discovery category type"
}, },
"member_count": { "member_count": {
"type": "number", "type": "number",
@ -73562,7 +73562,7 @@
"required": [ "required": [
"id", "id",
"name", "name",
"category_id", "category_type",
"member_count", "member_count",
"online_count", "online_count",
"features", "features",
@ -75223,17 +75223,17 @@
"maxLength": 300, "maxLength": 300,
"description": "Description for discovery listing" "description": "Description for discovery listing"
}, },
"category_id": { "category_type": {
"type": "integer", "type": "integer",
"minimum": 0, "minimum": 0,
"maximum": 8, "maximum": 8,
"format": "int32", "format": "int32",
"description": "Discovery category ID" "description": "Discovery category type"
} }
}, },
"required": [ "required": [
"description", "description",
"category_id" "category_type"
] ]
}, },
"DiscoveryApplicationPatchRequest": { "DiscoveryApplicationPatchRequest": {
@ -75245,12 +75245,12 @@
"maxLength": 300, "maxLength": 300,
"description": "Updated description for discovery listing" "description": "Updated description for discovery listing"
}, },
"category_id": { "category_type": {
"type": "integer", "type": "integer",
"minimum": 0, "minimum": 0,
"maximum": 8, "maximum": 8,
"format": "int32", "format": "int32",
"description": "Updated discovery category ID" "description": "Updated discovery category type"
} }
} }
}, },

View File

@ -657,7 +657,7 @@ description: 'Admin object schemas from the Fluxer API.'
| Field | Type | Description | | Field | Type | Description |
|-------|------|-------------| |-------|------|-------------|
| applied_at | string | Application timestamp | | applied_at | string | Application timestamp |
| category_id | number | Discovery category ID | | category_type | number | Discovery category type |
| description | string | Discovery description | | description | string | Discovery description |
| guild_id | [SnowflakeType](#snowflaketype) | Guild ID | | guild_id | [SnowflakeType](#snowflaketype) | Guild ID |
| review_reason? | ?string | Review reason | | review_reason? | ?string | Review reason |
@ -2151,7 +2151,7 @@ Type: [MessageShredStatusNotFoundResponse](#messageshredstatusnotfoundresponse)
| Field | Type | Description | | Field | Type | Description |
|-------|------|-------------| |-------|------|-------------|
| slot_index | integer (int32) | Slot index to reserve (must be >= 1) | | slot_index | integer (int32) | Slot index to reserve (must be >= 1) |
| user_id | ?[SnowflakeType](#snowflaketype) | User ID to reserve the slot for, or null to unreserve (special value -1 is also valid) | | user_id | ?[Int64StringType](#int64stringtype) | User ID to reserve the slot for, or null to unreserve (special value -1 is also valid) |
<a id="resolvereportrequest"></a> <a id="resolvereportrequest"></a>

View File

@ -103,7 +103,7 @@ Type: [ConnectionResponse](#connectionresponse)[]
| Field | Type | Description | | Field | Type | Description |
|-------|------|-------------| |-------|------|-------------|
| category_id? | integer (int32) | Updated discovery category ID | | category_type? | integer (int32) | Updated discovery category type |
| description? | string | Updated description for discovery listing | | description? | string | Updated description for discovery listing |
<a id="discoveryapplicationrequest"></a> <a id="discoveryapplicationrequest"></a>
@ -116,7 +116,7 @@ Type: [ConnectionResponse](#connectionresponse)[]
| Field | Type | Description | | Field | Type | Description |
|-------|------|-------------| |-------|------|-------------|
| category_id | integer (int32) | Discovery category ID | | category_type | integer (int32) | Discovery category type |
| description | string | Description for discovery listing | | description | string | Description for discovery listing |
<a id="discoverycategorylistresponse"></a> <a id="discoverycategorylistresponse"></a>
@ -157,7 +157,7 @@ Type: [DiscoveryCategoryResponse](#discoverycategoryresponse)[]
| Field | Type | Description | | Field | Type | Description |
|-------|------|-------------| |-------|------|-------------|
| category_id | number | Discovery category ID | | category_type | number | Discovery category type |
| description? | ?string | Discovery description | | description? | ?string | Discovery description |
| features | string[] | Guild feature flags | | features | string[] | Guild feature flags |
| icon? | ?string | Guild icon hash | | icon? | ?string | Guild icon hash |

View File

@ -26,7 +26,7 @@ description: 'Premium object schemas from the Fluxer API.'
| Field | Type | Description | | Field | Type | Description |
|-------|------|-------------| |-------|------|-------------|
| slot_index | integer (int32) | The slot index | | slot_index | integer (int32) | The slot index |
| user_id | ?[SnowflakeType](#snowflaketype) | User ID that reserved this slot, or null if unreserved (special value -1 is also valid) | | user_id | ?[Int64StringType](#int64stringtype) | User ID that reserved this slot, or null if unreserved (special value -1 is also valid) |
<a id="priceidsresponsecurrency"></a> <a id="priceidsresponsecurrency"></a>

View File

@ -990,14 +990,9 @@ export const DeleteApiKeyResponse = z.object({
success: z.literal(true), success: z.literal(true),
}); });
const SnowflakeOrSentinelType = z
.string()
.regex(/^(-1|0|[1-9][0-9]*)$/)
.describe('fluxer:SnowflakeStringType');
export const VisionarySlotSchema = z.object({ export const VisionarySlotSchema = z.object({
slot_index: Int32Type.describe('The slot index'), slot_index: Int32Type.describe('The slot index'),
user_id: SnowflakeOrSentinelType.nullable().describe( user_id: Int64StringType.nullable().describe(
'User ID that reserved this slot, or null if unreserved (special value -1 is also valid)', 'User ID that reserved this slot, or null if unreserved (special value -1 is also valid)',
), ),
}); });
@ -1028,7 +1023,7 @@ export type ShrinkVisionarySlotsRequest = z.infer<typeof ShrinkVisionarySlotsReq
export const ReserveVisionarySlotRequest = z.object({ export const ReserveVisionarySlotRequest = z.object({
slot_index: Int32Type.min(1).describe('Slot index to reserve (must be >= 1)'), slot_index: Int32Type.min(1).describe('Slot index to reserve (must be >= 1)'),
user_id: SnowflakeOrSentinelType.nullable().describe( user_id: Int64StringType.nullable().describe(
'User ID to reserve the slot for, or null to unreserve (special value -1 is also valid)', 'User ID to reserve the slot for, or null to unreserve (special value -1 is also valid)',
), ),
}); });