mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 05:59:50 +00:00
chore: generate
This commit is contained in:
parent
e17b875641
commit
5a4eec5b08
4 changed files with 50 additions and 41 deletions
|
|
@ -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(),
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue