@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.mjs CHANGED
@@ -9663,6 +9663,43 @@ var MigrateV2SiteInputSchema = z21.object({
9663
9663
  /** Convert again after a manual rollback left the row on a superseded ledger deployment. */
9664
9664
  allowRemigration: z21.boolean().default(false)
9665
9665
  });
9666
+ var StartStaticBuildInputSchema = z21.object({
9667
+ domain: z21.string().min(1),
9668
+ /** "" for a root site, otherwise a leading-slash basepath. */
9669
+ basepath: z21.string().default("")
9670
+ });
9671
+ var StartStaticBuildResponseSchema = z21.object({
9672
+ /** Mirrors the dispatcher's own outcomes, plus the sites it can't resolve. */
9673
+ status: z21.enum(["created", "already-running", "host-not-enabled", "disabled", "not-published"]),
9674
+ domain: z21.string(),
9675
+ basepath: z21.string(),
9676
+ /** The deployment being built, absent when the site has never published. */
9677
+ deploymentId: z21.string().optional(),
9678
+ jobName: z21.string().optional(),
9679
+ /** The host the build is exported to and served from, which may not be `domain`. */
9680
+ host: z21.string().optional()
9681
+ });
9682
+ var ResolveStaticServingHostInputSchema = z21.object({
9683
+ domain: z21.string().min(1),
9684
+ /** "" for a root site, otherwise a leading-slash basepath. */
9685
+ basepath: z21.string().default("")
9686
+ });
9687
+ var ResolveStaticServingHostResponseSchema = z21.object({
9688
+ domain: z21.string(),
9689
+ basepath: z21.string(),
9690
+ /**
9691
+ * The hostname the static build is exported to and served from — always a
9692
+ * hostname Fern owns for a published site, even one on a customer's domain.
9693
+ */
9694
+ servingHost: z21.string(),
9695
+ /** False when nothing routes to the serving host, so cutting over would serve nothing. */
9696
+ routable: z21.boolean(),
9697
+ /**
9698
+ * The deployment the serving host was derived from; absent when the site
9699
+ * has never published, in which case only its own hostname was available.
9700
+ */
9701
+ deploymentId: z21.string().optional()
9702
+ });
9666
9703
  var MigrateV2SiteSkipReasonSchema = z21.enum([
9667
9704
  "not-registered",
9668
9705
  "preview",
@@ -10305,7 +10342,9 @@ var docsLedgerContract = {
10305
10342
  previewRegister: oc11.route({ method: "POST", path: "/preview/init" }).input(LedgerPreviewRegisterInputSchema).output(LedgerPreviewRegisterResponseSchema),
10306
10343
  finish: oc11.route({ method: "POST", path: "/register/finish" }).input(DocsPublishInputSchema).output(FinishResponseSchema),
10307
10344
  archiveSite: oc11.route({ method: "POST", path: "/archive" }).input(ArchiveSiteInputSchema).output(ArchiveSiteResponseSchema),
10308
- migrateV2Site: oc11.route({ method: "POST", path: "/migrate-v2" }).input(MigrateV2SiteInputSchema).output(MigrateV2SiteResponseSchema)
10345
+ migrateV2Site: oc11.route({ method: "POST", path: "/migrate-v2" }).input(MigrateV2SiteInputSchema).output(MigrateV2SiteResponseSchema),
10346
+ startStaticBuild: oc11.route({ method: "POST", path: "/static-build" }).input(StartStaticBuildInputSchema).output(StartStaticBuildResponseSchema),
10347
+ resolveStaticServingHost: oc11.route({ method: "POST", path: "/static-build/serving-host" }).input(ResolveStaticServingHostInputSchema).output(ResolveStaticServingHostResponseSchema)
10309
10348
  };
10310
10349
  var CurrentVersionInputSchema = z21.object({
10311
10350
  domain: z21.string(),