@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.
@@ -3648,8 +3648,52 @@ var ReindexResponseSchema = z14.object({
3648
3648
  /** The terminal Job outcome the endpoint waited for, or `queued` when called with `wait: false`. */
3649
3649
  outcome: z14.enum(["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]).optional()
3650
3650
  });
3651
+ var TelemetrySecondsSchema = z14.number().finite().min(0);
3652
+ var StaticBuildTelemetrySchema = z14.object({
3653
+ schemaVersion: z14.literal(1),
3654
+ /**
3655
+ * The Job's own view of which site and build this was. FDR logs the
3656
+ * promotion token's claim instead, which it signed itself; these are kept
3657
+ * only so a report can be matched back to the record in R2, and are absent
3658
+ * when the Job's environment did not name them.
3659
+ */
3660
+ domain: z14.string().max(253).optional(),
3661
+ buildId: z14.string().max(64).optional(),
3662
+ /** Parallel `astro build` shards the render used; cores and memory scale from it. */
3663
+ shards: z14.number().int().min(1),
3664
+ /** vCPU one shard reserved, for the pod's whole lifetime. */
3665
+ cpuPerShard: z14.number().finite().min(0),
3666
+ /** GiB one shard reserved, likewise. */
3667
+ memoryGiPerShard: z14.number().finite().min(0),
3668
+ /**
3669
+ * The pod's wall clock, first stage mark to last. Absent when the stages
3670
+ * left too few marks to span, in which case there is no cost to derive
3671
+ * either: a build that cannot be timed must not be logged as a free one.
3672
+ */
3673
+ durationSeconds: TelemetrySecondsSchema.optional(),
3674
+ /**
3675
+ * How long each stage of the Job ran, so a regression can be attributed to
3676
+ * one. Named stages rather than a map, so a stray stage file cannot widen
3677
+ * the log line FDR writes from this.
3678
+ */
3679
+ stageSeconds: z14.object({
3680
+ hydrate: TelemetrySecondsSchema.optional(),
3681
+ build: TelemetrySecondsSchema.optional(),
3682
+ export: TelemetrySecondsSchema.optional()
3683
+ }).default({}),
3684
+ /**
3685
+ * Which build this was of its deployment. A shadow build renders the same
3686
+ * deployment without being served; its cost is the thing being judged, so
3687
+ * it must be separable in a query rather than derivable from a name.
3688
+ */
3689
+ variant: z14.enum(["normal", "shadow"]).optional(),
3690
+ /** The original build's id when `variant` is `shadow`. */
3691
+ shadowOf: z14.string().max(64).optional()
3692
+ });
3651
3693
  var PromoteStaticBuildInputSchema = z14.object({
3652
- token: z14.string().min(1)
3694
+ token: z14.string().min(1),
3695
+ /** Best effort: `.catch(undefined)` so a publish cannot fail over a measurement. */
3696
+ telemetry: StaticBuildTelemetrySchema.optional().catch(void 0)
3653
3697
  });
3654
3698
  var PromoteStaticBuildResponseSchema = z14.object({
3655
3699
  buildId: z14.string(),