@fern-api/fdr-sdk 1.2.114-2dfb9e1373 → 1.2.114-7409d6cc42

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.
@@ -5577,103 +5577,253 @@ function createGitClient(options) {
5577
5577
  return createORPCClient16(link);
5578
5578
  }
5579
5579
 
5580
- // src/orpc-client/pdf-export/client.ts
5580
+ // src/orpc-client/mcp-hosting/client.ts
5581
5581
  import { createORPCClient as createORPCClient17 } from "@orpc/client";
5582
5582
  import { OpenAPILink as OpenAPILink17 } from "@orpc/openapi-client/fetch";
5583
5583
 
5584
- // src/orpc-client/pdf-export/contract.ts
5584
+ // src/orpc-client/mcp-hosting/contract.ts
5585
5585
  import { oc as oc15 } from "@orpc/contract";
5586
5586
  import * as z26 from "zod";
5587
- var PdfExportScopeSchema = z26.object({
5588
- pageSlugs: z26.array(z26.string())
5589
- });
5590
- var PdfExportOptionsV1Schema = z26.object({
5591
- coverTitle: z26.string().nullish(),
5592
- coverSubtitle: z26.string().nullish(),
5593
- hideCoverFooter: z26.boolean().nullish(),
5594
- headerLeftTemplate: z26.string().nullish(),
5595
- headerRightTemplate: z26.string().nullish(),
5596
- footerLeftTemplate: z26.string().nullish(),
5597
- footerRightTemplate: z26.string().nullish(),
5598
- scope: PdfExportScopeSchema.nullish(),
5599
- hideCover: z26.boolean().nullish(),
5600
- hideToc: z26.boolean().nullish()
5601
- });
5602
- var PdfExportOptionsSchema = z26.discriminatedUnion("version", [
5603
- z26.object({ version: z26.literal("v1") }).merge(PdfExportOptionsV1Schema)
5587
+ var McpPathSegmentSchema = z26.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
5588
+ var McpDeploymentStatusSchema = z26.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
5589
+ var McpAuthSchemeSchema = z26.discriminatedUnion("type", [
5590
+ z26.object({ type: z26.literal("bearer") }),
5591
+ z26.object({
5592
+ type: z26.literal("apiKey"),
5593
+ paramName: z26.string().min(1),
5594
+ in: z26.enum(["header", "query", "cookie"])
5595
+ }),
5596
+ z26.object({ type: z26.literal("basic") })
5604
5597
  ]);
5605
- var PdfExportTaskStatusSchema = z26.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
5606
- var PdfExportTaskSchema = z26.object({
5607
- id: z26.string(),
5608
- orgId: z26.string(),
5609
- docsUrl: z26.string(),
5610
- productId: z26.string().nullish(),
5611
- versionId: z26.string().nullish(),
5612
- requesterName: z26.string().nullish(),
5613
- notifyEmails: z26.array(z26.string()).nullish(),
5614
- status: PdfExportTaskStatusSchema,
5615
- options: PdfExportOptionsSchema.nullish(),
5616
- createdAt: z26.string(),
5617
- startedAt: z26.string().nullish(),
5618
- completedAt: z26.string().nullish(),
5619
- fileName: z26.string().nullish(),
5620
- sizeBytes: z26.number().nullish(),
5621
- errorMessage: z26.string().nullish()
5598
+ var McpMetadataSchema = z26.object({
5599
+ name: z26.string().min(1),
5600
+ toolsets: z26.record(z26.string(), z26.array(z26.string())),
5601
+ toolsetMetadata: z26.array(
5602
+ z26.object({
5603
+ name: z26.string(),
5604
+ title: z26.string(),
5605
+ description: z26.string(),
5606
+ toolCount: z26.number().int().nonnegative()
5607
+ }).strict()
5608
+ ),
5609
+ auth: z26.object({
5610
+ schemes: z26.array(McpAuthSchemeSchema),
5611
+ required: z26.boolean()
5612
+ }).strict(),
5613
+ skippedTools: z26.array(z26.object({ name: z26.string(), reason: z26.string() }).strict()),
5614
+ environmentVariables: z26.array(
5615
+ z26.object({
5616
+ name: z26.string(),
5617
+ description: z26.string(),
5618
+ required: z26.boolean()
5619
+ }).strict()
5620
+ ),
5621
+ baseUrl: z26.string().url(),
5622
+ followRedirects: z26.boolean(),
5623
+ maxRedirects: z26.number().int().nonnegative(),
5624
+ allowedRedirectHosts: z26.array(z26.string())
5625
+ }).passthrough();
5626
+ var McpModuleSchema = z26.object({
5627
+ name: z26.string().regex(/^[A-Za-z0-9._/-]+$/),
5628
+ hash: z26.string().regex(/^[0-9a-f]{64}$/),
5629
+ contentType: z26.string().min(1)
5630
+ }).strict();
5631
+ var McpGitInputSchema = z26.object({
5632
+ repoUrl: z26.string(),
5633
+ branch: z26.string(),
5634
+ commitSha: z26.string().optional()
5635
+ }).strict();
5636
+ var DeployMcpServerInputSchema = z26.object({
5637
+ orgId: McpPathSegmentSchema,
5638
+ slug: McpPathSegmentSchema,
5639
+ mainModule: z26.string().min(1),
5640
+ compatibilityDate: z26.string().regex(/^\d{4}-\d{2}-\d{2}$/),
5641
+ compatibilityFlags: z26.array(z26.string()),
5642
+ // Bounded so a single deploy request cannot fan out unbounded parallel
5643
+ // CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
5644
+ // 20 leaves room for wasm/sourcemap/chunk splitting.
5645
+ modules: z26.array(McpModuleSchema).min(1).max(20),
5646
+ metadata: McpMetadataSchema,
5647
+ // Everything else in this schema is bounded; keep the opaque config
5648
+ // blob bounded too so it cannot balloon the JSONB row.
5649
+ config: z26.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
5650
+ message: "config must be at most 64KB serialized"
5651
+ }),
5652
+ generatorName: z26.string().min(1),
5653
+ generatorVersion: z26.string().min(1),
5654
+ cliVersion: z26.string().optional(),
5655
+ git: McpGitInputSchema.optional()
5656
+ }).strict().superRefine((input, ctx) => {
5657
+ const names = /* @__PURE__ */ new Set();
5658
+ for (const module of input.modules) {
5659
+ if (names.has(module.name)) {
5660
+ ctx.addIssue({
5661
+ code: z26.ZodIssueCode.custom,
5662
+ path: ["modules"],
5663
+ message: `duplicate module name: ${module.name}`
5664
+ });
5665
+ }
5666
+ names.add(module.name);
5667
+ }
5668
+ if (!names.has(input.mainModule)) {
5669
+ ctx.addIssue({
5670
+ code: z26.ZodIssueCode.custom,
5671
+ path: ["mainModule"],
5672
+ message: `mainModule ${input.mainModule} is not among the submitted modules`
5673
+ });
5674
+ }
5622
5675
  });
5623
- var ListPdfExportTasksResponseSchema = z26.object({
5624
- tasks: z26.array(PdfExportTaskSchema)
5676
+ var GetMcpServerInputSchema = z26.object({
5677
+ orgId: McpPathSegmentSchema,
5678
+ slug: McpPathSegmentSchema
5625
5679
  });
5626
- var PdfExportDownloadResponseSchema = z26.object({
5627
- downloadUrl: z26.string(),
5628
- fileName: z26.string(),
5629
- sizeBytes: z26.number()
5680
+ var ListMcpServersInputSchema = z26.object({
5681
+ orgId: z26.string()
5630
5682
  });
5631
- var CreatePdfExportTaskInputSchema = z26.object({
5683
+ var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
5684
+ var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
5685
+ var McpDeploymentSummarySchema = z26.object({
5686
+ id: z26.string(),
5687
+ status: McpDeploymentStatusSchema,
5688
+ /** True when this deployment is the one the server currently serves. */
5689
+ isActive: z26.boolean(),
5690
+ generatorVersion: z26.string(),
5691
+ createdAt: z26.string(),
5692
+ createdBy: z26.string().nullish(),
5693
+ error: z26.object({ name: z26.string(), message: z26.string() }).nullish()
5694
+ });
5695
+ var McpServerSchema = z26.object({
5696
+ id: z26.string(),
5632
5697
  orgId: z26.string(),
5633
- docsUrl: z26.string(),
5634
- productId: z26.string().nullish(),
5635
- versionId: z26.string().nullish(),
5636
- requesterName: z26.string().nullish(),
5698
+ slug: z26.string(),
5699
+ /** The server is serving iff this is set; it names the serving deployment. */
5700
+ activeDeploymentId: z26.string().nullish(),
5701
+ /** Most recent publication attempt — how the last deploy went. */
5702
+ latestDeployment: McpDeploymentSummarySchema.nullish(),
5703
+ url: z26.string().url(),
5704
+ createdAt: z26.string(),
5705
+ updatedAt: z26.string()
5706
+ });
5707
+ var ListMcpServersResponseSchema = z26.object({ servers: z26.array(McpServerSchema) });
5708
+ var ListMcpDeploymentsResponseSchema = z26.object({ deployments: z26.array(McpDeploymentSummarySchema) });
5709
+ var mcpHostingContract = {
5710
+ deploy: oc15.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
5711
+ getServer: oc15.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
5712
+ listServers: oc15.route({ method: "GET", path: "/servers" }).input(ListMcpServersInputSchema).output(ListMcpServersResponseSchema),
5713
+ listDeployments: oc15.route({ method: "GET", path: "/servers/{slug}/deployments" }).input(ListMcpDeploymentsInputSchema).output(ListMcpDeploymentsResponseSchema),
5714
+ deleteServer: oc15.route({ method: "DELETE", path: "/servers/{slug}" }).input(DeleteMcpServerInputSchema)
5715
+ };
5716
+
5717
+ // src/orpc-client/mcp-hosting/client.ts
5718
+ function createMcpHostingClient(options) {
5719
+ const link = new OpenAPILink17(mcpHostingContract, {
5720
+ url: `${options.baseUrl}/mcp-hosting`,
5721
+ headers: () => ({
5722
+ Authorization: `Bearer ${options.token}`,
5723
+ ...options.headers
5724
+ }),
5725
+ ...options.fetch != null ? { fetch: options.fetch } : {}
5726
+ });
5727
+ return createORPCClient17(link);
5728
+ }
5729
+
5730
+ // src/orpc-client/pdf-export/client.ts
5731
+ import { createORPCClient as createORPCClient18 } from "@orpc/client";
5732
+ import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
5733
+
5734
+ // src/orpc-client/pdf-export/contract.ts
5735
+ import { oc as oc16 } from "@orpc/contract";
5736
+ import * as z27 from "zod";
5737
+ var PdfExportScopeSchema = z27.object({
5738
+ pageSlugs: z27.array(z27.string())
5739
+ });
5740
+ var PdfExportOptionsV1Schema = z27.object({
5741
+ coverTitle: z27.string().nullish(),
5742
+ coverSubtitle: z27.string().nullish(),
5743
+ hideCoverFooter: z27.boolean().nullish(),
5744
+ headerLeftTemplate: z27.string().nullish(),
5745
+ headerRightTemplate: z27.string().nullish(),
5746
+ footerLeftTemplate: z27.string().nullish(),
5747
+ footerRightTemplate: z27.string().nullish(),
5748
+ scope: PdfExportScopeSchema.nullish(),
5749
+ hideCover: z27.boolean().nullish(),
5750
+ hideToc: z27.boolean().nullish()
5751
+ });
5752
+ var PdfExportOptionsSchema = z27.discriminatedUnion("version", [
5753
+ z27.object({ version: z27.literal("v1") }).merge(PdfExportOptionsV1Schema)
5754
+ ]);
5755
+ var PdfExportTaskStatusSchema = z27.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
5756
+ var PdfExportTaskSchema = z27.object({
5757
+ id: z27.string(),
5758
+ orgId: z27.string(),
5759
+ docsUrl: z27.string(),
5760
+ productId: z27.string().nullish(),
5761
+ versionId: z27.string().nullish(),
5762
+ requesterName: z27.string().nullish(),
5763
+ notifyEmails: z27.array(z27.string()).nullish(),
5764
+ status: PdfExportTaskStatusSchema,
5765
+ options: PdfExportOptionsSchema.nullish(),
5766
+ createdAt: z27.string(),
5767
+ startedAt: z27.string().nullish(),
5768
+ completedAt: z27.string().nullish(),
5769
+ fileName: z27.string().nullish(),
5770
+ sizeBytes: z27.number().nullish(),
5771
+ errorMessage: z27.string().nullish()
5772
+ });
5773
+ var ListPdfExportTasksResponseSchema = z27.object({
5774
+ tasks: z27.array(PdfExportTaskSchema)
5775
+ });
5776
+ var PdfExportDownloadResponseSchema = z27.object({
5777
+ downloadUrl: z27.string(),
5778
+ fileName: z27.string(),
5779
+ sizeBytes: z27.number()
5780
+ });
5781
+ var CreatePdfExportTaskInputSchema = z27.object({
5782
+ orgId: z27.string(),
5783
+ docsUrl: z27.string(),
5784
+ productId: z27.string().nullish(),
5785
+ versionId: z27.string().nullish(),
5786
+ requesterName: z27.string().nullish(),
5637
5787
  options: PdfExportOptionsSchema.nullish()
5638
5788
  });
5639
- var ListPdfExportTasksInputSchema = z26.object({
5640
- orgId: z26.string(),
5641
- docsUrl: z26.string(),
5642
- limit: z26.coerce.number().nullish()
5789
+ var ListPdfExportTasksInputSchema = z27.object({
5790
+ orgId: z27.string(),
5791
+ docsUrl: z27.string(),
5792
+ limit: z27.coerce.number().nullish()
5643
5793
  });
5644
- var GetPdfExportTaskInputSchema = z26.object({
5645
- taskId: z26.string()
5794
+ var GetPdfExportTaskInputSchema = z27.object({
5795
+ taskId: z27.string()
5646
5796
  });
5647
- var UpdatePdfExportTaskInputSchema = z26.object({
5648
- taskId: z26.string(),
5797
+ var UpdatePdfExportTaskInputSchema = z27.object({
5798
+ taskId: z27.string(),
5649
5799
  status: PdfExportTaskStatusSchema,
5650
- startedAt: z26.string().nullish(),
5651
- completedAt: z26.string().nullish(),
5652
- s3Key: z26.string().nullish(),
5653
- fileName: z26.string().nullish(),
5654
- sizeBytes: z26.number().nullish(),
5655
- errorMessage: z26.string().nullish()
5800
+ startedAt: z27.string().nullish(),
5801
+ completedAt: z27.string().nullish(),
5802
+ s3Key: z27.string().nullish(),
5803
+ fileName: z27.string().nullish(),
5804
+ sizeBytes: z27.number().nullish(),
5805
+ errorMessage: z27.string().nullish()
5656
5806
  });
5657
- var GetPdfExportDownloadUrlInputSchema = z26.object({
5658
- taskId: z26.string()
5807
+ var GetPdfExportDownloadUrlInputSchema = z27.object({
5808
+ taskId: z27.string()
5659
5809
  });
5660
- var CleanupPdfExportsResponseSchema = z26.object({
5661
- expiredTasksDeleted: z26.number(),
5662
- s3ObjectsDeleted: z26.number(),
5663
- timedOutTasksFailed: z26.number()
5810
+ var CleanupPdfExportsResponseSchema = z27.object({
5811
+ expiredTasksDeleted: z27.number(),
5812
+ s3ObjectsDeleted: z27.number(),
5813
+ timedOutTasksFailed: z27.number()
5664
5814
  });
5665
5815
  var pdfExportContract = {
5666
- createTask: oc15.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
5667
- listTasks: oc15.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
5668
- getTask: oc15.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
5669
- updateTask: oc15.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
5670
- getDownloadUrl: oc15.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
5671
- cleanup: oc15.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
5816
+ createTask: oc16.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
5817
+ listTasks: oc16.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
5818
+ getTask: oc16.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
5819
+ updateTask: oc16.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
5820
+ getDownloadUrl: oc16.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
5821
+ cleanup: oc16.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
5672
5822
  };
5673
5823
 
5674
5824
  // src/orpc-client/pdf-export/client.ts
5675
5825
  function createPdfExportClient(options) {
5676
- const link = new OpenAPILink17(pdfExportContract, {
5826
+ const link = new OpenAPILink18(pdfExportContract, {
5677
5827
  url: `${options.baseUrl}/pdf-export`,
5678
5828
  headers: () => ({
5679
5829
  Authorization: `Bearer ${options.token}`,
@@ -5681,17 +5831,17 @@ function createPdfExportClient(options) {
5681
5831
  }),
5682
5832
  ...options.fetch != null ? { fetch: options.fetch } : {}
5683
5833
  });
5684
- return createORPCClient17(link);
5834
+ return createORPCClient18(link);
5685
5835
  }
5686
5836
 
5687
5837
  // src/orpc-client/sdks/client.ts
5688
- import { createORPCClient as createORPCClient18 } from "@orpc/client";
5689
- import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
5838
+ import { createORPCClient as createORPCClient19 } from "@orpc/client";
5839
+ import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
5690
5840
 
5691
5841
  // src/orpc-client/sdks/contract.ts
5692
- import { oc as oc16 } from "@orpc/contract";
5693
- import * as z27 from "zod";
5694
- var LanguageEnumSchema = z27.enum([
5842
+ import { oc as oc17 } from "@orpc/contract";
5843
+ import * as z28 from "zod";
5844
+ var LanguageEnumSchema = z28.enum([
5695
5845
  "Go",
5696
5846
  "TypeScript",
5697
5847
  "Java",
@@ -5702,23 +5852,23 @@ var LanguageEnumSchema = z27.enum([
5702
5852
  "Swift",
5703
5853
  "Rust"
5704
5854
  ]);
5705
- var VersionBumpEnumSchema = z27.enum(["MAJOR", "MINOR", "PATCH"]);
5706
- var ComputeSemanticVersionInputSchema = z27.object({
5707
- package: z27.string(),
5855
+ var VersionBumpEnumSchema = z28.enum(["MAJOR", "MINOR", "PATCH"]);
5856
+ var ComputeSemanticVersionInputSchema = z28.object({
5857
+ package: z28.string(),
5708
5858
  language: LanguageEnumSchema,
5709
- githubRepository: z27.string().nullish()
5859
+ githubRepository: z28.string().nullish()
5710
5860
  });
5711
- var ComputeSemanticVersionOutputSchema = z27.object({
5712
- version: z27.string(),
5861
+ var ComputeSemanticVersionOutputSchema = z28.object({
5862
+ version: z28.string(),
5713
5863
  bump: VersionBumpEnumSchema
5714
5864
  });
5715
5865
  var sdksContract = {
5716
- computeSemanticVersion: oc16.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
5866
+ computeSemanticVersion: oc17.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
5717
5867
  };
5718
5868
 
5719
5869
  // src/orpc-client/sdks/client.ts
5720
5870
  function createSdksClient(options) {
5721
- const link = new OpenAPILink18(sdksContract, {
5871
+ const link = new OpenAPILink19(sdksContract, {
5722
5872
  url: `${options.baseUrl}/sdks`,
5723
5873
  headers: () => ({
5724
5874
  Authorization: `Bearer ${options.token}`,
@@ -5726,50 +5876,50 @@ function createSdksClient(options) {
5726
5876
  }),
5727
5877
  ...options.fetch != null ? { fetch: options.fetch } : {}
5728
5878
  });
5729
- return createORPCClient18(link);
5879
+ return createORPCClient19(link);
5730
5880
  }
5731
5881
 
5732
5882
  // src/orpc-client/slugs/client.ts
5733
- import { createORPCClient as createORPCClient19 } from "@orpc/client";
5734
- import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
5883
+ import { createORPCClient as createORPCClient20 } from "@orpc/client";
5884
+ import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
5735
5885
 
5736
5886
  // src/orpc-client/slugs/contract.ts
5737
- import { oc as oc17 } from "@orpc/contract";
5738
- import * as z28 from "zod";
5739
- var SlugsInputSchema = z28.object({
5740
- domain: z28.string(),
5741
- basepath: z28.string().optional().default("")
5742
- });
5743
- var SlugEntrySchema = z28.object({
5744
- orgId: z28.string(),
5745
- domain: z28.string(),
5746
- basepath: z28.string(),
5747
- slug: z28.string(),
5748
- lastUpdated: z28.string()
5749
- });
5750
- var MarkdownEntrySchema = z28.object({
5751
- orgId: z28.string(),
5752
- domain: z28.string(),
5753
- basepath: z28.string(),
5754
- pageId: z28.string(),
5755
- slug: z28.string(),
5756
- hash: z28.string(),
5757
- lastUpdated: z28.string()
5758
- });
5759
- var GetSlugEntriesResponseSchema = z28.object({
5760
- entries: z28.array(SlugEntrySchema)
5761
- });
5762
- var GetMarkdownEntriesResponseSchema = z28.object({
5763
- entries: z28.array(MarkdownEntrySchema)
5887
+ import { oc as oc18 } from "@orpc/contract";
5888
+ import * as z29 from "zod";
5889
+ var SlugsInputSchema = z29.object({
5890
+ domain: z29.string(),
5891
+ basepath: z29.string().optional().default("")
5892
+ });
5893
+ var SlugEntrySchema = z29.object({
5894
+ orgId: z29.string(),
5895
+ domain: z29.string(),
5896
+ basepath: z29.string(),
5897
+ slug: z29.string(),
5898
+ lastUpdated: z29.string()
5899
+ });
5900
+ var MarkdownEntrySchema = z29.object({
5901
+ orgId: z29.string(),
5902
+ domain: z29.string(),
5903
+ basepath: z29.string(),
5904
+ pageId: z29.string(),
5905
+ slug: z29.string(),
5906
+ hash: z29.string(),
5907
+ lastUpdated: z29.string()
5908
+ });
5909
+ var GetSlugEntriesResponseSchema = z29.object({
5910
+ entries: z29.array(SlugEntrySchema)
5911
+ });
5912
+ var GetMarkdownEntriesResponseSchema = z29.object({
5913
+ entries: z29.array(MarkdownEntrySchema)
5764
5914
  });
5765
5915
  var slugsContract = {
5766
- getSlugEntries: oc17.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
5767
- getMarkdownEntries: oc17.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
5916
+ getSlugEntries: oc18.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
5917
+ getMarkdownEntries: oc18.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
5768
5918
  };
5769
5919
 
5770
5920
  // src/orpc-client/slugs/client.ts
5771
5921
  function createSlugsClient(options) {
5772
- const link = new OpenAPILink19(slugsContract, {
5922
+ const link = new OpenAPILink20(slugsContract, {
5773
5923
  url: `${options.baseUrl.replace(/\/+$/, "")}/slugs`,
5774
5924
  headers: () => ({
5775
5925
  Authorization: `Bearer ${options.token}`,
@@ -5777,118 +5927,118 @@ function createSlugsClient(options) {
5777
5927
  }),
5778
5928
  ...options.fetch != null ? { fetch: options.fetch } : {}
5779
5929
  });
5780
- return createORPCClient19(link);
5930
+ return createORPCClient20(link);
5781
5931
  }
5782
5932
 
5783
5933
  // src/orpc-client/snippets/client.ts
5784
- import { createORPCClient as createORPCClient20 } from "@orpc/client";
5785
- import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
5934
+ import { createORPCClient as createORPCClient21 } from "@orpc/client";
5935
+ import { OpenAPILink as OpenAPILink21 } from "@orpc/openapi-client/fetch";
5786
5936
 
5787
5937
  // src/orpc-client/snippets/contract.ts
5788
- import { oc as oc18 } from "@orpc/contract";
5789
- import * as z29 from "zod";
5790
- var TypeScriptSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
5791
- var PythonSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
5792
- var GoSdkSchema = z29.object({ githubRepo: z29.string(), version: z29.string() });
5793
- var RubySdkSchema = z29.object({ gem: z29.string(), version: z29.string() });
5794
- var JavaSdkSchema = z29.object({ group: z29.string(), artifact: z29.string(), version: z29.string() });
5795
- var CsharpSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
5796
- var BaseSnippetCreateSchema = z29.object({
5938
+ import { oc as oc19 } from "@orpc/contract";
5939
+ import * as z30 from "zod";
5940
+ var TypeScriptSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
5941
+ var PythonSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
5942
+ var GoSdkSchema = z30.object({ githubRepo: z30.string(), version: z30.string() });
5943
+ var RubySdkSchema = z30.object({ gem: z30.string(), version: z30.string() });
5944
+ var JavaSdkSchema = z30.object({ group: z30.string(), artifact: z30.string(), version: z30.string() });
5945
+ var CsharpSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
5946
+ var BaseSnippetCreateSchema = z30.object({
5797
5947
  endpoint: EndpointIdentifierSchema,
5798
- exampleIdentifier: z29.string().nullish()
5948
+ exampleIdentifier: z30.string().nullish()
5799
5949
  });
5800
- var SdkSnippetsCreateSchema = z29.discriminatedUnion("type", [
5801
- z29.object({
5802
- type: z29.literal("typescript"),
5950
+ var SdkSnippetsCreateSchema = z30.discriminatedUnion("type", [
5951
+ z30.object({
5952
+ type: z30.literal("typescript"),
5803
5953
  sdk: TypeScriptSdkSchema,
5804
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
5954
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
5805
5955
  }),
5806
- z29.object({
5807
- type: z29.literal("python"),
5956
+ z30.object({
5957
+ type: z30.literal("python"),
5808
5958
  sdk: PythonSdkSchema,
5809
- snippets: z29.array(
5959
+ snippets: z30.array(
5810
5960
  BaseSnippetCreateSchema.extend({
5811
- snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
5961
+ snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
5812
5962
  })
5813
5963
  )
5814
5964
  }),
5815
- z29.object({
5816
- type: z29.literal("go"),
5965
+ z30.object({
5966
+ type: z30.literal("go"),
5817
5967
  sdk: GoSdkSchema,
5818
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
5968
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
5819
5969
  }),
5820
- z29.object({
5821
- type: z29.literal("java"),
5970
+ z30.object({
5971
+ type: z30.literal("java"),
5822
5972
  sdk: JavaSdkSchema,
5823
- snippets: z29.array(
5973
+ snippets: z30.array(
5824
5974
  BaseSnippetCreateSchema.extend({
5825
- snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
5975
+ snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
5826
5976
  })
5827
5977
  )
5828
5978
  }),
5829
- z29.object({
5830
- type: z29.literal("ruby"),
5979
+ z30.object({
5980
+ type: z30.literal("ruby"),
5831
5981
  sdk: RubySdkSchema,
5832
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
5982
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
5833
5983
  }),
5834
- z29.object({
5835
- type: z29.literal("csharp"),
5984
+ z30.object({
5985
+ type: z30.literal("csharp"),
5836
5986
  sdk: CsharpSdkSchema,
5837
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
5987
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
5838
5988
  })
5839
5989
  ]);
5840
5990
  var snippetsFactoryContract = {
5841
- createSnippetsForSdk: oc18.route({ method: "POST", path: "/create" }).input(
5842
- z29.object({
5843
- orgId: z29.string(),
5844
- apiId: z29.string(),
5991
+ createSnippetsForSdk: oc19.route({ method: "POST", path: "/create" }).input(
5992
+ z30.object({
5993
+ orgId: z30.string(),
5994
+ apiId: z30.string(),
5845
5995
  snippets: SdkSnippetsCreateSchema
5846
5996
  })
5847
5997
  )
5848
5998
  };
5849
- var ParameterPayloadSchema = z29.object({
5850
- name: z29.string(),
5851
- value: z29.unknown()
5999
+ var ParameterPayloadSchema = z30.object({
6000
+ name: z30.string(),
6001
+ value: z30.unknown()
5852
6002
  });
5853
- var AuthPayloadSchema = z29.discriminatedUnion("type", [
5854
- z29.object({ type: z29.literal("bearer"), token: z29.string() }),
5855
- z29.object({ type: z29.literal("basic"), username: z29.string(), password: z29.string() })
6003
+ var AuthPayloadSchema = z30.discriminatedUnion("type", [
6004
+ z30.object({ type: z30.literal("bearer"), token: z30.string() }),
6005
+ z30.object({ type: z30.literal("basic"), username: z30.string(), password: z30.string() })
5856
6006
  ]);
5857
- var CustomSnippetPayloadSchema = z29.object({
5858
- headers: z29.array(ParameterPayloadSchema).nullish(),
5859
- pathParameters: z29.array(ParameterPayloadSchema).nullish(),
5860
- queryParameters: z29.array(ParameterPayloadSchema).nullish(),
5861
- requestBody: z29.unknown().nullish(),
6007
+ var CustomSnippetPayloadSchema = z30.object({
6008
+ headers: z30.array(ParameterPayloadSchema).nullish(),
6009
+ pathParameters: z30.array(ParameterPayloadSchema).nullish(),
6010
+ queryParameters: z30.array(ParameterPayloadSchema).nullish(),
6011
+ requestBody: z30.unknown().nullish(),
5862
6012
  auth: AuthPayloadSchema.nullish()
5863
6013
  });
5864
6014
  var snippetsContract = {
5865
- get: oc18.route({ method: "POST", path: "/" }).input(
5866
- z29.object({
5867
- orgId: z29.string().nullish(),
5868
- apiId: z29.string().nullish(),
5869
- sdks: z29.array(SdkRequestSchema).nullish(),
6015
+ get: oc19.route({ method: "POST", path: "/" }).input(
6016
+ z30.object({
6017
+ orgId: z30.string().nullish(),
6018
+ apiId: z30.string().nullish(),
6019
+ sdks: z30.array(SdkRequestSchema).nullish(),
5870
6020
  endpoint: EndpointIdentifierSchema,
5871
- exampleIdentifier: z29.string().nullish(),
6021
+ exampleIdentifier: z30.string().nullish(),
5872
6022
  payload: CustomSnippetPayloadSchema.nullish()
5873
6023
  })
5874
- ).output(z29.array(z29.unknown())),
5875
- load: oc18.route({ method: "POST", path: "/load" }).input(
5876
- z29.object({
5877
- orgId: z29.string().nullish(),
5878
- apiId: z29.string().nullish(),
5879
- sdks: z29.array(SdkRequestSchema).nullish()
6024
+ ).output(z30.array(z30.unknown())),
6025
+ load: oc19.route({ method: "POST", path: "/load" }).input(
6026
+ z30.object({
6027
+ orgId: z30.string().nullish(),
6028
+ apiId: z30.string().nullish(),
6029
+ sdks: z30.array(SdkRequestSchema).nullish()
5880
6030
  })
5881
6031
  ).output(
5882
- z29.object({
5883
- next: z29.number().nullish(),
5884
- snippets: z29.record(z29.string(), z29.unknown())
6032
+ z30.object({
6033
+ next: z30.number().nullish(),
6034
+ snippets: z30.record(z30.string(), z30.unknown())
5885
6035
  })
5886
6036
  )
5887
6037
  };
5888
6038
 
5889
6039
  // src/orpc-client/snippets/client.ts
5890
6040
  function createSnippetsFactoryClient(options) {
5891
- const link = new OpenAPILink20(snippetsFactoryContract, {
6041
+ const link = new OpenAPILink21(snippetsFactoryContract, {
5892
6042
  url: `${options.baseUrl}/snippets`,
5893
6043
  headers: () => ({
5894
6044
  Authorization: `Bearer ${options.token}`,
@@ -5896,10 +6046,10 @@ function createSnippetsFactoryClient(options) {
5896
6046
  }),
5897
6047
  ...options.fetch != null ? { fetch: options.fetch } : {}
5898
6048
  });
5899
- return createORPCClient20(link);
6049
+ return createORPCClient21(link);
5900
6050
  }
5901
6051
  function createSnippetsClient(options) {
5902
- const link = new OpenAPILink20(snippetsContract, {
6052
+ const link = new OpenAPILink21(snippetsContract, {
5903
6053
  url: `${options.baseUrl}/snippets`,
5904
6054
  headers: () => ({
5905
6055
  Authorization: `Bearer ${options.token}`,
@@ -5907,63 +6057,63 @@ function createSnippetsClient(options) {
5907
6057
  }),
5908
6058
  ...options.fetch != null ? { fetch: options.fetch } : {}
5909
6059
  });
5910
- return createORPCClient20(link);
6060
+ return createORPCClient21(link);
5911
6061
  }
5912
6062
 
5913
6063
  // src/orpc-client/templates/client.ts
5914
- import { createORPCClient as createORPCClient21 } from "@orpc/client";
5915
- import { OpenAPILink as OpenAPILink21 } from "@orpc/openapi-client/fetch";
6064
+ import { createORPCClient as createORPCClient22 } from "@orpc/client";
6065
+ import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
5916
6066
 
5917
6067
  // src/orpc-client/templates/contract.ts
5918
- import { oc as oc19 } from "@orpc/contract";
5919
- import * as z30 from "zod";
5920
- var SnippetRegistryEntrySchema = z30.object({
6068
+ import { oc as oc20 } from "@orpc/contract";
6069
+ import * as z31 from "zod";
6070
+ var SnippetRegistryEntrySchema = z31.object({
5921
6071
  sdk: SdkSchema,
5922
- endpointId: z30.object({
5923
- path: z30.string(),
6072
+ endpointId: z31.object({
6073
+ path: z31.string(),
5924
6074
  method: HttpMethodSchema,
5925
- identifierOverride: z30.string().nullish()
6075
+ identifierOverride: z31.string().nullish()
5926
6076
  }),
5927
- snippetTemplate: z30.object({
5928
- type: z30.literal("v1"),
5929
- functionInvocation: z30.unknown(),
5930
- clientInstantiation: z30.string()
6077
+ snippetTemplate: z31.object({
6078
+ type: z31.literal("v1"),
6079
+ functionInvocation: z31.unknown(),
6080
+ clientInstantiation: z31.string()
5931
6081
  }),
5932
- additionalTemplates: z30.record(z30.string(), z30.unknown()).nullish()
6082
+ additionalTemplates: z31.record(z31.string(), z31.unknown()).nullish()
5933
6083
  });
5934
- var RegisterInputSchema = z30.object({
5935
- orgId: z30.string(),
5936
- apiId: z30.string(),
5937
- apiDefinitionId: z30.string(),
6084
+ var RegisterInputSchema = z31.object({
6085
+ orgId: z31.string(),
6086
+ apiId: z31.string(),
6087
+ apiDefinitionId: z31.string(),
5938
6088
  snippet: SnippetRegistryEntrySchema
5939
6089
  });
5940
- var RegisterBatchInputSchema = z30.object({
5941
- orgId: z30.string(),
5942
- apiId: z30.string(),
5943
- apiDefinitionId: z30.string(),
5944
- snippets: z30.array(SnippetRegistryEntrySchema)
6090
+ var RegisterBatchInputSchema = z31.object({
6091
+ orgId: z31.string(),
6092
+ apiId: z31.string(),
6093
+ apiDefinitionId: z31.string(),
6094
+ snippets: z31.array(SnippetRegistryEntrySchema)
5945
6095
  });
5946
- var GetInputSchema = z30.object({
5947
- orgId: z30.string(),
5948
- apiId: z30.string(),
6096
+ var GetInputSchema = z31.object({
6097
+ orgId: z31.string(),
6098
+ apiId: z31.string(),
5949
6099
  sdk: SdkSchema,
5950
- endpointId: z30.object({
5951
- path: z30.string(),
6100
+ endpointId: z31.object({
6101
+ path: z31.string(),
5952
6102
  method: HttpMethodSchema,
5953
- identifierOverride: z30.string().nullish()
6103
+ identifierOverride: z31.string().nullish()
5954
6104
  })
5955
6105
  });
5956
- var EndpointSnippetTemplateSchema = z30.record(z30.string(), z30.unknown());
6106
+ var EndpointSnippetTemplateSchema = z31.record(z31.string(), z31.unknown());
5957
6107
  var templatesContract = {
5958
- register: oc19.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
5959
- registerBatch: oc19.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
5960
- get: oc19.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
6108
+ register: oc20.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
6109
+ registerBatch: oc20.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
6110
+ get: oc20.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
5961
6111
  };
5962
6112
 
5963
6113
  // src/orpc-client/templates/client.ts
5964
6114
  function createTemplatesClient(options) {
5965
6115
  const baseUrl = options.baseUrl.replace(/\/+$/, "");
5966
- const link = new OpenAPILink21(templatesContract, {
6116
+ const link = new OpenAPILink22(templatesContract, {
5967
6117
  url: `${baseUrl}/snippet-template`,
5968
6118
  headers: () => ({
5969
6119
  Authorization: `Bearer ${options.token}`,
@@ -5971,36 +6121,36 @@ function createTemplatesClient(options) {
5971
6121
  }),
5972
6122
  ...options.fetch != null ? { fetch: options.fetch } : {}
5973
6123
  });
5974
- return createORPCClient21(link);
6124
+ return createORPCClient22(link);
5975
6125
  }
5976
6126
 
5977
6127
  // src/orpc-client/tokens/client.ts
5978
- import { createORPCClient as createORPCClient22 } from "@orpc/client";
5979
- import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
6128
+ import { createORPCClient as createORPCClient23 } from "@orpc/client";
6129
+ import { OpenAPILink as OpenAPILink23 } from "@orpc/openapi-client/fetch";
5980
6130
 
5981
6131
  // src/orpc-client/tokens/contract.ts
5982
- import { oc as oc20 } from "@orpc/contract";
5983
- import * as z31 from "zod";
5984
- var GenerateTokenInputSchema = z31.object({
5985
- orgId: z31.string(),
5986
- scope: z31.string()
6132
+ import { oc as oc21 } from "@orpc/contract";
6133
+ import * as z32 from "zod";
6134
+ var GenerateTokenInputSchema = z32.object({
6135
+ orgId: z32.string(),
6136
+ scope: z32.string()
5987
6137
  });
5988
- var RevokeTokenInputSchema = z31.object({
5989
- orgId: z31.string(),
5990
- tokenId: z31.string()
6138
+ var RevokeTokenInputSchema = z32.object({
6139
+ orgId: z32.string(),
6140
+ tokenId: z32.string()
5991
6141
  });
5992
- var GenerateTokenOutputSchema = z31.object({
5993
- token: z31.string(),
5994
- id: z31.string()
6142
+ var GenerateTokenOutputSchema = z32.object({
6143
+ token: z32.string(),
6144
+ id: z32.string()
5995
6145
  });
5996
6146
  var tokensContract = {
5997
- generate: oc20.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
5998
- revoke: oc20.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
6147
+ generate: oc21.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
6148
+ revoke: oc21.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
5999
6149
  };
6000
6150
 
6001
6151
  // src/orpc-client/tokens/client.ts
6002
6152
  function createTokensClient(options) {
6003
- const link = new OpenAPILink22(tokensContract, {
6153
+ const link = new OpenAPILink23(tokensContract, {
6004
6154
  url: `${options.baseUrl}/tokens`,
6005
6155
  headers: () => ({
6006
6156
  Authorization: `Bearer ${options.token}`,
@@ -6008,7 +6158,7 @@ function createTokensClient(options) {
6008
6158
  }),
6009
6159
  ...options.fetch != null ? { fetch: options.fetch } : {}
6010
6160
  });
6011
- return createORPCClient22(link);
6161
+ return createORPCClient23(link);
6012
6162
  }
6013
6163
 
6014
6164
  // src/orpc-client/client.ts
@@ -6032,6 +6182,7 @@ function createFdrORPCClient(options) {
6032
6182
  versions: createGeneratorVersionsClient(normalizedOptions)
6033
6183
  },
6034
6184
  git: createGitClient(normalizedOptions),
6185
+ mcpHosting: createMcpHostingClient(normalizedOptions),
6035
6186
  slugs: createSlugsClient(normalizedOptions),
6036
6187
  pdfExport: createPdfExportClient(normalizedOptions),
6037
6188
  sdks: createSdksClient(normalizedOptions),
@@ -6043,34 +6194,34 @@ function createFdrORPCClient(options) {
6043
6194
  }
6044
6195
 
6045
6196
  // src/orpc-client/docs/v1/write/client.ts
6046
- import { createORPCClient as createORPCClient23 } from "@orpc/client";
6047
- import { OpenAPILink as OpenAPILink23 } from "@orpc/openapi-client/fetch";
6197
+ import { createORPCClient as createORPCClient24 } from "@orpc/client";
6198
+ import { OpenAPILink as OpenAPILink24 } from "@orpc/openapi-client/fetch";
6048
6199
 
6049
6200
  // src/orpc-client/docs/v1/write/contract.ts
6050
- import { oc as oc21 } from "@orpc/contract";
6051
- import * as z32 from "zod";
6052
- var StartDocsRegisterV1InputSchema = z32.object({
6053
- orgId: z32.string(),
6054
- domain: z32.string(),
6055
- filepaths: z32.array(z32.string())
6201
+ import { oc as oc22 } from "@orpc/contract";
6202
+ import * as z33 from "zod";
6203
+ var StartDocsRegisterV1InputSchema = z33.object({
6204
+ orgId: z33.string(),
6205
+ domain: z33.string(),
6206
+ filepaths: z33.array(z33.string())
6056
6207
  });
6057
- var StartDocsRegisterV1ResponseSchema = z32.object({
6058
- docsRegistrationId: z32.string(),
6059
- uploadUrls: z32.record(z32.string(), FileS3UploadUrlSchema),
6060
- skippedFiles: z32.array(z32.string())
6208
+ var StartDocsRegisterV1ResponseSchema = z33.object({
6209
+ docsRegistrationId: z33.string(),
6210
+ uploadUrls: z33.record(z33.string(), FileS3UploadUrlSchema),
6211
+ skippedFiles: z33.array(z33.string())
6061
6212
  });
6062
- var FinishDocsRegisterV1InputSchema = z32.object({
6063
- docsRegistrationId: z32.string(),
6064
- docsDefinition: z32.unknown()
6213
+ var FinishDocsRegisterV1InputSchema = z33.object({
6214
+ docsRegistrationId: z33.string(),
6215
+ docsDefinition: z33.unknown()
6065
6216
  });
6066
6217
  var docsV1WriteContract = {
6067
- startDocsRegister: oc21.route({ method: "POST", path: "/init" }).input(StartDocsRegisterV1InputSchema).output(StartDocsRegisterV1ResponseSchema),
6068
- finishDocsRegister: oc21.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV1InputSchema).output(z32.void())
6218
+ startDocsRegister: oc22.route({ method: "POST", path: "/init" }).input(StartDocsRegisterV1InputSchema).output(StartDocsRegisterV1ResponseSchema),
6219
+ finishDocsRegister: oc22.route({ method: "POST", path: "/register/{docsRegistrationId}" }).input(FinishDocsRegisterV1InputSchema).output(z33.void())
6069
6220
  };
6070
6221
 
6071
6222
  // src/orpc-client/docs/v1/write/client.ts
6072
6223
  function createDocsV1WriteClient(options) {
6073
- const link = new OpenAPILink23(docsV1WriteContract, {
6224
+ const link = new OpenAPILink24(docsV1WriteContract, {
6074
6225
  url: `${options.baseUrl}/registry/docs`,
6075
6226
  headers: () => ({
6076
6227
  Authorization: `Bearer ${options.token}`,
@@ -6078,11 +6229,11 @@ function createDocsV1WriteClient(options) {
6078
6229
  }),
6079
6230
  ...options.fetch != null ? { fetch: options.fetch } : {}
6080
6231
  });
6081
- return createORPCClient23(link);
6232
+ return createORPCClient24(link);
6082
6233
  }
6083
6234
 
6084
6235
  // src/orpc-client/docs-ledger/config-files.ts
6085
- import * as z33 from "zod";
6236
+ import * as z34 from "zod";
6086
6237
  var PATH_OR_URL_METADATA_KEYS = [
6087
6238
  "og:image",
6088
6239
  "og:logo",
@@ -6090,57 +6241,57 @@ var PATH_OR_URL_METADATA_KEYS = [
6090
6241
  "og:background-image",
6091
6242
  "og:dynamic:background-image"
6092
6243
  ];
6093
- var LogoViewSchema = z33.union([z33.string(), z33.object({ path: z33.string() }).transform((v) => v.path)]);
6094
- var ThemeViewSchema = z33.object({
6244
+ var LogoViewSchema = z34.union([z34.string(), z34.object({ path: z34.string() }).transform((v) => v.path)]);
6245
+ var ThemeViewSchema = z34.object({
6095
6246
  logo: LogoViewSchema.optional().catch(void 0),
6096
- backgroundImage: z33.string().optional().catch(void 0)
6247
+ backgroundImage: z34.string().optional().catch(void 0)
6097
6248
  });
6098
- var ColorsViewSchema = z33.union([
6099
- z33.object({
6100
- type: z33.literal("darkAndLight"),
6249
+ var ColorsViewSchema = z34.union([
6250
+ z34.object({
6251
+ type: z34.literal("darkAndLight"),
6101
6252
  dark: ThemeViewSchema.optional().catch(void 0),
6102
6253
  light: ThemeViewSchema.optional().catch(void 0)
6103
6254
  }),
6104
6255
  ThemeViewSchema.transform((theme) => ({ type: "single", theme }))
6105
6256
  ]);
6106
- var FontViewSchema = z33.object({
6107
- variants: z33.array(z33.object({ fontFile: z33.string().optional().catch(void 0) })).catch([])
6257
+ var FontViewSchema = z34.object({
6258
+ variants: z34.array(z34.object({ fontFile: z34.string().optional().catch(void 0) })).catch([])
6108
6259
  });
6109
- var TypographyViewSchema = z33.object({
6260
+ var TypographyViewSchema = z34.object({
6110
6261
  headingsFont: FontViewSchema.optional().catch(void 0),
6111
6262
  bodyFont: FontViewSchema.optional().catch(void 0),
6112
6263
  codeFont: FontViewSchema.optional().catch(void 0)
6113
6264
  });
6114
- var JsFileViewSchema = z33.union([
6115
- z33.object({ path: z33.string() }).transform((v) => v.path),
6116
- z33.object({ fileId: z33.string() }).transform((v) => v.fileId)
6265
+ var JsFileViewSchema = z34.union([
6266
+ z34.object({ path: z34.string() }).transform((v) => v.path),
6267
+ z34.object({ fileId: z34.string() }).transform((v) => v.fileId)
6117
6268
  ]);
6118
- var MetadataFileRefViewSchema = z33.object({
6119
- type: z33.enum(["path", "fileId"]),
6120
- value: z33.string()
6269
+ var MetadataFileRefViewSchema = z34.object({
6270
+ type: z34.enum(["path", "fileId"]),
6271
+ value: z34.string()
6121
6272
  });
6122
- var ConfigViewSchema = z33.object({
6123
- favicon: z33.string().optional().catch(void 0),
6273
+ var ConfigViewSchema = z34.object({
6274
+ favicon: z34.string().optional().catch(void 0),
6124
6275
  colorsV3: ColorsViewSchema.optional().catch(void 0),
6125
6276
  typographyV2: TypographyViewSchema.optional().catch(void 0),
6126
- js: z33.object({ files: z33.array(JsFileViewSchema.optional().catch(void 0)).catch([]) }).optional().catch(void 0),
6127
- metadata: z33.record(z33.string(), z33.unknown()).optional().catch(void 0)
6277
+ js: z34.object({ files: z34.array(JsFileViewSchema.optional().catch(void 0)).catch([]) }).optional().catch(void 0),
6278
+ metadata: z34.record(z34.string(), z34.unknown()).optional().catch(void 0)
6128
6279
  });
6129
6280
  function isDarkAndLight(colors) {
6130
6281
  return colors.type === "darkAndLight";
6131
6282
  }
6132
6283
  var NAV_ICON_FILE_PREFIX = "file:";
6133
- var FileTokenTreeSchema = z33.lazy(
6134
- () => z33.union([
6135
- z33.string(),
6136
- z33.number(),
6137
- z33.boolean(),
6138
- z33.null(),
6139
- z33.array(FileTokenTreeSchema),
6140
- z33.record(z33.string(), FileTokenTreeSchema)
6284
+ var FileTokenTreeSchema = z34.lazy(
6285
+ () => z34.union([
6286
+ z34.string(),
6287
+ z34.number(),
6288
+ z34.boolean(),
6289
+ z34.null(),
6290
+ z34.array(FileTokenTreeSchema),
6291
+ z34.record(z34.string(), FileTokenTreeSchema)
6141
6292
  ])
6142
6293
  );
6143
- var ConfigFileTokenViewSchema = z33.object({
6294
+ var ConfigFileTokenViewSchema = z34.object({
6144
6295
  landingPage: FileTokenTreeSchema.optional().catch(void 0)
6145
6296
  });
6146
6297
  function addFileTokenPath(paths, value) {
@@ -6162,17 +6313,17 @@ function addFileTokenPath(paths, value) {
6162
6313
  }
6163
6314
  }
6164
6315
  }
6165
- var SegmentDetailIconViewSchema = z33.object({
6166
- icon: z33.string().nullish().catch(void 0),
6167
- metadata: z33.object({
6168
- icon: z33.string().nullish().catch(void 0),
6169
- image: z33.string().nullish().catch(void 0)
6316
+ var SegmentDetailIconViewSchema = z34.object({
6317
+ icon: z34.string().nullish().catch(void 0),
6318
+ metadata: z34.object({
6319
+ icon: z34.string().nullish().catch(void 0),
6320
+ image: z34.string().nullish().catch(void 0)
6170
6321
  }).nullish().catch(void 0)
6171
6322
  });
6172
- var SegmentIconViewSchema = z33.object({
6173
- metadata: z33.object({
6174
- icon: z33.string().nullish().catch(void 0),
6175
- image: z33.string().nullish().catch(void 0)
6323
+ var SegmentIconViewSchema = z34.object({
6324
+ metadata: z34.object({
6325
+ icon: z34.string().nullish().catch(void 0),
6326
+ image: z34.string().nullish().catch(void 0)
6176
6327
  }).nullish().catch(void 0),
6177
6328
  product: SegmentDetailIconViewSchema.nullish().catch(void 0),
6178
6329
  version: SegmentDetailIconViewSchema.nullish().catch(void 0),
@@ -6256,22 +6407,22 @@ function collectConfigFilePaths(config) {
6256
6407
  }
6257
6408
 
6258
6409
  // src/orpc-client/docs-ledger/ledger-manifest.ts
6259
- import * as z34 from "zod";
6410
+ import * as z35 from "zod";
6260
6411
  var LEDGER_MANIFEST_SCHEMA_VERSION = "docsledger/20260601";
6261
6412
  var LEDGER_SHARD_SCHEMA_VERSION = "docsledger/shard/20260601";
6262
- var ManifestBlobRefSchema = z34.object({
6263
- hash: z34.string(),
6264
- contentType: z34.string()
6413
+ var ManifestBlobRefSchema = z35.object({
6414
+ hash: z35.string(),
6415
+ contentType: z35.string()
6265
6416
  });
6266
- var ManifestSegmentSchema = z34.object({
6417
+ var ManifestSegmentSchema = z35.object({
6267
6418
  /** Synthetic stable id (= segmentHash). */
6268
- segmentId: z34.string(),
6269
- segmentHash: z34.string(),
6270
- section: z34.string(),
6271
- locale: z34.string(),
6419
+ segmentId: z35.string(),
6420
+ segmentHash: z35.string(),
6421
+ section: z35.string(),
6422
+ locale: z35.string(),
6272
6423
  /** Sidebar order across segments (docs_ledger_deployment_segments.sort_order). */
6273
- sortOrder: z34.number(),
6274
- hidden: z34.boolean(),
6424
+ sortOrder: z35.number(),
6425
+ hidden: z35.boolean(),
6275
6426
  /** Segment type descriptor: { type, title, icon, apiDefinitionId, overviewPageId, pointsTo, ... }. */
6276
6427
  metadata: LedgerSegmentMetadataSchema,
6277
6428
  product: SegmentDetailSchema.nullable(),
@@ -6320,23 +6471,23 @@ function selectLedgerSegmentsForLocale(segments, locale, defaultLocale) {
6320
6471
  return [...byIdentity.values()];
6321
6472
  }
6322
6473
  var ManifestNavRouteSchema = LedgerNavRouteSchema;
6323
- var ManifestRouteBaseSchema = z34.object({
6324
- segmentHash: z34.string(),
6474
+ var ManifestRouteBaseSchema = z35.object({
6475
+ segmentHash: z35.string(),
6325
6476
  /** Key into the containing route index's sidebars map. */
6326
- sidebarKey: z34.string().nullable(),
6327
- section: z34.string(),
6328
- locale: z34.string(),
6329
- artifactId: z34.string(),
6330
- pageId: z34.string().optional(),
6477
+ sidebarKey: z35.string().nullable(),
6478
+ section: z35.string(),
6479
+ locale: z35.string(),
6480
+ artifactId: z35.string(),
6481
+ pageId: z35.string().optional(),
6331
6482
  /** CAS hash of the page content blob, or null for link/redirect artifacts. */
6332
- contentHash: z34.string().nullable(),
6333
- contentType: z34.string().nullable(),
6483
+ contentHash: z35.string().nullable(),
6484
+ contentType: z35.string().nullable(),
6334
6485
  /** ISO-8601 timestamp of when this artifact's content version was first created.
6335
6486
  * Populated at publish time from `docs_ledger_artifacts.created_at`. Optional
6336
6487
  * for backward compatibility with manifests built before this field existed. */
6337
- createdAt: z34.string().optional()
6488
+ createdAt: z35.string().optional()
6338
6489
  });
6339
- var ManifestRouteSchema = z34.discriminatedUnion("artifactType", [
6490
+ var ManifestRouteSchema = z35.discriminatedUnion("artifactType", [
6340
6491
  artifactTypeVariant(ManifestRouteBaseSchema, "markdown"),
6341
6492
  artifactTypeVariant(ManifestRouteBaseSchema, "page"),
6342
6493
  artifactTypeVariant(ManifestRouteBaseSchema, "rest"),
@@ -6351,60 +6502,60 @@ var ManifestRouteSchema = z34.discriminatedUnion("artifactType", [
6351
6502
  artifactTypeVariant(ManifestRouteBaseSchema, "image"),
6352
6503
  artifactTypeVariant(ManifestRouteBaseSchema, "redirect")
6353
6504
  ]);
6354
- var ManifestPageSchema = z34.object({
6355
- fullPath: z34.string().nullable(),
6356
- segmentHash: z34.string(),
6357
- contentHash: z34.string(),
6358
- contentType: z34.string()
6505
+ var ManifestPageSchema = z35.object({
6506
+ fullPath: z35.string().nullable(),
6507
+ segmentHash: z35.string(),
6508
+ contentHash: z35.string(),
6509
+ contentType: z35.string()
6359
6510
  });
6360
- var ManifestApiDefSchema = z34.object({
6511
+ var ManifestApiDefSchema = z35.object({
6361
6512
  /** CAS hash of the full API definition blob. */
6362
- hash: z34.string(),
6363
- contentType: z34.string(),
6513
+ hash: z35.string(),
6514
+ contentType: z35.string(),
6364
6515
  /** key = `${nodeType}:${nodeId}` (e.g. `endpoint:abc`) → pruned CAS blob. */
6365
- prunedHashes: z34.record(z34.string(), ManifestBlobRefSchema)
6366
- });
6367
- var ManifestFileSchema = z34.object({
6368
- type: z34.enum(["file", "image"]),
6369
- contentType: z34.string(),
6370
- contentLength: z34.number().optional(),
6371
- filename: z34.string(),
6372
- hash: z34.string(),
6516
+ prunedHashes: z35.record(z35.string(), ManifestBlobRefSchema)
6517
+ });
6518
+ var ManifestFileSchema = z35.object({
6519
+ type: z35.enum(["file", "image"]),
6520
+ contentType: z35.string(),
6521
+ contentLength: z35.number().optional(),
6522
+ filename: z35.string(),
6523
+ hash: z35.string(),
6373
6524
  /** Canonical fern domain the bytes were uploaded under (ADR 0010 file anchor). */
6374
- domain: z34.string(),
6375
- bucket: z34.enum(["public_docs", "private_docs"]),
6376
- width: z34.number().optional(),
6377
- height: z34.number().optional(),
6378
- blurDataURL: z34.string().optional()
6525
+ domain: z35.string(),
6526
+ bucket: z35.enum(["public_docs", "private_docs"]),
6527
+ width: z35.number().optional(),
6528
+ height: z35.number().optional(),
6529
+ blurDataURL: z35.string().optional()
6379
6530
  });
6380
- var LedgerShardFileSchema = z34.object({
6531
+ var LedgerShardFileSchema = z35.object({
6381
6532
  /** SHA-256 hex of the file bytes (docs-bucket key component). */
6382
- hash: z34.string(),
6533
+ hash: z35.string(),
6383
6534
  /** Fern-host-relative path; equals the `file:<fullPath>` token's suffix. */
6384
- fullPath: z34.string(),
6385
- contentType: z34.string(),
6386
- contentLength: z34.number().optional(),
6387
- width: z34.number().optional(),
6388
- height: z34.number().optional(),
6389
- blurDataURL: z34.string().optional(),
6535
+ fullPath: z35.string(),
6536
+ contentType: z35.string(),
6537
+ contentLength: z35.number().optional(),
6538
+ width: z35.number().optional(),
6539
+ height: z35.number().optional(),
6540
+ blurDataURL: z35.string().optional(),
6390
6541
  /**
6391
6542
  * Per-file bucket override. Absent ⇒ derive from the pointer's `isPrivate`
6392
6543
  * (`private_docs` when private, else `public_docs`). Present only for the
6393
6544
  * rare file whose bucket diverges from the deployment default.
6394
6545
  */
6395
- bucket: z34.enum(["public_docs", "private_docs"]).optional()
6396
- });
6397
- var LedgerConfigBlobSchema = z34.object({
6398
- version: z34.string().nullable(),
6399
- git: z34.object({
6400
- repoUrl: z34.string(),
6401
- branch: z34.string(),
6402
- commitSha: z34.string().nullable().optional()
6546
+ bucket: z35.enum(["public_docs", "private_docs"]).optional()
6547
+ });
6548
+ var LedgerConfigBlobSchema = z35.object({
6549
+ version: z35.string().nullable(),
6550
+ git: z35.object({
6551
+ repoUrl: z35.string(),
6552
+ branch: z35.string(),
6553
+ commitSha: z35.string().nullable().optional()
6403
6554
  }).optional(),
6404
6555
  /** Structural config with hot-path chrome text inlined for ADR 0016 page reads. */
6405
6556
  config: LedgerConfigSchema.nullable(),
6406
6557
  /** Large or legacy extracted config blobs. New manifests inline header/footer/css.inline/js.inline. */
6407
- configRefs: z34.object({
6558
+ configRefs: z35.object({
6408
6559
  header: ManifestBlobRefSchema.optional(),
6409
6560
  footer: ManifestBlobRefSchema.optional(),
6410
6561
  cssInline: ManifestBlobRefSchema.optional(),
@@ -6412,43 +6563,43 @@ var LedgerConfigBlobSchema = z34.object({
6412
6563
  jsFiles: ManifestBlobRefSchema.optional()
6413
6564
  })
6414
6565
  });
6415
- var LedgerChromeBlobSchema = z34.object({
6416
- apiNameToId: z34.record(z34.string(), z34.string())
6566
+ var LedgerChromeBlobSchema = z35.object({
6567
+ apiNameToId: z35.record(z35.string(), z35.string())
6417
6568
  });
6418
- var LedgerSidebarBundleSchema = z34.object({
6419
- locale: z34.string(),
6420
- segmentHash: z34.string(),
6421
- routes: z34.array(ManifestNavRouteSchema)
6569
+ var LedgerSidebarBundleSchema = z35.object({
6570
+ locale: z35.string(),
6571
+ segmentHash: z35.string(),
6572
+ routes: z35.array(ManifestNavRouteSchema)
6422
6573
  });
6423
- var LedgerSidebarMapEntrySchema = z34.discriminatedUnion("strategy", [
6574
+ var LedgerSidebarMapEntrySchema = z35.discriminatedUnion("strategy", [
6424
6575
  LedgerSidebarBundleSchema.extend({
6425
- strategy: z34.literal("inline")
6576
+ strategy: z35.literal("inline")
6426
6577
  }),
6427
6578
  ManifestBlobRefSchema.extend({
6428
- strategy: z34.literal("ref")
6579
+ strategy: z35.literal("ref")
6429
6580
  })
6430
6581
  ]);
6431
- var LedgerLocaleIndexSchema = z34.object({
6432
- locale: z34.string(),
6433
- segments: z34.array(ManifestSegmentSchema),
6582
+ var LedgerLocaleIndexSchema = z35.object({
6583
+ locale: z35.string(),
6584
+ segments: z35.array(ManifestSegmentSchema),
6434
6585
  /** sidebarKey → inline sidebar routes, or a CAS ref when over budget. */
6435
- sidebars: z34.record(z34.string(), LedgerSidebarMapEntrySchema),
6586
+ sidebars: z35.record(z35.string(), LedgerSidebarMapEntrySchema),
6436
6587
  /** fullPath → route for this effective locale. */
6437
- routes: z34.record(z34.string(), ManifestRouteSchema),
6588
+ routes: z35.record(z35.string(), ManifestRouteSchema),
6438
6589
  /** pageId → page content reference for this effective locale. */
6439
- pages: z34.record(z34.string(), ManifestPageSchema),
6590
+ pages: z35.record(z35.string(), ManifestPageSchema),
6440
6591
  /** apiDefinitionId → full + pruned API definition blobs. */
6441
- apiDefs: z34.record(z34.string(), ManifestApiDefSchema),
6592
+ apiDefs: z35.record(z35.string(), ManifestApiDefSchema),
6442
6593
  /** fullPath → file/image artifact metadata. */
6443
- files: z34.record(z34.string(), ManifestFileSchema)
6594
+ files: z35.record(z35.string(), ManifestFileSchema)
6444
6595
  });
6445
- var LedgerRouteShardSchema = z34.object({
6446
- schema: z34.literal(LEDGER_SHARD_SCHEMA_VERSION),
6447
- locale: z34.string(),
6596
+ var LedgerRouteShardSchema = z35.object({
6597
+ schema: z35.literal(LEDGER_SHARD_SCHEMA_VERSION),
6598
+ locale: z35.string(),
6448
6599
  /** fullPath → route for the scopes packed into this shard. */
6449
- routes: z34.record(z34.string(), ManifestRouteSchema),
6600
+ routes: z35.record(z35.string(), ManifestRouteSchema),
6450
6601
  /** segmentHash → inline sidebar (or CAS ref) for every segment in this shard's scopes. */
6451
- sidebars: z34.record(z34.string(), LedgerSidebarMapEntrySchema),
6602
+ sidebars: z35.record(z35.string(), LedgerSidebarMapEntrySchema),
6452
6603
  /**
6453
6604
  * fileFullPath → lean file identity for every file/image referenced by a
6454
6605
  * page routed into this shard (ADR 0016, "File metadata on the render
@@ -6457,32 +6608,32 @@ var LedgerRouteShardSchema = z34.object({
6457
6608
  * existed or with no embedded files; the bundle then falls back to the
6458
6609
  * pointer's `files` map (`fileMetadata`/`fileArtifact`).
6459
6610
  */
6460
- files: z34.record(z34.string(), LedgerShardFileSchema).optional()
6611
+ files: z35.record(z35.string(), LedgerShardFileSchema).optional()
6461
6612
  });
6462
- var LedgerPagesBlobSchema = z34.record(z34.string(), ManifestPageSchema);
6613
+ var LedgerPagesBlobSchema = z35.record(z35.string(), ManifestPageSchema);
6463
6614
  var LedgerPointerSegmentSchema = ManifestSegmentSchema.omit({ product: true, version: true }).extend({
6464
6615
  /** Index into the locale's `productCatalog`, or null when the segment has no product. */
6465
- productIdx: z34.number().nullable(),
6616
+ productIdx: z35.number().nullable(),
6466
6617
  /** Index into the locale's `versionCatalog`, or null when the segment has no version. */
6467
- versionIdx: z34.number().nullable()
6618
+ versionIdx: z35.number().nullable()
6468
6619
  });
6469
- var LedgerLocaleRoutingSchema = z34.object({
6620
+ var LedgerLocaleRoutingSchema = z35.object({
6470
6621
  /** Compact segments catalog for the switcher chrome (product/version by index). */
6471
- segments: z34.array(LedgerPointerSegmentSchema),
6622
+ segments: z35.array(LedgerPointerSegmentSchema),
6472
6623
  /** Deduplicated product details; `LedgerPointerSegment.productIdx` indexes into this. */
6473
- productCatalog: z34.array(SegmentDetailSchema),
6624
+ productCatalog: z35.array(SegmentDetailSchema),
6474
6625
  /** Deduplicated version details; `LedgerPointerSegment.versionIdx` indexes into this. */
6475
- versionCatalog: z34.array(SegmentDetailSchema),
6626
+ versionCatalog: z35.array(SegmentDetailSchema),
6476
6627
  /** fullPath → index into `shards`. */
6477
- routing: z34.record(z34.string(), z34.number()),
6628
+ routing: z35.record(z35.string(), z35.number()),
6478
6629
  /** segmentHash → index into `shards`. */
6479
- segmentShard: z34.record(z34.string(), z34.number()),
6630
+ segmentShard: z35.record(z35.string(), z35.number()),
6480
6631
  /** Ordered list of route shards; index matches `routing`/`segmentShard`. */
6481
- shards: z34.array(z34.object({ hash: z34.string() })),
6632
+ shards: z35.array(z35.object({ hash: z35.string() })),
6482
6633
  /** versionId → first routable fullPath (version switcher). */
6483
- versionFirstRoute: z34.record(z34.string(), z34.string()),
6634
+ versionFirstRoute: z35.record(z35.string(), z35.string()),
6484
6635
  /** CAS hash of the per-locale pages blob. */
6485
- pagesHash: z34.string(),
6636
+ pagesHash: z35.string(),
6486
6637
  /**
6487
6638
  * fullPath → file/image artifact metadata for files NOT materialised into
6488
6639
  * a route shard (ADR 0016, "File metadata on the render path"): config
@@ -6491,26 +6642,26 @@ var LedgerLocaleRoutingSchema = z34.object({
6491
6642
  * Page-body images are pruned from here and live in their route shard's
6492
6643
  * `files` map instead. Read via `fileMetadata` / `fileArtifact`.
6493
6644
  */
6494
- files: z34.record(z34.string(), ManifestFileSchema),
6645
+ files: z35.record(z35.string(), ManifestFileSchema),
6495
6646
  /** apiDefinitionId → full + pruned API definition blobs. */
6496
- apiDefs: z34.record(z34.string(), ManifestApiDefSchema)
6647
+ apiDefs: z35.record(z35.string(), ManifestApiDefSchema)
6497
6648
  });
6498
- var LedgerManifestSchema = z34.object({
6499
- schema: z34.literal(LEDGER_MANIFEST_SCHEMA_VERSION),
6649
+ var LedgerManifestSchema = z35.object({
6650
+ schema: z35.literal(LEDGER_MANIFEST_SCHEMA_VERSION),
6500
6651
  // ── Pointer / current-version fields ──────────────────────────────
6501
- orgId: z34.string(),
6502
- domain: z34.string(),
6503
- basepath: z34.string(),
6504
- deploymentId: z34.string(),
6505
- deploymentHash: z34.string(),
6506
- siteId: z34.string(),
6652
+ orgId: z35.string(),
6653
+ domain: z35.string(),
6654
+ basepath: z35.string(),
6655
+ deploymentId: z35.string(),
6656
+ deploymentHash: z35.string(),
6657
+ siteId: z35.string(),
6507
6658
  /** ISO-8601 timestamp the publish became live (request time). */
6508
- assignedAt: z34.string(),
6509
- assignedBy: z34.string().nullable(),
6510
- isPreview: z34.boolean(),
6511
- isPrivate: z34.boolean(),
6659
+ assignedAt: z35.string(),
6660
+ assignedBy: z35.string().nullable(),
6661
+ isPreview: z35.boolean(),
6662
+ isPrivate: z35.boolean(),
6512
6663
  /** Default locale for the deployment — read-path fallback when a translation is absent. */
6513
- defaultLocale: z34.string(),
6664
+ defaultLocale: z35.string(),
6514
6665
  /**
6515
6666
  * Canonical fern domain all file bytes are anchored under (ADR 0010). The
6516
6667
  * read client builds the public `/_files/{fileAnchorDomain}/{hash}/{fullPath}`
@@ -6519,19 +6670,19 @@ var LedgerManifestSchema = z34.object({
6519
6670
  * written before shard-side files; absent ⇒ the client falls back to the
6520
6671
  * pointer `files` map (which still carries per-file `domain`).
6521
6672
  */
6522
- fileAnchorDomain: z34.string().optional(),
6673
+ fileAnchorDomain: z35.string().optional(),
6523
6674
  config: LedgerConfigBlobSchema,
6524
6675
  chrome: LedgerChromeBlobSchema,
6525
- locales: z34.record(z34.string(), LedgerLocaleRoutingSchema)
6526
- });
6527
- var LedgerSiteArtifactSchema = z34.union([
6528
- z34.object({
6529
- schema: z34.literal(LEDGER_MANIFEST_SCHEMA_VERSION),
6530
- unpublished: z34.literal(true),
6531
- orgId: z34.string(),
6532
- domain: z34.string(),
6533
- basepath: z34.string(),
6534
- isPreview: z34.boolean()
6676
+ locales: z35.record(z35.string(), LedgerLocaleRoutingSchema)
6677
+ });
6678
+ var LedgerSiteArtifactSchema = z35.union([
6679
+ z35.object({
6680
+ schema: z35.literal(LEDGER_MANIFEST_SCHEMA_VERSION),
6681
+ unpublished: z35.literal(true),
6682
+ orgId: z35.string(),
6683
+ domain: z35.string(),
6684
+ basepath: z35.string(),
6685
+ isPreview: z35.boolean()
6535
6686
  }),
6536
6687
  LedgerManifestSchema
6537
6688
  ]);
@@ -6547,66 +6698,66 @@ function stableStringify(value) {
6547
6698
  }
6548
6699
 
6549
6700
  // src/orpc-client/files/contract.ts
6550
- import { oc as oc22 } from "@orpc/contract";
6551
- import * as z35 from "zod";
6552
- var PutContentInputSchema = z35.object({
6553
- contentType: z35.string(),
6554
- contentLength: z35.number().int().positive()
6701
+ import { oc as oc23 } from "@orpc/contract";
6702
+ import * as z36 from "zod";
6703
+ var PutContentInputSchema = z36.object({
6704
+ contentType: z36.string(),
6705
+ contentLength: z36.number().int().positive()
6555
6706
  });
6556
- var PutContentResponseSchema = z35.discriminatedUnion("status", [
6707
+ var PutContentResponseSchema = z36.discriminatedUnion("status", [
6557
6708
  /** Content already exists in storage — client can skip the S3 upload. */
6558
- z35.object({ status: z35.literal("exists") }),
6709
+ z36.object({ status: z36.literal("exists") }),
6559
6710
  /** Content is new — client should PUT the file bytes to uploadUrl, then call PUT /files. */
6560
- z35.object({ status: z35.literal("upload_required"), uploadUrl: z35.string() })
6711
+ z36.object({ status: z36.literal("upload_required"), uploadUrl: z36.string() })
6561
6712
  ]);
6562
- var PutFileInputSchema = z35.object({
6563
- hash: z35.string(),
6564
- contentType: z35.string()
6713
+ var PutFileInputSchema = z36.object({
6714
+ hash: z36.string(),
6715
+ contentType: z36.string()
6565
6716
  });
6566
- var FileResponseSchema = z35.object({
6717
+ var FileResponseSchema = z36.object({
6567
6718
  /** SHA-256 hex digest of the file content (64 characters). */
6568
- hash: z35.string(),
6719
+ hash: z36.string(),
6569
6720
  /** Presigned S3 GET URL. TTL is configurable (default 3600 seconds). */
6570
- downloadUrl: z35.string()
6721
+ downloadUrl: z36.string()
6571
6722
  });
6572
6723
  var contentContract = {
6573
6724
  /**
6574
6725
  * Check whether content exists or obtain a presigned S3 upload URL.
6575
6726
  * Requires org membership or super-user.
6576
6727
  */
6577
- putContent: oc22.route({ method: "PUT", path: "/" }).input(PutContentInputSchema).output(PutContentResponseSchema)
6728
+ putContent: oc23.route({ method: "PUT", path: "/" }).input(PutContentInputSchema).output(PutContentResponseSchema)
6578
6729
  };
6579
6730
  var filesContract = {
6580
6731
  /**
6581
6732
  * Bind a content hash to an org-scoped file path, confirming the S3 upload.
6582
6733
  * Requires org admin or super-user.
6583
6734
  */
6584
- putFile: oc22.route({ method: "PUT", path: "/" }).input(PutFileInputSchema).output(FileResponseSchema),
6735
+ putFile: oc23.route({ method: "PUT", path: "/" }).input(PutFileInputSchema).output(FileResponseSchema),
6585
6736
  /**
6586
6737
  * Get a presigned download URL for an org file.
6587
6738
  * Requires org membership or super-user.
6588
6739
  */
6589
- getFile: oc22.route({ method: "GET", path: "/" }).output(FileResponseSchema)
6740
+ getFile: oc23.route({ method: "GET", path: "/" }).output(FileResponseSchema)
6590
6741
  };
6591
6742
 
6592
6743
  // src/orpc-client/org-config/contract.ts
6593
- import * as z36 from "zod";
6744
+ import * as z37 from "zod";
6594
6745
  var SEMVER_RE = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z-.]+)?(?:\+[0-9A-Za-z-.]+)?$/;
6595
- var UpsertOrgConfigBodySchema = z36.object({
6746
+ var UpsertOrgConfigBodySchema = z37.object({
6596
6747
  // A semver string sets the bound; `null` clears it; omitting leaves it unchanged.
6597
- cliVersionMin: z36.union([z36.string().regex(SEMVER_RE, "cliVersionMin must be a valid semver (e.g. 5.45.0)"), z36.null()]).optional(),
6598
- cliVersionMax: z36.union([z36.string().regex(SEMVER_RE, "cliVersionMax must be a valid semver (e.g. 5.45.0)"), z36.null()]).optional()
6748
+ cliVersionMin: z37.union([z37.string().regex(SEMVER_RE, "cliVersionMin must be a valid semver (e.g. 5.45.0)"), z37.null()]).optional(),
6749
+ cliVersionMax: z37.union([z37.string().regex(SEMVER_RE, "cliVersionMax must be a valid semver (e.g. 5.45.0)"), z37.null()]).optional()
6599
6750
  });
6600
- var OrgConfigResponseSchema = z36.object({
6601
- orgId: z36.string(),
6602
- cliVersionMin: z36.string().optional(),
6603
- cliVersionMax: z36.string().optional(),
6751
+ var OrgConfigResponseSchema = z37.object({
6752
+ orgId: z37.string(),
6753
+ cliVersionMin: z37.string().optional(),
6754
+ cliVersionMax: z37.string().optional(),
6604
6755
  // Absent when no config has been stored for the org yet.
6605
- updatedAt: z36.string().optional()
6756
+ updatedAt: z37.string().optional()
6606
6757
  });
6607
6758
 
6608
6759
  // src/orpc-client/themes/contract.ts
6609
- import * as z37 from "zod";
6760
+ import * as z38 from "zod";
6610
6761
  var FERN_FILE_REF_KEY = "hash";
6611
6762
  var SHA256_RE = /^[0-9a-f]{64}$/;
6612
6763
  function isFernFileRef(value) {
@@ -6621,26 +6772,26 @@ function isFernFileRef(value) {
6621
6772
  return typeof hash === "string" && SHA256_RE.test(hash);
6622
6773
  }
6623
6774
  var THEME_NAME_RE = /^[a-zA-Z0-9_-]{1,64}$/;
6624
- var ThemeResponseSchema = z37.object({
6625
- id: z37.string(),
6626
- orgId: z37.string(),
6627
- name: z37.string(),
6628
- config: z37.unknown(),
6629
- updatedAt: z37.string()
6775
+ var ThemeResponseSchema = z38.object({
6776
+ id: z38.string(),
6777
+ orgId: z38.string(),
6778
+ name: z38.string(),
6779
+ config: z38.unknown(),
6780
+ updatedAt: z38.string()
6630
6781
  // ISO 8601 timestamp
6631
6782
  });
6632
- var ThemeListItemSchema = z37.object({
6633
- id: z37.string(),
6634
- orgId: z37.string(),
6635
- name: z37.string(),
6636
- updatedAt: z37.string()
6783
+ var ThemeListItemSchema = z38.object({
6784
+ id: z38.string(),
6785
+ orgId: z38.string(),
6786
+ name: z38.string(),
6787
+ updatedAt: z38.string()
6637
6788
  });
6638
- var ThemeListResponseSchema = z37.object({
6639
- themes: z37.array(ThemeListItemSchema)
6789
+ var ThemeListResponseSchema = z38.object({
6790
+ themes: z38.array(ThemeListItemSchema)
6640
6791
  });
6641
- var UpsertThemeBodySchema = z37.object({
6642
- name: z37.string().min(1).max(64).regex(THEME_NAME_RE, "Theme name may only contain letters, digits, hyphens, and underscores"),
6643
- config: z37.unknown()
6792
+ var UpsertThemeBodySchema = z38.object({
6793
+ name: z38.string().min(1).max(64).regex(THEME_NAME_RE, "Theme name may only contain letters, digits, hyphens, and underscores"),
6794
+ config: z38.unknown()
6644
6795
  });
6645
6796
  export {
6646
6797
  AlgoliaDomainInputSchema,
@@ -6725,8 +6876,10 @@ export {
6725
6876
  DeleteDocsSiteByServiceInputSchema,
6726
6877
  DeleteDocsSiteByServiceResponseSchema,
6727
6878
  DeleteDocsSiteInputSchema,
6879
+ DeleteMcpServerInputSchema,
6728
6880
  DeletePullRequestInputSchema,
6729
6881
  DeleteRepositoryInputSchema,
6882
+ DeployMcpServerInputSchema,
6730
6883
  DiscriminatedUnionTypeSchema,
6731
6884
  DiscriminatedUnionVariantSchema,
6732
6885
  DocsConfigId,
@@ -6844,6 +6997,7 @@ export {
6844
6997
  GetLatestGeneratorReleaseInputSchema,
6845
6998
  GetLibraryDocsStatusInputSchema,
6846
6999
  GetMarkdownEntriesResponseSchema,
7000
+ GetMcpServerInputSchema,
6847
7001
  GetMinCliForIrInputSchema,
6848
7002
  GetOrganizationForUrlInputSchema,
6849
7003
  GetPdfExportDownloadUrlInputSchema,
@@ -6996,6 +7150,10 @@ export {
6996
7150
  ListDocsPagesResponseSchema,
6997
7151
  ListGeneratorReleasesInputSchema,
6998
7152
  ListGeneratorReleasesResponseSchema,
7153
+ ListMcpDeploymentsInputSchema,
7154
+ ListMcpDeploymentsResponseSchema,
7155
+ ListMcpServersInputSchema,
7156
+ ListMcpServersResponseSchema,
6999
7157
  ListPdfExportTasksInputSchema,
7000
7158
  ListPdfExportTasksResponseSchema,
7001
7159
  ListPullRequestsInputSchema,
@@ -7015,6 +7173,11 @@ export {
7015
7173
  ManifestRouteSchema,
7016
7174
  ManifestSegmentSchema,
7017
7175
  MarkdownEntrySchema,
7176
+ McpAuthSchemeSchema,
7177
+ McpDeploymentStatusSchema,
7178
+ McpDeploymentSummarySchema,
7179
+ McpMetadataSchema,
7180
+ McpServerSchema,
7018
7181
  MigrateV2SiteInputSchema,
7019
7182
  MigrateV2SiteResponseSchema,
7020
7183
  MigrateV2SiteSkipReasonSchema,
@@ -7271,6 +7434,7 @@ export {
7271
7434
  createGeneratorsRootClient,
7272
7435
  createGitClient,
7273
7436
  createLibraryDocsClient,
7437
+ createMcpHostingClient,
7274
7438
  createOrganizationClient,
7275
7439
  createPdfExportClient,
7276
7440
  createSdksClient,
@@ -7300,6 +7464,7 @@ export {
7300
7464
  isFernFileRef,
7301
7465
  ledgerSegmentIdentity,
7302
7466
  libraryDocsContract,
7467
+ mcpHostingContract,
7303
7468
  organizationContract,
7304
7469
  pdfExportContract,
7305
7470
  sdksContract,