@fern-api/fdr-sdk 1.2.151-c3ff0e9296 → 1.2.152-45fab339da

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.
package/dist/js/index.js CHANGED
@@ -9834,6 +9834,20 @@ var StartStaticBuildInputSchema = z21.object({
9834
9834
  * the docs-router sends, since it does not know which basepaths a host publishes.
9835
9835
  */
9836
9836
  path: z21.string().optional(),
9837
+ /**
9838
+ * The build the caller is serving for the site (the docs-router's pointer names it by
9839
+ * deployment id). When it is the site's current deployment, made with the current renderer
9840
+ * as far as `servingRenderer` tells, there is nothing to build and the answer is
9841
+ * `up-to-date`; otherwise the site is rebuilt as usual.
9842
+ */
9843
+ servingBuildId: z21.string().optional(),
9844
+ /**
9845
+ * The renderer (build image digest) the served build was made with, `""` when the caller
9846
+ * knows it was made before that was recorded. Omitted when the caller cannot tell (a
9847
+ * basepath build), in which case only the deployment is judged. Any value other than the
9848
+ * digest FDR currently dispatches builds with makes the build stale.
9849
+ */
9850
+ servingRenderer: z21.string().optional(),
9837
9851
  /**
9838
9852
  * `publish` (the default) waits for the Job and reports how it ended.
9839
9853
  * `background` returns as soon as the Job exists (`outcome: "queued"`): the
@@ -9843,8 +9857,22 @@ var StartStaticBuildInputSchema = z21.object({
9843
9857
  priority: z21.enum(["publish", "background"]).default("publish")
9844
9858
  });
9845
9859
  var StartStaticBuildResponseSchema = z21.object({
9846
- /** Mirrors the dispatcher's own outcomes, plus the sites it can't resolve. */
9847
- status: z21.enum(["created", "already-running", "host-not-enabled", "disabled", "not-published"]),
9860
+ /**
9861
+ * Mirrors the dispatcher's own outcomes, plus the sites it can't resolve and
9862
+ * `up-to-date`: `servingBuildId` already is the current deployment (made with the current
9863
+ * renderer, when `servingRenderer` was given), nothing started; `busy`: a `background`
9864
+ * ask FDR did not plan because as many background builds as it allows are already being
9865
+ * created — ask again later.
9866
+ */
9867
+ status: z21.enum([
9868
+ "created",
9869
+ "already-running",
9870
+ "host-not-enabled",
9871
+ "disabled",
9872
+ "not-published",
9873
+ "up-to-date",
9874
+ "busy"
9875
+ ]),
9848
9876
  domain: z21.string(),
9849
9877
  /** The site built: the requested basepath, or the one `path` resolved to. */
9850
9878
  basepath: z21.string(),