@fern-api/fdr-sdk 1.2.174-e2f8a24699 → 1.2.174-e7dedd2eea

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.
@@ -4383,8 +4383,52 @@ var ReindexResponseSchema = z21.object({
4383
4383
  /** The terminal Job outcome the endpoint waited for, or `queued` when called with `wait: false`. */
4384
4384
  outcome: z21.enum(["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]).optional()
4385
4385
  });
4386
+ var TelemetrySecondsSchema = z21.number().finite().min(0);
4387
+ var StaticBuildTelemetrySchema = z21.object({
4388
+ schemaVersion: z21.literal(1),
4389
+ /**
4390
+ * The Job's own view of which site and build this was. FDR logs the
4391
+ * promotion token's claim instead, which it signed itself; these are kept
4392
+ * only so a report can be matched back to the record in R2, and are absent
4393
+ * when the Job's environment did not name them.
4394
+ */
4395
+ domain: z21.string().max(253).optional(),
4396
+ buildId: z21.string().max(64).optional(),
4397
+ /** Parallel `astro build` shards the render used; cores and memory scale from it. */
4398
+ shards: z21.number().int().min(1),
4399
+ /** vCPU one shard reserved, for the pod's whole lifetime. */
4400
+ cpuPerShard: z21.number().finite().min(0),
4401
+ /** GiB one shard reserved, likewise. */
4402
+ memoryGiPerShard: z21.number().finite().min(0),
4403
+ /**
4404
+ * The pod's wall clock, first stage mark to last. Absent when the stages
4405
+ * left too few marks to span, in which case there is no cost to derive
4406
+ * either: a build that cannot be timed must not be logged as a free one.
4407
+ */
4408
+ durationSeconds: TelemetrySecondsSchema.optional(),
4409
+ /**
4410
+ * How long each stage of the Job ran, so a regression can be attributed to
4411
+ * one. Named stages rather than a map, so a stray stage file cannot widen
4412
+ * the log line FDR writes from this.
4413
+ */
4414
+ stageSeconds: z21.object({
4415
+ hydrate: TelemetrySecondsSchema.optional(),
4416
+ build: TelemetrySecondsSchema.optional(),
4417
+ export: TelemetrySecondsSchema.optional()
4418
+ }).default({}),
4419
+ /**
4420
+ * Which build this was of its deployment. A shadow build renders the same
4421
+ * deployment without being served; its cost is the thing being judged, so
4422
+ * it must be separable in a query rather than derivable from a name.
4423
+ */
4424
+ variant: z21.enum(["normal", "shadow"]).optional(),
4425
+ /** The original build's id when `variant` is `shadow`. */
4426
+ shadowOf: z21.string().max(64).optional()
4427
+ });
4386
4428
  var PromoteStaticBuildInputSchema = z21.object({
4387
- token: z21.string().min(1)
4429
+ token: z21.string().min(1),
4430
+ /** Best effort: `.catch(undefined)` so a publish cannot fail over a measurement. */
4431
+ telemetry: StaticBuildTelemetrySchema.optional().catch(void 0)
4388
4432
  });
4389
4433
  var PromoteStaticBuildResponseSchema = z21.object({
4390
4434
  buildId: z21.string(),