@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.
@@ -3692,8 +3692,52 @@ var ReindexResponseSchema = z14.object({
3692
3692
  /** The terminal Job outcome the endpoint waited for, or `queued` when called with `wait: false`. */
3693
3693
  outcome: z14.enum(["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]).optional()
3694
3694
  });
3695
+ var TelemetrySecondsSchema = z14.number().finite().min(0);
3696
+ var StaticBuildTelemetrySchema = z14.object({
3697
+ schemaVersion: z14.literal(1),
3698
+ /**
3699
+ * The Job's own view of which site and build this was. FDR logs the
3700
+ * promotion token's claim instead, which it signed itself; these are kept
3701
+ * only so a report can be matched back to the record in R2, and are absent
3702
+ * when the Job's environment did not name them.
3703
+ */
3704
+ domain: z14.string().max(253).optional(),
3705
+ buildId: z14.string().max(64).optional(),
3706
+ /** Parallel `astro build` shards the render used; cores and memory scale from it. */
3707
+ shards: z14.number().int().min(1),
3708
+ /** vCPU one shard reserved, for the pod's whole lifetime. */
3709
+ cpuPerShard: z14.number().finite().min(0),
3710
+ /** GiB one shard reserved, likewise. */
3711
+ memoryGiPerShard: z14.number().finite().min(0),
3712
+ /**
3713
+ * The pod's wall clock, first stage mark to last. Absent when the stages
3714
+ * left too few marks to span, in which case there is no cost to derive
3715
+ * either: a build that cannot be timed must not be logged as a free one.
3716
+ */
3717
+ durationSeconds: TelemetrySecondsSchema.optional(),
3718
+ /**
3719
+ * How long each stage of the Job ran, so a regression can be attributed to
3720
+ * one. Named stages rather than a map, so a stray stage file cannot widen
3721
+ * the log line FDR writes from this.
3722
+ */
3723
+ stageSeconds: z14.object({
3724
+ hydrate: TelemetrySecondsSchema.optional(),
3725
+ build: TelemetrySecondsSchema.optional(),
3726
+ export: TelemetrySecondsSchema.optional()
3727
+ }).default({}),
3728
+ /**
3729
+ * Which build this was of its deployment. A shadow build renders the same
3730
+ * deployment without being served; its cost is the thing being judged, so
3731
+ * it must be separable in a query rather than derivable from a name.
3732
+ */
3733
+ variant: z14.enum(["normal", "shadow"]).optional(),
3734
+ /** The original build's id when `variant` is `shadow`. */
3735
+ shadowOf: z14.string().max(64).optional()
3736
+ });
3695
3737
  var PromoteStaticBuildInputSchema = z14.object({
3696
- token: z14.string().min(1)
3738
+ token: z14.string().min(1),
3739
+ /** Best effort: `.catch(undefined)` so a publish cannot fail over a measurement. */
3740
+ telemetry: StaticBuildTelemetrySchema.optional().catch(void 0)
3697
3741
  });
3698
3742
  var PromoteStaticBuildResponseSchema = z14.object({
3699
3743
  buildId: z14.string(),