Files
spacesopsandCursor 2b0224a678
Build Service / BuildPackage (push) Canceled after 0s
0.3.0:0
Update to upstream Spaces 0.3.0 and refresh bundled images (subs v0.1.2c,
certrelay v0.2.8, nacho v1.0.0b). Add Create/Show Registry API Keys for
registry-server, remove Configure Subspaces and SUBS_PUBLISH_REQUIRE_FINALIZED,
and align README/instructions with the new tags.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 19:35:15 -04:00

54 lines
1.6 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),
// Bearer secrets for the embedded registry-server (examples/registry-server).
// REGISTRY_API_KEY guards POST /register; SUBSD_API_KEY is the Auth Token
// for the subs↔registry channel (Settings → Registry Server → Auth Token).
// Both are required and must differ or registry-server refuses to start.
registryApiKey: z.string().nullable().catch(null),
subsdApiKey: z.string().nullable().catch(null),
})
export const storeJson = FileHelper.json(
{ base: sdk.volumes.main, subpath: 'store.json' },
shape,
)