@fern-api/fdr-sdk 1.2.111-cfdc56c4fc → 1.2.112-47e5377045

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
@@ -9726,6 +9726,43 @@ var MigrateV2SiteInputSchema = z21.object({
9726
9726
  /** Convert again after a manual rollback left the row on a superseded ledger deployment. */
9727
9727
  allowRemigration: z21.boolean().default(false)
9728
9728
  });
9729
+ var StartStaticBuildInputSchema = z21.object({
9730
+ domain: z21.string().min(1),
9731
+ /** "" for a root site, otherwise a leading-slash basepath. */
9732
+ basepath: z21.string().default("")
9733
+ });
9734
+ var StartStaticBuildResponseSchema = z21.object({
9735
+ /** Mirrors the dispatcher's own outcomes, plus the sites it can't resolve. */
9736
+ status: z21.enum(["created", "already-running", "host-not-enabled", "disabled", "not-published"]),
9737
+ domain: z21.string(),
9738
+ basepath: z21.string(),
9739
+ /** The deployment being built, absent when the site has never published. */
9740
+ deploymentId: z21.string().optional(),
9741
+ jobName: z21.string().optional(),
9742
+ /** The host the build is exported to and served from, which may not be `domain`. */
9743
+ host: z21.string().optional()
9744
+ });
9745
+ var ResolveStaticServingHostInputSchema = z21.object({
9746
+ domain: z21.string().min(1),
9747
+ /** "" for a root site, otherwise a leading-slash basepath. */
9748
+ basepath: z21.string().default("")
9749
+ });
9750
+ var ResolveStaticServingHostResponseSchema = z21.object({
9751
+ domain: z21.string(),
9752
+ basepath: z21.string(),
9753
+ /**
9754
+ * The hostname the static build is exported to and served from — always a
9755
+ * hostname Fern owns for a published site, even one on a customer's domain.
9756
+ */
9757
+ servingHost: z21.string(),
9758
+ /** False when nothing routes to the serving host, so cutting over would serve nothing. */
9759
+ routable: z21.boolean(),
9760
+ /**
9761
+ * The deployment the serving host was derived from; absent when the site
9762
+ * has never published, in which case only its own hostname was available.
9763
+ */
9764
+ deploymentId: z21.string().optional()
9765
+ });
9729
9766
  var MigrateV2SiteSkipReasonSchema = z21.enum([
9730
9767
  "not-registered",
9731
9768
  "preview",
@@ -10368,7 +10405,9 @@ var docsLedgerContract = {
10368
10405
  previewRegister: import_contract21.oc.route({ method: "POST", path: "/preview/init" }).input(LedgerPreviewRegisterInputSchema).output(LedgerPreviewRegisterResponseSchema),
10369
10406
  finish: import_contract21.oc.route({ method: "POST", path: "/register/finish" }).input(DocsPublishInputSchema).output(FinishResponseSchema),
10370
10407
  archiveSite: import_contract21.oc.route({ method: "POST", path: "/archive" }).input(ArchiveSiteInputSchema).output(ArchiveSiteResponseSchema),
10371
- migrateV2Site: import_contract21.oc.route({ method: "POST", path: "/migrate-v2" }).input(MigrateV2SiteInputSchema).output(MigrateV2SiteResponseSchema)
10408
+ migrateV2Site: import_contract21.oc.route({ method: "POST", path: "/migrate-v2" }).input(MigrateV2SiteInputSchema).output(MigrateV2SiteResponseSchema),
10409
+ startStaticBuild: import_contract21.oc.route({ method: "POST", path: "/static-build" }).input(StartStaticBuildInputSchema).output(StartStaticBuildResponseSchema),
10410
+ resolveStaticServingHost: import_contract21.oc.route({ method: "POST", path: "/static-build/serving-host" }).input(ResolveStaticServingHostInputSchema).output(ResolveStaticServingHostResponseSchema)
10372
10411
  };
10373
10412
  var CurrentVersionInputSchema = z21.object({
10374
10413
  domain: z21.string(),