@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.
@@ -4577,8 +4577,52 @@ var ReindexResponseSchema = z22.object({
4577
4577
  /** The terminal Job outcome the endpoint waited for, or `queued` when called with `wait: false`. */
4578
4578
  outcome: z22.enum(["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]).optional()
4579
4579
  });
4580
+ var TelemetrySecondsSchema = z22.number().finite().min(0);
4581
+ var StaticBuildTelemetrySchema = z22.object({
4582
+ schemaVersion: z22.literal(1),
4583
+ /**
4584
+ * The Job's own view of which site and build this was. FDR logs the
4585
+ * promotion token's claim instead, which it signed itself; these are kept
4586
+ * only so a report can be matched back to the record in R2, and are absent
4587
+ * when the Job's environment did not name them.
4588
+ */
4589
+ domain: z22.string().max(253).optional(),
4590
+ buildId: z22.string().max(64).optional(),
4591
+ /** Parallel `astro build` shards the render used; cores and memory scale from it. */
4592
+ shards: z22.number().int().min(1),
4593
+ /** vCPU one shard reserved, for the pod's whole lifetime. */
4594
+ cpuPerShard: z22.number().finite().min(0),
4595
+ /** GiB one shard reserved, likewise. */
4596
+ memoryGiPerShard: z22.number().finite().min(0),
4597
+ /**
4598
+ * The pod's wall clock, first stage mark to last. Absent when the stages
4599
+ * left too few marks to span, in which case there is no cost to derive
4600
+ * either: a build that cannot be timed must not be logged as a free one.
4601
+ */
4602
+ durationSeconds: TelemetrySecondsSchema.optional(),
4603
+ /**
4604
+ * How long each stage of the Job ran, so a regression can be attributed to
4605
+ * one. Named stages rather than a map, so a stray stage file cannot widen
4606
+ * the log line FDR writes from this.
4607
+ */
4608
+ stageSeconds: z22.object({
4609
+ hydrate: TelemetrySecondsSchema.optional(),
4610
+ build: TelemetrySecondsSchema.optional(),
4611
+ export: TelemetrySecondsSchema.optional()
4612
+ }).default({}),
4613
+ /**
4614
+ * Which build this was of its deployment. A shadow build renders the same
4615
+ * deployment without being served; its cost is the thing being judged, so
4616
+ * it must be separable in a query rather than derivable from a name.
4617
+ */
4618
+ variant: z22.enum(["normal", "shadow"]).optional(),
4619
+ /** The original build's id when `variant` is `shadow`. */
4620
+ shadowOf: z22.string().max(64).optional()
4621
+ });
4580
4622
  var PromoteStaticBuildInputSchema = z22.object({
4581
- token: z22.string().min(1)
4623
+ token: z22.string().min(1),
4624
+ /** Best effort: `.catch(undefined)` so a publish cannot fail over a measurement. */
4625
+ telemetry: StaticBuildTelemetrySchema.optional().catch(void 0)
4582
4626
  });
4583
4627
  var PromoteStaticBuildResponseSchema = z22.object({
4584
4628
  buildId: z22.string(),
@@ -9274,6 +9318,7 @@ export {
9274
9318
  StartStaticBuildInputSchema,
9275
9319
  StartStaticBuildResponseSchema,
9276
9320
  StaticBuildFileSchema,
9321
+ StaticBuildTelemetrySchema,
9277
9322
  StaticContentGroupBySchema,
9278
9323
  StaticContentTrafficInputSchema,
9279
9324
  StaticContentTrafficResponseSchema,