UNPKG

@upstart.gg/sdk

Version:

You can test the CLI without recompiling by running:

26 lines (24 loc) 736 B
import { imageResultsSchema } from "./images.js"; import { versionedPageSchema } from "./page.js"; import { siteSchema } from "./site.js"; import { Type } from "@sinclair/typebox"; //#region src/shared/context.ts const generationStateSchema = Type.Object({ isReady: Type.Boolean(), isSetup: Type.Boolean(), hasSitemap: Type.Boolean(), hasThemesGenerated: Type.Boolean() }); const callContextSchema = Type.Object({ site: siteSchema, page: versionedPageSchema, generationState: Type.Optional(generationStateSchema), userLanguage: Type.Optional(Type.String({ minLength: 2, maxLength: 2 })), assets: imageResultsSchema }); //#endregion export { callContextSchema, generationStateSchema }; //# sourceMappingURL=context.js.map