@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.
@@ -4962,19 +4962,37 @@ var MigrateV2SiteInputSchema = z22.object({
4962
4962
  });
4963
4963
  var StartStaticBuildInputSchema = z22.object({
4964
4964
  domain: z22.string().min(1),
4965
- /** "" for a root site, otherwise a leading-slash basepath. */
4966
- basepath: z22.string().default("")
4965
+ /** "" for a root site, otherwise a leading-slash basepath. Ignored when `path` is given. */
4966
+ basepath: z22.string().default(""),
4967
+ /**
4968
+ * A request path on `domain`: the site to build is the one whose basepath the
4969
+ * path falls under (the longest match; the root site catches the rest). What
4970
+ * the docs-router sends, since it does not know which basepaths a host publishes.
4971
+ */
4972
+ path: z22.string().optional(),
4973
+ /**
4974
+ * `publish` (the default) waits for the Job and reports how it ended.
4975
+ * `background` returns as soon as the Job exists (`outcome: "queued"`): the
4976
+ * Job promotes itself when it succeeds. What the docs-router asks for when a
4977
+ * visitor reaches a preview that has no static build yet.
4978
+ */
4979
+ priority: z22.enum(["publish", "background"]).default("publish")
4967
4980
  });
4968
4981
  var StartStaticBuildResponseSchema = z22.object({
4969
4982
  /** Mirrors the dispatcher's own outcomes, plus the sites it can't resolve. */
4970
4983
  status: z22.enum(["created", "already-running", "host-not-enabled", "disabled", "not-published"]),
4971
4984
  domain: z22.string(),
4985
+ /** The site built: the requested basepath, or the one `path` resolved to. */
4972
4986
  basepath: z22.string(),
4987
+ /** Every basepath currently published at `domain` ("" is the root site). */
4988
+ basepaths: z22.array(z22.string()).optional(),
4973
4989
  /** The deployment being built, absent when the site has never published. */
4974
4990
  deploymentId: z22.string().optional(),
4975
4991
  jobName: z22.string().optional(),
4976
4992
  /** The host the build is exported to and served from, which may not be `domain`. */
4977
- host: z22.string().optional()
4993
+ host: z22.string().optional(),
4994
+ /** How the Job ended, or `queued` for a `background` build nobody waited on. */
4995
+ outcome: z22.enum(["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]).optional()
4978
4996
  });
4979
4997
  var RebuildAllStaticBuildsInputSchema = z22.object({
4980
4998
  /** Resolve and report the sites without dispatching any build. */