@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.
@@ -139,6 +139,20 @@ export declare const StartStaticBuildInputSchema: z.ZodObject<{
139
139
  * the docs-router sends, since it does not know which basepaths a host publishes.
140
140
  */
141
141
  path: z.ZodOptional<z.ZodString>;
142
+ /**
143
+ * The build the caller is serving for the site (the docs-router's pointer names it by
144
+ * deployment id). When it is the site's current deployment, made with the current renderer
145
+ * as far as `servingRenderer` tells, there is nothing to build and the answer is
146
+ * `up-to-date`; otherwise the site is rebuilt as usual.
147
+ */
148
+ servingBuildId: z.ZodOptional<z.ZodString>;
149
+ /**
150
+ * The renderer (build image digest) the served build was made with, `""` when the caller
151
+ * knows it was made before that was recorded. Omitted when the caller cannot tell (a
152
+ * basepath build), in which case only the deployment is judged. Any value other than the
153
+ * digest FDR currently dispatches builds with makes the build stale.
154
+ */
155
+ servingRenderer: z.ZodOptional<z.ZodString>;
142
156
  /**
143
157
  * `publish` (the default) waits for the Job and reports how it ended.
144
158
  * `background` returns as soon as the Job exists (`outcome: "queued"`): the
@@ -151,15 +165,25 @@ export declare const StartStaticBuildInputSchema: z.ZodObject<{
151
165
  basepath: string;
152
166
  priority: "background" | "publish";
153
167
  path?: string | undefined;
168
+ servingBuildId?: string | undefined;
169
+ servingRenderer?: string | undefined;
154
170
  }, {
155
171
  domain: string;
156
172
  path?: string | undefined;
157
173
  basepath?: string | undefined;
174
+ servingBuildId?: string | undefined;
175
+ servingRenderer?: string | undefined;
158
176
  priority?: "background" | "publish" | undefined;
159
177
  }>;
160
178
  export declare const StartStaticBuildResponseSchema: z.ZodObject<{
161
- /** Mirrors the dispatcher's own outcomes, plus the sites it can't resolve. */
162
- status: z.ZodEnum<["created", "already-running", "host-not-enabled", "disabled", "not-published"]>;
179
+ /**
180
+ * Mirrors the dispatcher's own outcomes, plus the sites it can't resolve and
181
+ * `up-to-date`: `servingBuildId` already is the current deployment (made with the current
182
+ * renderer, when `servingRenderer` was given), nothing started; `busy`: a `background`
183
+ * ask FDR did not plan because as many background builds as it allows are already being
184
+ * created — ask again later.
185
+ */
186
+ status: z.ZodEnum<["created", "already-running", "host-not-enabled", "disabled", "not-published", "up-to-date", "busy"]>;
163
187
  domain: z.ZodString;
164
188
  /** The site built: the requested basepath, or the one `path` resolved to. */
165
189
  basepath: z.ZodString;
@@ -173,7 +197,7 @@ export declare const StartStaticBuildResponseSchema: z.ZodObject<{
173
197
  /** How the Job ended, or `queued` for a `background` build nobody waited on. */
174
198
  outcome: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]>>;
175
199
  }, "strip", z.ZodTypeAny, {
176
- status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published";
200
+ status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published" | "up-to-date" | "busy";
177
201
  domain: string;
178
202
  basepath: string;
179
203
  deploymentId?: string | undefined;
@@ -182,7 +206,7 @@ export declare const StartStaticBuildResponseSchema: z.ZodObject<{
182
206
  host?: string | undefined;
183
207
  outcome?: "succeeded" | "failed" | "timed-out" | "gone" | "unrouted" | "queued" | undefined;
184
208
  }, {
185
- status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published";
209
+ status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published" | "up-to-date" | "busy";
186
210
  domain: string;
187
211
  basepath: string;
188
212
  deploymentId?: string | undefined;
@@ -58064,6 +58088,20 @@ export declare const docsLedgerContract: {
58064
58088
  * the docs-router sends, since it does not know which basepaths a host publishes.
58065
58089
  */
58066
58090
  path: z.ZodOptional<z.ZodString>;
58091
+ /**
58092
+ * The build the caller is serving for the site (the docs-router's pointer names it by
58093
+ * deployment id). When it is the site's current deployment, made with the current renderer
58094
+ * as far as `servingRenderer` tells, there is nothing to build and the answer is
58095
+ * `up-to-date`; otherwise the site is rebuilt as usual.
58096
+ */
58097
+ servingBuildId: z.ZodOptional<z.ZodString>;
58098
+ /**
58099
+ * The renderer (build image digest) the served build was made with, `""` when the caller
58100
+ * knows it was made before that was recorded. Omitted when the caller cannot tell (a
58101
+ * basepath build), in which case only the deployment is judged. Any value other than the
58102
+ * digest FDR currently dispatches builds with makes the build stale.
58103
+ */
58104
+ servingRenderer: z.ZodOptional<z.ZodString>;
58067
58105
  /**
58068
58106
  * `publish` (the default) waits for the Job and reports how it ended.
58069
58107
  * `background` returns as soon as the Job exists (`outcome: "queued"`): the
@@ -58076,14 +58114,24 @@ export declare const docsLedgerContract: {
58076
58114
  basepath: string;
58077
58115
  priority: "background" | "publish";
58078
58116
  path?: string | undefined;
58117
+ servingBuildId?: string | undefined;
58118
+ servingRenderer?: string | undefined;
58079
58119
  }, {
58080
58120
  domain: string;
58081
58121
  path?: string | undefined;
58082
58122
  basepath?: string | undefined;
58123
+ servingBuildId?: string | undefined;
58124
+ servingRenderer?: string | undefined;
58083
58125
  priority?: "background" | "publish" | undefined;
58084
58126
  }>, z.ZodObject<{
58085
- /** Mirrors the dispatcher's own outcomes, plus the sites it can't resolve. */
58086
- status: z.ZodEnum<["created", "already-running", "host-not-enabled", "disabled", "not-published"]>;
58127
+ /**
58128
+ * Mirrors the dispatcher's own outcomes, plus the sites it can't resolve and
58129
+ * `up-to-date`: `servingBuildId` already is the current deployment (made with the current
58130
+ * renderer, when `servingRenderer` was given), nothing started; `busy`: a `background`
58131
+ * ask FDR did not plan because as many background builds as it allows are already being
58132
+ * created — ask again later.
58133
+ */
58134
+ status: z.ZodEnum<["created", "already-running", "host-not-enabled", "disabled", "not-published", "up-to-date", "busy"]>;
58087
58135
  domain: z.ZodString;
58088
58136
  /** The site built: the requested basepath, or the one `path` resolved to. */
58089
58137
  basepath: z.ZodString;
@@ -58097,7 +58145,7 @@ export declare const docsLedgerContract: {
58097
58145
  /** How the Job ended, or `queued` for a `background` build nobody waited on. */
58098
58146
  outcome: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]>>;
58099
58147
  }, "strip", z.ZodTypeAny, {
58100
- status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published";
58148
+ status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published" | "up-to-date" | "busy";
58101
58149
  domain: string;
58102
58150
  basepath: string;
58103
58151
  deploymentId?: string | undefined;
@@ -58106,7 +58154,7 @@ export declare const docsLedgerContract: {
58106
58154
  host?: string | undefined;
58107
58155
  outcome?: "succeeded" | "failed" | "timed-out" | "gone" | "unrouted" | "queued" | undefined;
58108
58156
  }, {
58109
- status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published";
58157
+ status: "created" | "already-running" | "host-not-enabled" | "disabled" | "not-published" | "up-to-date" | "busy";
58110
58158
  domain: string;
58111
58159
  basepath: string;
58112
58160
  deploymentId?: string | undefined;