@fern-api/fdr-sdk 1.2.174-bbac430f9e → 1.2.174-bc8eac5687
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 +21 -0
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +21 -0
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/docs-ledger/index.js +21 -0
- package/dist/js/docs-ledger/index.js.map +1 -1
- package/dist/js/docs-ledger/index.mjs +21 -0
- package/dist/js/docs-ledger/index.mjs.map +1 -1
- package/dist/js/index.js +21 -0
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +21 -0
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +73 -0
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +65 -0
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/docs-ledger/__test__/static-build-files.test.d.ts +2 -0
- package/dist/orpc-client/docs-ledger/__test__/static-build-files.test.d.ts.map +1 -0
- package/dist/orpc-client/docs-ledger/__test__/static-build-files.test.js +49 -0
- package/dist/orpc-client/docs-ledger/__test__/static-build-files.test.js.map +1 -0
- package/dist/orpc-client/docs-ledger/contract.d.ts +112 -0
- package/dist/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-ledger/contract.js +29 -0
- package/dist/orpc-client/docs-ledger/contract.js.map +1 -1
- package/dist/orpc-client/docs-ledger/index.d.ts +1 -0
- package/dist/orpc-client/docs-ledger/index.d.ts.map +1 -1
- package/dist/orpc-client/docs-ledger/index.js +1 -0
- package/dist/orpc-client/docs-ledger/index.js.map +1 -1
- package/dist/orpc-client/docs-ledger/static-build-files.d.ts +20 -0
- package/dist/orpc-client/docs-ledger/static-build-files.d.ts.map +1 -0
- package/dist/orpc-client/docs-ledger/static-build-files.js +55 -0
- package/dist/orpc-client/docs-ledger/static-build-files.js.map +1 -0
- package/dist/types/orpc-client/docs-ledger/__test__/static-build-files.test.d.ts +2 -0
- package/dist/types/orpc-client/docs-ledger/__test__/static-build-files.test.d.ts.map +1 -0
- package/dist/types/orpc-client/docs-ledger/contract.d.ts +112 -0
- package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/index.d.ts +1 -0
- package/dist/types/orpc-client/docs-ledger/index.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/static-build-files.d.ts +20 -0
- package/dist/types/orpc-client/docs-ledger/static-build-files.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/js/orpc-client.js
CHANGED
|
@@ -444,6 +444,8 @@ __export(orpc_client_exports, {
|
|
|
444
444
|
ListRepositoriesResponseSchema: () => ListRepositoriesResponseSchema,
|
|
445
445
|
ListSdksForOrgInputSchema: () => ListSdksForOrgInputSchema,
|
|
446
446
|
ListSdksForOrgResponseSchema: () => ListSdksForOrgResponseSchema,
|
|
447
|
+
ListStaticBuildFilesInputSchema: () => ListStaticBuildFilesInputSchema,
|
|
448
|
+
ListStaticBuildFilesResponseSchema: () => ListStaticBuildFilesResponseSchema,
|
|
447
449
|
LiteralTypeSchema: () => LiteralTypeSchema,
|
|
448
450
|
LoadDocsForUrlResponseSchema: () => LoadDocsForUrlResponseSchema,
|
|
449
451
|
LocaleEntrySchema: () => LocaleEntrySchema,
|
|
@@ -635,6 +637,9 @@ __export(orpc_client_exports, {
|
|
|
635
637
|
RouteContextInputSchema: () => RouteContextInputSchema,
|
|
636
638
|
RouteContextResponseSchema: () => RouteContextResponseSchema,
|
|
637
639
|
RubyGemSchema: () => RubyGemSchema,
|
|
640
|
+
SHARED_ASSETS_PREFIX: () => SHARED_ASSETS_PREFIX,
|
|
641
|
+
SHARED_ASSET_DIRS: () => SHARED_ASSET_DIRS,
|
|
642
|
+
SHARED_MANIFEST_NAME: () => SHARED_MANIFEST_NAME,
|
|
638
643
|
SafeDoxyfileContentSchema: () => SafeDoxyfileContentSchema,
|
|
639
644
|
ScalarTypeSchema: () => ScalarTypeSchema,
|
|
640
645
|
ScriptSchema: () => ScriptSchema,
|
|
@@ -674,6 +679,7 @@ __export(orpc_client_exports, {
|
|
|
674
679
|
StartLibraryDocsGenerationResponseSchema: () => StartLibraryDocsGenerationResponseSchema,
|
|
675
680
|
StartStaticBuildInputSchema: () => StartStaticBuildInputSchema,
|
|
676
681
|
StartStaticBuildResponseSchema: () => StartStaticBuildResponseSchema,
|
|
682
|
+
StaticBuildFileSchema: () => StaticBuildFileSchema,
|
|
677
683
|
StaticContentGroupBySchema: () => StaticContentGroupBySchema,
|
|
678
684
|
StaticContentTrafficInputSchema: () => StaticContentTrafficInputSchema,
|
|
679
685
|
StaticContentTrafficResponseSchema: () => StaticContentTrafficResponseSchema,
|
|
@@ -799,6 +805,8 @@ __export(orpc_client_exports, {
|
|
|
799
805
|
gitContract: () => gitContract,
|
|
800
806
|
isFernFileRef: () => isFernFileRef,
|
|
801
807
|
isMcpAnalyticsWindow: () => isMcpAnalyticsWindow,
|
|
808
|
+
isRouterOnlyFile: () => isRouterOnlyFile,
|
|
809
|
+
isServedSharedManifestEntry: () => isServedSharedManifestEntry,
|
|
802
810
|
ledgerSegmentIdentity: () => ledgerSegmentIdentity,
|
|
803
811
|
libraryDocsContract: () => libraryDocsContract,
|
|
804
812
|
mcpAnalyticsIndex: () => mcpAnalyticsIndex,
|
|
@@ -5960,6 +5968,25 @@ var LedgerPreviewRegisterResponseSchema = z22.object({
|
|
|
5960
5968
|
/** Sanitized identifier the server actually used to compose the host. */
|
|
5961
5969
|
previewId: z22.string()
|
|
5962
5970
|
});
|
|
5971
|
+
var ListStaticBuildFilesInputSchema = z22.object({
|
|
5972
|
+
domain: z22.string().min(1),
|
|
5973
|
+
/** "" for a root site, otherwise a leading-slash basepath. */
|
|
5974
|
+
basepath: z22.string().default(""),
|
|
5975
|
+
/** `nextCursor` of the previous page; absent for the first page. */
|
|
5976
|
+
cursor: z22.string().optional()
|
|
5977
|
+
});
|
|
5978
|
+
var StaticBuildFileSchema = z22.object({
|
|
5979
|
+
/** Path relative to the host root, e.g. `docs/quickstart/index.html`. */
|
|
5980
|
+
path: z22.string(),
|
|
5981
|
+
/** Short-lived signed GET URL for the file. */
|
|
5982
|
+
url: z22.string()
|
|
5983
|
+
});
|
|
5984
|
+
var ListStaticBuildFilesResponseSchema = z22.object({
|
|
5985
|
+
buildId: z22.string(),
|
|
5986
|
+
files: z22.array(StaticBuildFileSchema),
|
|
5987
|
+
/** Pass back to get the next page; absent on the last page. */
|
|
5988
|
+
nextCursor: z22.string().optional()
|
|
5989
|
+
});
|
|
5963
5990
|
var docsLedgerContract = {
|
|
5964
5991
|
register: import_contract21.oc.route({ method: "POST", path: "/register" }).input(DocsPublishInputSchema).output(RegisterResponseSchema),
|
|
5965
5992
|
previewRegister: import_contract21.oc.route({ method: "POST", path: "/preview/init" }).input(LedgerPreviewRegisterInputSchema).output(LedgerPreviewRegisterResponseSchema),
|
|
@@ -5971,6 +5998,8 @@ var docsLedgerContract = {
|
|
|
5971
5998
|
reindex: import_contract21.oc.route({ method: "POST", path: "/reindex" }).input(ReindexInputSchema).output(ReindexResponseSchema),
|
|
5972
5999
|
promoteStaticBuild: import_contract21.oc.route({ method: "POST", path: "/static-build/promote" }).input(PromoteStaticBuildInputSchema).output(PromoteStaticBuildResponseSchema),
|
|
5973
6000
|
resolveStaticServingHost: import_contract21.oc.route({ method: "POST", path: "/static-build/serving-host" }).input(ResolveStaticServingHostInputSchema).output(ResolveStaticServingHostResponseSchema),
|
|
6001
|
+
/** Served by the read router; listed here so `createDocsLedgerClient` can call it. */
|
|
6002
|
+
listStaticBuildFiles: import_contract21.oc.route({ method: "GET", path: "/static-build/files" }).input(ListStaticBuildFilesInputSchema).output(ListStaticBuildFilesResponseSchema),
|
|
5974
6003
|
getCustomHostname: import_contract21.oc.route({ method: "POST", path: "/static-build/custom-hostname/get" }).input(CustomHostnameInputSchema).output(CustomHostnameResponseSchema),
|
|
5975
6004
|
registerCustomHostname: import_contract21.oc.route({ method: "POST", path: "/static-build/custom-hostname/register" }).input(CustomHostnameInputSchema).output(CustomHostnameResponseSchema),
|
|
5976
6005
|
deleteCustomHostname: import_contract21.oc.route({ method: "POST", path: "/static-build/custom-hostname/delete" }).input(CustomHostnameInputSchema).output(DeleteCustomHostnameResponseSchema)
|
|
@@ -8774,6 +8803,42 @@ function stableStringify(value) {
|
|
|
8774
8803
|
});
|
|
8775
8804
|
}
|
|
8776
8805
|
|
|
8806
|
+
// src/orpc-client/docs-ledger/static-build-files.ts
|
|
8807
|
+
var SHARED_ASSETS_PREFIX = "_shared";
|
|
8808
|
+
var SHARED_MANIFEST_NAME = "_fern-shared-assets.json";
|
|
8809
|
+
var SHARED_ASSET_DIRS = ["_astro", "_fern-mdx"];
|
|
8810
|
+
var SHARED_MANIFEST_ENTRY_RE = new RegExp(`^${SHARED_ASSETS_PREFIX}/(?:${SHARED_ASSET_DIRS.join("|")})/[^/]+$`);
|
|
8811
|
+
var MD5_HEX_RE = /^[0-9a-f]{32}$/;
|
|
8812
|
+
function isServedSharedManifestEntry(key, md5) {
|
|
8813
|
+
return typeof md5 === "string" && SHARED_MANIFEST_ENTRY_RE.test(key) && MD5_HEX_RE.test(md5);
|
|
8814
|
+
}
|
|
8815
|
+
var ROUTER_CONTROL_FILES = /* @__PURE__ */ new Set([
|
|
8816
|
+
"_redirects",
|
|
8817
|
+
"_redirects-fallback.json",
|
|
8818
|
+
"_headers",
|
|
8819
|
+
"_routes.json",
|
|
8820
|
+
SHARED_MANIFEST_NAME
|
|
8821
|
+
]);
|
|
8822
|
+
var PUBLIC_FERN_DIRS = /* @__PURE__ */ new Set(["fern-nav"]);
|
|
8823
|
+
function isRouterOnlySegment(segment) {
|
|
8824
|
+
if (segment == null) {
|
|
8825
|
+
return false;
|
|
8826
|
+
}
|
|
8827
|
+
return ROUTER_CONTROL_FILES.has(segment) || segment.startsWith("fern-") && !PUBLIC_FERN_DIRS.has(segment);
|
|
8828
|
+
}
|
|
8829
|
+
function isRouterOnlyFile(path, basepath = "") {
|
|
8830
|
+
const segments = path.replace(/^\/+/, "").split("/");
|
|
8831
|
+
if (isRouterOnlySegment(segments[0])) {
|
|
8832
|
+
return true;
|
|
8833
|
+
}
|
|
8834
|
+
const basepathSegments = basepath.split("/").filter((segment) => segment.length > 0);
|
|
8835
|
+
if (basepathSegments.length === 0 || segments.length <= basepathSegments.length) {
|
|
8836
|
+
return false;
|
|
8837
|
+
}
|
|
8838
|
+
const underBasepath = basepathSegments.every((segment, i) => segments[i] === segment);
|
|
8839
|
+
return underBasepath && isRouterOnlySegment(segments[basepathSegments.length]);
|
|
8840
|
+
}
|
|
8841
|
+
|
|
8777
8842
|
// src/orpc-client/files/contract.ts
|
|
8778
8843
|
var import_contract50 = require("@orpc/contract");
|
|
8779
8844
|
var z40 = __toESM(require("zod"), 1);
|
|
@@ -9326,6 +9391,8 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9326
9391
|
ListRepositoriesResponseSchema,
|
|
9327
9392
|
ListSdksForOrgInputSchema,
|
|
9328
9393
|
ListSdksForOrgResponseSchema,
|
|
9394
|
+
ListStaticBuildFilesInputSchema,
|
|
9395
|
+
ListStaticBuildFilesResponseSchema,
|
|
9329
9396
|
LiteralTypeSchema,
|
|
9330
9397
|
LoadDocsForUrlResponseSchema,
|
|
9331
9398
|
LocaleEntrySchema,
|
|
@@ -9517,6 +9584,9 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9517
9584
|
RouteContextInputSchema,
|
|
9518
9585
|
RouteContextResponseSchema,
|
|
9519
9586
|
RubyGemSchema,
|
|
9587
|
+
SHARED_ASSETS_PREFIX,
|
|
9588
|
+
SHARED_ASSET_DIRS,
|
|
9589
|
+
SHARED_MANIFEST_NAME,
|
|
9520
9590
|
SafeDoxyfileContentSchema,
|
|
9521
9591
|
ScalarTypeSchema,
|
|
9522
9592
|
ScriptSchema,
|
|
@@ -9556,6 +9626,7 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9556
9626
|
StartLibraryDocsGenerationResponseSchema,
|
|
9557
9627
|
StartStaticBuildInputSchema,
|
|
9558
9628
|
StartStaticBuildResponseSchema,
|
|
9629
|
+
StaticBuildFileSchema,
|
|
9559
9630
|
StaticContentGroupBySchema,
|
|
9560
9631
|
StaticContentTrafficInputSchema,
|
|
9561
9632
|
StaticContentTrafficResponseSchema,
|
|
@@ -9681,6 +9752,8 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9681
9752
|
gitContract,
|
|
9682
9753
|
isFernFileRef,
|
|
9683
9754
|
isMcpAnalyticsWindow,
|
|
9755
|
+
isRouterOnlyFile,
|
|
9756
|
+
isServedSharedManifestEntry,
|
|
9684
9757
|
ledgerSegmentIdentity,
|
|
9685
9758
|
libraryDocsContract,
|
|
9686
9759
|
mcpAnalyticsIndex,
|