fix(openapi): use a regular int64 type for visionary slot user id
This commit is contained in:
@@ -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)',
|
||||
),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user