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
5 changed files with 21 additions and 26 deletions

View File

@@ -990,14 +990,9 @@ export const DeleteApiKeyResponse = z.object({
success: z.literal(true),
});
const SnowflakeOrSentinelType = z
.string()
.regex(/^(-1|0|[1-9][0-9]*)$/)
.describe('fluxer:SnowflakeStringType');
export const VisionarySlotSchema = z.object({
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)',
),
});
@@ -1028,7 +1023,7 @@ export type ShrinkVisionarySlotsRequest = z.infer<typeof ShrinkVisionarySlotsReq
export const ReserveVisionarySlotRequest = z.object({
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)',
),
});