mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 06:45:22 +00:00
16 lines
398 B
TypeScript
16 lines
398 B
TypeScript
import z from "zod"
|
|
|
|
export const ConsoleState = z.object({
|
|
consoleManagedProviders: z.array(z.string()),
|
|
activeOrgName: z.string().optional(),
|
|
switchableOrgCount: z.number().int().nonnegative(),
|
|
})
|
|
|
|
export type ConsoleState = z.infer<typeof ConsoleState>
|
|
|
|
export const emptyConsoleState: ConsoleState = {
|
|
consoleManagedProviders: [],
|
|
activeOrgName: undefined,
|
|
switchableOrgCount: 0,
|
|
}
|