Files
spaces-startos/startos/fileModels/storeJson.ts
T
spacesopsandCursor 1fa9674d49
Build Service / BuildPackage (push) Has been cancelled
Release v0.1.1:3 with Configure Subspaces, monitor CLI, and spaces v0.0.9x.
Adds a user toggle for SUBS_PUBLISH_REQUIRE_FINALIZED, copies the certrelay monitor binary to /data/bin for terminal use, and bumps the spaced image to horologger/spaces:v0.0.9x.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 18:53:22 -04:00

49 lines
1.3 KiB
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),
spacedAuth: z
.object({
username: z.string(),
password: z.string(),
})
.nullable()
.catch(null),
enableSubspaces: z.boolean().nullable().catch(null),
enableSubsProver: z.boolean().nullable().catch(null),
subsAuth: z
.object({
username: z.string(),
password: z.string(),
})
.nullable()
.catch(null),
subsAuthEnabled: z.boolean().nullable().catch(null),
subsProverAuth: z
.object({
username: z.string(),
password: z.string(),
})
.nullable()
.catch(null),
subsProverAuthEnabled: z.boolean().nullable().catch(null),
certrelaySelfUrl: z.string().nullable().catch(null),
certrelayBootstrap: z.boolean().nullable().catch(null),
certrelayHealthcheckHandle: z.string().nullable().catch(null),
nachoWorkshopPdfLinkText: z.string().nullable().catch(null),
subsPublishRequireFinalized: z.boolean().nullable().catch(null),
})
export const storeJson = FileHelper.json(
{ base: sdk.volumes.main, subpath: 'store.json' },
shape,
)