@fern-api/fdr-sdk 1.2.150-6ecd5b84b9 → 1.2.151-1537a7ea13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3948,19 +3948,37 @@ var MigrateV2SiteInputSchema = z21.object({
3948
3948
  });
3949
3949
  var StartStaticBuildInputSchema = z21.object({
3950
3950
  domain: z21.string().min(1),
3951
- /** "" for a root site, otherwise a leading-slash basepath. */
3952
- basepath: z21.string().default("")
3951
+ /** "" for a root site, otherwise a leading-slash basepath. Ignored when `path` is given. */
3952
+ basepath: z21.string().default(""),
3953
+ /**
3954
+ * A request path on `domain`: the site to build is the one whose basepath the
3955
+ * path falls under (the longest match; the root site catches the rest). What
3956
+ * the docs-router sends, since it does not know which basepaths a host publishes.
3957
+ */
3958
+ path: z21.string().optional(),
3959
+ /**
3960
+ * `publish` (the default) waits for the Job and reports how it ended.
3961
+ * `background` returns as soon as the Job exists (`outcome: "queued"`): the
3962
+ * Job promotes itself when it succeeds. What the docs-router asks for when a
3963
+ * visitor reaches a preview that has no static build yet.
3964
+ */
3965
+ priority: z21.enum(["publish", "background"]).default("publish")
3953
3966
  });
3954
3967
  var StartStaticBuildResponseSchema = z21.object({
3955
3968
  /** Mirrors the dispatcher's own outcomes, plus the sites it can't resolve. */
3956
3969
  status: z21.enum(["created", "already-running", "host-not-enabled", "disabled", "not-published"]),
3957
3970
  domain: z21.string(),
3971
+ /** The site built: the requested basepath, or the one `path` resolved to. */
3958
3972
  basepath: z21.string(),
3973
+ /** Every basepath currently published at `domain` ("" is the root site). */
3974
+ basepaths: z21.array(z21.string()).optional(),
3959
3975
  /** The deployment being built, absent when the site has never published. */
3960
3976
  deploymentId: z21.string().optional(),
3961
3977
  jobName: z21.string().optional(),
3962
3978
  /** The host the build is exported to and served from, which may not be `domain`. */
3963
- host: z21.string().optional()
3979
+ host: z21.string().optional(),
3980
+ /** How the Job ended, or `queued` for a `background` build nobody waited on. */
3981
+ outcome: z21.enum(["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]).optional()
3964
3982
  });
3965
3983
  var RebuildAllStaticBuildsInputSchema = z21.object({
3966
3984
  /** Resolve and report the sites without dispatching any build. */