Files
cfw-autumn/shared/api/balances/prevVersions/legacyUpdateBalanceModels.ts
2026-01-09 14:19:10 +00:00

18 lines
422 B
TypeScript

import { z } from "zod/v4";
export const UpdateBalancesParamsSchema = z.object({
balances: z.array(
z.object({
feature_id: z.string().meta({
description: "The ID of the feature to update balance for.",
}),
balance: z.number().meta({
description: "The new balance value.",
}),
}),
),
entity_id: z.string().optional().meta({
description: "The ID of the entity to update balance for.",
}),
});