chore: generate

This commit is contained in:
GitHub Action
2026-01-22 18:17:10 +00:00
parent e17b875641
commit 5a4eec5b08
4 changed files with 50 additions and 41 deletions

View File

@@ -28,12 +28,15 @@ export namespace BlackData {
return input
})
export const get = fn(z.object({
export const get = fn(
z.object({
plan: z.enum(SubscriptionPlan),
}), ({ plan }) => {
const json = JSON.parse(Resource.ZEN_BLACK_LIMITS.value)
return Schema.parse(json)[plan]
})
}),
({ plan }) => {
const json = JSON.parse(Resource.ZEN_BLACK_LIMITS.value)
return Schema.parse(json)[plan]
},
)
}
export namespace Black {
@@ -75,7 +78,7 @@ export namespace Black {
export const analyzeWeeklyUsage = fn(
z.object({
plan:z.enum(SubscriptionPlan),
plan: z.enum(SubscriptionPlan),
usage: z.number().int(),
timeUpdated: z.date(),
}),