@fern-api/fdr-sdk 1.2.174-94f3833ee6 → 1.2.174-950bdb766f

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.
Files changed (43) hide show
  1. package/dist/js/client/FdrClient.js +366 -303
  2. package/dist/js/client/FdrClient.js.map +1 -1
  3. package/dist/js/client/FdrClient.mjs +366 -303
  4. package/dist/js/client/FdrClient.mjs.map +1 -1
  5. package/dist/js/index.js +641 -578
  6. package/dist/js/index.js.map +1 -1
  7. package/dist/js/index.mjs +641 -578
  8. package/dist/js/index.mjs.map +1 -1
  9. package/dist/js/orpc-client/dashboard/sdkVersion.js +3 -1
  10. package/dist/js/orpc-client/dashboard/sdkVersion.js.map +1 -1
  11. package/dist/js/orpc-client/dashboard/sdkVersion.mjs +3 -1
  12. package/dist/js/orpc-client/dashboard/sdkVersion.mjs.map +1 -1
  13. package/dist/js/orpc-client.js +743 -634
  14. package/dist/js/orpc-client.js.map +1 -1
  15. package/dist/js/orpc-client.mjs +729 -634
  16. package/dist/js/orpc-client.mjs.map +1 -1
  17. package/dist/orpc-client/dashboard/sdkVersion.d.ts +3 -1
  18. package/dist/orpc-client/dashboard/sdkVersion.d.ts.map +1 -1
  19. package/dist/orpc-client/dashboard/sdkVersion.js +6 -2
  20. package/dist/orpc-client/dashboard/sdkVersion.js.map +1 -1
  21. package/dist/orpc-client/dashboard/sdkVersion.test.js +5 -1
  22. package/dist/orpc-client/dashboard/sdkVersion.test.js.map +1 -1
  23. package/dist/orpc-client/mcp-hosting/contract.d.ts +138 -0
  24. package/dist/orpc-client/mcp-hosting/contract.d.ts.map +1 -1
  25. package/dist/orpc-client/mcp-hosting/contract.js +17 -1
  26. package/dist/orpc-client/mcp-hosting/contract.js.map +1 -1
  27. package/dist/orpc-client/mcp-hosting/index.d.ts +1 -0
  28. package/dist/orpc-client/mcp-hosting/index.d.ts.map +1 -1
  29. package/dist/orpc-client/mcp-hosting/index.js +1 -0
  30. package/dist/orpc-client/mcp-hosting/index.js.map +1 -1
  31. package/dist/orpc-client/mcp-hosting/usage.d.ts +194 -0
  32. package/dist/orpc-client/mcp-hosting/usage.d.ts.map +1 -0
  33. package/dist/orpc-client/mcp-hosting/usage.js +116 -0
  34. package/dist/orpc-client/mcp-hosting/usage.js.map +1 -0
  35. package/dist/types/orpc-client/dashboard/sdkVersion.d.ts +3 -1
  36. package/dist/types/orpc-client/dashboard/sdkVersion.d.ts.map +1 -1
  37. package/dist/types/orpc-client/mcp-hosting/contract.d.ts +138 -0
  38. package/dist/types/orpc-client/mcp-hosting/contract.d.ts.map +1 -1
  39. package/dist/types/orpc-client/mcp-hosting/index.d.ts +1 -0
  40. package/dist/types/orpc-client/mcp-hosting/index.d.ts.map +1 -1
  41. package/dist/types/orpc-client/mcp-hosting/usage.d.ts +194 -0
  42. package/dist/types/orpc-client/mcp-hosting/usage.d.ts.map +1 -0
  43. package/package.json +1 -1
package/dist/js/index.js CHANGED
@@ -521,8 +521,8 @@ function parseMatch(match) {
521
521
  return match;
522
522
  }
523
523
  var src_default = (str, options = {}) => {
524
- str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string38) => {
525
- const isLastWord = m.length + offset >= string38.length;
524
+ str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string39) => {
525
+ const isLastWord = m.length + offset >= string39.length;
526
526
  const parsedMatch = parseMatch(m);
527
527
  if (!parsedMatch) {
528
528
  return m;
@@ -2658,16 +2658,16 @@ function selectDefaultValue(shape, defaults) {
2658
2658
  }
2659
2659
  }
2660
2660
  var UnwrapObjectTypeCache = /* @__PURE__ */ new WeakMap();
2661
- function unwrapObjectType(object37, types, parentVisitedTypeIds) {
2662
- const cached = UnwrapObjectTypeCache.get(object37);
2661
+ function unwrapObjectType(object38, types, parentVisitedTypeIds) {
2662
+ const cached = UnwrapObjectTypeCache.get(object38);
2663
2663
  if (cached != null) {
2664
2664
  return cached;
2665
2665
  }
2666
- const directProperties = object37.properties;
2667
- const extraProperties = object37.extraProperties;
2666
+ const directProperties = object38.properties;
2667
+ const extraProperties = object38.extraProperties;
2668
2668
  const descriptions = [];
2669
2669
  const visitedTypeIds = /* @__PURE__ */ new Set();
2670
- const extendedProperties = object37.extends.flatMap((typeId) => {
2670
+ const extendedProperties = object38.extends.flatMap((typeId) => {
2671
2671
  if (parentVisitedTypeIds?.has(typeId)) {
2672
2672
  console.error(`Circular reference detected. Cannot extend type=${typeId}`);
2673
2673
  return [];
@@ -2714,7 +2714,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
2714
2714
  };
2715
2715
  });
2716
2716
  });
2717
- const propertyKeys = new Set(object37.properties.map((property) => property.key));
2717
+ const propertyKeys = new Set(object38.properties.map((property) => property.key));
2718
2718
  const seenExtendedKeys = /* @__PURE__ */ new Set();
2719
2719
  const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
2720
2720
  if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
@@ -2737,7 +2737,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
2737
2737
  extraProperties,
2738
2738
  visitedTypeIds
2739
2739
  };
2740
- UnwrapObjectTypeCache.set(object37, toRet2);
2740
+ UnwrapObjectTypeCache.set(object38, toRet2);
2741
2741
  return toRet2;
2742
2742
  }
2743
2743
  const properties = (0, import_array.sortBy)(
@@ -2749,7 +2749,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
2749
2749
  ]
2750
2750
  );
2751
2751
  const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
2752
- UnwrapObjectTypeCache.set(object37, toRet);
2752
+ UnwrapObjectTypeCache.set(object38, toRet);
2753
2753
  return toRet;
2754
2754
  }
2755
2755
  function unwrapDiscriminatedUnionVariant(union14, variant, types) {
@@ -4470,8 +4470,8 @@ function sortKeysByShape(obj, shape, types) {
4470
4470
  set: ({ itemShape }) => Array.isArray(obj) ? obj.map((o) => sortKeysByShape(o, itemShape, types)) : obj,
4471
4471
  map: ({ valueShape }) => isPlainObject_default(obj) ? (0, import_object.mapValues)(obj, (value) => sortKeysByShape(value, valueShape, types)) : obj,
4472
4472
  unknown: () => obj,
4473
- object: (object37) => {
4474
- const objectProperties = unwrapObjectType(object37, types).properties;
4473
+ object: (object38) => {
4474
+ const objectProperties = unwrapObjectType(object38, types).properties;
4475
4475
  return isPlainObject_default(obj) ? (0, import_object.mapValues)(
4476
4476
  sortKeysBy(
4477
4477
  obj,
@@ -7686,10 +7686,10 @@ function xmlElementFromShape(shape, types, visited, depth, value) {
7686
7686
  if (resolved == null) {
7687
7687
  return void 0;
7688
7688
  }
7689
- const { object: object37, visited: innerVisited } = resolved;
7689
+ const { object: object38, visited: innerVisited } = resolved;
7690
7690
  const example = isRecord(value) ? value : void 0;
7691
- const element = { name: object37.xml.name, attributes: [], text: void 0, children: [] };
7692
- for (const property of xmlProperties(object37, types, innerVisited)) {
7691
+ const element = { name: object38.xml.name, attributes: [], text: void 0, children: [] };
7692
+ for (const property of xmlProperties(object38, types, innerVisited)) {
7693
7693
  const kind = property.xml?.kind ?? "element";
7694
7694
  const name = property.xml?.name ?? property.key;
7695
7695
  const listSeparator = property.xml?.listSeparator ?? " ";
@@ -7718,21 +7718,21 @@ function xmlElementFromShape(shape, types, visited, depth, value) {
7718
7718
  }
7719
7719
  return element;
7720
7720
  }
7721
- function xmlProperties(object37, types, visited) {
7721
+ function xmlProperties(object38, types, visited) {
7722
7722
  const inherited = [];
7723
- for (const parentId of object37.extends) {
7723
+ for (const parentId of object38.extends) {
7724
7724
  const parent = types[parentId];
7725
7725
  if (parent != null && parent.shape.type === "object" && !visited.has(parentId)) {
7726
7726
  inherited.push(
7727
7727
  ...xmlProperties(
7728
- { extends: parent.shape.extends, properties: parent.shape.properties, xml: object37.xml },
7728
+ { extends: parent.shape.extends, properties: parent.shape.properties, xml: object38.xml },
7729
7729
  types,
7730
7730
  /* @__PURE__ */ new Set([...visited, parentId])
7731
7731
  )
7732
7732
  );
7733
7733
  }
7734
7734
  }
7735
- return [...inherited, ...object37.properties];
7735
+ return [...inherited, ...object38.properties];
7736
7736
  }
7737
7737
  function childElements(property, name, types, visited, depth) {
7738
7738
  const itemShape = listItemShape(property.valueShape, types, visited) ?? property.valueShape;
@@ -12640,7 +12640,7 @@ var import_fetch17 = require("@orpc/openapi-client/fetch");
12640
12640
 
12641
12641
  // src/orpc-client/mcp-hosting/contract.ts
12642
12642
  var import_contract31 = require("@orpc/contract");
12643
- var z28 = __toESM(require("zod"), 1);
12643
+ var z29 = __toESM(require("zod"), 1);
12644
12644
 
12645
12645
  // src/orpc-client/mcp-hosting/analytics.ts
12646
12646
  var z25 = __toESM(require("zod"), 1);
@@ -13277,46 +13277,97 @@ var McpDeploymentSkippedToolSchema = z27.object({
13277
13277
  path: z27.string().nullable()
13278
13278
  });
13279
13279
 
13280
+ // src/orpc-client/mcp-hosting/usage.ts
13281
+ var z28 = __toESM(require("zod"), 1);
13282
+ var McpOrgQuotaSchema = z28.object({
13283
+ /** Tool calls per month; null means no limit. */
13284
+ limit: z28.number().int().nonnegative().nullable(),
13285
+ /**
13286
+ * Sales approved the org to go over its limit. The dispatcher keeps
13287
+ * counting but never refuses a call.
13288
+ */
13289
+ approved: z28.boolean()
13290
+ });
13291
+ var UsageMonthSchema = z28.string().regex(/^\d{4}-(0[1-9]|1[0-2])$/, "Expected yyyy-mm");
13292
+ var McpUsageCountsSchema = z28.object({
13293
+ month: UsageMonthSchema,
13294
+ toolCalls: z28.number().int().nonnegative(),
13295
+ /** Calls refused because the allowance was used up. */
13296
+ blockedCalls: z28.number().int().nonnegative(),
13297
+ servers: z28.array(z28.object({ slug: z28.string(), toolCalls: z28.number().int().nonnegative() })),
13298
+ /** Whether this dispatcher refuses calls over the allowance (QUOTA_ENFORCE), or only counts them. */
13299
+ enforced: z28.boolean()
13300
+ });
13301
+ var McpOrgIdSchema = z28.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
13302
+ var GetMcpUsageInputSchema = z28.object({
13303
+ orgId: McpOrgIdSchema,
13304
+ month: UsageMonthSchema.optional()
13305
+ });
13306
+ var SetMcpUsageAllowanceInputSchema = z28.object({
13307
+ orgId: McpOrgIdSchema,
13308
+ /** Tool calls per month; null means no limit. */
13309
+ limit: z28.number().int().nonnegative().max(1e9).nullable(),
13310
+ /** Approved to go over the limit: calls are counted but never refused. */
13311
+ approved: z28.boolean(),
13312
+ note: z28.string().max(500).optional()
13313
+ });
13314
+ var McpOrgUsageSchema = z28.object({
13315
+ month: UsageMonthSchema,
13316
+ resetsAt: z28.string(),
13317
+ toolCalls: z28.number().int().nonnegative(),
13318
+ blockedCalls: z28.number().int().nonnegative(),
13319
+ /** Tool calls per month; null means no limit. */
13320
+ limit: z28.number().int().nonnegative().nullable(),
13321
+ approved: z28.boolean(),
13322
+ /** The org has the free allowance (no allowance set by Fern). */
13323
+ isFreeAllowance: z28.boolean(),
13324
+ blocked: z28.boolean(),
13325
+ /** Whether calls over the allowance are refused in this environment, or only counted. */
13326
+ enforced: z28.boolean(),
13327
+ servers: z28.array(z28.object({ slug: z28.string(), toolCalls: z28.number().int().nonnegative() })),
13328
+ contactUrl: z28.string()
13329
+ });
13330
+
13280
13331
  // src/orpc-client/mcp-hosting/contract.ts
13281
- var McpPathSegmentSchema = z28.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
13282
- var McpDeploymentStatusSchema = z28.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
13283
- var McpModuleSchema = z28.object({
13284
- name: z28.string().regex(/^[A-Za-z0-9._/-]+$/),
13332
+ var McpPathSegmentSchema = z29.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
13333
+ var McpDeploymentStatusSchema = z29.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
13334
+ var McpModuleSchema = z29.object({
13335
+ name: z29.string().regex(/^[A-Za-z0-9._/-]+$/),
13285
13336
  hash: Sha256Schema,
13286
- contentType: z28.string().min(1)
13337
+ contentType: z29.string().min(1)
13287
13338
  }).strict();
13288
- var McpGitInputSchema = z28.object({
13289
- repoUrl: z28.string(),
13339
+ var McpGitInputSchema = z29.object({
13340
+ repoUrl: z29.string(),
13290
13341
  /** Absent on a detached HEAD (a CI checkout of a commit, say). */
13291
- branch: z28.string().optional(),
13292
- commitSha: z28.string().optional()
13342
+ branch: z29.string().optional(),
13343
+ commitSha: z29.string().optional()
13293
13344
  }).strict();
13294
- var McpInputFileSchema = z28.discriminatedUnion("name", [
13295
- z28.object({
13345
+ var McpInputFileSchema = z29.discriminatedUnion("name", [
13346
+ z29.object({
13296
13347
  /** The `sources` part of the build request, verbatim. */
13297
- name: z28.literal("specs.tar.gz"),
13298
- contentType: z28.literal("application/gzip"),
13348
+ name: z29.literal("specs.tar.gz"),
13349
+ contentType: z29.literal("application/gzip"),
13299
13350
  hash: Sha256Schema
13300
13351
  }).strict(),
13301
- z28.object({
13352
+ z29.object({
13302
13353
  /** This target's sdk-config payload. */
13303
- name: z28.literal("sdk-config.json"),
13304
- contentType: z28.literal("application/json"),
13354
+ name: z29.literal("sdk-config.json"),
13355
+ contentType: z29.literal("application/json"),
13305
13356
  hash: Sha256Schema
13306
13357
  }).strict(),
13307
- z28.object({
13358
+ z29.object({
13308
13359
  /** The build request narrowed to this target. */
13309
- name: z28.literal("build-request.json"),
13310
- contentType: z28.literal("application/json"),
13360
+ name: z29.literal("build-request.json"),
13361
+ contentType: z29.literal("application/json"),
13311
13362
  hash: Sha256Schema
13312
13363
  }).strict()
13313
13364
  ]);
13314
- var McpInputFilesSchema = z28.array(McpInputFileSchema).max(3).superRefine((inputs, ctx) => {
13365
+ var McpInputFilesSchema = z29.array(McpInputFileSchema).max(3).superRefine((inputs, ctx) => {
13315
13366
  const names = /* @__PURE__ */ new Set();
13316
13367
  for (const input of inputs) {
13317
13368
  if (names.has(input.name)) {
13318
13369
  ctx.addIssue({
13319
- code: z28.ZodIssueCode.custom,
13370
+ code: z29.ZodIssueCode.custom,
13320
13371
  message: `duplicate input name: ${input.name}`
13321
13372
  });
13322
13373
  }
@@ -13347,7 +13398,7 @@ function deployMetadataChecks(metadata, ctx) {
13347
13398
  for (const [toolset, members] of Object.entries(metadata.toolsets)) {
13348
13399
  if (!TOOLSET_NAME_PATTERN.test(toolset)) {
13349
13400
  ctx.addIssue({
13350
- code: z28.ZodIssueCode.custom,
13401
+ code: z29.ZodIssueCode.custom,
13351
13402
  path: ["toolsets", toolset],
13352
13403
  message: `toolset name "${toolset}" must match ${TOOLSET_NAME_PATTERN}`
13353
13404
  });
@@ -13355,7 +13406,7 @@ function deployMetadataChecks(metadata, ctx) {
13355
13406
  members.forEach((member, index) => {
13356
13407
  if (!TOOL_NAME_PATTERN.test(member)) {
13357
13408
  ctx.addIssue({
13358
- code: z28.ZodIssueCode.custom,
13409
+ code: z29.ZodIssueCode.custom,
13359
13410
  path: ["toolsets", toolset, index],
13360
13411
  message: `tool name "${member}" must match ${TOOL_NAME_PATTERN}`
13361
13412
  });
@@ -13365,28 +13416,28 @@ function deployMetadataChecks(metadata, ctx) {
13365
13416
  (metadata.tools ?? []).forEach((tool, index) => {
13366
13417
  if (!TOOL_NAME_PATTERN.test(tool.name)) {
13367
13418
  ctx.addIssue({
13368
- code: z28.ZodIssueCode.custom,
13419
+ code: z29.ZodIssueCode.custom,
13369
13420
  path: ["tools", index, "name"],
13370
13421
  message: `tool name "${tool.name}" must match ${TOOL_NAME_PATTERN}`
13371
13422
  });
13372
13423
  }
13373
13424
  if (tool.operationId != null && tool.operationId.length > MAX_OPERATION_ID_LENGTH) {
13374
13425
  ctx.addIssue({
13375
- code: z28.ZodIssueCode.custom,
13426
+ code: z29.ZodIssueCode.custom,
13376
13427
  path: ["tools", index, "operationId"],
13377
13428
  message: `operationId must be at most ${MAX_OPERATION_ID_LENGTH} characters`
13378
13429
  });
13379
13430
  }
13380
13431
  if (tool.method.length > MAX_METHOD_LENGTH) {
13381
13432
  ctx.addIssue({
13382
- code: z28.ZodIssueCode.custom,
13433
+ code: z29.ZodIssueCode.custom,
13383
13434
  path: ["tools", index, "method"],
13384
13435
  message: `method must be at most ${MAX_METHOD_LENGTH} characters`
13385
13436
  });
13386
13437
  }
13387
13438
  if (tool.path.length > MAX_PATH_LENGTH) {
13388
13439
  ctx.addIssue({
13389
- code: z28.ZodIssueCode.custom,
13440
+ code: z29.ZodIssueCode.custom,
13390
13441
  path: ["tools", index, "path"],
13391
13442
  message: `path must be at most ${MAX_PATH_LENGTH} characters`
13392
13443
  });
@@ -13395,7 +13446,7 @@ function deployMetadataChecks(metadata, ctx) {
13395
13446
  metadata.auth.schemes.forEach((scheme, index) => {
13396
13447
  if (scheme.type === "apiKey" && !HEADER_TOKEN_PATTERN.test(scheme.paramName)) {
13397
13448
  ctx.addIssue({
13398
- code: z28.ZodIssueCode.custom,
13449
+ code: z29.ZodIssueCode.custom,
13399
13450
  path: ["auth", "schemes", index, "paramName"],
13400
13451
  message: `paramName "${scheme.paramName}" must be an RFC 7230 token of at most 128 characters`
13401
13452
  });
@@ -13403,30 +13454,30 @@ function deployMetadataChecks(metadata, ctx) {
13403
13454
  });
13404
13455
  if (!maxSerializedBytes(MCP_METADATA_MAX_BYTES)(metadata)) {
13405
13456
  ctx.addIssue({
13406
- code: z28.ZodIssueCode.custom,
13457
+ code: z29.ZodIssueCode.custom,
13407
13458
  message: `metadata must be at most ${MCP_METADATA_MAX_BYTES} bytes serialized`
13408
13459
  });
13409
13460
  }
13410
13461
  }
13411
- var DeployMcpServerInputSchema = z28.object({
13462
+ var DeployMcpServerInputSchema = z29.object({
13412
13463
  orgId: McpPathSegmentSchema,
13413
13464
  slug: McpPathSegmentSchema,
13414
- mainModule: z28.string().min(1),
13415
- compatibilityDate: z28.string().regex(/^\d{4}-\d{2}-\d{2}$/),
13416
- compatibilityFlags: z28.array(z28.string()),
13465
+ mainModule: z29.string().min(1),
13466
+ compatibilityDate: z29.string().regex(/^\d{4}-\d{2}-\d{2}$/),
13467
+ compatibilityFlags: z29.array(z29.string()),
13417
13468
  // Bounded so a single deploy request cannot fan out unbounded parallel
13418
13469
  // CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
13419
13470
  // 20 leaves room for wasm/sourcemap/chunk splitting.
13420
- modules: z28.array(McpModuleSchema).min(1).max(20),
13471
+ modules: z29.array(McpModuleSchema).min(1).max(20),
13421
13472
  metadata: McpMetadataSchema.superRefine(deployMetadataChecks),
13422
13473
  // Everything else in this schema is bounded; keep the opaque config
13423
13474
  // blob bounded too so it cannot balloon the JSONB row.
13424
- config: z28.unknown().optional().refine(maxSerializedBytes(MCP_CONFIG_MAX_BYTES), {
13475
+ config: z29.unknown().optional().refine(maxSerializedBytes(MCP_CONFIG_MAX_BYTES), {
13425
13476
  message: `config must be at most ${MCP_CONFIG_MAX_BYTES} bytes serialized`
13426
13477
  }),
13427
- generatorName: z28.string().min(1),
13428
- generatorVersion: z28.string().min(1),
13429
- cliVersion: z28.string().optional(),
13478
+ generatorName: z29.string().min(1),
13479
+ generatorVersion: z29.string().min(1),
13480
+ cliVersion: z29.string().optional(),
13430
13481
  git: McpGitInputSchema.optional(),
13431
13482
  inputs: McpInputFilesSchema.optional()
13432
13483
  }).strict().superRefine((input, ctx) => {
@@ -13434,7 +13485,7 @@ var DeployMcpServerInputSchema = z28.object({
13434
13485
  for (const module2 of input.modules) {
13435
13486
  if (names.has(module2.name)) {
13436
13487
  ctx.addIssue({
13437
- code: z28.ZodIssueCode.custom,
13488
+ code: z29.ZodIssueCode.custom,
13438
13489
  path: ["modules"],
13439
13490
  message: `duplicate module name: ${module2.name}`
13440
13491
  });
@@ -13443,18 +13494,18 @@ var DeployMcpServerInputSchema = z28.object({
13443
13494
  }
13444
13495
  if (!names.has(input.mainModule)) {
13445
13496
  ctx.addIssue({
13446
- code: z28.ZodIssueCode.custom,
13497
+ code: z29.ZodIssueCode.custom,
13447
13498
  path: ["mainModule"],
13448
13499
  message: `mainModule ${input.mainModule} is not among the submitted modules`
13449
13500
  });
13450
13501
  }
13451
13502
  });
13452
- var GetMcpServerInputSchema = z28.object({
13503
+ var GetMcpServerInputSchema = z29.object({
13453
13504
  orgId: McpPathSegmentSchema,
13454
13505
  slug: McpPathSegmentSchema
13455
13506
  });
13456
13507
  var GetMcpServerBrandingInputSchema = GetMcpServerInputSchema;
13457
- var GetMcpServerBrandingResponseSchema = z28.object({
13508
+ var GetMcpServerBrandingResponseSchema = z29.object({
13458
13509
  branding: McpServerBrandingSchema,
13459
13510
  inherited: DeploymentThemeSchema.nullable()
13460
13511
  });
@@ -13467,35 +13518,35 @@ var UpdateMcpServerAuthInputSchema = GetMcpServerInputSchema.extend(
13467
13518
  ).superRefine(mcpServerAuthChecks);
13468
13519
  var MCP_EXCHANGE_SECRET_MAX_LENGTH = 4096;
13469
13520
  var SetMcpServerExchangeSecretInputSchema = GetMcpServerInputSchema.extend({
13470
- secret: z28.string().min(1).max(MCP_EXCHANGE_SECRET_MAX_LENGTH).nullable()
13521
+ secret: z29.string().min(1).max(MCP_EXCHANGE_SECRET_MAX_LENGTH).nullable()
13471
13522
  });
13472
13523
  var SetMcpServerIpAllowListInputSchema = GetMcpServerInputSchema.extend({
13473
13524
  ranges: McpIpAllowListSchema
13474
13525
  });
13475
- var ListMcpServersInputSchema = z28.object({
13476
- orgId: z28.string()
13526
+ var ListMcpServersInputSchema = z29.object({
13527
+ orgId: z29.string()
13477
13528
  });
13478
13529
  var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
13479
13530
  var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
13480
13531
  var PauseMcpServerInputSchema = GetMcpServerInputSchema;
13481
13532
  var ResumeMcpServerInputSchema = GetMcpServerInputSchema;
13482
13533
  var RenameMcpServerInputSchema = GetMcpServerInputSchema.extend({ newSlug: McpPathSegmentSchema });
13483
- var GetMcpDeploymentInputSchema = z28.object({
13534
+ var GetMcpDeploymentInputSchema = z29.object({
13484
13535
  orgId: McpPathSegmentSchema,
13485
13536
  slug: McpPathSegmentSchema,
13486
13537
  /** Id of one of the server's attempts (the rows are uuid v7). */
13487
- deploymentId: z28.string().uuid()
13538
+ deploymentId: z29.string().uuid()
13488
13539
  });
13489
- var RollbackMcpServerInputSchema = z28.object({
13540
+ var RollbackMcpServerInputSchema = z29.object({
13490
13541
  orgId: McpPathSegmentSchema,
13491
13542
  slug: McpPathSegmentSchema,
13492
13543
  /** Id of the SUCCEEDED deployment whose payload should serve again. */
13493
- deploymentId: z28.string().min(1).max(64)
13544
+ deploymentId: z29.string().min(1).max(64)
13494
13545
  });
13495
13546
  var GetMcpCustomDomainInputSchema = GetMcpServerInputSchema;
13496
13547
  var RefreshMcpCustomDomainInputSchema = GetMcpServerInputSchema;
13497
13548
  var RemoveMcpCustomDomainInputSchema = GetMcpServerInputSchema;
13498
- var SetMcpCustomDomainInputSchema = z28.object({
13549
+ var SetMcpCustomDomainInputSchema = z29.object({
13499
13550
  orgId: McpPathSegmentSchema,
13500
13551
  slug: McpPathSegmentSchema,
13501
13552
  /**
@@ -13503,52 +13554,52 @@ var SetMcpCustomDomainInputSchema = z28.object({
13503
13554
  * against validateCustomDomain (customDomain.ts) and normalized by FDR;
13504
13555
  * the length cap only bounds what is parsed.
13505
13556
  */
13506
- hostname: z28.string().min(1).max(512)
13557
+ hostname: z29.string().min(1).max(512)
13507
13558
  });
13508
- var GetMcpAnalyticsInputSchema = z28.object({
13559
+ var GetMcpAnalyticsInputSchema = z29.object({
13509
13560
  orgId: McpPathSegmentSchema,
13510
13561
  slug: McpPathSegmentSchema,
13511
13562
  window: McpAnalyticsWindowSchema.default("24h")
13512
13563
  });
13513
- var McpDeploymentGitSchema = z28.object({
13514
- repoUrl: z28.string(),
13515
- branch: z28.string().nullish(),
13516
- commitSha: z28.string().nullish()
13564
+ var McpDeploymentGitSchema = z29.object({
13565
+ repoUrl: z29.string(),
13566
+ branch: z29.string().nullish(),
13567
+ commitSha: z29.string().nullish()
13517
13568
  });
13518
- var McpDeploymentSummarySchema = z28.object({
13519
- id: z28.string(),
13569
+ var McpDeploymentSummarySchema = z29.object({
13570
+ id: z29.string(),
13520
13571
  status: McpDeploymentStatusSchema,
13521
13572
  /** True when this deployment is the one the server currently serves. */
13522
- isActive: z28.boolean(),
13573
+ isActive: z29.boolean(),
13523
13574
  /**
13524
13575
  * Docker image name of the generator that produced this attempt's payload
13525
13576
  * (DeployMcpServerInputSchema.generatorName). Null only on the wire from
13526
13577
  * an FDR that predates the field; the column itself is required.
13527
13578
  */
13528
- generatorName: z28.string().nullish(),
13529
- generatorVersion: z28.string(),
13530
- createdAt: z28.string(),
13531
- createdBy: z28.string().nullish(),
13532
- error: z28.object({ name: z28.string(), message: z28.string() }).nullish(),
13579
+ generatorName: z29.string().nullish(),
13580
+ generatorVersion: z29.string(),
13581
+ createdAt: z29.string(),
13582
+ createdBy: z29.string().nullish(),
13583
+ error: z29.object({ name: z29.string(), message: z29.string() }).nullish(),
13533
13584
  /**
13534
13585
  * Set when this attempt republished an earlier deployment's payload
13535
13586
  * (rollbackServer): the id of that source deployment. Null for attempts
13536
13587
  * that came from a deploy.
13537
13588
  */
13538
- rolledBackFromDeploymentId: z28.string().nullish(),
13589
+ rolledBackFromDeploymentId: z29.string().nullish(),
13539
13590
  /**
13540
13591
  * Headline tool count of this attempt's payload, by the same rule as
13541
13592
  * McpServerCatalogSummarySchema.toolCount. Null when the stored payload
13542
13593
  * predates the current metadata schema.
13543
13594
  */
13544
- toolCount: z28.number().int().nullish(),
13595
+ toolCount: z29.number().int().nullish(),
13545
13596
  /**
13546
13597
  * Version of the Fern CLI that submitted this attempt, when one identified
13547
13598
  * itself (DeployMcpServerInputSchema.cliVersion). Null for attempts that
13548
13599
  * reached the deploy endpoint without it, and for rollbacks, which FDR
13549
13600
  * records on its own behalf.
13550
13601
  */
13551
- cliVersion: z28.string().nullish(),
13602
+ cliVersion: z29.string().nullish(),
13552
13603
  /**
13553
13604
  * The CI run that submitted this attempt, as the CLI described it in the
13554
13605
  * `X-CI-Source` header and FDR sanitized it (the same treatment docs
@@ -13557,7 +13608,7 @@ var McpDeploymentSummarySchema = z28.object({
13557
13608
  * and, like the deployer headers, self-asserted by the caller. Null for
13558
13609
  * local deploys and rollbacks.
13559
13610
  */
13560
- ciSource: z28.record(z28.string(), z28.unknown()).nullish(),
13611
+ ciSource: z29.record(z29.string(), z29.unknown()).nullish(),
13561
13612
  /**
13562
13613
  * The repository this attempt's payload was generated from, as the CLI
13563
13614
  * reported it (DeployMcpServerInputSchema.git). A rollback carries its
@@ -13573,47 +13624,47 @@ var McpDeploymentSummarySchema = z28.object({
13573
13624
  * deployment it restored always do — so it names what a version *is* rather
13574
13625
  * than which row it was. Null when the stored module list does not parse.
13575
13626
  */
13576
- bundleDigest: z28.string().nullish()
13627
+ bundleDigest: z29.string().nullish()
13577
13628
  });
13578
- var McpDeploymentInputFileSchema = z28.object({
13579
- name: z28.string(),
13580
- contentType: z28.string(),
13581
- hash: z28.string(),
13582
- downloadUrl: z28.string()
13629
+ var McpDeploymentInputFileSchema = z29.object({
13630
+ name: z29.string(),
13631
+ contentType: z29.string(),
13632
+ hash: z29.string(),
13633
+ downloadUrl: z29.string()
13583
13634
  });
13584
13635
  var McpDeploymentDetailSchema = McpDeploymentSummarySchema.extend({
13585
13636
  /** Empty when the stored metadata carries no `tools` (generators before provenance). */
13586
- tools: z28.array(McpDeploymentToolSchema),
13587
- skippedTools: z28.array(McpDeploymentSkippedToolSchema),
13637
+ tools: z29.array(McpDeploymentToolSchema),
13638
+ skippedTools: z29.array(McpDeploymentSkippedToolSchema),
13588
13639
  /** The stored toolset membership map, as deployed. */
13589
- toolsets: z28.record(z28.string(), z28.array(z28.string())),
13640
+ toolsets: z29.record(z29.string(), z29.array(z29.string())),
13590
13641
  /** The raw generators.yml `config:` block the CLI sent, or null. Visible to org members. */
13591
- config: z28.unknown().nullable(),
13642
+ config: z29.unknown().nullable(),
13592
13643
  /** Null when the attempt recorded no inputs (older CLIs, rollbacks of such rows). */
13593
- inputs: z28.array(McpDeploymentInputFileSchema).nullable()
13644
+ inputs: z29.array(McpDeploymentInputFileSchema).nullable()
13594
13645
  });
13595
- var McpCustomDomainStatusSchema = z28.enum(["PENDING", "ACTIVE", "FAILED"]);
13596
- var McpCustomDomainRecordSchema = z28.object({
13597
- type: z28.enum(["CNAME", "TXT"]),
13598
- name: z28.string(),
13599
- value: z28.string(),
13646
+ var McpCustomDomainStatusSchema = z29.enum(["PENDING", "ACTIVE", "FAILED"]);
13647
+ var McpCustomDomainRecordSchema = z29.object({
13648
+ type: z29.enum(["CNAME", "TXT"]),
13649
+ name: z29.string(),
13650
+ value: z29.string(),
13600
13651
  /** What the record is for, in a sentence the dashboard can show beside it. */
13601
- purpose: z28.string()
13652
+ purpose: z29.string()
13602
13653
  });
13603
- var McpCustomDomainSchema = z28.object({
13604
- hostname: z28.string(),
13654
+ var McpCustomDomainSchema = z29.object({
13655
+ hostname: z29.string(),
13605
13656
  status: McpCustomDomainStatusSchema,
13606
13657
  /** Records still to add; empty once the domain is ACTIVE. */
13607
- records: z28.array(McpCustomDomainRecordSchema),
13658
+ records: z29.array(McpCustomDomainRecordSchema),
13608
13659
  /** Why Cloudflare could not verify the domain or issue its certificate, when it said. */
13609
- errors: z28.array(z28.string()),
13610
- createdAt: z28.string(),
13611
- updatedAt: z28.string()
13612
- });
13613
- var McpServerSchema = z28.object({
13614
- id: z28.string(),
13615
- orgId: z28.string(),
13616
- slug: z28.string(),
13660
+ errors: z29.array(z29.string()),
13661
+ createdAt: z29.string(),
13662
+ updatedAt: z29.string()
13663
+ });
13664
+ var McpServerSchema = z29.object({
13665
+ id: z29.string(),
13666
+ orgId: z29.string(),
13667
+ slug: z29.string(),
13617
13668
  /** Per-server custom branding; empty when no values are set. */
13618
13669
  branding: McpServerBrandingSchema,
13619
13670
  /**
@@ -13627,9 +13678,9 @@ var McpServerSchema = z28.object({
13627
13678
  * setServerIpAllowList. Empty means open. Kept across deploys and
13628
13679
  * rollbacks. Absent only on the wire from an FDR that predates the field.
13629
13680
  */
13630
- ipAllowList: z28.array(z28.string()).optional(),
13681
+ ipAllowList: z29.array(z29.string()).optional(),
13631
13682
  /** The server is serving iff this is set; it names the serving deployment. */
13632
- activeDeploymentId: z28.string().nullish(),
13683
+ activeDeploymentId: z29.string().nullish(),
13633
13684
  /** Most recent publication attempt — how the last deploy went. */
13634
13685
  latestDeployment: McpDeploymentSummarySchema.nullish(),
13635
13686
  /**
@@ -13638,7 +13689,7 @@ var McpServerSchema = z28.object({
13638
13689
  * (KV_KEY_PREFIX_PAUSED in kv.ts). Independent of activeDeploymentId: a
13639
13690
  * paused server keeps its serving deployment and resumes exactly there.
13640
13691
  */
13641
- pausedAt: z28.string().nullish(),
13692
+ pausedAt: z29.string().nullish(),
13642
13693
  /**
13643
13694
  * What the server offers, derived from the ACTIVE deployment's stored
13644
13695
  * metadata (tools, toolsets, auth, configuration). Null when nothing is
@@ -13652,14 +13703,14 @@ var McpServerSchema = z28.object({
13652
13703
  * a UI shows both. Only an ACTIVE domain serves: read `customDomainStatus`
13653
13704
  * to tell a pending one from a live one.
13654
13705
  */
13655
- customDomain: z28.string().nullish(),
13706
+ customDomain: z29.string().nullish(),
13656
13707
  customDomainStatus: McpCustomDomainStatusSchema.nullish(),
13657
- url: z28.string().url(),
13658
- createdAt: z28.string(),
13659
- updatedAt: z28.string()
13708
+ url: z29.string().url(),
13709
+ createdAt: z29.string(),
13710
+ updatedAt: z29.string()
13660
13711
  });
13661
- var ListMcpServersResponseSchema = z28.object({ servers: z28.array(McpServerSchema) });
13662
- var ListMcpDeploymentsResponseSchema = z28.object({ deployments: z28.array(McpDeploymentSummarySchema) });
13712
+ var ListMcpServersResponseSchema = z29.object({ servers: z29.array(McpServerSchema) });
13713
+ var ListMcpDeploymentsResponseSchema = z29.object({ deployments: z29.array(McpDeploymentSummarySchema) });
13663
13714
  var mcpHostingContract = {
13664
13715
  deploy: import_contract31.oc.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
13665
13716
  getServer: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
@@ -13747,7 +13798,19 @@ var mcpHostingContract = {
13747
13798
  * Analytics Engine by FDR (the tenant filter is applied server-side, so no
13748
13799
  * Cloudflare credential reaches the browser). See analytics.ts.
13749
13800
  */
13750
- getAnalytics: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}/analytics" }).input(GetMcpAnalyticsInputSchema).output(McpAnalyticsSchema)
13801
+ getAnalytics: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}/analytics" }).input(GetMcpAnalyticsInputSchema).output(McpAnalyticsSchema),
13802
+ /**
13803
+ * The org's exact tool-call count for a month against its allowance
13804
+ * (usage.ts). Any member. NOT_IMPLEMENTED when FDR has no usage read
13805
+ * token for the dispatcher.
13806
+ */
13807
+ getUsage: import_contract31.oc.route({ method: "GET", path: "/usage" }).input(GetMcpUsageInputSchema).output(McpOrgUsageSchema),
13808
+ /**
13809
+ * Set the org's monthly allowance (sales raising a limit or approving an
13810
+ * org to go over). Fern staff (super-users) only. Applies at the
13811
+ * dispatcher within KV's propagation time plus its one-minute cache.
13812
+ */
13813
+ setUsageAllowance: import_contract31.oc.route({ method: "PUT", path: "/usage/allowance" }).input(SetMcpUsageAllowanceInputSchema).output(McpOrgUsageSchema)
13751
13814
  };
13752
13815
 
13753
13816
  // src/orpc-client/mcp-hosting/client.ts
@@ -13769,87 +13832,87 @@ var import_fetch18 = require("@orpc/openapi-client/fetch");
13769
13832
 
13770
13833
  // src/orpc-client/pdf-export/contract.ts
13771
13834
  var import_contract33 = require("@orpc/contract");
13772
- var z29 = __toESM(require("zod"), 1);
13773
- var PdfExportScopeSchema = z29.object({
13774
- pageSlugs: z29.array(z29.string())
13775
- });
13776
- var PdfExportOptionsV1Schema = z29.object({
13777
- coverTitle: z29.string().nullish(),
13778
- coverSubtitle: z29.string().nullish(),
13779
- hideCoverFooter: z29.boolean().nullish(),
13780
- headerLeftTemplate: z29.string().nullish(),
13781
- headerRightTemplate: z29.string().nullish(),
13782
- footerLeftTemplate: z29.string().nullish(),
13783
- footerRightTemplate: z29.string().nullish(),
13835
+ var z30 = __toESM(require("zod"), 1);
13836
+ var PdfExportScopeSchema = z30.object({
13837
+ pageSlugs: z30.array(z30.string())
13838
+ });
13839
+ var PdfExportOptionsV1Schema = z30.object({
13840
+ coverTitle: z30.string().nullish(),
13841
+ coverSubtitle: z30.string().nullish(),
13842
+ hideCoverFooter: z30.boolean().nullish(),
13843
+ headerLeftTemplate: z30.string().nullish(),
13844
+ headerRightTemplate: z30.string().nullish(),
13845
+ footerLeftTemplate: z30.string().nullish(),
13846
+ footerRightTemplate: z30.string().nullish(),
13784
13847
  scope: PdfExportScopeSchema.nullish(),
13785
- hideCover: z29.boolean().nullish(),
13786
- hideToc: z29.boolean().nullish()
13848
+ hideCover: z30.boolean().nullish(),
13849
+ hideToc: z30.boolean().nullish()
13787
13850
  });
13788
- var PdfExportOptionsSchema = z29.discriminatedUnion("version", [
13789
- z29.object({ version: z29.literal("v1") }).merge(PdfExportOptionsV1Schema)
13851
+ var PdfExportOptionsSchema = z30.discriminatedUnion("version", [
13852
+ z30.object({ version: z30.literal("v1") }).merge(PdfExportOptionsV1Schema)
13790
13853
  ]);
13791
- var PdfExportTaskStatusSchema = z29.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
13792
- var PdfExportFormatSchema = z29.enum(["pdf", "html", "md"]);
13793
- var PdfExportTaskSchema = z29.object({
13794
- id: z29.string(),
13795
- orgId: z29.string(),
13796
- docsUrl: z29.string(),
13797
- productId: z29.string().nullish(),
13798
- versionId: z29.string().nullish(),
13799
- requesterName: z29.string().nullish(),
13800
- notifyEmails: z29.array(z29.string()).nullish(),
13854
+ var PdfExportTaskStatusSchema = z30.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
13855
+ var PdfExportFormatSchema = z30.enum(["pdf", "html", "md"]);
13856
+ var PdfExportTaskSchema = z30.object({
13857
+ id: z30.string(),
13858
+ orgId: z30.string(),
13859
+ docsUrl: z30.string(),
13860
+ productId: z30.string().nullish(),
13861
+ versionId: z30.string().nullish(),
13862
+ requesterName: z30.string().nullish(),
13863
+ notifyEmails: z30.array(z30.string()).nullish(),
13801
13864
  status: PdfExportTaskStatusSchema,
13802
13865
  format: PdfExportFormatSchema.nullish(),
13803
13866
  options: PdfExportOptionsSchema.nullish(),
13804
- createdAt: z29.string(),
13805
- startedAt: z29.string().nullish(),
13806
- completedAt: z29.string().nullish(),
13807
- fileName: z29.string().nullish(),
13808
- sizeBytes: z29.number().nullish(),
13809
- errorMessage: z29.string().nullish()
13810
- });
13811
- var ListPdfExportTasksResponseSchema = z29.object({
13812
- tasks: z29.array(PdfExportTaskSchema)
13813
- });
13814
- var PdfExportDownloadResponseSchema = z29.object({
13815
- downloadUrl: z29.string(),
13816
- fileName: z29.string(),
13817
- sizeBytes: z29.number()
13818
- });
13819
- var CreatePdfExportTaskInputSchema = z29.object({
13820
- orgId: z29.string(),
13821
- docsUrl: z29.string(),
13822
- productId: z29.string().nullish(),
13823
- versionId: z29.string().nullish(),
13824
- requesterName: z29.string().nullish(),
13867
+ createdAt: z30.string(),
13868
+ startedAt: z30.string().nullish(),
13869
+ completedAt: z30.string().nullish(),
13870
+ fileName: z30.string().nullish(),
13871
+ sizeBytes: z30.number().nullish(),
13872
+ errorMessage: z30.string().nullish()
13873
+ });
13874
+ var ListPdfExportTasksResponseSchema = z30.object({
13875
+ tasks: z30.array(PdfExportTaskSchema)
13876
+ });
13877
+ var PdfExportDownloadResponseSchema = z30.object({
13878
+ downloadUrl: z30.string(),
13879
+ fileName: z30.string(),
13880
+ sizeBytes: z30.number()
13881
+ });
13882
+ var CreatePdfExportTaskInputSchema = z30.object({
13883
+ orgId: z30.string(),
13884
+ docsUrl: z30.string(),
13885
+ productId: z30.string().nullish(),
13886
+ versionId: z30.string().nullish(),
13887
+ requesterName: z30.string().nullish(),
13825
13888
  format: PdfExportFormatSchema.nullish(),
13826
13889
  options: PdfExportOptionsSchema.nullish()
13827
13890
  });
13828
- var ListPdfExportTasksInputSchema = z29.object({
13829
- orgId: z29.string(),
13830
- docsUrl: z29.string(),
13831
- limit: z29.coerce.number().nullish()
13891
+ var ListPdfExportTasksInputSchema = z30.object({
13892
+ orgId: z30.string(),
13893
+ docsUrl: z30.string(),
13894
+ limit: z30.coerce.number().nullish()
13832
13895
  });
13833
- var GetPdfExportTaskInputSchema = z29.object({
13834
- taskId: z29.string()
13896
+ var GetPdfExportTaskInputSchema = z30.object({
13897
+ taskId: z30.string()
13835
13898
  });
13836
- var UpdatePdfExportTaskInputSchema = z29.object({
13837
- taskId: z29.string(),
13899
+ var UpdatePdfExportTaskInputSchema = z30.object({
13900
+ taskId: z30.string(),
13838
13901
  status: PdfExportTaskStatusSchema,
13839
- startedAt: z29.string().nullish(),
13840
- completedAt: z29.string().nullish(),
13841
- s3Key: z29.string().nullish(),
13842
- fileName: z29.string().nullish(),
13843
- sizeBytes: z29.number().nullish(),
13844
- errorMessage: z29.string().nullish()
13902
+ startedAt: z30.string().nullish(),
13903
+ completedAt: z30.string().nullish(),
13904
+ s3Key: z30.string().nullish(),
13905
+ fileName: z30.string().nullish(),
13906
+ sizeBytes: z30.number().nullish(),
13907
+ errorMessage: z30.string().nullish()
13845
13908
  });
13846
- var GetPdfExportDownloadUrlInputSchema = z29.object({
13847
- taskId: z29.string()
13909
+ var GetPdfExportDownloadUrlInputSchema = z30.object({
13910
+ taskId: z30.string()
13848
13911
  });
13849
- var CleanupPdfExportsResponseSchema = z29.object({
13850
- expiredTasksDeleted: z29.number(),
13851
- s3ObjectsDeleted: z29.number(),
13852
- timedOutTasksFailed: z29.number()
13912
+ var CleanupPdfExportsResponseSchema = z30.object({
13913
+ expiredTasksDeleted: z30.number(),
13914
+ s3ObjectsDeleted: z30.number(),
13915
+ timedOutTasksFailed: z30.number()
13853
13916
  });
13854
13917
  var pdfExportContract = {
13855
13918
  createTask: import_contract33.oc.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
@@ -13882,8 +13945,8 @@ var import_fetch19 = require("@orpc/openapi-client/fetch");
13882
13945
 
13883
13946
  // src/orpc-client/sdks/contract.ts
13884
13947
  var import_contract35 = require("@orpc/contract");
13885
- var z30 = __toESM(require("zod"), 1);
13886
- var LanguageEnumSchema = z30.enum([
13948
+ var z31 = __toESM(require("zod"), 1);
13949
+ var LanguageEnumSchema = z31.enum([
13887
13950
  "Go",
13888
13951
  "TypeScript",
13889
13952
  "Java",
@@ -13894,14 +13957,14 @@ var LanguageEnumSchema = z30.enum([
13894
13957
  "Swift",
13895
13958
  "Rust"
13896
13959
  ]);
13897
- var VersionBumpEnumSchema = z30.enum(["MAJOR", "MINOR", "PATCH"]);
13898
- var ComputeSemanticVersionInputSchema = z30.object({
13899
- package: z30.string(),
13960
+ var VersionBumpEnumSchema = z31.enum(["MAJOR", "MINOR", "PATCH"]);
13961
+ var ComputeSemanticVersionInputSchema = z31.object({
13962
+ package: z31.string(),
13900
13963
  language: LanguageEnumSchema,
13901
- githubRepository: z30.string().nullish()
13964
+ githubRepository: z31.string().nullish()
13902
13965
  });
13903
- var ComputeSemanticVersionOutputSchema = z30.object({
13904
- version: z30.string(),
13966
+ var ComputeSemanticVersionOutputSchema = z31.object({
13967
+ version: z31.string(),
13905
13968
  bump: VersionBumpEnumSchema
13906
13969
  });
13907
13970
  var sdksContract = {
@@ -13927,32 +13990,32 @@ var import_fetch20 = require("@orpc/openapi-client/fetch");
13927
13990
 
13928
13991
  // src/orpc-client/slugs/contract.ts
13929
13992
  var import_contract37 = require("@orpc/contract");
13930
- var z31 = __toESM(require("zod"), 1);
13931
- var SlugsInputSchema = z31.object({
13932
- domain: z31.string(),
13933
- basepath: z31.string().optional().default("")
13934
- });
13935
- var SlugEntrySchema = z31.object({
13936
- orgId: z31.string(),
13937
- domain: z31.string(),
13938
- basepath: z31.string(),
13939
- slug: z31.string(),
13940
- lastUpdated: z31.string()
13941
- });
13942
- var MarkdownEntrySchema = z31.object({
13943
- orgId: z31.string(),
13944
- domain: z31.string(),
13945
- basepath: z31.string(),
13946
- pageId: z31.string(),
13947
- slug: z31.string(),
13948
- hash: z31.string(),
13949
- lastUpdated: z31.string()
13950
- });
13951
- var GetSlugEntriesResponseSchema = z31.object({
13952
- entries: z31.array(SlugEntrySchema)
13953
- });
13954
- var GetMarkdownEntriesResponseSchema = z31.object({
13955
- entries: z31.array(MarkdownEntrySchema)
13993
+ var z32 = __toESM(require("zod"), 1);
13994
+ var SlugsInputSchema = z32.object({
13995
+ domain: z32.string(),
13996
+ basepath: z32.string().optional().default("")
13997
+ });
13998
+ var SlugEntrySchema = z32.object({
13999
+ orgId: z32.string(),
14000
+ domain: z32.string(),
14001
+ basepath: z32.string(),
14002
+ slug: z32.string(),
14003
+ lastUpdated: z32.string()
14004
+ });
14005
+ var MarkdownEntrySchema = z32.object({
14006
+ orgId: z32.string(),
14007
+ domain: z32.string(),
14008
+ basepath: z32.string(),
14009
+ pageId: z32.string(),
14010
+ slug: z32.string(),
14011
+ hash: z32.string(),
14012
+ lastUpdated: z32.string()
14013
+ });
14014
+ var GetSlugEntriesResponseSchema = z32.object({
14015
+ entries: z32.array(SlugEntrySchema)
14016
+ });
14017
+ var GetMarkdownEntriesResponseSchema = z32.object({
14018
+ entries: z32.array(MarkdownEntrySchema)
13956
14019
  });
13957
14020
  var slugsContract = {
13958
14021
  getSlugEntries: import_contract37.oc.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
@@ -13985,102 +14048,102 @@ __export(contract_exports3, {
13985
14048
  snippetsFactoryContract: () => snippetsFactoryContract
13986
14049
  });
13987
14050
  var import_contract39 = require("@orpc/contract");
13988
- var z32 = __toESM(require("zod"), 1);
13989
- var TypeScriptSdkSchema = z32.object({ package: z32.string(), version: z32.string() });
13990
- var PythonSdkSchema = z32.object({ package: z32.string(), version: z32.string() });
13991
- var GoSdkSchema = z32.object({ githubRepo: z32.string(), version: z32.string() });
13992
- var RubySdkSchema = z32.object({ gem: z32.string(), version: z32.string() });
13993
- var JavaSdkSchema = z32.object({ group: z32.string(), artifact: z32.string(), version: z32.string() });
13994
- var CsharpSdkSchema = z32.object({ package: z32.string(), version: z32.string() });
13995
- var BaseSnippetCreateSchema = z32.object({
14051
+ var z33 = __toESM(require("zod"), 1);
14052
+ var TypeScriptSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
14053
+ var PythonSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
14054
+ var GoSdkSchema = z33.object({ githubRepo: z33.string(), version: z33.string() });
14055
+ var RubySdkSchema = z33.object({ gem: z33.string(), version: z33.string() });
14056
+ var JavaSdkSchema = z33.object({ group: z33.string(), artifact: z33.string(), version: z33.string() });
14057
+ var CsharpSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
14058
+ var BaseSnippetCreateSchema = z33.object({
13996
14059
  endpoint: EndpointIdentifierSchema,
13997
- exampleIdentifier: z32.string().nullish()
14060
+ exampleIdentifier: z33.string().nullish()
13998
14061
  });
13999
- var SdkSnippetsCreateSchema = z32.discriminatedUnion("type", [
14000
- z32.object({
14001
- type: z32.literal("typescript"),
14062
+ var SdkSnippetsCreateSchema = z33.discriminatedUnion("type", [
14063
+ z33.object({
14064
+ type: z33.literal("typescript"),
14002
14065
  sdk: TypeScriptSdkSchema,
14003
- snippets: z32.array(BaseSnippetCreateSchema.extend({ snippet: z32.object({ client: z32.string() }) }))
14066
+ snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
14004
14067
  }),
14005
- z32.object({
14006
- type: z32.literal("python"),
14068
+ z33.object({
14069
+ type: z33.literal("python"),
14007
14070
  sdk: PythonSdkSchema,
14008
- snippets: z32.array(
14071
+ snippets: z33.array(
14009
14072
  BaseSnippetCreateSchema.extend({
14010
- snippet: z32.object({ async_client: z32.string(), sync_client: z32.string() })
14073
+ snippet: z33.object({ async_client: z33.string(), sync_client: z33.string() })
14011
14074
  })
14012
14075
  )
14013
14076
  }),
14014
- z32.object({
14015
- type: z32.literal("go"),
14077
+ z33.object({
14078
+ type: z33.literal("go"),
14016
14079
  sdk: GoSdkSchema,
14017
- snippets: z32.array(BaseSnippetCreateSchema.extend({ snippet: z32.object({ client: z32.string() }) }))
14080
+ snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
14018
14081
  }),
14019
- z32.object({
14020
- type: z32.literal("java"),
14082
+ z33.object({
14083
+ type: z33.literal("java"),
14021
14084
  sdk: JavaSdkSchema,
14022
- snippets: z32.array(
14085
+ snippets: z33.array(
14023
14086
  BaseSnippetCreateSchema.extend({
14024
- snippet: z32.object({ async_client: z32.string(), sync_client: z32.string() })
14087
+ snippet: z33.object({ async_client: z33.string(), sync_client: z33.string() })
14025
14088
  })
14026
14089
  )
14027
14090
  }),
14028
- z32.object({
14029
- type: z32.literal("ruby"),
14091
+ z33.object({
14092
+ type: z33.literal("ruby"),
14030
14093
  sdk: RubySdkSchema,
14031
- snippets: z32.array(BaseSnippetCreateSchema.extend({ snippet: z32.object({ client: z32.string() }) }))
14094
+ snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
14032
14095
  }),
14033
- z32.object({
14034
- type: z32.literal("csharp"),
14096
+ z33.object({
14097
+ type: z33.literal("csharp"),
14035
14098
  sdk: CsharpSdkSchema,
14036
- snippets: z32.array(BaseSnippetCreateSchema.extend({ snippet: z32.object({ client: z32.string() }) }))
14099
+ snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
14037
14100
  })
14038
14101
  ]);
14039
14102
  var snippetsFactoryContract = {
14040
14103
  createSnippetsForSdk: import_contract39.oc.route({ method: "POST", path: "/create" }).input(
14041
- z32.object({
14042
- orgId: z32.string(),
14043
- apiId: z32.string(),
14104
+ z33.object({
14105
+ orgId: z33.string(),
14106
+ apiId: z33.string(),
14044
14107
  snippets: SdkSnippetsCreateSchema
14045
14108
  })
14046
14109
  )
14047
14110
  };
14048
- var ParameterPayloadSchema = z32.object({
14049
- name: z32.string(),
14050
- value: z32.unknown()
14111
+ var ParameterPayloadSchema = z33.object({
14112
+ name: z33.string(),
14113
+ value: z33.unknown()
14051
14114
  });
14052
- var AuthPayloadSchema = z32.discriminatedUnion("type", [
14053
- z32.object({ type: z32.literal("bearer"), token: z32.string() }),
14054
- z32.object({ type: z32.literal("basic"), username: z32.string(), password: z32.string() })
14115
+ var AuthPayloadSchema = z33.discriminatedUnion("type", [
14116
+ z33.object({ type: z33.literal("bearer"), token: z33.string() }),
14117
+ z33.object({ type: z33.literal("basic"), username: z33.string(), password: z33.string() })
14055
14118
  ]);
14056
- var CustomSnippetPayloadSchema = z32.object({
14057
- headers: z32.array(ParameterPayloadSchema).nullish(),
14058
- pathParameters: z32.array(ParameterPayloadSchema).nullish(),
14059
- queryParameters: z32.array(ParameterPayloadSchema).nullish(),
14060
- requestBody: z32.unknown().nullish(),
14119
+ var CustomSnippetPayloadSchema = z33.object({
14120
+ headers: z33.array(ParameterPayloadSchema).nullish(),
14121
+ pathParameters: z33.array(ParameterPayloadSchema).nullish(),
14122
+ queryParameters: z33.array(ParameterPayloadSchema).nullish(),
14123
+ requestBody: z33.unknown().nullish(),
14061
14124
  auth: AuthPayloadSchema.nullish()
14062
14125
  });
14063
14126
  var snippetsContract = {
14064
14127
  get: import_contract39.oc.route({ method: "POST", path: "/" }).input(
14065
- z32.object({
14066
- orgId: z32.string().nullish(),
14067
- apiId: z32.string().nullish(),
14068
- sdks: z32.array(SdkRequestSchema).nullish(),
14128
+ z33.object({
14129
+ orgId: z33.string().nullish(),
14130
+ apiId: z33.string().nullish(),
14131
+ sdks: z33.array(SdkRequestSchema).nullish(),
14069
14132
  endpoint: EndpointIdentifierSchema,
14070
- exampleIdentifier: z32.string().nullish(),
14133
+ exampleIdentifier: z33.string().nullish(),
14071
14134
  payload: CustomSnippetPayloadSchema.nullish()
14072
14135
  })
14073
- ).output(z32.array(z32.unknown())),
14136
+ ).output(z33.array(z33.unknown())),
14074
14137
  load: import_contract39.oc.route({ method: "POST", path: "/load" }).input(
14075
- z32.object({
14076
- orgId: z32.string().nullish(),
14077
- apiId: z32.string().nullish(),
14078
- sdks: z32.array(SdkRequestSchema).nullish()
14138
+ z33.object({
14139
+ orgId: z33.string().nullish(),
14140
+ apiId: z33.string().nullish(),
14141
+ sdks: z33.array(SdkRequestSchema).nullish()
14079
14142
  })
14080
14143
  ).output(
14081
- z32.object({
14082
- next: z32.number().nullish(),
14083
- snippets: z32.record(z32.string(), z32.unknown())
14144
+ z33.object({
14145
+ next: z33.number().nullish(),
14146
+ snippets: z33.record(z33.string(), z33.unknown())
14084
14147
  })
14085
14148
  )
14086
14149
  };
@@ -14115,44 +14178,44 @@ var import_fetch22 = require("@orpc/openapi-client/fetch");
14115
14178
 
14116
14179
  // src/orpc-client/templates/contract.ts
14117
14180
  var import_contract41 = require("@orpc/contract");
14118
- var z33 = __toESM(require("zod"), 1);
14119
- var SnippetRegistryEntrySchema = z33.object({
14181
+ var z34 = __toESM(require("zod"), 1);
14182
+ var SnippetRegistryEntrySchema = z34.object({
14120
14183
  sdk: SdkSchema,
14121
- endpointId: z33.object({
14122
- path: z33.string(),
14184
+ endpointId: z34.object({
14185
+ path: z34.string(),
14123
14186
  method: HttpMethodSchema,
14124
- identifierOverride: z33.string().nullish()
14187
+ identifierOverride: z34.string().nullish()
14125
14188
  }),
14126
- snippetTemplate: z33.object({
14127
- type: z33.literal("v1"),
14128
- functionInvocation: z33.unknown(),
14129
- clientInstantiation: z33.string()
14189
+ snippetTemplate: z34.object({
14190
+ type: z34.literal("v1"),
14191
+ functionInvocation: z34.unknown(),
14192
+ clientInstantiation: z34.string()
14130
14193
  }),
14131
- additionalTemplates: z33.record(z33.string(), z33.unknown()).nullish()
14194
+ additionalTemplates: z34.record(z34.string(), z34.unknown()).nullish()
14132
14195
  });
14133
- var RegisterInputSchema = z33.object({
14134
- orgId: z33.string(),
14135
- apiId: z33.string(),
14136
- apiDefinitionId: z33.string(),
14196
+ var RegisterInputSchema = z34.object({
14197
+ orgId: z34.string(),
14198
+ apiId: z34.string(),
14199
+ apiDefinitionId: z34.string(),
14137
14200
  snippet: SnippetRegistryEntrySchema
14138
14201
  });
14139
- var RegisterBatchInputSchema = z33.object({
14140
- orgId: z33.string(),
14141
- apiId: z33.string(),
14142
- apiDefinitionId: z33.string(),
14143
- snippets: z33.array(SnippetRegistryEntrySchema)
14202
+ var RegisterBatchInputSchema = z34.object({
14203
+ orgId: z34.string(),
14204
+ apiId: z34.string(),
14205
+ apiDefinitionId: z34.string(),
14206
+ snippets: z34.array(SnippetRegistryEntrySchema)
14144
14207
  });
14145
- var GetInputSchema = z33.object({
14146
- orgId: z33.string(),
14147
- apiId: z33.string(),
14208
+ var GetInputSchema = z34.object({
14209
+ orgId: z34.string(),
14210
+ apiId: z34.string(),
14148
14211
  sdk: SdkSchema,
14149
- endpointId: z33.object({
14150
- path: z33.string(),
14212
+ endpointId: z34.object({
14213
+ path: z34.string(),
14151
14214
  method: HttpMethodSchema,
14152
- identifierOverride: z33.string().nullish()
14215
+ identifierOverride: z34.string().nullish()
14153
14216
  })
14154
14217
  });
14155
- var EndpointSnippetTemplateSchema = z33.record(z33.string(), z33.unknown());
14218
+ var EndpointSnippetTemplateSchema = z34.record(z34.string(), z34.unknown());
14156
14219
  var templatesContract = {
14157
14220
  register: import_contract41.oc.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
14158
14221
  registerBatch: import_contract41.oc.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
@@ -14179,18 +14242,18 @@ var import_fetch23 = require("@orpc/openapi-client/fetch");
14179
14242
 
14180
14243
  // src/orpc-client/tokens/contract.ts
14181
14244
  var import_contract43 = require("@orpc/contract");
14182
- var z34 = __toESM(require("zod"), 1);
14183
- var GenerateTokenInputSchema = z34.object({
14184
- orgId: z34.string(),
14185
- scope: z34.string()
14245
+ var z35 = __toESM(require("zod"), 1);
14246
+ var GenerateTokenInputSchema = z35.object({
14247
+ orgId: z35.string(),
14248
+ scope: z35.string()
14186
14249
  });
14187
- var RevokeTokenInputSchema = z34.object({
14188
- orgId: z34.string(),
14189
- tokenId: z34.string()
14250
+ var RevokeTokenInputSchema = z35.object({
14251
+ orgId: z35.string(),
14252
+ tokenId: z35.string()
14190
14253
  });
14191
- var GenerateTokenOutputSchema = z34.object({
14192
- token: z34.string(),
14193
- id: z34.string()
14254
+ var GenerateTokenOutputSchema = z35.object({
14255
+ token: z35.string(),
14256
+ id: z35.string()
14194
14257
  });
14195
14258
  var tokensContract = {
14196
14259
  generate: import_contract43.oc.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
@@ -14473,85 +14536,85 @@ __export(APIV1Db_exports, {
14473
14536
  });
14474
14537
 
14475
14538
  // src/orpc-client/api/contract-db.ts
14476
- var z35 = __toESM(require("zod"), 1);
14477
- var EndpointSnippetTemplatesSchema = z35.object({
14478
- typescript: z35.unknown().nullish(),
14479
- python: z35.unknown().nullish()
14539
+ var z36 = __toESM(require("zod"), 1);
14540
+ var EndpointSnippetTemplatesSchema = z36.object({
14541
+ typescript: z36.unknown().nullish(),
14542
+ python: z36.unknown().nullish()
14480
14543
  });
14481
- var DbHttpRequestSchema = z35.object({
14482
- description: z35.string().nullish(),
14483
- contentType: z35.string().nullish(),
14544
+ var DbHttpRequestSchema = z36.object({
14545
+ description: z36.string().nullish(),
14546
+ contentType: z36.string().nullish(),
14484
14547
  type: RegisterHttpRequestBodyShapeSchema
14485
14548
  });
14486
- var DbHttpRequestsV2Schema = z35.object({
14487
- requests: z35.array(DbHttpRequestSchema).nullish()
14549
+ var DbHttpRequestsV2Schema = z36.object({
14550
+ requests: z36.array(DbHttpRequestSchema).nullish()
14488
14551
  });
14489
- var DbEndpointDefinitionSchema = z35.object({
14490
- description: z35.string().nullish(),
14491
- subtitle: z35.string().nullish(),
14552
+ var DbEndpointDefinitionSchema = z36.object({
14553
+ description: z36.string().nullish(),
14554
+ subtitle: z36.string().nullish(),
14492
14555
  availability: AvailabilitySchema.nullish(),
14493
- authed: z35.boolean().nullish(),
14494
- authV2: z35.array(AuthSchemeIdSchema).nullish(),
14495
- multiAuth: z35.array(MultipleAuthTypeSchema).nullish(),
14556
+ authed: z36.boolean().nullish(),
14557
+ authV2: z36.array(AuthSchemeIdSchema).nullish(),
14558
+ multiAuth: z36.array(MultipleAuthTypeSchema).nullish(),
14496
14559
  defaultEnvironment: EnvironmentIdSchema.nullish(),
14497
- environments: z35.array(EnvironmentSchema).nullish(),
14560
+ environments: z36.array(EnvironmentSchema).nullish(),
14498
14561
  method: HttpMethodSchema,
14499
14562
  id: EndpointIdSchema,
14500
- originalEndpointId: z35.string().nullish(),
14501
- urlSlug: z35.string(),
14502
- migratedFromUrlSlugs: z35.array(z35.string()).nullish(),
14503
- name: z35.string().nullish(),
14563
+ originalEndpointId: z36.string().nullish(),
14564
+ urlSlug: z36.string(),
14565
+ migratedFromUrlSlugs: z36.array(z36.string()).nullish(),
14566
+ name: z36.string().nullish(),
14504
14567
  path: EndpointPathSchema,
14505
- queryParameters: z35.array(QueryParameterSchema),
14506
- headers: z35.array(HeaderSchema),
14507
- responseHeaders: z35.array(HeaderSchema).nullish(),
14568
+ queryParameters: z36.array(QueryParameterSchema),
14569
+ headers: z36.array(HeaderSchema),
14570
+ responseHeaders: z36.array(HeaderSchema).nullish(),
14508
14571
  request: DbHttpRequestSchema.nullish(),
14509
14572
  requestsV2: DbHttpRequestsV2Schema.nullish(),
14510
14573
  response: RegisterHttpResponseSchema.nullish(),
14511
14574
  responsesV2: RegisterHttpResponsesV2Schema.nullish(),
14512
- errors: z35.array(ErrorDeclarationSchema).nullish(),
14513
- errorsV2: z35.array(RegisterErrorDeclarationV2Schema).nullish(),
14514
- examples: z35.array(RegisterExampleEndpointCallSchema),
14575
+ errors: z36.array(ErrorDeclarationSchema).nullish(),
14576
+ errorsV2: z36.array(RegisterErrorDeclarationV2Schema).nullish(),
14577
+ examples: z36.array(RegisterExampleEndpointCallSchema),
14515
14578
  snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
14516
14579
  protocol: ProtocolSchema.nullish(),
14517
- includeInApiExplorer: z35.boolean().nullish()
14518
- });
14519
- var DbApiDefinitionPackageSchema = z35.object({
14520
- endpoints: z35.array(DbEndpointDefinitionSchema),
14521
- websockets: z35.array(RegisterWebSocketChannelSchema).nullish(),
14522
- webhooks: z35.array(RegisterWebhookDefinitionSchema).nullish(),
14523
- graphqlOperations: z35.array(GraphQlOperationSchema).nullish(),
14524
- types: z35.array(TypeIdSchema),
14525
- subpackages: z35.array(SubpackageIdSchema),
14580
+ includeInApiExplorer: z36.boolean().nullish()
14581
+ });
14582
+ var DbApiDefinitionPackageSchema = z36.object({
14583
+ endpoints: z36.array(DbEndpointDefinitionSchema),
14584
+ websockets: z36.array(RegisterWebSocketChannelSchema).nullish(),
14585
+ webhooks: z36.array(RegisterWebhookDefinitionSchema).nullish(),
14586
+ graphqlOperations: z36.array(GraphQlOperationSchema).nullish(),
14587
+ types: z36.array(TypeIdSchema),
14588
+ subpackages: z36.array(SubpackageIdSchema),
14526
14589
  pointsTo: SubpackageIdSchema.nullish()
14527
14590
  });
14528
- var DbApiDefinitionSubpackageSchema = z35.object({
14591
+ var DbApiDefinitionSubpackageSchema = z36.object({
14529
14592
  ...DbApiDefinitionPackageSchema.shape,
14530
- description: z35.string().nullish(),
14593
+ description: z36.string().nullish(),
14531
14594
  parent: SubpackageIdSchema.nullish(),
14532
14595
  subpackageId: SubpackageIdSchema,
14533
- name: z35.string(),
14534
- urlSlug: z35.string(),
14535
- displayName: z35.string().nullish()
14596
+ name: z36.string(),
14597
+ urlSlug: z36.string(),
14598
+ displayName: z36.string().nullish()
14536
14599
  });
14537
- var DbApiDefinitionSchema = z35.object({
14600
+ var DbApiDefinitionSchema = z36.object({
14538
14601
  id: ApiDefinitionIdSchema,
14539
- apiName: z35.string().nullish(),
14540
- specVersion: z35.string().nullish(),
14602
+ apiName: z36.string().nullish(),
14603
+ specVersion: z36.string().nullish(),
14541
14604
  rootPackage: DbApiDefinitionPackageSchema,
14542
- types: z35.record(TypeIdSchema, RegisterTypeDefinitionSchema),
14543
- subpackages: z35.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
14605
+ types: z36.record(TypeIdSchema, RegisterTypeDefinitionSchema),
14606
+ subpackages: z36.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
14544
14607
  snippetsConfiguration: SnippetsConfigSchema.nullish(),
14545
14608
  auth: ApiAuthSchema.nullish(),
14546
- authSchemes: z35.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
14547
- hasMultipleBaseUrls: z35.boolean(),
14609
+ authSchemes: z36.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
14610
+ hasMultipleBaseUrls: z36.boolean(),
14548
14611
  navigation: ApiNavigationConfigRootSchema.nullish(),
14549
- globalHeaders: z35.array(HeaderSchema).nullish()
14612
+ globalHeaders: z36.array(HeaderSchema).nullish()
14550
14613
  });
14551
- var DbEndpointWithContextSchema = z35.object({
14614
+ var DbEndpointWithContextSchema = z36.object({
14552
14615
  endpoint: DbEndpointDefinitionSchema,
14553
- authSchemes: z35.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
14554
- globalHeaders: z35.array(HeaderSchema).nullish()
14616
+ authSchemes: z36.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
14617
+ globalHeaders: z36.array(HeaderSchema).nullish()
14555
14618
  });
14556
14619
 
14557
14620
  // src/client/APIV1Read.ts
@@ -15143,15 +15206,15 @@ __export(DocsV1Db_exports, {
15143
15206
  });
15144
15207
 
15145
15208
  // src/client/docs-types/db.ts
15146
- var z37 = __toESM(require("zod"), 1);
15209
+ var z38 = __toESM(require("zod"), 1);
15147
15210
 
15148
15211
  // src/client/docs-types/db-docsRead.ts
15149
- var z36 = __toESM(require("zod"), 1);
15150
- var BackgroundSchema2 = z36.discriminatedUnion("type", [
15151
- z36.object({ type: z36.literal("solid"), ...RgbaColorSchema.shape }),
15152
- z36.object({ type: z36.literal("gradient") })
15212
+ var z37 = __toESM(require("zod"), 1);
15213
+ var BackgroundSchema2 = z37.discriminatedUnion("type", [
15214
+ z37.object({ type: z37.literal("solid"), ...RgbaColorSchema.shape }),
15215
+ z37.object({ type: z37.literal("gradient") })
15153
15216
  ]);
15154
- var ThemeConfigSchema3 = z36.object({
15217
+ var ThemeConfigSchema3 = z37.object({
15155
15218
  logo: FileIdSchema2.optional(),
15156
15219
  backgroundImage: FileIdSchema2.optional(),
15157
15220
  accentPrimary: RgbaColorSchema,
@@ -15173,175 +15236,175 @@ var ThemeConfigSchema3 = z36.object({
15173
15236
  accent11: RgbaColorSchema.optional(),
15174
15237
  accent12: RgbaColorSchema.optional()
15175
15238
  });
15176
- var DarkAndLightModeConfigSchema3 = z36.object({
15239
+ var DarkAndLightModeConfigSchema3 = z37.object({
15177
15240
  dark: ThemeConfigSchema3,
15178
15241
  light: ThemeConfigSchema3
15179
15242
  });
15180
- var ColorsConfigV3Schema3 = z36.discriminatedUnion("type", [
15181
- z36.object({ type: z36.literal("dark"), ...ThemeConfigSchema3.shape }),
15182
- z36.object({ type: z36.literal("light"), ...ThemeConfigSchema3.shape }),
15183
- z36.object({ type: z36.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
15243
+ var ColorsConfigV3Schema3 = z37.discriminatedUnion("type", [
15244
+ z37.object({ type: z37.literal("dark"), ...ThemeConfigSchema3.shape }),
15245
+ z37.object({ type: z37.literal("light"), ...ThemeConfigSchema3.shape }),
15246
+ z37.object({ type: z37.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
15184
15247
  ]);
15185
15248
 
15186
15249
  // src/client/docs-types/db.ts
15187
- var DbFileInfoSchema = z37.object({
15188
- s3Key: z37.string()
15189
- });
15190
- var DbImageFileInfoSchema = z37.object({
15191
- s3Key: z37.string(),
15192
- width: z37.number(),
15193
- height: z37.number(),
15194
- blurDataUrl: z37.string().optional(),
15195
- alt: z37.string().optional()
15196
- });
15197
- var DbFileInfoV2Schema = z37.discriminatedUnion("type", [
15198
- z37.object({ type: z37.literal("s3Key"), ...DbFileInfoSchema.shape }),
15199
- z37.object({ type: z37.literal("image"), ...DbImageFileInfoSchema.shape })
15250
+ var DbFileInfoSchema = z38.object({
15251
+ s3Key: z38.string()
15252
+ });
15253
+ var DbImageFileInfoSchema = z38.object({
15254
+ s3Key: z38.string(),
15255
+ width: z38.number(),
15256
+ height: z38.number(),
15257
+ blurDataUrl: z38.string().optional(),
15258
+ alt: z38.string().optional()
15259
+ });
15260
+ var DbFileInfoV2Schema = z38.discriminatedUnion("type", [
15261
+ z38.object({ type: z38.literal("s3Key"), ...DbFileInfoSchema.shape }),
15262
+ z38.object({ type: z38.literal("image"), ...DbImageFileInfoSchema.shape })
15200
15263
  ]);
15201
- var NavigationTabGroupSchema3 = z37.lazy(
15202
- () => z37.object({
15203
- title: z37.string(),
15204
- icon: z37.string().optional(),
15205
- items: z37.array(NavigationItemSchema3),
15206
- urlSlug: z37.string(),
15207
- skipUrlSlug: z37.boolean().optional()
15264
+ var NavigationTabGroupSchema3 = z38.lazy(
15265
+ () => z38.object({
15266
+ title: z38.string(),
15267
+ icon: z38.string().optional(),
15268
+ items: z38.array(NavigationItemSchema3),
15269
+ urlSlug: z38.string(),
15270
+ skipUrlSlug: z38.boolean().optional()
15208
15271
  })
15209
15272
  );
15210
- var NavigationTabSchema3 = z37.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
15211
- var NavigationTabV2Schema2 = z37.lazy(
15212
- () => z37.discriminatedUnion("type", [
15213
- z37.object({
15214
- type: z37.literal("group"),
15215
- title: z37.string(),
15216
- icon: z37.string().optional(),
15217
- items: z37.array(NavigationItemSchema3),
15218
- urlSlug: z37.string(),
15219
- skipUrlSlug: z37.boolean().optional()
15273
+ var NavigationTabSchema3 = z38.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
15274
+ var NavigationTabV2Schema2 = z38.lazy(
15275
+ () => z38.discriminatedUnion("type", [
15276
+ z38.object({
15277
+ type: z38.literal("group"),
15278
+ title: z38.string(),
15279
+ icon: z38.string().optional(),
15280
+ items: z38.array(NavigationItemSchema3),
15281
+ urlSlug: z38.string(),
15282
+ skipUrlSlug: z38.boolean().optional()
15220
15283
  }),
15221
- z37.object({ type: z37.literal("link"), ...NavigationTabLinkSchema.shape }),
15222
- z37.object({ type: z37.literal("changelog"), ...ChangelogSectionSchema.shape }),
15223
- z37.object({ type: z37.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
15284
+ z38.object({ type: z38.literal("link"), ...NavigationTabLinkSchema.shape }),
15285
+ z38.object({ type: z38.literal("changelog"), ...ChangelogSectionSchema.shape }),
15286
+ z38.object({ type: z38.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
15224
15287
  ])
15225
15288
  );
15226
- var ApiSectionSchema3 = z37.object({
15227
- title: z37.string(),
15228
- icon: z37.string().optional(),
15289
+ var ApiSectionSchema3 = z38.object({
15290
+ title: z38.string(),
15291
+ icon: z38.string().optional(),
15229
15292
  api: ApiDefinitionIdSchema2,
15230
- urlSlug: z37.string(),
15231
- skipUrlSlug: z37.boolean(),
15293
+ urlSlug: z38.string(),
15294
+ skipUrlSlug: z38.boolean(),
15232
15295
  artifacts: ApiArtifactsSchema.optional(),
15233
- showErrors: z37.boolean().optional(),
15296
+ showErrors: z38.boolean().optional(),
15234
15297
  changelog: ChangelogSectionSchema.optional(),
15235
- hidden: z37.boolean().optional(),
15236
- fullSlug: z37.array(z37.string()).optional(),
15298
+ hidden: z38.boolean().optional(),
15299
+ fullSlug: z38.array(z38.string()).optional(),
15237
15300
  navigation: ApiNavigationConfigRootSchema2.optional(),
15238
- longScrolling: z37.boolean().optional(),
15239
- flattened: z37.boolean().optional()
15240
- });
15241
- var DocsSectionSchema3 = z37.lazy(
15242
- () => z37.object({
15243
- title: z37.string(),
15244
- icon: z37.string().optional(),
15245
- items: z37.array(NavigationItemSchema3),
15246
- urlSlug: z37.string(),
15247
- skipUrlSlug: z37.boolean(),
15248
- collapsed: z37.union([z37.boolean(), z37.literal("open-by-default")]),
15249
- collapsible: z37.boolean().optional(),
15250
- collapsedByDefault: z37.boolean().optional(),
15251
- hidden: z37.boolean().optional(),
15252
- fullSlug: z37.array(z37.string()).optional(),
15301
+ longScrolling: z38.boolean().optional(),
15302
+ flattened: z38.boolean().optional()
15303
+ });
15304
+ var DocsSectionSchema3 = z38.lazy(
15305
+ () => z38.object({
15306
+ title: z38.string(),
15307
+ icon: z38.string().optional(),
15308
+ items: z38.array(NavigationItemSchema3),
15309
+ urlSlug: z38.string(),
15310
+ skipUrlSlug: z38.boolean(),
15311
+ collapsed: z38.union([z38.boolean(), z38.literal("open-by-default")]),
15312
+ collapsible: z38.boolean().optional(),
15313
+ collapsedByDefault: z38.boolean().optional(),
15314
+ hidden: z38.boolean().optional(),
15315
+ fullSlug: z38.array(z38.string()).optional(),
15253
15316
  overviewPageId: PageIdSchema2.optional()
15254
15317
  })
15255
15318
  );
15256
- var NavigationItemSchema3 = z37.lazy(
15257
- () => z37.discriminatedUnion("type", [
15258
- z37.object({
15259
- type: z37.literal("page"),
15319
+ var NavigationItemSchema3 = z38.lazy(
15320
+ () => z38.discriminatedUnion("type", [
15321
+ z38.object({
15322
+ type: z38.literal("page"),
15260
15323
  ...PageMetadataSchema.shape
15261
15324
  }),
15262
- z37.object({
15263
- type: z37.literal("api"),
15325
+ z38.object({
15326
+ type: z38.literal("api"),
15264
15327
  ...ApiSectionSchema3.shape
15265
15328
  }),
15266
- z37.object({
15267
- type: z37.literal("apiV2"),
15329
+ z38.object({
15330
+ type: z38.literal("apiV2"),
15268
15331
  ...ApiSectionV2Schema.shape
15269
15332
  }),
15270
- z37.object({
15271
- type: z37.literal("section"),
15272
- title: z37.string(),
15273
- icon: z37.string().optional(),
15274
- items: z37.array(NavigationItemSchema3),
15275
- urlSlug: z37.string(),
15276
- skipUrlSlug: z37.boolean(),
15277
- collapsed: z37.union([z37.boolean(), z37.literal("open-by-default")]),
15278
- collapsible: z37.boolean().optional(),
15279
- collapsedByDefault: z37.boolean().optional(),
15280
- hidden: z37.boolean().optional(),
15281
- fullSlug: z37.array(z37.string()).optional(),
15333
+ z38.object({
15334
+ type: z38.literal("section"),
15335
+ title: z38.string(),
15336
+ icon: z38.string().optional(),
15337
+ items: z38.array(NavigationItemSchema3),
15338
+ urlSlug: z38.string(),
15339
+ skipUrlSlug: z38.boolean(),
15340
+ collapsed: z38.union([z38.boolean(), z38.literal("open-by-default")]),
15341
+ collapsible: z38.boolean().optional(),
15342
+ collapsedByDefault: z38.boolean().optional(),
15343
+ hidden: z38.boolean().optional(),
15344
+ fullSlug: z38.array(z38.string()).optional(),
15282
15345
  overviewPageId: PageIdSchema2.optional()
15283
15346
  }),
15284
- z37.object({
15285
- type: z37.literal("link"),
15347
+ z38.object({
15348
+ type: z38.literal("link"),
15286
15349
  ...LinkMetadataSchema.shape
15287
15350
  }),
15288
- z37.object({
15289
- type: z37.literal("changelog"),
15351
+ z38.object({
15352
+ type: z38.literal("changelog"),
15290
15353
  ...ChangelogSectionSchema.shape
15291
15354
  }),
15292
- z37.object({
15293
- type: z37.literal("changelogV3"),
15355
+ z38.object({
15356
+ type: z38.literal("changelogV3"),
15294
15357
  ...ChangelogSectionV3Schema.shape
15295
15358
  })
15296
15359
  ])
15297
15360
  );
15298
- var UnversionedTabbedNavigationConfigSchema3 = z37.object({
15299
- tabs: z37.array(NavigationTabSchema3).optional(),
15300
- tabsV2: z37.array(NavigationTabV2Schema2).optional(),
15361
+ var UnversionedTabbedNavigationConfigSchema3 = z38.object({
15362
+ tabs: z38.array(NavigationTabSchema3).optional(),
15363
+ tabsV2: z38.array(NavigationTabV2Schema2).optional(),
15301
15364
  landingPage: PageMetadataSchema.optional()
15302
15365
  });
15303
- var UnversionedUntabbedNavigationConfigSchema3 = z37.object({
15304
- items: z37.array(NavigationItemSchema3),
15366
+ var UnversionedUntabbedNavigationConfigSchema3 = z38.object({
15367
+ items: z38.array(NavigationItemSchema3),
15305
15368
  landingPage: PageMetadataSchema.optional()
15306
15369
  });
15307
- var UnversionedNavigationConfigSchema3 = z37.union([
15370
+ var UnversionedNavigationConfigSchema3 = z38.union([
15308
15371
  UnversionedTabbedNavigationConfigSchema3,
15309
15372
  UnversionedUntabbedNavigationConfigSchema3
15310
15373
  ]);
15311
- var VersionedNavigationConfigDataSchema3 = z37.object({
15374
+ var VersionedNavigationConfigDataSchema3 = z38.object({
15312
15375
  version: VersionIdSchema2,
15313
- urlSlug: z37.string().optional(),
15376
+ urlSlug: z38.string().optional(),
15314
15377
  availability: AvailabilitySchema2.optional(),
15315
15378
  config: UnversionedNavigationConfigSchema3
15316
15379
  });
15317
- var VersionedNavigationConfigSchema3 = z37.object({
15318
- versions: z37.array(VersionedNavigationConfigDataSchema3)
15380
+ var VersionedNavigationConfigSchema3 = z38.object({
15381
+ versions: z38.array(VersionedNavigationConfigDataSchema3)
15319
15382
  });
15320
- var NavigationConfigSchema3 = z37.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
15321
- var DocsDbConfigSchema = z37.object({
15322
- title: z37.string().optional(),
15383
+ var NavigationConfigSchema3 = z38.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
15384
+ var DocsDbConfigSchema = z38.object({
15385
+ title: z38.string().optional(),
15323
15386
  defaultLanguage: ProgrammingLanguageSchema.optional(),
15324
- languages: z37.array(LanguageSchema).optional(),
15387
+ languages: z38.array(LanguageSchema).optional(),
15325
15388
  translations: DocsTranslationsConfigSchema.optional(),
15326
15389
  announcement: AnnouncementConfigSchema.optional(),
15327
15390
  navigation: NavigationConfigSchema3.optional(),
15328
- root: z37.custom().optional(),
15329
- navbarLinks: z37.array(NavbarLinkSchema).optional(),
15330
- footerLinks: z37.array(FooterLinkSchema).optional(),
15331
- hideNavLinks: z37.boolean().optional(),
15391
+ root: z38.custom().optional(),
15392
+ navbarLinks: z38.array(NavbarLinkSchema).optional(),
15393
+ footerLinks: z38.array(FooterLinkSchema).optional(),
15394
+ hideNavLinks: z38.boolean().optional(),
15332
15395
  logoHeight: HeightSchema.optional(),
15333
15396
  logoHref: UrlSchema2.optional(),
15334
- logoRightText: z37.string().optional(),
15397
+ logoRightText: z38.string().optional(),
15335
15398
  favicon: FileIdSchema2.optional(),
15336
15399
  agents: AgentsConfigSchema.optional(),
15337
15400
  metadata: MetadataConfigSchema.optional(),
15338
- redirects: z37.array(RedirectConfigSchema).optional(),
15339
- remotePaths: z37.array(RemotePathConfigSchema).optional(),
15401
+ redirects: z38.array(RedirectConfigSchema).optional(),
15402
+ remotePaths: z38.array(RemotePathConfigSchema).optional(),
15340
15403
  backgroundImage: FileIdSchema2.optional(),
15341
15404
  colorsV3: ColorsConfigV3Schema3.optional(),
15342
15405
  layout: DocsLayoutConfigSchema.optional(),
15343
15406
  theme: DocsThemeConfigSchema.optional(),
15344
- globalTheme: z37.string().optional(),
15407
+ globalTheme: z38.string().optional(),
15345
15408
  settings: DocsSettingsConfigSchema.optional(),
15346
15409
  typographyV2: DocsTypographyConfigV2Schema.optional(),
15347
15410
  analyticsConfig: AnalyticsConfigSchema.optional(),
@@ -15352,40 +15415,40 @@ var DocsDbConfigSchema = z37.object({
15352
15415
  pageActions: PageActionsConfigSchema.optional(),
15353
15416
  editThisPageLaunch: EditThisPageLaunchSchema.optional(),
15354
15417
  iframe: IframeConfigSchema.optional(),
15355
- header: z37.string().optional(),
15356
- footer: z37.string().optional(),
15418
+ header: z38.string().optional(),
15419
+ footer: z38.string().optional(),
15357
15420
  logo: FileIdSchema2.optional(),
15358
15421
  logoV2: ThemedFileIdSchema.optional(),
15359
15422
  colors: ColorsConfigSchema.optional(),
15360
15423
  colorsV2: ColorsConfigV2Schema.optional(),
15361
15424
  typography: DocsTypographyConfigSchema.optional()
15362
15425
  });
15363
- var DocsDefinitionDbV1Schema = z37.object({
15364
- pages: z37.record(PageIdSchema2, PageContentSchema),
15365
- referencedApis: z37.array(ApiDefinitionIdSchema2),
15366
- files: z37.record(FileIdSchema2, DbFileInfoSchema),
15426
+ var DocsDefinitionDbV1Schema = z38.object({
15427
+ pages: z38.record(PageIdSchema2, PageContentSchema),
15428
+ referencedApis: z38.array(ApiDefinitionIdSchema2),
15429
+ files: z38.record(FileIdSchema2, DbFileInfoSchema),
15367
15430
  config: DocsDbConfigSchema,
15368
15431
  colors: ColorsConfigSchema.optional()
15369
15432
  });
15370
- var DocsDefinitionDbV2Schema = z37.object({
15371
- pages: z37.record(PageIdSchema2, PageContentSchema),
15372
- referencedApis: z37.array(ApiDefinitionIdSchema2),
15373
- files: z37.record(FileIdSchema2, DbFileInfoSchema),
15433
+ var DocsDefinitionDbV2Schema = z38.object({
15434
+ pages: z38.record(PageIdSchema2, PageContentSchema),
15435
+ referencedApis: z38.array(ApiDefinitionIdSchema2),
15436
+ files: z38.record(FileIdSchema2, DbFileInfoSchema),
15374
15437
  config: DocsDbConfigSchema,
15375
15438
  colors: ColorsConfigSchema.optional(),
15376
15439
  typography: DocsTypographyConfigSchema.optional()
15377
15440
  });
15378
- var DocsDefinitionDbV3Schema = z37.object({
15379
- pages: z37.record(PageIdSchema2, PageContentSchema),
15380
- referencedApis: z37.array(ApiDefinitionIdSchema2),
15381
- files: z37.record(FileIdSchema2, DbFileInfoV2Schema),
15441
+ var DocsDefinitionDbV3Schema = z38.object({
15442
+ pages: z38.record(PageIdSchema2, PageContentSchema),
15443
+ referencedApis: z38.array(ApiDefinitionIdSchema2),
15444
+ files: z38.record(FileIdSchema2, DbFileInfoV2Schema),
15382
15445
  config: DocsDbConfigSchema,
15383
- jsFiles: z37.record(z37.string(), z37.string()).optional()
15446
+ jsFiles: z38.record(z38.string(), z38.string()).optional()
15384
15447
  });
15385
- var DocsDefinitionDbSchema = z37.discriminatedUnion("type", [
15386
- z37.object({ type: z37.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
15387
- z37.object({ type: z37.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
15388
- z37.object({ type: z37.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
15448
+ var DocsDefinitionDbSchema = z38.discriminatedUnion("type", [
15449
+ z38.object({ type: z38.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
15450
+ z38.object({ type: z38.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
15451
+ z38.object({ type: z38.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
15389
15452
  ]);
15390
15453
 
15391
15454
  // src/client/DocsV1Read.ts
@@ -16176,102 +16239,102 @@ __export(DocsLatest_exports, {
16176
16239
  });
16177
16240
 
16178
16241
  // src/client/docs-types/latest.ts
16179
- var z38 = __toESM(require("zod"), 1);
16180
- var StringOrStringListSchema = z38.union([z38.string(), z38.array(z38.string())]);
16181
- var TwitterCardSettingSchema2 = z38.enum(["summary", "summary_large_image", "app", "player"]);
16182
- var JsonLdBreadcrumbListElementSchema = z38.object({
16183
- "@type": z38.literal("ListItem"),
16184
- position: z38.number(),
16185
- name: z38.string(),
16186
- item: z38.string().optional()
16187
- });
16188
- var JsonLdBreadcrumbListSchema = z38.object({
16189
- "@context": z38.literal("https://schema.org"),
16190
- "@type": z38.literal("BreadcrumbList"),
16191
- itemListElement: z38.array(JsonLdBreadcrumbListElementSchema)
16192
- });
16193
- var WithJsonLdBreadcrumbsSchema = z38.object({
16242
+ var z39 = __toESM(require("zod"), 1);
16243
+ var StringOrStringListSchema = z39.union([z39.string(), z39.array(z39.string())]);
16244
+ var TwitterCardSettingSchema2 = z39.enum(["summary", "summary_large_image", "app", "player"]);
16245
+ var JsonLdBreadcrumbListElementSchema = z39.object({
16246
+ "@type": z39.literal("ListItem"),
16247
+ position: z39.number(),
16248
+ name: z39.string(),
16249
+ item: z39.string().optional()
16250
+ });
16251
+ var JsonLdBreadcrumbListSchema = z39.object({
16252
+ "@context": z39.literal("https://schema.org"),
16253
+ "@type": z39.literal("BreadcrumbList"),
16254
+ itemListElement: z39.array(JsonLdBreadcrumbListElementSchema)
16255
+ });
16256
+ var WithJsonLdBreadcrumbsSchema = z39.object({
16194
16257
  /** Set to `false` to suppress the built-in JSON-LD for the page. */
16195
- jsonld: z38.boolean().optional(),
16258
+ jsonld: z39.boolean().optional(),
16196
16259
  "jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
16197
16260
  });
16198
- var WithMetadataConfigSchema = z38.object({
16199
- "og:site_name": z38.string().optional(),
16200
- "og:title": z38.string().optional(),
16201
- "og:description": z38.string().optional(),
16202
- "og:url": z38.string().optional(),
16261
+ var WithMetadataConfigSchema = z39.object({
16262
+ "og:site_name": z39.string().optional(),
16263
+ "og:title": z39.string().optional(),
16264
+ "og:description": z39.string().optional(),
16265
+ "og:url": z39.string().optional(),
16203
16266
  "og:image": FileIdOrUrlSchema.optional(),
16204
- "og:image:width": z38.number().optional(),
16205
- "og:image:height": z38.number().optional(),
16206
- "og:locale": z38.string().optional(),
16267
+ "og:image:width": z39.number().optional(),
16268
+ "og:image:height": z39.number().optional(),
16269
+ "og:locale": z39.string().optional(),
16207
16270
  "og:logo": FileIdOrUrlSchema.optional(),
16208
- "twitter:title": z38.string().optional(),
16209
- "twitter:description": z38.string().optional(),
16210
- "twitter:handle": z38.string().optional(),
16271
+ "twitter:title": z39.string().optional(),
16272
+ "twitter:description": z39.string().optional(),
16273
+ "twitter:handle": z39.string().optional(),
16211
16274
  "twitter:image": FileIdOrUrlSchema.optional(),
16212
- "twitter:site": z38.string().optional(),
16213
- "twitter:url": z38.string().optional(),
16275
+ "twitter:site": z39.string().optional(),
16276
+ "twitter:url": z39.string().optional(),
16214
16277
  "twitter:card": TwitterCardSettingSchema2.optional(),
16215
16278
  "og:background-image": FileIdOrUrlSchema.optional(),
16216
- "og:dynamic": z38.boolean().optional(),
16279
+ "og:dynamic": z39.boolean().optional(),
16217
16280
  "og:dynamic:background-image": FileIdOrUrlSchema.optional(),
16218
- "og:dynamic:text-color": z38.string().optional(),
16219
- "og:dynamic:background-color": z38.string().optional(),
16220
- "og:dynamic:show-logo": z38.boolean().optional(),
16221
- "og:dynamic:show-section": z38.boolean().optional(),
16222
- "og:dynamic:show-description": z38.boolean().optional(),
16223
- "og:dynamic:show-url": z38.boolean().optional(),
16224
- "og:dynamic:show-gradient": z38.boolean().optional(),
16225
- noindex: z38.boolean().optional(),
16226
- nofollow: z38.boolean().optional(),
16281
+ "og:dynamic:text-color": z39.string().optional(),
16282
+ "og:dynamic:background-color": z39.string().optional(),
16283
+ "og:dynamic:show-logo": z39.boolean().optional(),
16284
+ "og:dynamic:show-section": z39.boolean().optional(),
16285
+ "og:dynamic:show-description": z39.boolean().optional(),
16286
+ "og:dynamic:show-url": z39.boolean().optional(),
16287
+ "og:dynamic:show-gradient": z39.boolean().optional(),
16288
+ noindex: z39.boolean().optional(),
16289
+ nofollow: z39.boolean().optional(),
16227
16290
  keywords: StringOrStringListSchema.optional()
16228
16291
  });
16229
- var LayoutSchema = z38.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
16230
- var LogoConfigurationSchema = z38.object({
16292
+ var LayoutSchema = z39.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
16293
+ var LogoConfigurationSchema = z39.object({
16231
16294
  light: FileIdOrUrlSchema.optional(),
16232
16295
  dark: FileIdOrUrlSchema.optional()
16233
16296
  });
16234
- var LogoSchema2 = z38.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
16235
- var BreadcrumbItemSchema = z38.object({
16236
- title: z38.string(),
16237
- pointsTo: z38.string().optional()
16297
+ var LogoSchema2 = z39.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
16298
+ var BreadcrumbItemSchema = z39.object({
16299
+ title: z39.string(),
16300
+ pointsTo: z39.string().optional()
16238
16301
  });
16239
16302
  var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
16240
- z38.object({
16303
+ z39.object({
16241
16304
  layout: LayoutSchema.optional(),
16242
- slug: z38.string().optional(),
16243
- title: z38.string().optional(),
16244
- headline: z38.string().optional(),
16245
- description: z38.string().optional(),
16246
- subtitle: z38.string().optional(),
16305
+ slug: z39.string().optional(),
16306
+ title: z39.string().optional(),
16307
+ headline: z39.string().optional(),
16308
+ description: z39.string().optional(),
16309
+ subtitle: z39.string().optional(),
16247
16310
  logo: LogoSchema2.optional(),
16248
16311
  image: FileIdOrUrlSchema.optional(),
16249
- "edit-this-page-url": z38.string().optional(),
16250
- "hide-toc": z38.boolean().optional(),
16251
- "force-toc": z38.boolean().optional(),
16252
- "hide-nav-links": z38.boolean().optional(),
16253
- "max-toc-depth": z38.number().optional(),
16254
- "hide-feedback": z38.boolean().optional(),
16255
- "hide-page-actions": z38.boolean().optional(),
16256
- "no-image-zoom": z38.boolean().optional(),
16257
- breadcrumb: z38.array(BreadcrumbItemSchema).optional(),
16258
- excerpt: z38.string().optional(),
16259
- "canonical-url": z38.string().optional(),
16312
+ "edit-this-page-url": z39.string().optional(),
16313
+ "hide-toc": z39.boolean().optional(),
16314
+ "force-toc": z39.boolean().optional(),
16315
+ "hide-nav-links": z39.boolean().optional(),
16316
+ "max-toc-depth": z39.number().optional(),
16317
+ "hide-feedback": z39.boolean().optional(),
16318
+ "hide-page-actions": z39.boolean().optional(),
16319
+ "no-image-zoom": z39.boolean().optional(),
16320
+ breadcrumb: z39.array(BreadcrumbItemSchema).optional(),
16321
+ excerpt: z39.string().optional(),
16322
+ "canonical-url": z39.string().optional(),
16260
16323
  tags: StringOrStringListSchema.optional(),
16261
- "last-updated": z38.string().optional(),
16324
+ "last-updated": z39.string().optional(),
16262
16325
  /**
16263
16326
  * Arbitrary author-defined metadata that is copied onto this page's search
16264
16327
  * records, so it can be faceted and filtered on by full path
16265
16328
  * (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
16266
16329
  */
16267
- "search-metadata": z38.record(z38.unknown()).optional()
16330
+ "search-metadata": z39.record(z39.unknown()).optional()
16268
16331
  })
16269
16332
  );
16270
- var ResolvedMdxSchema = z38.object({
16271
- code: z38.string(),
16333
+ var ResolvedMdxSchema = z39.object({
16334
+ code: z39.string(),
16272
16335
  frontmatter: FrontmatterSchema,
16273
- scope: z38.record(z38.string(), z38.unknown()),
16274
- jsxRefs: z38.array(z38.string()).optional()
16336
+ scope: z39.record(z39.string(), z39.unknown()),
16337
+ jsxRefs: z39.array(z39.string()).optional()
16275
16338
  });
16276
16339
 
16277
16340
  // src/client/DocsV1Commons.ts
@@ -16718,9 +16781,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
16718
16781
  }
16719
16782
  }
16720
16783
  }
16721
- function generateExampleObject(object37, resolveTypeById, ignoreOptionals, visited, depth) {
16784
+ function generateExampleObject(object38, resolveTypeById, ignoreOptionals, visited, depth) {
16722
16785
  const example = {};
16723
- for (const property of getAllObjectProperties(object37, resolveTypeById)) {
16786
+ for (const property of getAllObjectProperties(object38, resolveTypeById)) {
16724
16787
  const value = generateExampleFromTypeReference(
16725
16788
  property.valueType,
16726
16789
  resolveTypeById,
@@ -16907,10 +16970,10 @@ function generateExamplePrimitive(reference) {
16907
16970
  return reference.name;
16908
16971
  }
16909
16972
  }
16910
- function getAllObjectProperties(object37, resolveTypeById, extended = /* @__PURE__ */ new Set()) {
16973
+ function getAllObjectProperties(object38, resolveTypeById, extended = /* @__PURE__ */ new Set()) {
16911
16974
  return [
16912
- ...object37.properties,
16913
- ...object37.extends.flatMap((typeId) => {
16975
+ ...object38.properties,
16976
+ ...object38.extends.flatMap((typeId) => {
16914
16977
  if (extended.has(typeId)) {
16915
16978
  return [];
16916
16979
  }