@fern-api/fdr-sdk 1.2.174-e751c03595 → 1.2.174-e8c7a2e671
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/converters/db/examples/generateHttpBodyExample.d.ts.map +1 -1
- package/dist/converters/db/examples/generateHttpBodyExample.js +15 -14
- package/dist/converters/db/examples/generateHttpBodyExample.js.map +1 -1
- package/dist/converters/db/examples/generateHttpBodyExample.test.d.ts +2 -0
- package/dist/converters/db/examples/generateHttpBodyExample.test.d.ts.map +1 -0
- package/dist/converters/db/examples/generateHttpBodyExample.test.js +79 -0
- package/dist/converters/db/examples/generateHttpBodyExample.test.js.map +1 -0
- package/dist/docs-ledger/inputTypes.d.ts +5 -0
- package/dist/docs-ledger/inputTypes.d.ts.map +1 -1
- package/dist/js/client/FdrClient.js +34 -1
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +34 -1
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/converters/index.js +18 -11
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +18 -11
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/docs-ledger/index.js +34 -1
- package/dist/js/docs-ledger/index.js.map +1 -1
- package/dist/js/docs-ledger/index.mjs +34 -1
- package/dist/js/docs-ledger/index.mjs.map +1 -1
- package/dist/js/index.js +52 -12
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +52 -12
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +42 -1
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +40 -1
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/docs-anonymous/contract.d.ts +24 -0
- package/dist/orpc-client/docs-anonymous/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-anonymous/contract.js +4 -0
- package/dist/orpc-client/docs-anonymous/contract.js.map +1 -1
- package/dist/orpc-client/docs-ledger/contract.d.ts +152 -0
- package/dist/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-ledger/contract.js +41 -1
- package/dist/orpc-client/docs-ledger/contract.js.map +1 -1
- package/dist/types/converters/db/examples/generateHttpBodyExample.d.ts.map +1 -1
- package/dist/types/converters/db/examples/generateHttpBodyExample.test.d.ts +2 -0
- package/dist/types/converters/db/examples/generateHttpBodyExample.test.d.ts.map +1 -0
- package/dist/types/docs-ledger/inputTypes.d.ts +5 -0
- package/dist/types/docs-ledger/inputTypes.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-anonymous/contract.d.ts +24 -0
- package/dist/types/orpc-client/docs-anonymous/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/contract.d.ts +152 -0
- package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/js/orpc-client.mjs
CHANGED
|
@@ -4274,6 +4274,11 @@ var FinishResponseSchema = z22.object({
|
|
|
4274
4274
|
additionalSiteIds: z22.array(z22.string()).default([]),
|
|
4275
4275
|
deploymentHash: z22.string(),
|
|
4276
4276
|
reusedDeployment: z22.boolean(),
|
|
4277
|
+
/**
|
|
4278
|
+
* True when a publish of the same URL that started later was already live,
|
|
4279
|
+
* so this deployment was stored but not made live.
|
|
4280
|
+
*/
|
|
4281
|
+
superseded: z22.boolean().optional(),
|
|
4277
4282
|
/**
|
|
4278
4283
|
* Per-locale segment counts when `translations[]` was supplied on the
|
|
4279
4284
|
* finish input. Absent when no translations were included.
|
|
@@ -5072,13 +5077,26 @@ var DocsPublishInputSchemaInternal = z22.object({
|
|
|
5072
5077
|
*/
|
|
5073
5078
|
customDomains: z22.array(z22.string()).default([]),
|
|
5074
5079
|
previewId: z22.string().nullish(),
|
|
5080
|
+
/**
|
|
5081
|
+
* When the CLI started this publish (ISO 8601). FDR orders overlapping
|
|
5082
|
+
* publishes of one URL by it, so the client's local build and upload
|
|
5083
|
+
* time count. FDR falls back to its own clock when absent, in the
|
|
5084
|
+
* future, or more than 6 hours old (ADR 0040).
|
|
5085
|
+
*/
|
|
5086
|
+
publishStartedAt: z22.string().datetime({ offset: true }).nullish(),
|
|
5075
5087
|
/** The primary/fallback locale for this deployment (e.g. "en"). */
|
|
5076
5088
|
defaultLocale: z22.string().default("en"),
|
|
5077
5089
|
/**
|
|
5078
5090
|
* All locales for this deployment. Each locale goes through the same
|
|
5079
5091
|
* transform → upload → verify → persist pipeline.
|
|
5080
5092
|
*/
|
|
5081
|
-
locales: z22.array(LocaleEntrySchema).min(1)
|
|
5093
|
+
locales: z22.array(LocaleEntrySchema).min(1),
|
|
5094
|
+
/**
|
|
5095
|
+
* The publisher's `fern/` folder as a JSON `RepositoryFile[]` CAS blob, so the site can
|
|
5096
|
+
* later be written to a GitHub repo as it was published. Optional — older CLIs omit it,
|
|
5097
|
+
* and the CLI only sends it for guest publishes. A missing upload never fails the publish.
|
|
5098
|
+
*/
|
|
5099
|
+
source: BlobRefSchema.nullish()
|
|
5082
5100
|
}).refine((data) => data.locales.some((l) => l.locale === data.defaultLocale), {
|
|
5083
5101
|
message: "defaultLocale must match one of the locales in the locales array",
|
|
5084
5102
|
path: ["defaultLocale"]
|
|
@@ -5159,6 +5177,20 @@ var ListStaticBuildFilesResponseSchema = z22.object({
|
|
|
5159
5177
|
/** Pass back to get the next page; absent on the last page. */
|
|
5160
5178
|
nextCursor: z22.string().optional()
|
|
5161
5179
|
});
|
|
5180
|
+
var GetSiteSourceInputSchema = z22.object({
|
|
5181
|
+
domain: z22.string().min(1),
|
|
5182
|
+
/** "" for a root site, otherwise a leading-slash basepath. */
|
|
5183
|
+
basepath: z22.string().default("")
|
|
5184
|
+
});
|
|
5185
|
+
var GetSiteSourceResponseSchema = z22.object({
|
|
5186
|
+
/** SHA-256 hex of the source blob. */
|
|
5187
|
+
hash: z22.string(),
|
|
5188
|
+
contentLength: z22.number(),
|
|
5189
|
+
/** Short-lived signed GET URL for the JSON `RepositoryFile[]`. */
|
|
5190
|
+
url: z22.string(),
|
|
5191
|
+
/** When the publish that sent this source finished (ISO 8601). */
|
|
5192
|
+
updatedAt: z22.string()
|
|
5193
|
+
});
|
|
5162
5194
|
var docsLedgerContract = {
|
|
5163
5195
|
register: oc11.route({ method: "POST", path: "/register" }).input(DocsPublishInputSchema).output(RegisterResponseSchema),
|
|
5164
5196
|
previewRegister: oc11.route({ method: "POST", path: "/preview/init" }).input(LedgerPreviewRegisterInputSchema).output(LedgerPreviewRegisterResponseSchema),
|
|
@@ -5172,6 +5204,7 @@ var docsLedgerContract = {
|
|
|
5172
5204
|
resolveStaticServingHost: oc11.route({ method: "POST", path: "/static-build/serving-host" }).input(ResolveStaticServingHostInputSchema).output(ResolveStaticServingHostResponseSchema),
|
|
5173
5205
|
/** Served by the read router; listed here so `createDocsLedgerClient` can call it. */
|
|
5174
5206
|
listStaticBuildFiles: oc11.route({ method: "GET", path: "/static-build/files" }).input(ListStaticBuildFilesInputSchema).output(ListStaticBuildFilesResponseSchema),
|
|
5207
|
+
getSiteSource: oc11.route({ method: "GET", path: "/site-source" }).input(GetSiteSourceInputSchema).output(GetSiteSourceResponseSchema),
|
|
5175
5208
|
getCustomHostname: oc11.route({ method: "POST", path: "/static-build/custom-hostname/get" }).input(CustomHostnameInputSchema).output(CustomHostnameResponseSchema),
|
|
5176
5209
|
registerCustomHostname: oc11.route({ method: "POST", path: "/static-build/custom-hostname/register" }).input(CustomHostnameInputSchema).output(CustomHostnameResponseSchema),
|
|
5177
5210
|
deleteCustomHostname: oc11.route({ method: "POST", path: "/static-build/custom-hostname/delete" }).input(CustomHostnameInputSchema).output(DeleteCustomHostnameResponseSchema)
|
|
@@ -7382,6 +7415,8 @@ var ClaimAnonymousDocsSiteInputSchema = z37.object({
|
|
|
7382
7415
|
var ClaimAnonymousDocsSiteResponseSchema = z37.object({
|
|
7383
7416
|
siteId: z37.string(),
|
|
7384
7417
|
domain: z37.string(),
|
|
7418
|
+
/** The drop host the site moved from, when the claim gave it a new address; it serves until `domain` does. */
|
|
7419
|
+
previousDomain: z37.string().optional(),
|
|
7385
7420
|
orgId: z37.string(),
|
|
7386
7421
|
buildId: z37.string()
|
|
7387
7422
|
});
|
|
@@ -7410,6 +7445,8 @@ var RehomeGuestSessionInputSchema = z37.object({
|
|
|
7410
7445
|
var RehomedGuestSiteSchema = z37.object({
|
|
7411
7446
|
siteId: z37.string(),
|
|
7412
7447
|
domain: z37.string(),
|
|
7448
|
+
/** The drop host the site moved from, when it took a new address; it serves until `domain` does. */
|
|
7449
|
+
previousDomain: z37.string().optional(),
|
|
7413
7450
|
/** The build the site serves at `domain`; absent for a site that was never published. */
|
|
7414
7451
|
buildId: z37.string().optional()
|
|
7415
7452
|
});
|
|
@@ -8442,6 +8479,8 @@ export {
|
|
|
8442
8479
|
GetSdkSnippetsForOrgInputSchema,
|
|
8443
8480
|
GetSdkSnippetsForOrgResponseSchema,
|
|
8444
8481
|
GetSiteMetricsInputSchema,
|
|
8482
|
+
GetSiteSourceInputSchema,
|
|
8483
|
+
GetSiteSourceResponseSchema,
|
|
8445
8484
|
GetSlugEntriesResponseSchema,
|
|
8446
8485
|
GetSnapshotInputSchema,
|
|
8447
8486
|
GetSnapshotResponseSchema,
|