@fern-api/fdr-sdk 1.2.35-eaea1f74f7 → 1.2.36-1f77b99cda
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 +315 -55
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +315 -55
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +320 -60
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +320 -60
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/ledger-root-builder.js +732 -249
- package/dist/js/navigation/ledger-root-builder.js.map +1 -1
- package/dist/js/navigation/ledger-root-builder.mjs +730 -249
- package/dist/js/navigation/ledger-root-builder.mjs.map +1 -1
- package/dist/js/orpc-client.js +759 -91
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +715 -86
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/navigation/__test__/ledger-root-builder.changelogSlug.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.changelogSlug.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.defaultVersionElision.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.defaultVersionElision.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.linkRepro.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.linkRepro.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.mergeEndpointPairs.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.mergeEndpointPairs.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.pointsTo.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.pointsTo.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.productId.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.productId.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.rootChildOrder.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.rootChildOrder.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.rootSectionSlug.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.rootSectionSlug.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.tabSlug.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.tabSlug.test.d.ts.map +1 -0
- package/dist/types/navigation/ledger-root-builder.d.ts +26 -3
- package/dist/types/navigation/ledger-root-builder.d.ts.map +1 -1
- package/dist/types/orpc-client/client.d.ts +1 -2
- package/dist/types/orpc-client/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/client.d.ts +1 -3
- package/dist/types/orpc-client/docs-ledger/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/config-files.d.ts +16 -0
- package/dist/types/orpc-client/docs-ledger/config-files.d.ts.map +1 -0
- package/dist/types/orpc-client/docs-ledger/contract.d.ts +60922 -47158
- package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/index.d.ts +3 -0
- package/dist/types/orpc-client/docs-ledger/index.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts +37008 -0
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -0
- package/dist/types/orpc-client/docs-ledger/stable-stringify.d.ts +18 -0
- package/dist/types/orpc-client/docs-ledger/stable-stringify.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-root-builder.changelogSlug.test.d.ts","sourceRoot":"","sources":["../../../../src/navigation/__test__/ledger-root-builder.changelogSlug.test.ts"],"names":[],"mappings":""}
|
package/dist/types/navigation/__test__/ledger-root-builder.defaultVersionElision.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-root-builder.defaultVersionElision.test.d.ts","sourceRoot":"","sources":["../../../../src/navigation/__test__/ledger-root-builder.defaultVersionElision.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-root-builder.linkRepro.test.d.ts","sourceRoot":"","sources":["../../../../src/navigation/__test__/ledger-root-builder.linkRepro.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-root-builder.mergeEndpointPairs.test.d.ts","sourceRoot":"","sources":["../../../../src/navigation/__test__/ledger-root-builder.mergeEndpointPairs.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-root-builder.pointsTo.test.d.ts","sourceRoot":"","sources":["../../../../src/navigation/__test__/ledger-root-builder.pointsTo.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-root-builder.productId.test.d.ts","sourceRoot":"","sources":["../../../../src/navigation/__test__/ledger-root-builder.productId.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-root-builder.rootChildOrder.test.d.ts","sourceRoot":"","sources":["../../../../src/navigation/__test__/ledger-root-builder.rootChildOrder.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-root-builder.rootSectionSlug.test.d.ts","sourceRoot":"","sources":["../../../../src/navigation/__test__/ledger-root-builder.rootSectionSlug.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-root-builder.tabSlug.test.d.ts","sourceRoot":"","sources":["../../../../src/navigation/__test__/ledger-root-builder.tabSlug.test.ts"],"names":[],"mappings":""}
|
|
@@ -51,6 +51,20 @@ export interface BuildRootOptions {
|
|
|
51
51
|
/** Per-segment sidebar nav entries, keyed by segmentHash. */
|
|
52
52
|
navBySegment: Map<string, NavRoute[]>;
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Per-build state. Created once per {@link buildFullRootFromSegments} call and
|
|
56
|
+
* threaded through the builders so concurrent invocations never share state.
|
|
57
|
+
* This matters under Vercel Fluid Compute, where concurrent requests can share
|
|
58
|
+
* a single module instance — module-level mutable state would let one build's
|
|
59
|
+
* ids/basepath bleed into another.
|
|
60
|
+
*/
|
|
61
|
+
interface BuildContext {
|
|
62
|
+
nodeId: (key: string) => FernNavigation.NodeId;
|
|
63
|
+
/** Slug for a content artifact/section, prefixed with the deployment basepath. */
|
|
64
|
+
contentSlug: (relativePath: string) => FernNavigation.Slug;
|
|
65
|
+
}
|
|
66
|
+
/** @internal Exported for testing only. */
|
|
67
|
+
export declare function createBuildContext(basePath: string): BuildContext;
|
|
54
68
|
/**
|
|
55
69
|
* The HTTP-method-bearing nav route types emitted by the publish transform for
|
|
56
70
|
* API leaves. Used by both the root builder (to populate apiReference children)
|
|
@@ -65,7 +79,7 @@ export type ApiLeafNode = FernNavigation.EndpointNode | FernNavigation.WebhookNo
|
|
|
65
79
|
*
|
|
66
80
|
* @internal Exported for the ledger loader's scoped explorer methods.
|
|
67
81
|
*/
|
|
68
|
-
export declare function apiLeafNodeFromNavRoute(route: NavRoute, basePath: string,
|
|
82
|
+
export declare function apiLeafNodeFromNavRoute(route: NavRoute, basePath: string, segmentApiDefinitionId: string): ApiLeafNode | undefined;
|
|
69
83
|
/**
|
|
70
84
|
* Collect every endpoint/webhook navigation node from a single API segment's
|
|
71
85
|
* nav routes. The root builder now populates apiReference children directly,
|
|
@@ -74,9 +88,18 @@ export declare function apiLeafNodeFromNavRoute(route: NavRoute, basePath: strin
|
|
|
74
88
|
*
|
|
75
89
|
* @internal Exported for the ledger loader's scoped explorer methods.
|
|
76
90
|
*/
|
|
77
|
-
export declare function collectApiLeafNodesFromNav(routes: NavRoute[], basePath: string,
|
|
91
|
+
export declare function collectApiLeafNodesFromNav(routes: NavRoute[], basePath: string, segmentApiDefinitionId: string): ApiLeafNode[];
|
|
78
92
|
/** Read the apiDefinitionId off a segment's metadata, or undefined. */
|
|
79
|
-
export declare function segmentApiDefinitionId(metadata:
|
|
93
|
+
export declare function segmentApiDefinitionId(metadata: Segment["metadata"]): string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Merge endpoint nodes that were originally part of an `endpointPair` in the V1
|
|
96
|
+
* tree. The publish transform stamps both artifacts with a shared
|
|
97
|
+
* `endpointPairKey` in their route metadata; this function groups endpoints by
|
|
98
|
+
* that key and reconstructs `EndpointPairNode`s — matching the v2 nav tree
|
|
99
|
+
* structure where stream/non-stream variants share a single page with a toggle.
|
|
100
|
+
*/
|
|
101
|
+
/** @internal Exported for testing only. */
|
|
102
|
+
export declare function mergeEndpointPairs(ctx: BuildContext, leafNodes: ApiLeafNode[], allNav: NavRoute[]): FernNavigation.ApiPackageChild[];
|
|
80
103
|
/**
|
|
81
104
|
* Build a full (un-pruned) `RootNode` from the decomposed ledger model.
|
|
82
105
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-root-builder.d.ts","sourceRoot":"","sources":["../../../src/navigation/ledger-root-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,KAAK,cAAc,MAAM,YAAY,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,KAAK,OAAO,GAAG,uBAAuB,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ledger-root-builder.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AAG,SAAS,CAGzB;AA4GD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACtC,MAAM,EAAE,QAAQ,EAAE,EAClB,QAAQ,EAAE,MAAM,EAChB,sBAAsB,EAAE,MAAM,GAC/B,WAAW,EAAE,CAKf;AAED,uEAAuE;AACvE,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,GAAG,SAAS,CASxF;AAyVD;;;;;;GAMG;AACH,2CAA2C;AAC3C,wBAAgB,kBAAkB,CAC9B,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,WAAW,EAAE,EACxB,MAAM,EAAE,QAAQ,EAAE,GACnB,cAAc,CAAC,eAAe,EAAE,CAsElC;AA6bD;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,GAAG,cAAc,CAAC,QAAQ,CA+D5F"}
|
|
@@ -3,7 +3,7 @@ import { type DashboardClient } from "./dashboard/client.js";
|
|
|
3
3
|
import { type DocsClient } from "./docs/client.js";
|
|
4
4
|
import { type DocsCacheClient } from "./docs-cache/client.js";
|
|
5
5
|
import { type DocsDeploymentClient } from "./docs-deployment/client.js";
|
|
6
|
-
import { type DocsLedgerClient
|
|
6
|
+
import { type DocsLedgerClient } from "./docs-ledger/client.js";
|
|
7
7
|
import { type EditorSnapshotClient } from "./editor-snapshot/client.js";
|
|
8
8
|
import { type GeneratorCliClient } from "./generators/cli/client.js";
|
|
9
9
|
import { type GeneratorsRootClient } from "./generators/client.js";
|
|
@@ -27,7 +27,6 @@ export interface FdrORPCClient {
|
|
|
27
27
|
docsCache: DocsCacheClient;
|
|
28
28
|
docsDeployment: DocsDeploymentClient;
|
|
29
29
|
docsLedger: DocsLedgerClient;
|
|
30
|
-
docsLedgerRead: DocsLedgerReadClient;
|
|
31
30
|
editorSnapshot: EditorSnapshotClient;
|
|
32
31
|
generators: GeneratorsClient;
|
|
33
32
|
git: GitClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/orpc-client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAA8B,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACpG,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/orpc-client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAA8B,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACpG,OAAO,EAA0B,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACxF,OAAO,EAA8B,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACpG,OAAO,EAA4B,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC/F,OAAO,EAA8B,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAiC,KAAK,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC9G,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CA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|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { ContractRouterClient } from "@orpc/contract";
|
|
2
2
|
import type { JsonifiedClient } from "@orpc/openapi-client";
|
|
3
|
-
import { docsLedgerContract
|
|
3
|
+
import { docsLedgerContract } from "./contract.js";
|
|
4
4
|
export type DocsLedgerClient = JsonifiedClient<ContractRouterClient<typeof docsLedgerContract>>;
|
|
5
|
-
export type DocsLedgerReadClient = JsonifiedClient<ContractRouterClient<typeof docsLedgerReadContract>>;
|
|
6
5
|
export interface CreateDocsLedgerClientOptions {
|
|
7
6
|
baseUrl: string;
|
|
8
7
|
token: string;
|
|
@@ -11,5 +10,4 @@ export interface CreateDocsLedgerClientOptions {
|
|
|
11
10
|
fetch?: typeof globalThis.fetch;
|
|
12
11
|
}
|
|
13
12
|
export declare function createDocsLedgerClient(options: CreateDocsLedgerClientOptions): DocsLedgerClient;
|
|
14
|
-
export declare function createDocsLedgerReadClient(options: CreateDocsLedgerClientOptions): DocsLedgerReadClient;
|
|
15
13
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/orpc-client/docs-ledger/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG5D,OAAO,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/orpc-client/docs-ledger/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,oBAAoB,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;AAEhG,MAAM,WAAW,6BAA6B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,iEAAiE;IACjE,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;CACnC;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,6BAA6B,GAAG,gBAAgB,CAW/F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Metadata keys that may contain PathOrUrl / FileIdOrUrl file references. */
|
|
2
|
+
export declare const PATH_OR_URL_METADATA_KEYS: readonly ["og:image", "og:logo", "twitter:image", "og:background-image", "og:dynamic:background-image"];
|
|
3
|
+
/**
|
|
4
|
+
* Walk a config blob and collect every `fullPath` string referenced by config
|
|
5
|
+
* fields (favicon, logos, background images, fonts, JS files, OG images).
|
|
6
|
+
*
|
|
7
|
+
* Works on both raw LedgerConfig and normalized (legacy) shapes:
|
|
8
|
+
* - Favicon: plain fullPath string (unchanged across shapes)
|
|
9
|
+
* - Logo: ImageRef `{ path }` or plain string
|
|
10
|
+
* - JS files: `{ path }` (ledger) or `{ fileId }` (normalized)
|
|
11
|
+
* - Metadata: `type: "path"` (ledger) or `type: "fileId"` (normalized)
|
|
12
|
+
*
|
|
13
|
+
* Returns a deduplicated array of fullPath strings.
|
|
14
|
+
*/
|
|
15
|
+
export declare function collectConfigFilePaths(config: Record<string, unknown>): string[];
|
|
16
|
+
//# sourceMappingURL=config-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-files.d.ts","sourceRoot":"","sources":["../../../../src/orpc-client/docs-ledger/config-files.ts"],"names":[],"mappings":"AAYA,8EAA8E;AAC9E,eAAO,MAAM,yBAAyB,yGAM5B,CAAC;AAkEX;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,EAAE,CAmDhF"}
|