import { FileHelper, z } from '@start9labs/start-sdk' import { sdk } from '../sdk' const shape = z.object({ password: z.string().nullable().catch(null), btcAuth: z .object({ username: z.string(), password: z.string(), }) .nullable() .catch(null), dbAuth: z .object({ username: z.string(), password: z.string(), database: z.string(), }) .nullable() .catch(null), spacedAuth: z .object({ username: z.string(), password: z.string(), }) .nullable() .catch(null), enableExplorer: z.boolean().nullable().catch(null), enableSubspaces: z.boolean().nullable().catch(null), enableSubsProver: z.boolean().nullable().catch(null), certrelaySelfUrl: z.string().nullable().catch(null), certrelayBootstrap: z.boolean().nullable().catch(null), certrelayHealthcheckHandle: z.string().nullable().catch(null), }) export const storeJson = FileHelper.json( { base: sdk.volumes.main, subpath: 'store.json' }, shape, )