mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
fix(api): support int53 attachment sizes (#1261)
This commit is contained in:
1 parent
40d1e90a3c
commit
3a8ed1012f
22 files changed
+289
-89
No files matched your search
@@ -36,6 +36,7 @@ import {
|
||||
createStringType,
|
||||
Int32Type,
|
||||
Int64StringType,
|
||||
NonNegativeSafeIntegerType,
|
||||
SnowflakeStringType,
|
||||
SnowflakeType,
|
||||
withOpenApiType,
|
||||
@@ -800,7 +801,7 @@ const LimitRuleSchema = z.object({
|
||||
id: z.string().min(1).describe('Unique rule identifier'),
|
||||
filters: LimitFilterSchema.optional().describe('Optional filters that scope the rule'),
|
||||
limits: z
|
||||
.record(z.string(), z.number().min(0))
|
||||
.record(z.string(), NonNegativeSafeIntegerType)
|
||||
.refine(
|
||||
(limits) => {
|
||||
const limitKeys = Object.keys(limits);
|
||||
@@ -1258,7 +1259,7 @@ const AdminMessageAttachmentSchema = z.object({
|
||||
content_type: z.string().nullable(),
|
||||
width: Int32Type.nullable(),
|
||||
height: Int32Type.nullable(),
|
||||
size: Int32Type.nullable().optional(),
|
||||
size: NonNegativeSafeIntegerType.nullable().optional(),
|
||||
ncmec_status: NcmecSubmissionStatusEnum,
|
||||
ncmec_report_id: createStringType(1, 256).nullable(),
|
||||
ncmec_failure_reason: createStringType(1, 4000).nullable(),
|
||||
|
||||
Reference in new issue
Block a user