@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.js
CHANGED
|
@@ -282,6 +282,8 @@ __export(orpc_client_exports, {
|
|
|
282
282
|
GetSdkSnippetsForOrgInputSchema: () => GetSdkSnippetsForOrgInputSchema,
|
|
283
283
|
GetSdkSnippetsForOrgResponseSchema: () => GetSdkSnippetsForOrgResponseSchema,
|
|
284
284
|
GetSiteMetricsInputSchema: () => GetSiteMetricsInputSchema,
|
|
285
|
+
GetSiteSourceInputSchema: () => GetSiteSourceInputSchema,
|
|
286
|
+
GetSiteSourceResponseSchema: () => GetSiteSourceResponseSchema,
|
|
285
287
|
GetSlugEntriesResponseSchema: () => GetSlugEntriesResponseSchema,
|
|
286
288
|
GetSnapshotInputSchema: () => GetSnapshotInputSchema,
|
|
287
289
|
GetSnapshotResponseSchema: () => GetSnapshotResponseSchema,
|
|
@@ -5109,6 +5111,11 @@ var FinishResponseSchema = z22.object({
|
|
|
5109
5111
|
additionalSiteIds: z22.array(z22.string()).default([]),
|
|
5110
5112
|
deploymentHash: z22.string(),
|
|
5111
5113
|
reusedDeployment: z22.boolean(),
|
|
5114
|
+
/**
|
|
5115
|
+
* True when a publish of the same URL that started later was already live,
|
|
5116
|
+
* so this deployment was stored but not made live.
|
|
5117
|
+
*/
|
|
5118
|
+
superseded: z22.boolean().optional(),
|
|
5112
5119
|
/**
|
|
5113
5120
|
* Per-locale segment counts when `translations[]` was supplied on the
|
|
5114
5121
|
* finish input. Absent when no translations were included.
|
|
@@ -5907,13 +5914,26 @@ var DocsPublishInputSchemaInternal = z22.object({
|
|
|
5907
5914
|
*/
|
|
5908
5915
|
customDomains: z22.array(z22.string()).default([]),
|
|
5909
5916
|
previewId: z22.string().nullish(),
|
|
5917
|
+
/**
|
|
5918
|
+
* When the CLI started this publish (ISO 8601). FDR orders overlapping
|
|
5919
|
+
* publishes of one URL by it, so the client's local build and upload
|
|
5920
|
+
* time count. FDR falls back to its own clock when absent, in the
|
|
5921
|
+
* future, or more than 6 hours old (ADR 0040).
|
|
5922
|
+
*/
|
|
5923
|
+
publishStartedAt: z22.string().datetime({ offset: true }).nullish(),
|
|
5910
5924
|
/** The primary/fallback locale for this deployment (e.g. "en"). */
|
|
5911
5925
|
defaultLocale: z22.string().default("en"),
|
|
5912
5926
|
/**
|
|
5913
5927
|
* All locales for this deployment. Each locale goes through the same
|
|
5914
5928
|
* transform → upload → verify → persist pipeline.
|
|
5915
5929
|
*/
|
|
5916
|
-
locales: z22.array(LocaleEntrySchema).min(1)
|
|
5930
|
+
locales: z22.array(LocaleEntrySchema).min(1),
|
|
5931
|
+
/**
|
|
5932
|
+
* The publisher's `fern/` folder as a JSON `RepositoryFile[]` CAS blob, so the site can
|
|
5933
|
+
* later be written to a GitHub repo as it was published. Optional — older CLIs omit it,
|
|
5934
|
+
* and the CLI only sends it for guest publishes. A missing upload never fails the publish.
|
|
5935
|
+
*/
|
|
5936
|
+
source: BlobRefSchema.nullish()
|
|
5917
5937
|
}).refine((data) => data.locales.some((l) => l.locale === data.defaultLocale), {
|
|
5918
5938
|
message: "defaultLocale must match one of the locales in the locales array",
|
|
5919
5939
|
path: ["defaultLocale"]
|
|
@@ -5994,6 +6014,20 @@ var ListStaticBuildFilesResponseSchema = z22.object({
|
|
|
5994
6014
|
/** Pass back to get the next page; absent on the last page. */
|
|
5995
6015
|
nextCursor: z22.string().optional()
|
|
5996
6016
|
});
|
|
6017
|
+
var GetSiteSourceInputSchema = z22.object({
|
|
6018
|
+
domain: z22.string().min(1),
|
|
6019
|
+
/** "" for a root site, otherwise a leading-slash basepath. */
|
|
6020
|
+
basepath: z22.string().default("")
|
|
6021
|
+
});
|
|
6022
|
+
var GetSiteSourceResponseSchema = z22.object({
|
|
6023
|
+
/** SHA-256 hex of the source blob. */
|
|
6024
|
+
hash: z22.string(),
|
|
6025
|
+
contentLength: z22.number(),
|
|
6026
|
+
/** Short-lived signed GET URL for the JSON `RepositoryFile[]`. */
|
|
6027
|
+
url: z22.string(),
|
|
6028
|
+
/** When the publish that sent this source finished (ISO 8601). */
|
|
6029
|
+
updatedAt: z22.string()
|
|
6030
|
+
});
|
|
5997
6031
|
var docsLedgerContract = {
|
|
5998
6032
|
register: import_contract21.oc.route({ method: "POST", path: "/register" }).input(DocsPublishInputSchema).output(RegisterResponseSchema),
|
|
5999
6033
|
previewRegister: import_contract21.oc.route({ method: "POST", path: "/preview/init" }).input(LedgerPreviewRegisterInputSchema).output(LedgerPreviewRegisterResponseSchema),
|
|
@@ -6007,6 +6041,7 @@ var docsLedgerContract = {
|
|
|
6007
6041
|
resolveStaticServingHost: import_contract21.oc.route({ method: "POST", path: "/static-build/serving-host" }).input(ResolveStaticServingHostInputSchema).output(ResolveStaticServingHostResponseSchema),
|
|
6008
6042
|
/** Served by the read router; listed here so `createDocsLedgerClient` can call it. */
|
|
6009
6043
|
listStaticBuildFiles: import_contract21.oc.route({ method: "GET", path: "/static-build/files" }).input(ListStaticBuildFilesInputSchema).output(ListStaticBuildFilesResponseSchema),
|
|
6044
|
+
getSiteSource: import_contract21.oc.route({ method: "GET", path: "/site-source" }).input(GetSiteSourceInputSchema).output(GetSiteSourceResponseSchema),
|
|
6010
6045
|
getCustomHostname: import_contract21.oc.route({ method: "POST", path: "/static-build/custom-hostname/get" }).input(CustomHostnameInputSchema).output(CustomHostnameResponseSchema),
|
|
6011
6046
|
registerCustomHostname: import_contract21.oc.route({ method: "POST", path: "/static-build/custom-hostname/register" }).input(CustomHostnameInputSchema).output(CustomHostnameResponseSchema),
|
|
6012
6047
|
deleteCustomHostname: import_contract21.oc.route({ method: "POST", path: "/static-build/custom-hostname/delete" }).input(CustomHostnameInputSchema).output(DeleteCustomHostnameResponseSchema)
|
|
@@ -8217,6 +8252,8 @@ var ClaimAnonymousDocsSiteInputSchema = z37.object({
|
|
|
8217
8252
|
var ClaimAnonymousDocsSiteResponseSchema = z37.object({
|
|
8218
8253
|
siteId: z37.string(),
|
|
8219
8254
|
domain: z37.string(),
|
|
8255
|
+
/** The drop host the site moved from, when the claim gave it a new address; it serves until `domain` does. */
|
|
8256
|
+
previousDomain: z37.string().optional(),
|
|
8220
8257
|
orgId: z37.string(),
|
|
8221
8258
|
buildId: z37.string()
|
|
8222
8259
|
});
|
|
@@ -8245,6 +8282,8 @@ var RehomeGuestSessionInputSchema = z37.object({
|
|
|
8245
8282
|
var RehomedGuestSiteSchema = z37.object({
|
|
8246
8283
|
siteId: z37.string(),
|
|
8247
8284
|
domain: z37.string(),
|
|
8285
|
+
/** The drop host the site moved from, when it took a new address; it serves until `domain` does. */
|
|
8286
|
+
previousDomain: z37.string().optional(),
|
|
8248
8287
|
/** The build the site serves at `domain`; absent for a site that was never published. */
|
|
8249
8288
|
buildId: z37.string().optional()
|
|
8250
8289
|
});
|
|
@@ -9278,6 +9317,8 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9278
9317
|
GetSdkSnippetsForOrgInputSchema,
|
|
9279
9318
|
GetSdkSnippetsForOrgResponseSchema,
|
|
9280
9319
|
GetSiteMetricsInputSchema,
|
|
9320
|
+
GetSiteSourceInputSchema,
|
|
9321
|
+
GetSiteSourceResponseSchema,
|
|
9281
9322
|
GetSlugEntriesResponseSchema,
|
|
9282
9323
|
GetSnapshotInputSchema,
|
|
9283
9324
|
GetSnapshotResponseSchema,
|