@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
|
@@ -3394,6 +3394,11 @@ var FinishResponseSchema = z14.object({
|
|
|
3394
3394
|
additionalSiteIds: z14.array(z14.string()).default([]),
|
|
3395
3395
|
deploymentHash: z14.string(),
|
|
3396
3396
|
reusedDeployment: z14.boolean(),
|
|
3397
|
+
/**
|
|
3398
|
+
* True when a publish of the same URL that started later was already live,
|
|
3399
|
+
* so this deployment was stored but not made live.
|
|
3400
|
+
*/
|
|
3401
|
+
superseded: z14.boolean().optional(),
|
|
3397
3402
|
/**
|
|
3398
3403
|
* Per-locale segment counts when `translations[]` was supplied on the
|
|
3399
3404
|
* finish input. Absent when no translations were included.
|
|
@@ -4192,13 +4197,26 @@ var DocsPublishInputSchemaInternal = z14.object({
|
|
|
4192
4197
|
*/
|
|
4193
4198
|
customDomains: z14.array(z14.string()).default([]),
|
|
4194
4199
|
previewId: z14.string().nullish(),
|
|
4200
|
+
/**
|
|
4201
|
+
* When the CLI started this publish (ISO 8601). FDR orders overlapping
|
|
4202
|
+
* publishes of one URL by it, so the client's local build and upload
|
|
4203
|
+
* time count. FDR falls back to its own clock when absent, in the
|
|
4204
|
+
* future, or more than 6 hours old (ADR 0040).
|
|
4205
|
+
*/
|
|
4206
|
+
publishStartedAt: z14.string().datetime({ offset: true }).nullish(),
|
|
4195
4207
|
/** The primary/fallback locale for this deployment (e.g. "en"). */
|
|
4196
4208
|
defaultLocale: z14.string().default("en"),
|
|
4197
4209
|
/**
|
|
4198
4210
|
* All locales for this deployment. Each locale goes through the same
|
|
4199
4211
|
* transform → upload → verify → persist pipeline.
|
|
4200
4212
|
*/
|
|
4201
|
-
locales: z14.array(LocaleEntrySchema).min(1)
|
|
4213
|
+
locales: z14.array(LocaleEntrySchema).min(1),
|
|
4214
|
+
/**
|
|
4215
|
+
* The publisher's `fern/` folder as a JSON `RepositoryFile[]` CAS blob, so the site can
|
|
4216
|
+
* later be written to a GitHub repo as it was published. Optional — older CLIs omit it,
|
|
4217
|
+
* and the CLI only sends it for guest publishes. A missing upload never fails the publish.
|
|
4218
|
+
*/
|
|
4219
|
+
source: BlobRefSchema.nullish()
|
|
4202
4220
|
}).refine((data) => data.locales.some((l) => l.locale === data.defaultLocale), {
|
|
4203
4221
|
message: "defaultLocale must match one of the locales in the locales array",
|
|
4204
4222
|
path: ["defaultLocale"]
|
|
@@ -4279,6 +4297,20 @@ var ListStaticBuildFilesResponseSchema = z14.object({
|
|
|
4279
4297
|
/** Pass back to get the next page; absent on the last page. */
|
|
4280
4298
|
nextCursor: z14.string().optional()
|
|
4281
4299
|
});
|
|
4300
|
+
var GetSiteSourceInputSchema = z14.object({
|
|
4301
|
+
domain: z14.string().min(1),
|
|
4302
|
+
/** "" for a root site, otherwise a leading-slash basepath. */
|
|
4303
|
+
basepath: z14.string().default("")
|
|
4304
|
+
});
|
|
4305
|
+
var GetSiteSourceResponseSchema = z14.object({
|
|
4306
|
+
/** SHA-256 hex of the source blob. */
|
|
4307
|
+
hash: z14.string(),
|
|
4308
|
+
contentLength: z14.number(),
|
|
4309
|
+
/** Short-lived signed GET URL for the JSON `RepositoryFile[]`. */
|
|
4310
|
+
url: z14.string(),
|
|
4311
|
+
/** When the publish that sent this source finished (ISO 8601). */
|
|
4312
|
+
updatedAt: z14.string()
|
|
4313
|
+
});
|
|
4282
4314
|
var docsLedgerContract = {
|
|
4283
4315
|
register: import_contract3.oc.route({ method: "POST", path: "/register" }).input(DocsPublishInputSchema).output(RegisterResponseSchema),
|
|
4284
4316
|
previewRegister: import_contract3.oc.route({ method: "POST", path: "/preview/init" }).input(LedgerPreviewRegisterInputSchema).output(LedgerPreviewRegisterResponseSchema),
|
|
@@ -4292,6 +4324,7 @@ var docsLedgerContract = {
|
|
|
4292
4324
|
resolveStaticServingHost: import_contract3.oc.route({ method: "POST", path: "/static-build/serving-host" }).input(ResolveStaticServingHostInputSchema).output(ResolveStaticServingHostResponseSchema),
|
|
4293
4325
|
/** Served by the read router; listed here so `createDocsLedgerClient` can call it. */
|
|
4294
4326
|
listStaticBuildFiles: import_contract3.oc.route({ method: "GET", path: "/static-build/files" }).input(ListStaticBuildFilesInputSchema).output(ListStaticBuildFilesResponseSchema),
|
|
4327
|
+
getSiteSource: import_contract3.oc.route({ method: "GET", path: "/site-source" }).input(GetSiteSourceInputSchema).output(GetSiteSourceResponseSchema),
|
|
4295
4328
|
getCustomHostname: import_contract3.oc.route({ method: "POST", path: "/static-build/custom-hostname/get" }).input(CustomHostnameInputSchema).output(CustomHostnameResponseSchema),
|
|
4296
4329
|
registerCustomHostname: import_contract3.oc.route({ method: "POST", path: "/static-build/custom-hostname/register" }).input(CustomHostnameInputSchema).output(CustomHostnameResponseSchema),
|
|
4297
4330
|
deleteCustomHostname: import_contract3.oc.route({ method: "POST", path: "/static-build/custom-hostname/delete" }).input(CustomHostnameInputSchema).output(DeleteCustomHostnameResponseSchema)
|