@fern-api/fdr-sdk 1.2.114-2dfb9e1373 → 1.2.114-5ab18f50f0

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.
@@ -5325,103 +5325,253 @@ function createGitClient(options) {
5325
5325
  return createORPCClient16(link);
5326
5326
  }
5327
5327
 
5328
- // src/orpc-client/pdf-export/client.ts
5328
+ // src/orpc-client/mcp-hosting/client.ts
5329
5329
  import { createORPCClient as createORPCClient17 } from "@orpc/client";
5330
5330
  import { OpenAPILink as OpenAPILink17 } from "@orpc/openapi-client/fetch";
5331
5331
 
5332
- // src/orpc-client/pdf-export/contract.ts
5332
+ // src/orpc-client/mcp-hosting/contract.ts
5333
5333
  import { oc as oc15 } from "@orpc/contract";
5334
5334
  import * as z25 from "zod";
5335
- var PdfExportScopeSchema = z25.object({
5336
- pageSlugs: z25.array(z25.string())
5337
- });
5338
- var PdfExportOptionsV1Schema = z25.object({
5339
- coverTitle: z25.string().nullish(),
5340
- coverSubtitle: z25.string().nullish(),
5341
- hideCoverFooter: z25.boolean().nullish(),
5342
- headerLeftTemplate: z25.string().nullish(),
5343
- headerRightTemplate: z25.string().nullish(),
5344
- footerLeftTemplate: z25.string().nullish(),
5345
- footerRightTemplate: z25.string().nullish(),
5346
- scope: PdfExportScopeSchema.nullish(),
5347
- hideCover: z25.boolean().nullish(),
5348
- hideToc: z25.boolean().nullish()
5349
- });
5350
- var PdfExportOptionsSchema = z25.discriminatedUnion("version", [
5351
- z25.object({ version: z25.literal("v1") }).merge(PdfExportOptionsV1Schema)
5335
+ var McpPathSegmentSchema = z25.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
5336
+ var McpDeploymentStatusSchema = z25.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
5337
+ var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
5338
+ z25.object({ type: z25.literal("bearer") }),
5339
+ z25.object({
5340
+ type: z25.literal("apiKey"),
5341
+ paramName: z25.string().min(1),
5342
+ in: z25.enum(["header", "query", "cookie"])
5343
+ }),
5344
+ z25.object({ type: z25.literal("basic") })
5352
5345
  ]);
5353
- var PdfExportTaskStatusSchema = z25.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
5354
- var PdfExportTaskSchema = z25.object({
5355
- id: z25.string(),
5356
- orgId: z25.string(),
5357
- docsUrl: z25.string(),
5358
- productId: z25.string().nullish(),
5359
- versionId: z25.string().nullish(),
5360
- requesterName: z25.string().nullish(),
5361
- notifyEmails: z25.array(z25.string()).nullish(),
5362
- status: PdfExportTaskStatusSchema,
5363
- options: PdfExportOptionsSchema.nullish(),
5364
- createdAt: z25.string(),
5365
- startedAt: z25.string().nullish(),
5366
- completedAt: z25.string().nullish(),
5367
- fileName: z25.string().nullish(),
5368
- sizeBytes: z25.number().nullish(),
5369
- errorMessage: z25.string().nullish()
5346
+ var McpMetadataSchema = z25.object({
5347
+ name: z25.string().min(1),
5348
+ toolsets: z25.record(z25.string(), z25.array(z25.string())),
5349
+ toolsetMetadata: z25.array(
5350
+ z25.object({
5351
+ name: z25.string(),
5352
+ title: z25.string(),
5353
+ description: z25.string(),
5354
+ toolCount: z25.number().int().nonnegative()
5355
+ }).strict()
5356
+ ),
5357
+ auth: z25.object({
5358
+ schemes: z25.array(McpAuthSchemeSchema),
5359
+ required: z25.boolean()
5360
+ }).strict(),
5361
+ skippedTools: z25.array(z25.object({ name: z25.string(), reason: z25.string() }).strict()),
5362
+ environmentVariables: z25.array(
5363
+ z25.object({
5364
+ name: z25.string(),
5365
+ description: z25.string(),
5366
+ required: z25.boolean()
5367
+ }).strict()
5368
+ ),
5369
+ baseUrl: z25.string().url(),
5370
+ followRedirects: z25.boolean(),
5371
+ maxRedirects: z25.number().int().nonnegative(),
5372
+ allowedRedirectHosts: z25.array(z25.string())
5373
+ }).passthrough();
5374
+ var McpModuleSchema = z25.object({
5375
+ name: z25.string().regex(/^[A-Za-z0-9._/-]+$/),
5376
+ hash: z25.string().regex(/^[0-9a-f]{64}$/),
5377
+ contentType: z25.string().min(1)
5378
+ }).strict();
5379
+ var McpGitInputSchema = z25.object({
5380
+ repoUrl: z25.string(),
5381
+ branch: z25.string(),
5382
+ commitSha: z25.string().optional()
5383
+ }).strict();
5384
+ var DeployMcpServerInputSchema = z25.object({
5385
+ orgId: McpPathSegmentSchema,
5386
+ slug: McpPathSegmentSchema,
5387
+ mainModule: z25.string().min(1),
5388
+ compatibilityDate: z25.string().regex(/^\d{4}-\d{2}-\d{2}$/),
5389
+ compatibilityFlags: z25.array(z25.string()),
5390
+ // Bounded so a single deploy request cannot fan out unbounded parallel
5391
+ // CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
5392
+ // 20 leaves room for wasm/sourcemap/chunk splitting.
5393
+ modules: z25.array(McpModuleSchema).min(1).max(20),
5394
+ metadata: McpMetadataSchema,
5395
+ // Everything else in this schema is bounded; keep the opaque config
5396
+ // blob bounded too so it cannot balloon the JSONB row.
5397
+ config: z25.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
5398
+ message: "config must be at most 64KB serialized"
5399
+ }),
5400
+ generatorName: z25.string().min(1),
5401
+ generatorVersion: z25.string().min(1),
5402
+ cliVersion: z25.string().optional(),
5403
+ git: McpGitInputSchema.optional()
5404
+ }).strict().superRefine((input, ctx) => {
5405
+ const names = /* @__PURE__ */ new Set();
5406
+ for (const module of input.modules) {
5407
+ if (names.has(module.name)) {
5408
+ ctx.addIssue({
5409
+ code: z25.ZodIssueCode.custom,
5410
+ path: ["modules"],
5411
+ message: `duplicate module name: ${module.name}`
5412
+ });
5413
+ }
5414
+ names.add(module.name);
5415
+ }
5416
+ if (!names.has(input.mainModule)) {
5417
+ ctx.addIssue({
5418
+ code: z25.ZodIssueCode.custom,
5419
+ path: ["mainModule"],
5420
+ message: `mainModule ${input.mainModule} is not among the submitted modules`
5421
+ });
5422
+ }
5370
5423
  });
5371
- var ListPdfExportTasksResponseSchema = z25.object({
5372
- tasks: z25.array(PdfExportTaskSchema)
5424
+ var GetMcpServerInputSchema = z25.object({
5425
+ orgId: McpPathSegmentSchema,
5426
+ slug: McpPathSegmentSchema
5373
5427
  });
5374
- var PdfExportDownloadResponseSchema = z25.object({
5375
- downloadUrl: z25.string(),
5376
- fileName: z25.string(),
5377
- sizeBytes: z25.number()
5428
+ var ListMcpServersInputSchema = z25.object({
5429
+ orgId: z25.string()
5378
5430
  });
5379
- var CreatePdfExportTaskInputSchema = z25.object({
5431
+ var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
5432
+ var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
5433
+ var McpDeploymentSummarySchema = z25.object({
5434
+ id: z25.string(),
5435
+ status: McpDeploymentStatusSchema,
5436
+ /** True when this deployment is the one the server currently serves. */
5437
+ isActive: z25.boolean(),
5438
+ generatorVersion: z25.string(),
5439
+ createdAt: z25.string(),
5440
+ createdBy: z25.string().nullish(),
5441
+ error: z25.object({ name: z25.string(), message: z25.string() }).nullish()
5442
+ });
5443
+ var McpServerSchema = z25.object({
5444
+ id: z25.string(),
5380
5445
  orgId: z25.string(),
5381
- docsUrl: z25.string(),
5382
- productId: z25.string().nullish(),
5383
- versionId: z25.string().nullish(),
5384
- requesterName: z25.string().nullish(),
5446
+ slug: z25.string(),
5447
+ /** The server is serving iff this is set; it names the serving deployment. */
5448
+ activeDeploymentId: z25.string().nullish(),
5449
+ /** Most recent publication attempt — how the last deploy went. */
5450
+ latestDeployment: McpDeploymentSummarySchema.nullish(),
5451
+ url: z25.string().url(),
5452
+ createdAt: z25.string(),
5453
+ updatedAt: z25.string()
5454
+ });
5455
+ var ListMcpServersResponseSchema = z25.object({ servers: z25.array(McpServerSchema) });
5456
+ var ListMcpDeploymentsResponseSchema = z25.object({ deployments: z25.array(McpDeploymentSummarySchema) });
5457
+ var mcpHostingContract = {
5458
+ deploy: oc15.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
5459
+ getServer: oc15.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
5460
+ listServers: oc15.route({ method: "GET", path: "/servers" }).input(ListMcpServersInputSchema).output(ListMcpServersResponseSchema),
5461
+ listDeployments: oc15.route({ method: "GET", path: "/servers/{slug}/deployments" }).input(ListMcpDeploymentsInputSchema).output(ListMcpDeploymentsResponseSchema),
5462
+ deleteServer: oc15.route({ method: "DELETE", path: "/servers/{slug}" }).input(DeleteMcpServerInputSchema)
5463
+ };
5464
+
5465
+ // src/orpc-client/mcp-hosting/client.ts
5466
+ function createMcpHostingClient(options) {
5467
+ const link = new OpenAPILink17(mcpHostingContract, {
5468
+ url: `${options.baseUrl}/mcp-hosting`,
5469
+ headers: () => ({
5470
+ Authorization: `Bearer ${options.token}`,
5471
+ ...options.headers
5472
+ }),
5473
+ ...options.fetch != null ? { fetch: options.fetch } : {}
5474
+ });
5475
+ return createORPCClient17(link);
5476
+ }
5477
+
5478
+ // src/orpc-client/pdf-export/client.ts
5479
+ import { createORPCClient as createORPCClient18 } from "@orpc/client";
5480
+ import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
5481
+
5482
+ // src/orpc-client/pdf-export/contract.ts
5483
+ import { oc as oc16 } from "@orpc/contract";
5484
+ import * as z26 from "zod";
5485
+ var PdfExportScopeSchema = z26.object({
5486
+ pageSlugs: z26.array(z26.string())
5487
+ });
5488
+ var PdfExportOptionsV1Schema = z26.object({
5489
+ coverTitle: z26.string().nullish(),
5490
+ coverSubtitle: z26.string().nullish(),
5491
+ hideCoverFooter: z26.boolean().nullish(),
5492
+ headerLeftTemplate: z26.string().nullish(),
5493
+ headerRightTemplate: z26.string().nullish(),
5494
+ footerLeftTemplate: z26.string().nullish(),
5495
+ footerRightTemplate: z26.string().nullish(),
5496
+ scope: PdfExportScopeSchema.nullish(),
5497
+ hideCover: z26.boolean().nullish(),
5498
+ hideToc: z26.boolean().nullish()
5499
+ });
5500
+ var PdfExportOptionsSchema = z26.discriminatedUnion("version", [
5501
+ z26.object({ version: z26.literal("v1") }).merge(PdfExportOptionsV1Schema)
5502
+ ]);
5503
+ var PdfExportTaskStatusSchema = z26.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
5504
+ var PdfExportTaskSchema = z26.object({
5505
+ id: z26.string(),
5506
+ orgId: z26.string(),
5507
+ docsUrl: z26.string(),
5508
+ productId: z26.string().nullish(),
5509
+ versionId: z26.string().nullish(),
5510
+ requesterName: z26.string().nullish(),
5511
+ notifyEmails: z26.array(z26.string()).nullish(),
5512
+ status: PdfExportTaskStatusSchema,
5513
+ options: PdfExportOptionsSchema.nullish(),
5514
+ createdAt: z26.string(),
5515
+ startedAt: z26.string().nullish(),
5516
+ completedAt: z26.string().nullish(),
5517
+ fileName: z26.string().nullish(),
5518
+ sizeBytes: z26.number().nullish(),
5519
+ errorMessage: z26.string().nullish()
5520
+ });
5521
+ var ListPdfExportTasksResponseSchema = z26.object({
5522
+ tasks: z26.array(PdfExportTaskSchema)
5523
+ });
5524
+ var PdfExportDownloadResponseSchema = z26.object({
5525
+ downloadUrl: z26.string(),
5526
+ fileName: z26.string(),
5527
+ sizeBytes: z26.number()
5528
+ });
5529
+ var CreatePdfExportTaskInputSchema = z26.object({
5530
+ orgId: z26.string(),
5531
+ docsUrl: z26.string(),
5532
+ productId: z26.string().nullish(),
5533
+ versionId: z26.string().nullish(),
5534
+ requesterName: z26.string().nullish(),
5385
5535
  options: PdfExportOptionsSchema.nullish()
5386
5536
  });
5387
- var ListPdfExportTasksInputSchema = z25.object({
5388
- orgId: z25.string(),
5389
- docsUrl: z25.string(),
5390
- limit: z25.coerce.number().nullish()
5537
+ var ListPdfExportTasksInputSchema = z26.object({
5538
+ orgId: z26.string(),
5539
+ docsUrl: z26.string(),
5540
+ limit: z26.coerce.number().nullish()
5391
5541
  });
5392
- var GetPdfExportTaskInputSchema = z25.object({
5393
- taskId: z25.string()
5542
+ var GetPdfExportTaskInputSchema = z26.object({
5543
+ taskId: z26.string()
5394
5544
  });
5395
- var UpdatePdfExportTaskInputSchema = z25.object({
5396
- taskId: z25.string(),
5545
+ var UpdatePdfExportTaskInputSchema = z26.object({
5546
+ taskId: z26.string(),
5397
5547
  status: PdfExportTaskStatusSchema,
5398
- startedAt: z25.string().nullish(),
5399
- completedAt: z25.string().nullish(),
5400
- s3Key: z25.string().nullish(),
5401
- fileName: z25.string().nullish(),
5402
- sizeBytes: z25.number().nullish(),
5403
- errorMessage: z25.string().nullish()
5548
+ startedAt: z26.string().nullish(),
5549
+ completedAt: z26.string().nullish(),
5550
+ s3Key: z26.string().nullish(),
5551
+ fileName: z26.string().nullish(),
5552
+ sizeBytes: z26.number().nullish(),
5553
+ errorMessage: z26.string().nullish()
5404
5554
  });
5405
- var GetPdfExportDownloadUrlInputSchema = z25.object({
5406
- taskId: z25.string()
5555
+ var GetPdfExportDownloadUrlInputSchema = z26.object({
5556
+ taskId: z26.string()
5407
5557
  });
5408
- var CleanupPdfExportsResponseSchema = z25.object({
5409
- expiredTasksDeleted: z25.number(),
5410
- s3ObjectsDeleted: z25.number(),
5411
- timedOutTasksFailed: z25.number()
5558
+ var CleanupPdfExportsResponseSchema = z26.object({
5559
+ expiredTasksDeleted: z26.number(),
5560
+ s3ObjectsDeleted: z26.number(),
5561
+ timedOutTasksFailed: z26.number()
5412
5562
  });
5413
5563
  var pdfExportContract = {
5414
- createTask: oc15.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
5415
- listTasks: oc15.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
5416
- getTask: oc15.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
5417
- updateTask: oc15.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
5418
- getDownloadUrl: oc15.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
5419
- cleanup: oc15.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
5564
+ createTask: oc16.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
5565
+ listTasks: oc16.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
5566
+ getTask: oc16.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
5567
+ updateTask: oc16.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
5568
+ getDownloadUrl: oc16.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
5569
+ cleanup: oc16.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
5420
5570
  };
5421
5571
 
5422
5572
  // src/orpc-client/pdf-export/client.ts
5423
5573
  function createPdfExportClient(options) {
5424
- const link = new OpenAPILink17(pdfExportContract, {
5574
+ const link = new OpenAPILink18(pdfExportContract, {
5425
5575
  url: `${options.baseUrl}/pdf-export`,
5426
5576
  headers: () => ({
5427
5577
  Authorization: `Bearer ${options.token}`,
@@ -5429,17 +5579,17 @@ function createPdfExportClient(options) {
5429
5579
  }),
5430
5580
  ...options.fetch != null ? { fetch: options.fetch } : {}
5431
5581
  });
5432
- return createORPCClient17(link);
5582
+ return createORPCClient18(link);
5433
5583
  }
5434
5584
 
5435
5585
  // src/orpc-client/sdks/client.ts
5436
- import { createORPCClient as createORPCClient18 } from "@orpc/client";
5437
- import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
5586
+ import { createORPCClient as createORPCClient19 } from "@orpc/client";
5587
+ import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
5438
5588
 
5439
5589
  // src/orpc-client/sdks/contract.ts
5440
- import { oc as oc16 } from "@orpc/contract";
5441
- import * as z26 from "zod";
5442
- var LanguageEnumSchema = z26.enum([
5590
+ import { oc as oc17 } from "@orpc/contract";
5591
+ import * as z27 from "zod";
5592
+ var LanguageEnumSchema = z27.enum([
5443
5593
  "Go",
5444
5594
  "TypeScript",
5445
5595
  "Java",
@@ -5450,23 +5600,23 @@ var LanguageEnumSchema = z26.enum([
5450
5600
  "Swift",
5451
5601
  "Rust"
5452
5602
  ]);
5453
- var VersionBumpEnumSchema = z26.enum(["MAJOR", "MINOR", "PATCH"]);
5454
- var ComputeSemanticVersionInputSchema = z26.object({
5455
- package: z26.string(),
5603
+ var VersionBumpEnumSchema = z27.enum(["MAJOR", "MINOR", "PATCH"]);
5604
+ var ComputeSemanticVersionInputSchema = z27.object({
5605
+ package: z27.string(),
5456
5606
  language: LanguageEnumSchema,
5457
- githubRepository: z26.string().nullish()
5607
+ githubRepository: z27.string().nullish()
5458
5608
  });
5459
- var ComputeSemanticVersionOutputSchema = z26.object({
5460
- version: z26.string(),
5609
+ var ComputeSemanticVersionOutputSchema = z27.object({
5610
+ version: z27.string(),
5461
5611
  bump: VersionBumpEnumSchema
5462
5612
  });
5463
5613
  var sdksContract = {
5464
- computeSemanticVersion: oc16.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
5614
+ computeSemanticVersion: oc17.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
5465
5615
  };
5466
5616
 
5467
5617
  // src/orpc-client/sdks/client.ts
5468
5618
  function createSdksClient(options) {
5469
- const link = new OpenAPILink18(sdksContract, {
5619
+ const link = new OpenAPILink19(sdksContract, {
5470
5620
  url: `${options.baseUrl}/sdks`,
5471
5621
  headers: () => ({
5472
5622
  Authorization: `Bearer ${options.token}`,
@@ -5474,50 +5624,50 @@ function createSdksClient(options) {
5474
5624
  }),
5475
5625
  ...options.fetch != null ? { fetch: options.fetch } : {}
5476
5626
  });
5477
- return createORPCClient18(link);
5627
+ return createORPCClient19(link);
5478
5628
  }
5479
5629
 
5480
5630
  // src/orpc-client/slugs/client.ts
5481
- import { createORPCClient as createORPCClient19 } from "@orpc/client";
5482
- import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
5631
+ import { createORPCClient as createORPCClient20 } from "@orpc/client";
5632
+ import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
5483
5633
 
5484
5634
  // src/orpc-client/slugs/contract.ts
5485
- import { oc as oc17 } from "@orpc/contract";
5486
- import * as z27 from "zod";
5487
- var SlugsInputSchema = z27.object({
5488
- domain: z27.string(),
5489
- basepath: z27.string().optional().default("")
5490
- });
5491
- var SlugEntrySchema = z27.object({
5492
- orgId: z27.string(),
5493
- domain: z27.string(),
5494
- basepath: z27.string(),
5495
- slug: z27.string(),
5496
- lastUpdated: z27.string()
5497
- });
5498
- var MarkdownEntrySchema = z27.object({
5499
- orgId: z27.string(),
5500
- domain: z27.string(),
5501
- basepath: z27.string(),
5502
- pageId: z27.string(),
5503
- slug: z27.string(),
5504
- hash: z27.string(),
5505
- lastUpdated: z27.string()
5506
- });
5507
- var GetSlugEntriesResponseSchema = z27.object({
5508
- entries: z27.array(SlugEntrySchema)
5509
- });
5510
- var GetMarkdownEntriesResponseSchema = z27.object({
5511
- entries: z27.array(MarkdownEntrySchema)
5635
+ import { oc as oc18 } from "@orpc/contract";
5636
+ import * as z28 from "zod";
5637
+ var SlugsInputSchema = z28.object({
5638
+ domain: z28.string(),
5639
+ basepath: z28.string().optional().default("")
5640
+ });
5641
+ var SlugEntrySchema = z28.object({
5642
+ orgId: z28.string(),
5643
+ domain: z28.string(),
5644
+ basepath: z28.string(),
5645
+ slug: z28.string(),
5646
+ lastUpdated: z28.string()
5647
+ });
5648
+ var MarkdownEntrySchema = z28.object({
5649
+ orgId: z28.string(),
5650
+ domain: z28.string(),
5651
+ basepath: z28.string(),
5652
+ pageId: z28.string(),
5653
+ slug: z28.string(),
5654
+ hash: z28.string(),
5655
+ lastUpdated: z28.string()
5656
+ });
5657
+ var GetSlugEntriesResponseSchema = z28.object({
5658
+ entries: z28.array(SlugEntrySchema)
5659
+ });
5660
+ var GetMarkdownEntriesResponseSchema = z28.object({
5661
+ entries: z28.array(MarkdownEntrySchema)
5512
5662
  });
5513
5663
  var slugsContract = {
5514
- getSlugEntries: oc17.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
5515
- getMarkdownEntries: oc17.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
5664
+ getSlugEntries: oc18.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
5665
+ getMarkdownEntries: oc18.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
5516
5666
  };
5517
5667
 
5518
5668
  // src/orpc-client/slugs/client.ts
5519
5669
  function createSlugsClient(options) {
5520
- const link = new OpenAPILink19(slugsContract, {
5670
+ const link = new OpenAPILink20(slugsContract, {
5521
5671
  url: `${options.baseUrl.replace(/\/+$/, "")}/slugs`,
5522
5672
  headers: () => ({
5523
5673
  Authorization: `Bearer ${options.token}`,
@@ -5525,118 +5675,118 @@ function createSlugsClient(options) {
5525
5675
  }),
5526
5676
  ...options.fetch != null ? { fetch: options.fetch } : {}
5527
5677
  });
5528
- return createORPCClient19(link);
5678
+ return createORPCClient20(link);
5529
5679
  }
5530
5680
 
5531
5681
  // src/orpc-client/snippets/client.ts
5532
- import { createORPCClient as createORPCClient20 } from "@orpc/client";
5533
- import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
5682
+ import { createORPCClient as createORPCClient21 } from "@orpc/client";
5683
+ import { OpenAPILink as OpenAPILink21 } from "@orpc/openapi-client/fetch";
5534
5684
 
5535
5685
  // src/orpc-client/snippets/contract.ts
5536
- import { oc as oc18 } from "@orpc/contract";
5537
- import * as z28 from "zod";
5538
- var TypeScriptSdkSchema = z28.object({ package: z28.string(), version: z28.string() });
5539
- var PythonSdkSchema = z28.object({ package: z28.string(), version: z28.string() });
5540
- var GoSdkSchema = z28.object({ githubRepo: z28.string(), version: z28.string() });
5541
- var RubySdkSchema = z28.object({ gem: z28.string(), version: z28.string() });
5542
- var JavaSdkSchema = z28.object({ group: z28.string(), artifact: z28.string(), version: z28.string() });
5543
- var CsharpSdkSchema = z28.object({ package: z28.string(), version: z28.string() });
5544
- var BaseSnippetCreateSchema = z28.object({
5686
+ import { oc as oc19 } from "@orpc/contract";
5687
+ import * as z29 from "zod";
5688
+ var TypeScriptSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
5689
+ var PythonSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
5690
+ var GoSdkSchema = z29.object({ githubRepo: z29.string(), version: z29.string() });
5691
+ var RubySdkSchema = z29.object({ gem: z29.string(), version: z29.string() });
5692
+ var JavaSdkSchema = z29.object({ group: z29.string(), artifact: z29.string(), version: z29.string() });
5693
+ var CsharpSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
5694
+ var BaseSnippetCreateSchema = z29.object({
5545
5695
  endpoint: EndpointIdentifierSchema,
5546
- exampleIdentifier: z28.string().nullish()
5696
+ exampleIdentifier: z29.string().nullish()
5547
5697
  });
5548
- var SdkSnippetsCreateSchema = z28.discriminatedUnion("type", [
5549
- z28.object({
5550
- type: z28.literal("typescript"),
5698
+ var SdkSnippetsCreateSchema = z29.discriminatedUnion("type", [
5699
+ z29.object({
5700
+ type: z29.literal("typescript"),
5551
5701
  sdk: TypeScriptSdkSchema,
5552
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
5702
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
5553
5703
  }),
5554
- z28.object({
5555
- type: z28.literal("python"),
5704
+ z29.object({
5705
+ type: z29.literal("python"),
5556
5706
  sdk: PythonSdkSchema,
5557
- snippets: z28.array(
5707
+ snippets: z29.array(
5558
5708
  BaseSnippetCreateSchema.extend({
5559
- snippet: z28.object({ async_client: z28.string(), sync_client: z28.string() })
5709
+ snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
5560
5710
  })
5561
5711
  )
5562
5712
  }),
5563
- z28.object({
5564
- type: z28.literal("go"),
5713
+ z29.object({
5714
+ type: z29.literal("go"),
5565
5715
  sdk: GoSdkSchema,
5566
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
5716
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
5567
5717
  }),
5568
- z28.object({
5569
- type: z28.literal("java"),
5718
+ z29.object({
5719
+ type: z29.literal("java"),
5570
5720
  sdk: JavaSdkSchema,
5571
- snippets: z28.array(
5721
+ snippets: z29.array(
5572
5722
  BaseSnippetCreateSchema.extend({
5573
- snippet: z28.object({ async_client: z28.string(), sync_client: z28.string() })
5723
+ snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
5574
5724
  })
5575
5725
  )
5576
5726
  }),
5577
- z28.object({
5578
- type: z28.literal("ruby"),
5727
+ z29.object({
5728
+ type: z29.literal("ruby"),
5579
5729
  sdk: RubySdkSchema,
5580
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
5730
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
5581
5731
  }),
5582
- z28.object({
5583
- type: z28.literal("csharp"),
5732
+ z29.object({
5733
+ type: z29.literal("csharp"),
5584
5734
  sdk: CsharpSdkSchema,
5585
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
5735
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
5586
5736
  })
5587
5737
  ]);
5588
5738
  var snippetsFactoryContract = {
5589
- createSnippetsForSdk: oc18.route({ method: "POST", path: "/create" }).input(
5590
- z28.object({
5591
- orgId: z28.string(),
5592
- apiId: z28.string(),
5739
+ createSnippetsForSdk: oc19.route({ method: "POST", path: "/create" }).input(
5740
+ z29.object({
5741
+ orgId: z29.string(),
5742
+ apiId: z29.string(),
5593
5743
  snippets: SdkSnippetsCreateSchema
5594
5744
  })
5595
5745
  )
5596
5746
  };
5597
- var ParameterPayloadSchema = z28.object({
5598
- name: z28.string(),
5599
- value: z28.unknown()
5747
+ var ParameterPayloadSchema = z29.object({
5748
+ name: z29.string(),
5749
+ value: z29.unknown()
5600
5750
  });
5601
- var AuthPayloadSchema = z28.discriminatedUnion("type", [
5602
- z28.object({ type: z28.literal("bearer"), token: z28.string() }),
5603
- z28.object({ type: z28.literal("basic"), username: z28.string(), password: z28.string() })
5751
+ var AuthPayloadSchema = z29.discriminatedUnion("type", [
5752
+ z29.object({ type: z29.literal("bearer"), token: z29.string() }),
5753
+ z29.object({ type: z29.literal("basic"), username: z29.string(), password: z29.string() })
5604
5754
  ]);
5605
- var CustomSnippetPayloadSchema = z28.object({
5606
- headers: z28.array(ParameterPayloadSchema).nullish(),
5607
- pathParameters: z28.array(ParameterPayloadSchema).nullish(),
5608
- queryParameters: z28.array(ParameterPayloadSchema).nullish(),
5609
- requestBody: z28.unknown().nullish(),
5755
+ var CustomSnippetPayloadSchema = z29.object({
5756
+ headers: z29.array(ParameterPayloadSchema).nullish(),
5757
+ pathParameters: z29.array(ParameterPayloadSchema).nullish(),
5758
+ queryParameters: z29.array(ParameterPayloadSchema).nullish(),
5759
+ requestBody: z29.unknown().nullish(),
5610
5760
  auth: AuthPayloadSchema.nullish()
5611
5761
  });
5612
5762
  var snippetsContract = {
5613
- get: oc18.route({ method: "POST", path: "/" }).input(
5614
- z28.object({
5615
- orgId: z28.string().nullish(),
5616
- apiId: z28.string().nullish(),
5617
- sdks: z28.array(SdkRequestSchema).nullish(),
5763
+ get: oc19.route({ method: "POST", path: "/" }).input(
5764
+ z29.object({
5765
+ orgId: z29.string().nullish(),
5766
+ apiId: z29.string().nullish(),
5767
+ sdks: z29.array(SdkRequestSchema).nullish(),
5618
5768
  endpoint: EndpointIdentifierSchema,
5619
- exampleIdentifier: z28.string().nullish(),
5769
+ exampleIdentifier: z29.string().nullish(),
5620
5770
  payload: CustomSnippetPayloadSchema.nullish()
5621
5771
  })
5622
- ).output(z28.array(z28.unknown())),
5623
- load: oc18.route({ method: "POST", path: "/load" }).input(
5624
- z28.object({
5625
- orgId: z28.string().nullish(),
5626
- apiId: z28.string().nullish(),
5627
- sdks: z28.array(SdkRequestSchema).nullish()
5772
+ ).output(z29.array(z29.unknown())),
5773
+ load: oc19.route({ method: "POST", path: "/load" }).input(
5774
+ z29.object({
5775
+ orgId: z29.string().nullish(),
5776
+ apiId: z29.string().nullish(),
5777
+ sdks: z29.array(SdkRequestSchema).nullish()
5628
5778
  })
5629
5779
  ).output(
5630
- z28.object({
5631
- next: z28.number().nullish(),
5632
- snippets: z28.record(z28.string(), z28.unknown())
5780
+ z29.object({
5781
+ next: z29.number().nullish(),
5782
+ snippets: z29.record(z29.string(), z29.unknown())
5633
5783
  })
5634
5784
  )
5635
5785
  };
5636
5786
 
5637
5787
  // src/orpc-client/snippets/client.ts
5638
5788
  function createSnippetsFactoryClient(options) {
5639
- const link = new OpenAPILink20(snippetsFactoryContract, {
5789
+ const link = new OpenAPILink21(snippetsFactoryContract, {
5640
5790
  url: `${options.baseUrl}/snippets`,
5641
5791
  headers: () => ({
5642
5792
  Authorization: `Bearer ${options.token}`,
@@ -5644,10 +5794,10 @@ function createSnippetsFactoryClient(options) {
5644
5794
  }),
5645
5795
  ...options.fetch != null ? { fetch: options.fetch } : {}
5646
5796
  });
5647
- return createORPCClient20(link);
5797
+ return createORPCClient21(link);
5648
5798
  }
5649
5799
  function createSnippetsClient(options) {
5650
- const link = new OpenAPILink20(snippetsContract, {
5800
+ const link = new OpenAPILink21(snippetsContract, {
5651
5801
  url: `${options.baseUrl}/snippets`,
5652
5802
  headers: () => ({
5653
5803
  Authorization: `Bearer ${options.token}`,
@@ -5655,63 +5805,63 @@ function createSnippetsClient(options) {
5655
5805
  }),
5656
5806
  ...options.fetch != null ? { fetch: options.fetch } : {}
5657
5807
  });
5658
- return createORPCClient20(link);
5808
+ return createORPCClient21(link);
5659
5809
  }
5660
5810
 
5661
5811
  // src/orpc-client/templates/client.ts
5662
- import { createORPCClient as createORPCClient21 } from "@orpc/client";
5663
- import { OpenAPILink as OpenAPILink21 } from "@orpc/openapi-client/fetch";
5812
+ import { createORPCClient as createORPCClient22 } from "@orpc/client";
5813
+ import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
5664
5814
 
5665
5815
  // src/orpc-client/templates/contract.ts
5666
- import { oc as oc19 } from "@orpc/contract";
5667
- import * as z29 from "zod";
5668
- var SnippetRegistryEntrySchema = z29.object({
5816
+ import { oc as oc20 } from "@orpc/contract";
5817
+ import * as z30 from "zod";
5818
+ var SnippetRegistryEntrySchema = z30.object({
5669
5819
  sdk: SdkSchema,
5670
- endpointId: z29.object({
5671
- path: z29.string(),
5820
+ endpointId: z30.object({
5821
+ path: z30.string(),
5672
5822
  method: HttpMethodSchema,
5673
- identifierOverride: z29.string().nullish()
5823
+ identifierOverride: z30.string().nullish()
5674
5824
  }),
5675
- snippetTemplate: z29.object({
5676
- type: z29.literal("v1"),
5677
- functionInvocation: z29.unknown(),
5678
- clientInstantiation: z29.string()
5825
+ snippetTemplate: z30.object({
5826
+ type: z30.literal("v1"),
5827
+ functionInvocation: z30.unknown(),
5828
+ clientInstantiation: z30.string()
5679
5829
  }),
5680
- additionalTemplates: z29.record(z29.string(), z29.unknown()).nullish()
5830
+ additionalTemplates: z30.record(z30.string(), z30.unknown()).nullish()
5681
5831
  });
5682
- var RegisterInputSchema = z29.object({
5683
- orgId: z29.string(),
5684
- apiId: z29.string(),
5685
- apiDefinitionId: z29.string(),
5832
+ var RegisterInputSchema = z30.object({
5833
+ orgId: z30.string(),
5834
+ apiId: z30.string(),
5835
+ apiDefinitionId: z30.string(),
5686
5836
  snippet: SnippetRegistryEntrySchema
5687
5837
  });
5688
- var RegisterBatchInputSchema = z29.object({
5689
- orgId: z29.string(),
5690
- apiId: z29.string(),
5691
- apiDefinitionId: z29.string(),
5692
- snippets: z29.array(SnippetRegistryEntrySchema)
5838
+ var RegisterBatchInputSchema = z30.object({
5839
+ orgId: z30.string(),
5840
+ apiId: z30.string(),
5841
+ apiDefinitionId: z30.string(),
5842
+ snippets: z30.array(SnippetRegistryEntrySchema)
5693
5843
  });
5694
- var GetInputSchema = z29.object({
5695
- orgId: z29.string(),
5696
- apiId: z29.string(),
5844
+ var GetInputSchema = z30.object({
5845
+ orgId: z30.string(),
5846
+ apiId: z30.string(),
5697
5847
  sdk: SdkSchema,
5698
- endpointId: z29.object({
5699
- path: z29.string(),
5848
+ endpointId: z30.object({
5849
+ path: z30.string(),
5700
5850
  method: HttpMethodSchema,
5701
- identifierOverride: z29.string().nullish()
5851
+ identifierOverride: z30.string().nullish()
5702
5852
  })
5703
5853
  });
5704
- var EndpointSnippetTemplateSchema = z29.record(z29.string(), z29.unknown());
5854
+ var EndpointSnippetTemplateSchema = z30.record(z30.string(), z30.unknown());
5705
5855
  var templatesContract = {
5706
- register: oc19.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
5707
- registerBatch: oc19.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
5708
- get: oc19.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
5856
+ register: oc20.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
5857
+ registerBatch: oc20.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
5858
+ get: oc20.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
5709
5859
  };
5710
5860
 
5711
5861
  // src/orpc-client/templates/client.ts
5712
5862
  function createTemplatesClient(options) {
5713
5863
  const baseUrl = options.baseUrl.replace(/\/+$/, "");
5714
- const link = new OpenAPILink21(templatesContract, {
5864
+ const link = new OpenAPILink22(templatesContract, {
5715
5865
  url: `${baseUrl}/snippet-template`,
5716
5866
  headers: () => ({
5717
5867
  Authorization: `Bearer ${options.token}`,
@@ -5719,36 +5869,36 @@ function createTemplatesClient(options) {
5719
5869
  }),
5720
5870
  ...options.fetch != null ? { fetch: options.fetch } : {}
5721
5871
  });
5722
- return createORPCClient21(link);
5872
+ return createORPCClient22(link);
5723
5873
  }
5724
5874
 
5725
5875
  // src/orpc-client/tokens/client.ts
5726
- import { createORPCClient as createORPCClient22 } from "@orpc/client";
5727
- import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
5876
+ import { createORPCClient as createORPCClient23 } from "@orpc/client";
5877
+ import { OpenAPILink as OpenAPILink23 } from "@orpc/openapi-client/fetch";
5728
5878
 
5729
5879
  // src/orpc-client/tokens/contract.ts
5730
- import { oc as oc20 } from "@orpc/contract";
5731
- import * as z30 from "zod";
5732
- var GenerateTokenInputSchema = z30.object({
5733
- orgId: z30.string(),
5734
- scope: z30.string()
5880
+ import { oc as oc21 } from "@orpc/contract";
5881
+ import * as z31 from "zod";
5882
+ var GenerateTokenInputSchema = z31.object({
5883
+ orgId: z31.string(),
5884
+ scope: z31.string()
5735
5885
  });
5736
- var RevokeTokenInputSchema = z30.object({
5737
- orgId: z30.string(),
5738
- tokenId: z30.string()
5886
+ var RevokeTokenInputSchema = z31.object({
5887
+ orgId: z31.string(),
5888
+ tokenId: z31.string()
5739
5889
  });
5740
- var GenerateTokenOutputSchema = z30.object({
5741
- token: z30.string(),
5742
- id: z30.string()
5890
+ var GenerateTokenOutputSchema = z31.object({
5891
+ token: z31.string(),
5892
+ id: z31.string()
5743
5893
  });
5744
5894
  var tokensContract = {
5745
- generate: oc20.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
5746
- revoke: oc20.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
5895
+ generate: oc21.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
5896
+ revoke: oc21.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
5747
5897
  };
5748
5898
 
5749
5899
  // src/orpc-client/tokens/client.ts
5750
5900
  function createTokensClient(options) {
5751
- const link = new OpenAPILink22(tokensContract, {
5901
+ const link = new OpenAPILink23(tokensContract, {
5752
5902
  url: `${options.baseUrl}/tokens`,
5753
5903
  headers: () => ({
5754
5904
  Authorization: `Bearer ${options.token}`,
@@ -5756,7 +5906,7 @@ function createTokensClient(options) {
5756
5906
  }),
5757
5907
  ...options.fetch != null ? { fetch: options.fetch } : {}
5758
5908
  });
5759
- return createORPCClient22(link);
5909
+ return createORPCClient23(link);
5760
5910
  }
5761
5911
 
5762
5912
  // src/orpc-client/client.ts
@@ -5780,6 +5930,7 @@ function createFdrORPCClient(options) {
5780
5930
  versions: createGeneratorVersionsClient(normalizedOptions)
5781
5931
  },
5782
5932
  git: createGitClient(normalizedOptions),
5933
+ mcpHosting: createMcpHostingClient(normalizedOptions),
5783
5934
  slugs: createSlugsClient(normalizedOptions),
5784
5935
  pdfExport: createPdfExportClient(normalizedOptions),
5785
5936
  sdks: createSdksClient(normalizedOptions),