@fern-api/fdr-sdk 1.2.174-4aecd7a32a → 1.2.174-564d1e65bb
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 +3 -0
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +3 -0
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +3 -0
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +3 -0
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +48 -2
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +43 -2
- package/dist/js/orpc-client.mjs.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.js +14 -1
- package/dist/orpc-client/docs-ledger/__test__/static-build-files.test.js.map +1 -1
- package/dist/orpc-client/docs-ledger/static-build-files.d.ts +5 -0
- package/dist/orpc-client/docs-ledger/static-build-files.d.ts.map +1 -1
- package/dist/orpc-client/docs-ledger/static-build-files.js +7 -0
- package/dist/orpc-client/docs-ledger/static-build-files.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/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/static-build-files.d.ts +5 -0
- package/dist/types/orpc-client/docs-ledger/static-build-files.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.mjs
CHANGED
|
@@ -6818,6 +6818,7 @@ var PdfExportOptionsSchema = z30.discriminatedUnion("version", [
|
|
|
6818
6818
|
z30.object({ version: z30.literal("v1") }).merge(PdfExportOptionsV1Schema)
|
|
6819
6819
|
]);
|
|
6820
6820
|
var PdfExportTaskStatusSchema = z30.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
|
|
6821
|
+
var PdfExportFormatSchema = z30.enum(["pdf", "html", "md"]);
|
|
6821
6822
|
var PdfExportTaskSchema = z30.object({
|
|
6822
6823
|
id: z30.string(),
|
|
6823
6824
|
orgId: z30.string(),
|
|
@@ -6827,6 +6828,7 @@ var PdfExportTaskSchema = z30.object({
|
|
|
6827
6828
|
requesterName: z30.string().nullish(),
|
|
6828
6829
|
notifyEmails: z30.array(z30.string()).nullish(),
|
|
6829
6830
|
status: PdfExportTaskStatusSchema,
|
|
6831
|
+
format: PdfExportFormatSchema.nullish(),
|
|
6830
6832
|
options: PdfExportOptionsSchema.nullish(),
|
|
6831
6833
|
createdAt: z30.string(),
|
|
6832
6834
|
startedAt: z30.string().nullish(),
|
|
@@ -6849,6 +6851,7 @@ var CreatePdfExportTaskInputSchema = z30.object({
|
|
|
6849
6851
|
productId: z30.string().nullish(),
|
|
6850
6852
|
versionId: z30.string().nullish(),
|
|
6851
6853
|
requesterName: z30.string().nullish(),
|
|
6854
|
+
format: PdfExportFormatSchema.nullish(),
|
|
6852
6855
|
options: PdfExportOptionsSchema.nullish()
|
|
6853
6856
|
});
|
|
6854
6857
|
var ListPdfExportTasksInputSchema = z30.object({
|
|
@@ -7360,7 +7363,14 @@ var GetAnonymousClaimResponseSchema = z37.object({
|
|
|
7360
7363
|
});
|
|
7361
7364
|
var ClaimAnonymousDocsSiteInputSchema = z37.object({
|
|
7362
7365
|
grant: z37.string(),
|
|
7363
|
-
toOrgId: z37.string()
|
|
7366
|
+
toOrgId: z37.string(),
|
|
7367
|
+
/**
|
|
7368
|
+
* The `<name>.<docs suffix>` address the claimed site moves to, instead of keeping its
|
|
7369
|
+
* `drop-<id>` host (a bare name is accepted too). Refused with `invalid_domain` (400) when it
|
|
7370
|
+
* is not one label under the docs suffix or is a drop name, and `domain_taken` (409) when any
|
|
7371
|
+
* site already uses it. The drop host redirects to the new address once it serves.
|
|
7372
|
+
*/
|
|
7373
|
+
domain: z37.string().optional()
|
|
7364
7374
|
});
|
|
7365
7375
|
var ClaimAnonymousDocsSiteResponseSchema = z37.object({
|
|
7366
7376
|
siteId: z37.string(),
|
|
@@ -7381,13 +7391,36 @@ var GetGuestDocsSiteResponseSchema = z37.object({
|
|
|
7381
7391
|
/** The claim link is returned by every docs-ledger `finish`, not here. */
|
|
7382
7392
|
limits: AnonymousDocsSiteLimitsSchema
|
|
7383
7393
|
});
|
|
7394
|
+
var RehomeGuestSessionInputSchema = z37.object({
|
|
7395
|
+
/** The session's `guest-<id>` organization, as the claim page shows it. */
|
|
7396
|
+
guestOrgId: z37.string(),
|
|
7397
|
+
/**
|
|
7398
|
+
* The `<name>.<docs suffix>` address the session's published site takes instead of its
|
|
7399
|
+
* `drop-<id>` host (a bare name is accepted too); same rules and errors as `claim`'s `domain`.
|
|
7400
|
+
*/
|
|
7401
|
+
domain: z37.string().optional()
|
|
7402
|
+
});
|
|
7403
|
+
var RehomedGuestSiteSchema = z37.object({
|
|
7404
|
+
siteId: z37.string(),
|
|
7405
|
+
domain: z37.string(),
|
|
7406
|
+
/** The build the site serves at `domain`; absent for a site that was never published. */
|
|
7407
|
+
buildId: z37.string().optional()
|
|
7408
|
+
});
|
|
7409
|
+
var RehomeGuestSessionResponseSchema = z37.object({
|
|
7410
|
+
sessionId: z37.string(),
|
|
7411
|
+
/** Where the sites are now: the organization Venus says the session was claimed into. */
|
|
7412
|
+
orgId: z37.string(),
|
|
7413
|
+
/** The sites moved by this call; empty when there was nothing (left) to move. */
|
|
7414
|
+
sites: z37.array(RehomedGuestSiteSchema)
|
|
7415
|
+
});
|
|
7384
7416
|
var docsAnonymousContract = {
|
|
7385
7417
|
getGuestSite: oc23.route({ method: "GET", path: "/anonymous/guest-site" }).input(GetGuestDocsSiteInputSchema).output(GetGuestDocsSiteResponseSchema),
|
|
7386
7418
|
create: oc23.route({ method: "POST", path: "/anonymous/create" }).input(CreateAnonymousDocsSiteInputSchema.optional()).output(CreateAnonymousDocsSiteResponseSchema),
|
|
7387
7419
|
consumeClaimToken: oc23.route({ method: "POST", path: "/anonymous/claim-token/consume" }).input(ConsumeAnonymousClaimTokenInputSchema).output(ConsumeAnonymousClaimTokenResponseSchema),
|
|
7388
7420
|
createClaimGrant: oc23.route({ method: "POST", path: "/anonymous/sites/{siteId}/claim-grant" }).input(CreateAnonymousClaimGrantInputSchema).output(CreateAnonymousClaimGrantResponseSchema),
|
|
7389
7421
|
getClaim: oc23.route({ method: "GET", path: "/anonymous/claim/{grant}" }).input(GetAnonymousClaimInputSchema).output(GetAnonymousClaimResponseSchema),
|
|
7390
|
-
claim: oc23.route({ method: "POST", path: "/anonymous/claim" }).input(ClaimAnonymousDocsSiteInputSchema).output(ClaimAnonymousDocsSiteResponseSchema)
|
|
7422
|
+
claim: oc23.route({ method: "POST", path: "/anonymous/claim" }).input(ClaimAnonymousDocsSiteInputSchema).output(ClaimAnonymousDocsSiteResponseSchema),
|
|
7423
|
+
rehomeGuestSession: oc23.route({ method: "POST", path: "/anonymous/guest-session/rehome" }).input(RehomeGuestSessionInputSchema).output(RehomeGuestSessionResponseSchema)
|
|
7391
7424
|
};
|
|
7392
7425
|
var AnonymousDocsConfigDocumentSchema = z37.object({
|
|
7393
7426
|
enabled: z37.boolean(),
|
|
@@ -8009,6 +8042,9 @@ function isRouterOnlyFile(path, basepath = "") {
|
|
|
8009
8042
|
const underBasepath = basepathSegments.every((segment, i) => segments[i] === segment);
|
|
8010
8043
|
return underBasepath && isRouterOnlySegment(segments[basepathSegments.length]);
|
|
8011
8044
|
}
|
|
8045
|
+
function keepsExportFile(path, format) {
|
|
8046
|
+
return format === "html" || path.endsWith(".md") || path.split("/").pop() === "llms.txt";
|
|
8047
|
+
}
|
|
8012
8048
|
|
|
8013
8049
|
// src/orpc-client/files/contract.ts
|
|
8014
8050
|
import { oc as oc24 } from "@orpc/contract";
|
|
@@ -8641,6 +8677,7 @@ export {
|
|
|
8641
8677
|
PathPartSchema,
|
|
8642
8678
|
PauseMcpServerInputSchema,
|
|
8643
8679
|
PdfExportDownloadResponseSchema,
|
|
8680
|
+
PdfExportFormatSchema,
|
|
8644
8681
|
PdfExportOptionsSchema,
|
|
8645
8682
|
PdfExportOptionsV1Schema,
|
|
8646
8683
|
PdfExportScopeSchema,
|
|
@@ -8736,6 +8773,9 @@ export {
|
|
|
8736
8773
|
RegisterUndiscriminatedUnionVariantSchema,
|
|
8737
8774
|
RegisterWebSocketChannelSchema,
|
|
8738
8775
|
RegisterWebhookDefinitionSchema,
|
|
8776
|
+
RehomeGuestSessionInputSchema,
|
|
8777
|
+
RehomeGuestSessionResponseSchema,
|
|
8778
|
+
RehomedGuestSiteSchema,
|
|
8739
8779
|
ReindexInputSchema,
|
|
8740
8780
|
ReindexResponseSchema,
|
|
8741
8781
|
ReleaseType,
|
|
@@ -8924,6 +8964,7 @@ export {
|
|
|
8924
8964
|
isMcpAnalyticsWindow,
|
|
8925
8965
|
isRouterOnlyFile,
|
|
8926
8966
|
isServedSharedManifestEntry,
|
|
8967
|
+
keepsExportFile,
|
|
8927
8968
|
ledgerSegmentIdentity,
|
|
8928
8969
|
libraryDocsContract,
|
|
8929
8970
|
mcpAnalyticsIndex,
|