@fern-api/fdr-sdk 1.2.174-d4501f54c4 → 1.2.174-db93c11d21
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/client/FdrClient.d.ts +5 -0
- package/dist/client/FdrClient.d.ts.map +1 -1
- package/dist/js/client/FdrClient.js +30 -3
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +30 -3
- 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 +30 -3
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +30 -3
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +131 -4
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +117 -4
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/client.d.ts.map +1 -1
- package/dist/orpc-client/client.js +2 -2
- package/dist/orpc-client/client.js.map +1 -1
- package/dist/orpc-client/docs-anonymous/contract.d.ts +140 -0
- package/dist/orpc-client/docs-anonymous/contract.d.ts.map +1 -1
- package/dist/orpc-client/docs-anonymous/contract.js +40 -2
- package/dist/orpc-client/docs-anonymous/contract.js.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 +62 -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 +25 -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 +62 -0
- package/dist/orpc-client/docs-ledger/static-build-files.js.map +1 -0
- package/dist/orpc-client/pdf-export/__test__/client.test.d.ts +2 -0
- package/dist/orpc-client/pdf-export/__test__/client.test.d.ts.map +1 -0
- package/dist/orpc-client/pdf-export/__test__/client.test.js +19 -0
- package/dist/orpc-client/pdf-export/__test__/client.test.js.map +1 -0
- package/dist/orpc-client/pdf-export/client.d.ts +5 -0
- package/dist/orpc-client/pdf-export/client.d.ts.map +1 -1
- package/dist/orpc-client/pdf-export/client.js +8 -1
- package/dist/orpc-client/pdf-export/client.js.map +1 -1
- package/dist/orpc-client/pdf-export/contract.d.ts +31 -0
- package/dist/orpc-client/pdf-export/contract.d.ts.map +1 -1
- package/dist/orpc-client/pdf-export/contract.js +4 -0
- package/dist/orpc-client/pdf-export/contract.js.map +1 -1
- package/dist/types/client/FdrClient.d.ts +5 -0
- package/dist/types/client/FdrClient.d.ts.map +1 -1
- package/dist/types/orpc-client/client.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-anonymous/contract.d.ts +140 -0
- package/dist/types/orpc-client/docs-anonymous/contract.d.ts.map +1 -1
- 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 +25 -0
- package/dist/types/orpc-client/docs-ledger/static-build-files.d.ts.map +1 -0
- package/dist/types/orpc-client/pdf-export/__test__/client.test.d.ts +2 -0
- package/dist/types/orpc-client/pdf-export/__test__/client.test.d.ts.map +1 -0
- package/dist/types/orpc-client/pdf-export/client.d.ts +5 -0
- package/dist/types/orpc-client/pdf-export/client.d.ts.map +1 -1
- package/dist/types/orpc-client/pdf-export/contract.d.ts +31 -0
- package/dist/types/orpc-client/pdf-export/contract.d.ts.map +1 -1
- 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,
|
|
@@ -522,6 +524,7 @@ __export(orpc_client_exports, {
|
|
|
522
524
|
PathPartSchema: () => PathPartSchema,
|
|
523
525
|
PauseMcpServerInputSchema: () => PauseMcpServerInputSchema,
|
|
524
526
|
PdfExportDownloadResponseSchema: () => PdfExportDownloadResponseSchema,
|
|
527
|
+
PdfExportFormatSchema: () => PdfExportFormatSchema,
|
|
525
528
|
PdfExportOptionsSchema: () => PdfExportOptionsSchema,
|
|
526
529
|
PdfExportOptionsV1Schema: () => PdfExportOptionsV1Schema,
|
|
527
530
|
PdfExportScopeSchema: () => PdfExportScopeSchema,
|
|
@@ -617,6 +620,9 @@ __export(orpc_client_exports, {
|
|
|
617
620
|
RegisterUndiscriminatedUnionVariantSchema: () => RegisterUndiscriminatedUnionVariantSchema,
|
|
618
621
|
RegisterWebSocketChannelSchema: () => RegisterWebSocketChannelSchema,
|
|
619
622
|
RegisterWebhookDefinitionSchema: () => RegisterWebhookDefinitionSchema,
|
|
623
|
+
RehomeGuestSessionInputSchema: () => RehomeGuestSessionInputSchema,
|
|
624
|
+
RehomeGuestSessionResponseSchema: () => RehomeGuestSessionResponseSchema,
|
|
625
|
+
RehomedGuestSiteSchema: () => RehomedGuestSiteSchema,
|
|
620
626
|
ReindexInputSchema: () => ReindexInputSchema,
|
|
621
627
|
ReindexResponseSchema: () => ReindexResponseSchema,
|
|
622
628
|
ReleaseType: () => ReleaseType,
|
|
@@ -635,6 +641,9 @@ __export(orpc_client_exports, {
|
|
|
635
641
|
RouteContextInputSchema: () => RouteContextInputSchema,
|
|
636
642
|
RouteContextResponseSchema: () => RouteContextResponseSchema,
|
|
637
643
|
RubyGemSchema: () => RubyGemSchema,
|
|
644
|
+
SHARED_ASSETS_PREFIX: () => SHARED_ASSETS_PREFIX,
|
|
645
|
+
SHARED_ASSET_DIRS: () => SHARED_ASSET_DIRS,
|
|
646
|
+
SHARED_MANIFEST_NAME: () => SHARED_MANIFEST_NAME,
|
|
638
647
|
SafeDoxyfileContentSchema: () => SafeDoxyfileContentSchema,
|
|
639
648
|
ScalarTypeSchema: () => ScalarTypeSchema,
|
|
640
649
|
ScriptSchema: () => ScriptSchema,
|
|
@@ -674,6 +683,7 @@ __export(orpc_client_exports, {
|
|
|
674
683
|
StartLibraryDocsGenerationResponseSchema: () => StartLibraryDocsGenerationResponseSchema,
|
|
675
684
|
StartStaticBuildInputSchema: () => StartStaticBuildInputSchema,
|
|
676
685
|
StartStaticBuildResponseSchema: () => StartStaticBuildResponseSchema,
|
|
686
|
+
StaticBuildFileSchema: () => StaticBuildFileSchema,
|
|
677
687
|
StaticContentGroupBySchema: () => StaticContentGroupBySchema,
|
|
678
688
|
StaticContentTrafficInputSchema: () => StaticContentTrafficInputSchema,
|
|
679
689
|
StaticContentTrafficResponseSchema: () => StaticContentTrafficResponseSchema,
|
|
@@ -756,6 +766,7 @@ __export(orpc_client_exports, {
|
|
|
756
766
|
createDocsV2ReadClient: () => createDocsV2ReadClient,
|
|
757
767
|
createDocsV2WriteClient: () => createDocsV2WriteClient,
|
|
758
768
|
createEditorSnapshotClient: () => createEditorSnapshotClient,
|
|
769
|
+
createExportClient: () => createExportClient,
|
|
759
770
|
createFdrORPCClient: () => createFdrORPCClient,
|
|
760
771
|
createGeneratorCliClient: () => createGeneratorCliClient,
|
|
761
772
|
createGeneratorVersionsClient: () => createGeneratorVersionsClient,
|
|
@@ -799,6 +810,9 @@ __export(orpc_client_exports, {
|
|
|
799
810
|
gitContract: () => gitContract,
|
|
800
811
|
isFernFileRef: () => isFernFileRef,
|
|
801
812
|
isMcpAnalyticsWindow: () => isMcpAnalyticsWindow,
|
|
813
|
+
isRouterOnlyFile: () => isRouterOnlyFile,
|
|
814
|
+
isServedSharedManifestEntry: () => isServedSharedManifestEntry,
|
|
815
|
+
keepsExportFile: () => keepsExportFile,
|
|
802
816
|
ledgerSegmentIdentity: () => ledgerSegmentIdentity,
|
|
803
817
|
libraryDocsContract: () => libraryDocsContract,
|
|
804
818
|
mcpAnalyticsIndex: () => mcpAnalyticsIndex,
|
|
@@ -5960,6 +5974,25 @@ var LedgerPreviewRegisterResponseSchema = z22.object({
|
|
|
5960
5974
|
/** Sanitized identifier the server actually used to compose the host. */
|
|
5961
5975
|
previewId: z22.string()
|
|
5962
5976
|
});
|
|
5977
|
+
var ListStaticBuildFilesInputSchema = z22.object({
|
|
5978
|
+
domain: z22.string().min(1),
|
|
5979
|
+
/** "" for a root site, otherwise a leading-slash basepath. */
|
|
5980
|
+
basepath: z22.string().default(""),
|
|
5981
|
+
/** `nextCursor` of the previous page; absent for the first page. */
|
|
5982
|
+
cursor: z22.string().optional()
|
|
5983
|
+
});
|
|
5984
|
+
var StaticBuildFileSchema = z22.object({
|
|
5985
|
+
/** Path relative to the host root, e.g. `docs/quickstart/index.html`. */
|
|
5986
|
+
path: z22.string(),
|
|
5987
|
+
/** Short-lived signed GET URL for the file. */
|
|
5988
|
+
url: z22.string()
|
|
5989
|
+
});
|
|
5990
|
+
var ListStaticBuildFilesResponseSchema = z22.object({
|
|
5991
|
+
buildId: z22.string(),
|
|
5992
|
+
files: z22.array(StaticBuildFileSchema),
|
|
5993
|
+
/** Pass back to get the next page; absent on the last page. */
|
|
5994
|
+
nextCursor: z22.string().optional()
|
|
5995
|
+
});
|
|
5963
5996
|
var docsLedgerContract = {
|
|
5964
5997
|
register: import_contract21.oc.route({ method: "POST", path: "/register" }).input(DocsPublishInputSchema).output(RegisterResponseSchema),
|
|
5965
5998
|
previewRegister: import_contract21.oc.route({ method: "POST", path: "/preview/init" }).input(LedgerPreviewRegisterInputSchema).output(LedgerPreviewRegisterResponseSchema),
|
|
@@ -5971,6 +6004,8 @@ var docsLedgerContract = {
|
|
|
5971
6004
|
reindex: import_contract21.oc.route({ method: "POST", path: "/reindex" }).input(ReindexInputSchema).output(ReindexResponseSchema),
|
|
5972
6005
|
promoteStaticBuild: import_contract21.oc.route({ method: "POST", path: "/static-build/promote" }).input(PromoteStaticBuildInputSchema).output(PromoteStaticBuildResponseSchema),
|
|
5973
6006
|
resolveStaticServingHost: import_contract21.oc.route({ method: "POST", path: "/static-build/serving-host" }).input(ResolveStaticServingHostInputSchema).output(ResolveStaticServingHostResponseSchema),
|
|
6007
|
+
/** Served by the read router; listed here so `createDocsLedgerClient` can call it. */
|
|
6008
|
+
listStaticBuildFiles: import_contract21.oc.route({ method: "GET", path: "/static-build/files" }).input(ListStaticBuildFilesInputSchema).output(ListStaticBuildFilesResponseSchema),
|
|
5974
6009
|
getCustomHostname: import_contract21.oc.route({ method: "POST", path: "/static-build/custom-hostname/get" }).input(CustomHostnameInputSchema).output(CustomHostnameResponseSchema),
|
|
5975
6010
|
registerCustomHostname: import_contract21.oc.route({ method: "POST", path: "/static-build/custom-hostname/register" }).input(CustomHostnameInputSchema).output(CustomHostnameResponseSchema),
|
|
5976
6011
|
deleteCustomHostname: import_contract21.oc.route({ method: "POST", path: "/static-build/custom-hostname/delete" }).input(CustomHostnameInputSchema).output(DeleteCustomHostnameResponseSchema)
|
|
@@ -7618,6 +7653,7 @@ var PdfExportOptionsSchema = z30.discriminatedUnion("version", [
|
|
|
7618
7653
|
z30.object({ version: z30.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
7619
7654
|
]);
|
|
7620
7655
|
var PdfExportTaskStatusSchema = z30.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
7656
|
+
var PdfExportFormatSchema = z30.enum(["pdf", "html", "md"]);
|
|
7621
7657
|
var PdfExportTaskSchema = z30.object({
|
|
7622
7658
|
id: z30.string(),
|
|
7623
7659
|
orgId: z30.string(),
|
|
@@ -7627,6 +7663,7 @@ var PdfExportTaskSchema = z30.object({
|
|
|
7627
7663
|
requesterName: z30.string().nullish(),
|
|
7628
7664
|
notifyEmails: z30.array(z30.string()).nullish(),
|
|
7629
7665
|
status: PdfExportTaskStatusSchema,
|
|
7666
|
+
format: PdfExportFormatSchema.nullish(),
|
|
7630
7667
|
options: PdfExportOptionsSchema.nullish(),
|
|
7631
7668
|
createdAt: z30.string(),
|
|
7632
7669
|
startedAt: z30.string().nullish(),
|
|
@@ -7649,6 +7686,7 @@ var CreatePdfExportTaskInputSchema = z30.object({
|
|
|
7649
7686
|
productId: z30.string().nullish(),
|
|
7650
7687
|
versionId: z30.string().nullish(),
|
|
7651
7688
|
requesterName: z30.string().nullish(),
|
|
7689
|
+
format: PdfExportFormatSchema.nullish(),
|
|
7652
7690
|
options: PdfExportOptionsSchema.nullish()
|
|
7653
7691
|
});
|
|
7654
7692
|
var ListPdfExportTasksInputSchema = z30.object({
|
|
@@ -7688,8 +7726,14 @@ var pdfExportContract = {
|
|
|
7688
7726
|
|
|
7689
7727
|
// src/orpc-client/pdf-export/client.ts
|
|
7690
7728
|
function createPdfExportClient(options) {
|
|
7729
|
+
return createClient(options, "/pdf-export");
|
|
7730
|
+
}
|
|
7731
|
+
function createExportClient(options) {
|
|
7732
|
+
return createClient(options, "/export");
|
|
7733
|
+
}
|
|
7734
|
+
function createClient(options, prefix) {
|
|
7691
7735
|
const link = new import_fetch18.OpenAPILink(pdfExportContract, {
|
|
7692
|
-
url: `${options.baseUrl}
|
|
7736
|
+
url: `${options.baseUrl}${prefix}`,
|
|
7693
7737
|
headers: () => ({
|
|
7694
7738
|
Authorization: `Bearer ${options.token}`,
|
|
7695
7739
|
...options.headers
|
|
@@ -8049,7 +8093,7 @@ function createFdrORPCClient(options) {
|
|
|
8049
8093
|
git: createGitClient(normalizedOptions),
|
|
8050
8094
|
mcpHosting: createMcpHostingClient(normalizedOptions),
|
|
8051
8095
|
slugs: createSlugsClient(normalizedOptions),
|
|
8052
|
-
pdfExport:
|
|
8096
|
+
pdfExport: createExportClient(normalizedOptions),
|
|
8053
8097
|
sdks: createSdksClient(normalizedOptions),
|
|
8054
8098
|
snippets: createSnippetsClient(normalizedOptions),
|
|
8055
8099
|
snippetsFactory: createSnippetsFactoryClient(normalizedOptions),
|
|
@@ -8160,7 +8204,14 @@ var GetAnonymousClaimResponseSchema = z37.object({
|
|
|
8160
8204
|
});
|
|
8161
8205
|
var ClaimAnonymousDocsSiteInputSchema = z37.object({
|
|
8162
8206
|
grant: z37.string(),
|
|
8163
|
-
toOrgId: z37.string()
|
|
8207
|
+
toOrgId: z37.string(),
|
|
8208
|
+
/**
|
|
8209
|
+
* The `<name>.<docs suffix>` address the claimed site moves to, instead of keeping its
|
|
8210
|
+
* `drop-<id>` host (a bare name is accepted too). Refused with `invalid_domain` (400) when it
|
|
8211
|
+
* is not one label under the docs suffix or is a drop name, and `domain_taken` (409) when any
|
|
8212
|
+
* site already uses it. The drop host redirects to the new address once it serves.
|
|
8213
|
+
*/
|
|
8214
|
+
domain: z37.string().optional()
|
|
8164
8215
|
});
|
|
8165
8216
|
var ClaimAnonymousDocsSiteResponseSchema = z37.object({
|
|
8166
8217
|
siteId: z37.string(),
|
|
@@ -8181,13 +8232,36 @@ var GetGuestDocsSiteResponseSchema = z37.object({
|
|
|
8181
8232
|
/** The claim link is returned by every docs-ledger `finish`, not here. */
|
|
8182
8233
|
limits: AnonymousDocsSiteLimitsSchema
|
|
8183
8234
|
});
|
|
8235
|
+
var RehomeGuestSessionInputSchema = z37.object({
|
|
8236
|
+
/** The session's `guest-<id>` organization, as the claim page shows it. */
|
|
8237
|
+
guestOrgId: z37.string(),
|
|
8238
|
+
/**
|
|
8239
|
+
* The `<name>.<docs suffix>` address the session's published site takes instead of its
|
|
8240
|
+
* `drop-<id>` host (a bare name is accepted too); same rules and errors as `claim`'s `domain`.
|
|
8241
|
+
*/
|
|
8242
|
+
domain: z37.string().optional()
|
|
8243
|
+
});
|
|
8244
|
+
var RehomedGuestSiteSchema = z37.object({
|
|
8245
|
+
siteId: z37.string(),
|
|
8246
|
+
domain: z37.string(),
|
|
8247
|
+
/** The build the site serves at `domain`; absent for a site that was never published. */
|
|
8248
|
+
buildId: z37.string().optional()
|
|
8249
|
+
});
|
|
8250
|
+
var RehomeGuestSessionResponseSchema = z37.object({
|
|
8251
|
+
sessionId: z37.string(),
|
|
8252
|
+
/** Where the sites are now: the organization Venus says the session was claimed into. */
|
|
8253
|
+
orgId: z37.string(),
|
|
8254
|
+
/** The sites moved by this call; empty when there was nothing (left) to move. */
|
|
8255
|
+
sites: z37.array(RehomedGuestSiteSchema)
|
|
8256
|
+
});
|
|
8184
8257
|
var docsAnonymousContract = {
|
|
8185
8258
|
getGuestSite: import_contract47.oc.route({ method: "GET", path: "/anonymous/guest-site" }).input(GetGuestDocsSiteInputSchema).output(GetGuestDocsSiteResponseSchema),
|
|
8186
8259
|
create: import_contract47.oc.route({ method: "POST", path: "/anonymous/create" }).input(CreateAnonymousDocsSiteInputSchema.optional()).output(CreateAnonymousDocsSiteResponseSchema),
|
|
8187
8260
|
consumeClaimToken: import_contract47.oc.route({ method: "POST", path: "/anonymous/claim-token/consume" }).input(ConsumeAnonymousClaimTokenInputSchema).output(ConsumeAnonymousClaimTokenResponseSchema),
|
|
8188
8261
|
createClaimGrant: import_contract47.oc.route({ method: "POST", path: "/anonymous/sites/{siteId}/claim-grant" }).input(CreateAnonymousClaimGrantInputSchema).output(CreateAnonymousClaimGrantResponseSchema),
|
|
8189
8262
|
getClaim: import_contract47.oc.route({ method: "GET", path: "/anonymous/claim/{grant}" }).input(GetAnonymousClaimInputSchema).output(GetAnonymousClaimResponseSchema),
|
|
8190
|
-
claim: import_contract47.oc.route({ method: "POST", path: "/anonymous/claim" }).input(ClaimAnonymousDocsSiteInputSchema).output(ClaimAnonymousDocsSiteResponseSchema)
|
|
8263
|
+
claim: import_contract47.oc.route({ method: "POST", path: "/anonymous/claim" }).input(ClaimAnonymousDocsSiteInputSchema).output(ClaimAnonymousDocsSiteResponseSchema),
|
|
8264
|
+
rehomeGuestSession: import_contract47.oc.route({ method: "POST", path: "/anonymous/guest-session/rehome" }).input(RehomeGuestSessionInputSchema).output(RehomeGuestSessionResponseSchema)
|
|
8191
8265
|
};
|
|
8192
8266
|
var AnonymousDocsConfigDocumentSchema = z37.object({
|
|
8193
8267
|
enabled: z37.boolean(),
|
|
@@ -8774,6 +8848,45 @@ function stableStringify(value) {
|
|
|
8774
8848
|
});
|
|
8775
8849
|
}
|
|
8776
8850
|
|
|
8851
|
+
// src/orpc-client/docs-ledger/static-build-files.ts
|
|
8852
|
+
var SHARED_ASSETS_PREFIX = "_shared";
|
|
8853
|
+
var SHARED_MANIFEST_NAME = "_fern-shared-assets.json";
|
|
8854
|
+
var SHARED_ASSET_DIRS = ["_astro", "_fern-mdx"];
|
|
8855
|
+
var SHARED_MANIFEST_ENTRY_RE = new RegExp(`^${SHARED_ASSETS_PREFIX}/(?:${SHARED_ASSET_DIRS.join("|")})/[^/]+$`);
|
|
8856
|
+
var MD5_HEX_RE = /^[0-9a-f]{32}$/;
|
|
8857
|
+
function isServedSharedManifestEntry(key, md5) {
|
|
8858
|
+
return typeof md5 === "string" && SHARED_MANIFEST_ENTRY_RE.test(key) && MD5_HEX_RE.test(md5);
|
|
8859
|
+
}
|
|
8860
|
+
var ROUTER_CONTROL_FILES = /* @__PURE__ */ new Set([
|
|
8861
|
+
"_redirects",
|
|
8862
|
+
"_redirects-fallback.json",
|
|
8863
|
+
"_headers",
|
|
8864
|
+
"_routes.json",
|
|
8865
|
+
SHARED_MANIFEST_NAME
|
|
8866
|
+
]);
|
|
8867
|
+
var PUBLIC_FERN_DIRS = /* @__PURE__ */ new Set(["fern-nav"]);
|
|
8868
|
+
function isRouterOnlySegment(segment) {
|
|
8869
|
+
if (segment == null) {
|
|
8870
|
+
return false;
|
|
8871
|
+
}
|
|
8872
|
+
return ROUTER_CONTROL_FILES.has(segment) || segment.startsWith("fern-") && !PUBLIC_FERN_DIRS.has(segment);
|
|
8873
|
+
}
|
|
8874
|
+
function isRouterOnlyFile(path, basepath = "") {
|
|
8875
|
+
const segments = path.replace(/^\/+/, "").split("/");
|
|
8876
|
+
if (isRouterOnlySegment(segments[0])) {
|
|
8877
|
+
return true;
|
|
8878
|
+
}
|
|
8879
|
+
const basepathSegments = basepath.split("/").filter((segment) => segment.length > 0);
|
|
8880
|
+
if (basepathSegments.length === 0 || segments.length <= basepathSegments.length) {
|
|
8881
|
+
return false;
|
|
8882
|
+
}
|
|
8883
|
+
const underBasepath = basepathSegments.every((segment, i) => segments[i] === segment);
|
|
8884
|
+
return underBasepath && isRouterOnlySegment(segments[basepathSegments.length]);
|
|
8885
|
+
}
|
|
8886
|
+
function keepsExportFile(path, format) {
|
|
8887
|
+
return format === "html" || path.endsWith(".md") || path.split("/").pop() === "llms.txt";
|
|
8888
|
+
}
|
|
8889
|
+
|
|
8777
8890
|
// src/orpc-client/files/contract.ts
|
|
8778
8891
|
var import_contract50 = require("@orpc/contract");
|
|
8779
8892
|
var z40 = __toESM(require("zod"), 1);
|
|
@@ -9326,6 +9439,8 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9326
9439
|
ListRepositoriesResponseSchema,
|
|
9327
9440
|
ListSdksForOrgInputSchema,
|
|
9328
9441
|
ListSdksForOrgResponseSchema,
|
|
9442
|
+
ListStaticBuildFilesInputSchema,
|
|
9443
|
+
ListStaticBuildFilesResponseSchema,
|
|
9329
9444
|
LiteralTypeSchema,
|
|
9330
9445
|
LoadDocsForUrlResponseSchema,
|
|
9331
9446
|
LocaleEntrySchema,
|
|
@@ -9404,6 +9519,7 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9404
9519
|
PathPartSchema,
|
|
9405
9520
|
PauseMcpServerInputSchema,
|
|
9406
9521
|
PdfExportDownloadResponseSchema,
|
|
9522
|
+
PdfExportFormatSchema,
|
|
9407
9523
|
PdfExportOptionsSchema,
|
|
9408
9524
|
PdfExportOptionsV1Schema,
|
|
9409
9525
|
PdfExportScopeSchema,
|
|
@@ -9499,6 +9615,9 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9499
9615
|
RegisterUndiscriminatedUnionVariantSchema,
|
|
9500
9616
|
RegisterWebSocketChannelSchema,
|
|
9501
9617
|
RegisterWebhookDefinitionSchema,
|
|
9618
|
+
RehomeGuestSessionInputSchema,
|
|
9619
|
+
RehomeGuestSessionResponseSchema,
|
|
9620
|
+
RehomedGuestSiteSchema,
|
|
9502
9621
|
ReindexInputSchema,
|
|
9503
9622
|
ReindexResponseSchema,
|
|
9504
9623
|
ReleaseType,
|
|
@@ -9517,6 +9636,9 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9517
9636
|
RouteContextInputSchema,
|
|
9518
9637
|
RouteContextResponseSchema,
|
|
9519
9638
|
RubyGemSchema,
|
|
9639
|
+
SHARED_ASSETS_PREFIX,
|
|
9640
|
+
SHARED_ASSET_DIRS,
|
|
9641
|
+
SHARED_MANIFEST_NAME,
|
|
9520
9642
|
SafeDoxyfileContentSchema,
|
|
9521
9643
|
ScalarTypeSchema,
|
|
9522
9644
|
ScriptSchema,
|
|
@@ -9556,6 +9678,7 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9556
9678
|
StartLibraryDocsGenerationResponseSchema,
|
|
9557
9679
|
StartStaticBuildInputSchema,
|
|
9558
9680
|
StartStaticBuildResponseSchema,
|
|
9681
|
+
StaticBuildFileSchema,
|
|
9559
9682
|
StaticContentGroupBySchema,
|
|
9560
9683
|
StaticContentTrafficInputSchema,
|
|
9561
9684
|
StaticContentTrafficResponseSchema,
|
|
@@ -9638,6 +9761,7 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9638
9761
|
createDocsV2ReadClient,
|
|
9639
9762
|
createDocsV2WriteClient,
|
|
9640
9763
|
createEditorSnapshotClient,
|
|
9764
|
+
createExportClient,
|
|
9641
9765
|
createFdrORPCClient,
|
|
9642
9766
|
createGeneratorCliClient,
|
|
9643
9767
|
createGeneratorVersionsClient,
|
|
@@ -9681,6 +9805,9 @@ var UpsertThemeBodySchema = z42.object({
|
|
|
9681
9805
|
gitContract,
|
|
9682
9806
|
isFernFileRef,
|
|
9683
9807
|
isMcpAnalyticsWindow,
|
|
9808
|
+
isRouterOnlyFile,
|
|
9809
|
+
isServedSharedManifestEntry,
|
|
9810
|
+
keepsExportFile,
|
|
9684
9811
|
ledgerSegmentIdentity,
|
|
9685
9812
|
libraryDocsContract,
|
|
9686
9813
|
mcpAnalyticsIndex,
|