@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.
- package/dist/js/client/FdrClient.js +45 -1
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +45 -1
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/docs-ledger/index.js +45 -1
- package/dist/js/docs-ledger/index.js.map +1 -1
- package/dist/js/docs-ledger/index.mjs +45 -1
- package/dist/js/docs-ledger/index.mjs.map +1 -1
- package/dist/js/index.js +45 -1
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +45 -1
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +47 -1
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +46 -1
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/docs-ledger/contract.d.ts +285 -0
- package/dist/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-ledger/contract.js +67 -1
- package/dist/orpc-client/docs-ledger/contract.js.map +1 -1
- package/dist/orpc-client/docs-ledger/ledger-manifest.d.ts +30 -30
- package/dist/types/orpc-client/docs-ledger/contract.d.ts +285 -0
- package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts +30 -30
- package/package.json +1 -1
package/dist/js/index.js
CHANGED
|
@@ -10557,8 +10557,52 @@ var ReindexResponseSchema = z21.object({
|
|
|
10557
10557
|
/** The terminal Job outcome the endpoint waited for, or `queued` when called with `wait: false`. */
|
|
10558
10558
|
outcome: z21.enum(["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]).optional()
|
|
10559
10559
|
});
|
|
10560
|
+
var TelemetrySecondsSchema = z21.number().finite().min(0);
|
|
10561
|
+
var StaticBuildTelemetrySchema = z21.object({
|
|
10562
|
+
schemaVersion: z21.literal(1),
|
|
10563
|
+
/**
|
|
10564
|
+
* The Job's own view of which site and build this was. FDR logs the
|
|
10565
|
+
* promotion token's claim instead, which it signed itself; these are kept
|
|
10566
|
+
* only so a report can be matched back to the record in R2, and are absent
|
|
10567
|
+
* when the Job's environment did not name them.
|
|
10568
|
+
*/
|
|
10569
|
+
domain: z21.string().max(253).optional(),
|
|
10570
|
+
buildId: z21.string().max(64).optional(),
|
|
10571
|
+
/** Parallel `astro build` shards the render used; cores and memory scale from it. */
|
|
10572
|
+
shards: z21.number().int().min(1),
|
|
10573
|
+
/** vCPU one shard reserved, for the pod's whole lifetime. */
|
|
10574
|
+
cpuPerShard: z21.number().finite().min(0),
|
|
10575
|
+
/** GiB one shard reserved, likewise. */
|
|
10576
|
+
memoryGiPerShard: z21.number().finite().min(0),
|
|
10577
|
+
/**
|
|
10578
|
+
* The pod's wall clock, first stage mark to last. Absent when the stages
|
|
10579
|
+
* left too few marks to span, in which case there is no cost to derive
|
|
10580
|
+
* either: a build that cannot be timed must not be logged as a free one.
|
|
10581
|
+
*/
|
|
10582
|
+
durationSeconds: TelemetrySecondsSchema.optional(),
|
|
10583
|
+
/**
|
|
10584
|
+
* How long each stage of the Job ran, so a regression can be attributed to
|
|
10585
|
+
* one. Named stages rather than a map, so a stray stage file cannot widen
|
|
10586
|
+
* the log line FDR writes from this.
|
|
10587
|
+
*/
|
|
10588
|
+
stageSeconds: z21.object({
|
|
10589
|
+
hydrate: TelemetrySecondsSchema.optional(),
|
|
10590
|
+
build: TelemetrySecondsSchema.optional(),
|
|
10591
|
+
export: TelemetrySecondsSchema.optional()
|
|
10592
|
+
}).default({}),
|
|
10593
|
+
/**
|
|
10594
|
+
* Which build this was of its deployment. A shadow build renders the same
|
|
10595
|
+
* deployment without being served; its cost is the thing being judged, so
|
|
10596
|
+
* it must be separable in a query rather than derivable from a name.
|
|
10597
|
+
*/
|
|
10598
|
+
variant: z21.enum(["normal", "shadow"]).optional(),
|
|
10599
|
+
/** The original build's id when `variant` is `shadow`. */
|
|
10600
|
+
shadowOf: z21.string().max(64).optional()
|
|
10601
|
+
});
|
|
10560
10602
|
var PromoteStaticBuildInputSchema = z21.object({
|
|
10561
|
-
token: z21.string().min(1)
|
|
10603
|
+
token: z21.string().min(1),
|
|
10604
|
+
/** Best effort: `.catch(undefined)` so a publish cannot fail over a measurement. */
|
|
10605
|
+
telemetry: StaticBuildTelemetrySchema.optional().catch(void 0)
|
|
10562
10606
|
});
|
|
10563
10607
|
var PromoteStaticBuildResponseSchema = z21.object({
|
|
10564
10608
|
buildId: z21.string(),
|