@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/orpc-client.js
CHANGED
|
@@ -701,6 +701,7 @@ __export(orpc_client_exports, {
|
|
|
701
701
|
StartStaticBuildInputSchema: () => StartStaticBuildInputSchema,
|
|
702
702
|
StartStaticBuildResponseSchema: () => StartStaticBuildResponseSchema,
|
|
703
703
|
StaticBuildFileSchema: () => StaticBuildFileSchema,
|
|
704
|
+
StaticBuildTelemetrySchema: () => StaticBuildTelemetrySchema,
|
|
704
705
|
StaticContentGroupBySchema: () => StaticContentGroupBySchema,
|
|
705
706
|
StaticContentTrafficInputSchema: () => StaticContentTrafficInputSchema,
|
|
706
707
|
StaticContentTrafficResponseSchema: () => StaticContentTrafficResponseSchema,
|
|
@@ -5435,8 +5436,52 @@ var ReindexResponseSchema = z22.object({
|
|
|
5435
5436
|
/** The terminal Job outcome the endpoint waited for, or `queued` when called with `wait: false`. */
|
|
5436
5437
|
outcome: z22.enum(["succeeded", "failed", "timed-out", "gone", "unrouted", "queued"]).optional()
|
|
5437
5438
|
});
|
|
5439
|
+
var TelemetrySecondsSchema = z22.number().finite().min(0);
|
|
5440
|
+
var StaticBuildTelemetrySchema = z22.object({
|
|
5441
|
+
schemaVersion: z22.literal(1),
|
|
5442
|
+
/**
|
|
5443
|
+
* The Job's own view of which site and build this was. FDR logs the
|
|
5444
|
+
* promotion token's claim instead, which it signed itself; these are kept
|
|
5445
|
+
* only so a report can be matched back to the record in R2, and are absent
|
|
5446
|
+
* when the Job's environment did not name them.
|
|
5447
|
+
*/
|
|
5448
|
+
domain: z22.string().max(253).optional(),
|
|
5449
|
+
buildId: z22.string().max(64).optional(),
|
|
5450
|
+
/** Parallel `astro build` shards the render used; cores and memory scale from it. */
|
|
5451
|
+
shards: z22.number().int().min(1),
|
|
5452
|
+
/** vCPU one shard reserved, for the pod's whole lifetime. */
|
|
5453
|
+
cpuPerShard: z22.number().finite().min(0),
|
|
5454
|
+
/** GiB one shard reserved, likewise. */
|
|
5455
|
+
memoryGiPerShard: z22.number().finite().min(0),
|
|
5456
|
+
/**
|
|
5457
|
+
* The pod's wall clock, first stage mark to last. Absent when the stages
|
|
5458
|
+
* left too few marks to span, in which case there is no cost to derive
|
|
5459
|
+
* either: a build that cannot be timed must not be logged as a free one.
|
|
5460
|
+
*/
|
|
5461
|
+
durationSeconds: TelemetrySecondsSchema.optional(),
|
|
5462
|
+
/**
|
|
5463
|
+
* How long each stage of the Job ran, so a regression can be attributed to
|
|
5464
|
+
* one. Named stages rather than a map, so a stray stage file cannot widen
|
|
5465
|
+
* the log line FDR writes from this.
|
|
5466
|
+
*/
|
|
5467
|
+
stageSeconds: z22.object({
|
|
5468
|
+
hydrate: TelemetrySecondsSchema.optional(),
|
|
5469
|
+
build: TelemetrySecondsSchema.optional(),
|
|
5470
|
+
export: TelemetrySecondsSchema.optional()
|
|
5471
|
+
}).default({}),
|
|
5472
|
+
/**
|
|
5473
|
+
* Which build this was of its deployment. A shadow build renders the same
|
|
5474
|
+
* deployment without being served; its cost is the thing being judged, so
|
|
5475
|
+
* it must be separable in a query rather than derivable from a name.
|
|
5476
|
+
*/
|
|
5477
|
+
variant: z22.enum(["normal", "shadow"]).optional(),
|
|
5478
|
+
/** The original build's id when `variant` is `shadow`. */
|
|
5479
|
+
shadowOf: z22.string().max(64).optional()
|
|
5480
|
+
});
|
|
5438
5481
|
var PromoteStaticBuildInputSchema = z22.object({
|
|
5439
|
-
token: z22.string().min(1)
|
|
5482
|
+
token: z22.string().min(1),
|
|
5483
|
+
/** Best effort: `.catch(undefined)` so a publish cannot fail over a measurement. */
|
|
5484
|
+
telemetry: StaticBuildTelemetrySchema.optional().catch(void 0)
|
|
5440
5485
|
});
|
|
5441
5486
|
var PromoteStaticBuildResponseSchema = z22.object({
|
|
5442
5487
|
buildId: z22.string(),
|
|
@@ -10133,6 +10178,7 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
10133
10178
|
StartStaticBuildInputSchema,
|
|
10134
10179
|
StartStaticBuildResponseSchema,
|
|
10135
10180
|
StaticBuildFileSchema,
|
|
10181
|
+
StaticBuildTelemetrySchema,
|
|
10136
10182
|
StaticContentGroupBySchema,
|
|
10137
10183
|
StaticContentTrafficInputSchema,
|
|
10138
10184
|
StaticContentTrafficResponseSchema,
|