Files
spaces-startos/startos/fileModels/storeJson.ts
T
spacesops 70b8aab0f3
Build Service / BuildPackage (push) Has been cancelled
v0.0.9.2
2026-05-24 19:10:21 -04:00

40 lines
1011 B
TypeScript

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,
)