Added some features :D, Codex limits are burned out by GPT 6 Astra D:
This commit is contained in:
@@ -51,6 +51,10 @@ export const datasetSchema = z
|
||||
bounds: boundsSchema,
|
||||
north: z.literal("-z"),
|
||||
contributionTo: z.string().uuid().optional(),
|
||||
mapPath: z
|
||||
.string()
|
||||
.regex(/^[a-f0-9-]{36}\/maps\/[a-f0-9-]{36}\.webp$/)
|
||||
.optional(),
|
||||
viewpoints: z.array(viewpointSchema).min(1).max(24),
|
||||
// Retain the capture's locations while viewpoints holds the saved selection.
|
||||
availableViewpoints: z.array(viewpointSchema).min(1).max(24).optional(),
|
||||
@@ -138,6 +142,8 @@ export function parseUploadManifest(value: unknown) {
|
||||
throw new Error(
|
||||
"Upload all captured viewpoints; selection happens in the dashboard",
|
||||
);
|
||||
if (manifest.mapPath)
|
||||
throw new Error("Uploads cannot specify server map paths");
|
||||
return manifest;
|
||||
}
|
||||
export type DatasetManifest = z.infer<typeof datasetSchema>;
|
||||
|
||||
Reference in New Issue
Block a user