@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.mjs CHANGED
@@ -457,8 +457,8 @@ function parseMatch(match) {
457
457
  return match;
458
458
  }
459
459
  var src_default = (str, options = {}) => {
460
- str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string38) => {
461
- const isLastWord = m.length + offset >= string38.length;
460
+ str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string39) => {
461
+ const isLastWord = m.length + offset >= string39.length;
462
462
  const parsedMatch = parseMatch(m);
463
463
  if (!parsedMatch) {
464
464
  return m;
@@ -2594,16 +2594,16 @@ function selectDefaultValue(shape, defaults) {
2594
2594
  }
2595
2595
  }
2596
2596
  var UnwrapObjectTypeCache = /* @__PURE__ */ new WeakMap();
2597
- function unwrapObjectType(object37, types, parentVisitedTypeIds) {
2598
- const cached = UnwrapObjectTypeCache.get(object37);
2597
+ function unwrapObjectType(object38, types, parentVisitedTypeIds) {
2598
+ const cached = UnwrapObjectTypeCache.get(object38);
2599
2599
  if (cached != null) {
2600
2600
  return cached;
2601
2601
  }
2602
- const directProperties = object37.properties;
2603
- const extraProperties = object37.extraProperties;
2602
+ const directProperties = object38.properties;
2603
+ const extraProperties = object38.extraProperties;
2604
2604
  const descriptions = [];
2605
2605
  const visitedTypeIds = /* @__PURE__ */ new Set();
2606
- const extendedProperties = object37.extends.flatMap((typeId) => {
2606
+ const extendedProperties = object38.extends.flatMap((typeId) => {
2607
2607
  if (parentVisitedTypeIds?.has(typeId)) {
2608
2608
  console.error(`Circular reference detected. Cannot extend type=${typeId}`);
2609
2609
  return [];
@@ -2650,7 +2650,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
2650
2650
  };
2651
2651
  });
2652
2652
  });
2653
- const propertyKeys = new Set(object37.properties.map((property) => property.key));
2653
+ const propertyKeys = new Set(object38.properties.map((property) => property.key));
2654
2654
  const seenExtendedKeys = /* @__PURE__ */ new Set();
2655
2655
  const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
2656
2656
  if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
@@ -2673,7 +2673,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
2673
2673
  extraProperties,
2674
2674
  visitedTypeIds
2675
2675
  };
2676
- UnwrapObjectTypeCache.set(object37, toRet2);
2676
+ UnwrapObjectTypeCache.set(object38, toRet2);
2677
2677
  return toRet2;
2678
2678
  }
2679
2679
  const properties = sortBy(
@@ -2685,7 +2685,7 @@ function unwrapObjectType(object37, types, parentVisitedTypeIds) {
2685
2685
  ]
2686
2686
  );
2687
2687
  const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
2688
- UnwrapObjectTypeCache.set(object37, toRet);
2688
+ UnwrapObjectTypeCache.set(object38, toRet);
2689
2689
  return toRet;
2690
2690
  }
2691
2691
  function unwrapDiscriminatedUnionVariant(union14, variant, types) {
@@ -4406,8 +4406,8 @@ function sortKeysByShape(obj, shape, types) {
4406
4406
  set: ({ itemShape }) => Array.isArray(obj) ? obj.map((o) => sortKeysByShape(o, itemShape, types)) : obj,
4407
4407
  map: ({ valueShape }) => isPlainObject_default(obj) ? mapValues(obj, (value) => sortKeysByShape(value, valueShape, types)) : obj,
4408
4408
  unknown: () => obj,
4409
- object: (object37) => {
4410
- const objectProperties = unwrapObjectType(object37, types).properties;
4409
+ object: (object38) => {
4410
+ const objectProperties = unwrapObjectType(object38, types).properties;
4411
4411
  return isPlainObject_default(obj) ? mapValues(
4412
4412
  sortKeysBy(
4413
4413
  obj,
@@ -7622,10 +7622,10 @@ function xmlElementFromShape(shape, types, visited, depth, value) {
7622
7622
  if (resolved == null) {
7623
7623
  return void 0;
7624
7624
  }
7625
- const { object: object37, visited: innerVisited } = resolved;
7625
+ const { object: object38, visited: innerVisited } = resolved;
7626
7626
  const example = isRecord(value) ? value : void 0;
7627
- const element = { name: object37.xml.name, attributes: [], text: void 0, children: [] };
7628
- for (const property of xmlProperties(object37, types, innerVisited)) {
7627
+ const element = { name: object38.xml.name, attributes: [], text: void 0, children: [] };
7628
+ for (const property of xmlProperties(object38, types, innerVisited)) {
7629
7629
  const kind = property.xml?.kind ?? "element";
7630
7630
  const name = property.xml?.name ?? property.key;
7631
7631
  const listSeparator = property.xml?.listSeparator ?? " ";
@@ -7654,21 +7654,21 @@ function xmlElementFromShape(shape, types, visited, depth, value) {
7654
7654
  }
7655
7655
  return element;
7656
7656
  }
7657
- function xmlProperties(object37, types, visited) {
7657
+ function xmlProperties(object38, types, visited) {
7658
7658
  const inherited = [];
7659
- for (const parentId of object37.extends) {
7659
+ for (const parentId of object38.extends) {
7660
7660
  const parent = types[parentId];
7661
7661
  if (parent != null && parent.shape.type === "object" && !visited.has(parentId)) {
7662
7662
  inherited.push(
7663
7663
  ...xmlProperties(
7664
- { extends: parent.shape.extends, properties: parent.shape.properties, xml: object37.xml },
7664
+ { extends: parent.shape.extends, properties: parent.shape.properties, xml: object38.xml },
7665
7665
  types,
7666
7666
  /* @__PURE__ */ new Set([...visited, parentId])
7667
7667
  )
7668
7668
  );
7669
7669
  }
7670
7670
  }
7671
- return [...inherited, ...object37.properties];
7671
+ return [...inherited, ...object38.properties];
7672
7672
  }
7673
7673
  function childElements(property, name, types, visited, depth) {
7674
7674
  const itemShape = listItemShape(property.valueShape, types, visited) ?? property.valueShape;
@@ -12576,7 +12576,7 @@ import { OpenAPILink as OpenAPILink17 } from "@orpc/openapi-client/fetch";
12576
12576
 
12577
12577
  // src/orpc-client/mcp-hosting/contract.ts
12578
12578
  import { oc as oc15 } from "@orpc/contract";
12579
- import * as z28 from "zod";
12579
+ import * as z29 from "zod";
12580
12580
 
12581
12581
  // src/orpc-client/mcp-hosting/analytics.ts
12582
12582
  import * as z25 from "zod";
@@ -13213,46 +13213,97 @@ var McpDeploymentSkippedToolSchema = z27.object({
13213
13213
  path: z27.string().nullable()
13214
13214
  });
13215
13215
 
13216
+ // src/orpc-client/mcp-hosting/usage.ts
13217
+ import * as z28 from "zod";
13218
+ var McpOrgQuotaSchema = z28.object({
13219
+ /** Tool calls per month; null means no limit. */
13220
+ limit: z28.number().int().nonnegative().nullable(),
13221
+ /**
13222
+ * Sales approved the org to go over its limit. The dispatcher keeps
13223
+ * counting but never refuses a call.
13224
+ */
13225
+ approved: z28.boolean()
13226
+ });
13227
+ var UsageMonthSchema = z28.string().regex(/^\d{4}-(0[1-9]|1[0-2])$/, "Expected yyyy-mm");
13228
+ var McpUsageCountsSchema = z28.object({
13229
+ month: UsageMonthSchema,
13230
+ toolCalls: z28.number().int().nonnegative(),
13231
+ /** Calls refused because the allowance was used up. */
13232
+ blockedCalls: z28.number().int().nonnegative(),
13233
+ servers: z28.array(z28.object({ slug: z28.string(), toolCalls: z28.number().int().nonnegative() })),
13234
+ /** Whether this dispatcher refuses calls over the allowance (QUOTA_ENFORCE), or only counts them. */
13235
+ enforced: z28.boolean()
13236
+ });
13237
+ var McpOrgIdSchema = z28.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
13238
+ var GetMcpUsageInputSchema = z28.object({
13239
+ orgId: McpOrgIdSchema,
13240
+ month: UsageMonthSchema.optional()
13241
+ });
13242
+ var SetMcpUsageAllowanceInputSchema = z28.object({
13243
+ orgId: McpOrgIdSchema,
13244
+ /** Tool calls per month; null means no limit. */
13245
+ limit: z28.number().int().nonnegative().max(1e9).nullable(),
13246
+ /** Approved to go over the limit: calls are counted but never refused. */
13247
+ approved: z28.boolean(),
13248
+ note: z28.string().max(500).optional()
13249
+ });
13250
+ var McpOrgUsageSchema = z28.object({
13251
+ month: UsageMonthSchema,
13252
+ resetsAt: z28.string(),
13253
+ toolCalls: z28.number().int().nonnegative(),
13254
+ blockedCalls: z28.number().int().nonnegative(),
13255
+ /** Tool calls per month; null means no limit. */
13256
+ limit: z28.number().int().nonnegative().nullable(),
13257
+ approved: z28.boolean(),
13258
+ /** The org has the free allowance (no allowance set by Fern). */
13259
+ isFreeAllowance: z28.boolean(),
13260
+ blocked: z28.boolean(),
13261
+ /** Whether calls over the allowance are refused in this environment, or only counted. */
13262
+ enforced: z28.boolean(),
13263
+ servers: z28.array(z28.object({ slug: z28.string(), toolCalls: z28.number().int().nonnegative() })),
13264
+ contactUrl: z28.string()
13265
+ });
13266
+
13216
13267
  // src/orpc-client/mcp-hosting/contract.ts
13217
- var McpPathSegmentSchema = z28.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
13218
- var McpDeploymentStatusSchema = z28.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
13219
- var McpModuleSchema = z28.object({
13220
- name: z28.string().regex(/^[A-Za-z0-9._/-]+$/),
13268
+ var McpPathSegmentSchema = z29.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
13269
+ var McpDeploymentStatusSchema = z29.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
13270
+ var McpModuleSchema = z29.object({
13271
+ name: z29.string().regex(/^[A-Za-z0-9._/-]+$/),
13221
13272
  hash: Sha256Schema,
13222
- contentType: z28.string().min(1)
13273
+ contentType: z29.string().min(1)
13223
13274
  }).strict();
13224
- var McpGitInputSchema = z28.object({
13225
- repoUrl: z28.string(),
13275
+ var McpGitInputSchema = z29.object({
13276
+ repoUrl: z29.string(),
13226
13277
  /** Absent on a detached HEAD (a CI checkout of a commit, say). */
13227
- branch: z28.string().optional(),
13228
- commitSha: z28.string().optional()
13278
+ branch: z29.string().optional(),
13279
+ commitSha: z29.string().optional()
13229
13280
  }).strict();
13230
- var McpInputFileSchema = z28.discriminatedUnion("name", [
13231
- z28.object({
13281
+ var McpInputFileSchema = z29.discriminatedUnion("name", [
13282
+ z29.object({
13232
13283
  /** The `sources` part of the build request, verbatim. */
13233
- name: z28.literal("specs.tar.gz"),
13234
- contentType: z28.literal("application/gzip"),
13284
+ name: z29.literal("specs.tar.gz"),
13285
+ contentType: z29.literal("application/gzip"),
13235
13286
  hash: Sha256Schema
13236
13287
  }).strict(),
13237
- z28.object({
13288
+ z29.object({
13238
13289
  /** This target's sdk-config payload. */
13239
- name: z28.literal("sdk-config.json"),
13240
- contentType: z28.literal("application/json"),
13290
+ name: z29.literal("sdk-config.json"),
13291
+ contentType: z29.literal("application/json"),
13241
13292
  hash: Sha256Schema
13242
13293
  }).strict(),
13243
- z28.object({
13294
+ z29.object({
13244
13295
  /** The build request narrowed to this target. */
13245
- name: z28.literal("build-request.json"),
13246
- contentType: z28.literal("application/json"),
13296
+ name: z29.literal("build-request.json"),
13297
+ contentType: z29.literal("application/json"),
13247
13298
  hash: Sha256Schema
13248
13299
  }).strict()
13249
13300
  ]);
13250
- var McpInputFilesSchema = z28.array(McpInputFileSchema).max(3).superRefine((inputs, ctx) => {
13301
+ var McpInputFilesSchema = z29.array(McpInputFileSchema).max(3).superRefine((inputs, ctx) => {
13251
13302
  const names = /* @__PURE__ */ new Set();
13252
13303
  for (const input of inputs) {
13253
13304
  if (names.has(input.name)) {
13254
13305
  ctx.addIssue({
13255
- code: z28.ZodIssueCode.custom,
13306
+ code: z29.ZodIssueCode.custom,
13256
13307
  message: `duplicate input name: ${input.name}`
13257
13308
  });
13258
13309
  }
@@ -13283,7 +13334,7 @@ function deployMetadataChecks(metadata, ctx) {
13283
13334
  for (const [toolset, members] of Object.entries(metadata.toolsets)) {
13284
13335
  if (!TOOLSET_NAME_PATTERN.test(toolset)) {
13285
13336
  ctx.addIssue({
13286
- code: z28.ZodIssueCode.custom,
13337
+ code: z29.ZodIssueCode.custom,
13287
13338
  path: ["toolsets", toolset],
13288
13339
  message: `toolset name "${toolset}" must match ${TOOLSET_NAME_PATTERN}`
13289
13340
  });
@@ -13291,7 +13342,7 @@ function deployMetadataChecks(metadata, ctx) {
13291
13342
  members.forEach((member, index) => {
13292
13343
  if (!TOOL_NAME_PATTERN.test(member)) {
13293
13344
  ctx.addIssue({
13294
- code: z28.ZodIssueCode.custom,
13345
+ code: z29.ZodIssueCode.custom,
13295
13346
  path: ["toolsets", toolset, index],
13296
13347
  message: `tool name "${member}" must match ${TOOL_NAME_PATTERN}`
13297
13348
  });
@@ -13301,28 +13352,28 @@ function deployMetadataChecks(metadata, ctx) {
13301
13352
  (metadata.tools ?? []).forEach((tool, index) => {
13302
13353
  if (!TOOL_NAME_PATTERN.test(tool.name)) {
13303
13354
  ctx.addIssue({
13304
- code: z28.ZodIssueCode.custom,
13355
+ code: z29.ZodIssueCode.custom,
13305
13356
  path: ["tools", index, "name"],
13306
13357
  message: `tool name "${tool.name}" must match ${TOOL_NAME_PATTERN}`
13307
13358
  });
13308
13359
  }
13309
13360
  if (tool.operationId != null && tool.operationId.length > MAX_OPERATION_ID_LENGTH) {
13310
13361
  ctx.addIssue({
13311
- code: z28.ZodIssueCode.custom,
13362
+ code: z29.ZodIssueCode.custom,
13312
13363
  path: ["tools", index, "operationId"],
13313
13364
  message: `operationId must be at most ${MAX_OPERATION_ID_LENGTH} characters`
13314
13365
  });
13315
13366
  }
13316
13367
  if (tool.method.length > MAX_METHOD_LENGTH) {
13317
13368
  ctx.addIssue({
13318
- code: z28.ZodIssueCode.custom,
13369
+ code: z29.ZodIssueCode.custom,
13319
13370
  path: ["tools", index, "method"],
13320
13371
  message: `method must be at most ${MAX_METHOD_LENGTH} characters`
13321
13372
  });
13322
13373
  }
13323
13374
  if (tool.path.length > MAX_PATH_LENGTH) {
13324
13375
  ctx.addIssue({
13325
- code: z28.ZodIssueCode.custom,
13376
+ code: z29.ZodIssueCode.custom,
13326
13377
  path: ["tools", index, "path"],
13327
13378
  message: `path must be at most ${MAX_PATH_LENGTH} characters`
13328
13379
  });
@@ -13331,7 +13382,7 @@ function deployMetadataChecks(metadata, ctx) {
13331
13382
  metadata.auth.schemes.forEach((scheme, index) => {
13332
13383
  if (scheme.type === "apiKey" && !HEADER_TOKEN_PATTERN.test(scheme.paramName)) {
13333
13384
  ctx.addIssue({
13334
- code: z28.ZodIssueCode.custom,
13385
+ code: z29.ZodIssueCode.custom,
13335
13386
  path: ["auth", "schemes", index, "paramName"],
13336
13387
  message: `paramName "${scheme.paramName}" must be an RFC 7230 token of at most 128 characters`
13337
13388
  });
@@ -13339,30 +13390,30 @@ function deployMetadataChecks(metadata, ctx) {
13339
13390
  });
13340
13391
  if (!maxSerializedBytes(MCP_METADATA_MAX_BYTES)(metadata)) {
13341
13392
  ctx.addIssue({
13342
- code: z28.ZodIssueCode.custom,
13393
+ code: z29.ZodIssueCode.custom,
13343
13394
  message: `metadata must be at most ${MCP_METADATA_MAX_BYTES} bytes serialized`
13344
13395
  });
13345
13396
  }
13346
13397
  }
13347
- var DeployMcpServerInputSchema = z28.object({
13398
+ var DeployMcpServerInputSchema = z29.object({
13348
13399
  orgId: McpPathSegmentSchema,
13349
13400
  slug: McpPathSegmentSchema,
13350
- mainModule: z28.string().min(1),
13351
- compatibilityDate: z28.string().regex(/^\d{4}-\d{2}-\d{2}$/),
13352
- compatibilityFlags: z28.array(z28.string()),
13401
+ mainModule: z29.string().min(1),
13402
+ compatibilityDate: z29.string().regex(/^\d{4}-\d{2}-\d{2}$/),
13403
+ compatibilityFlags: z29.array(z29.string()),
13353
13404
  // Bounded so a single deploy request cannot fan out unbounded parallel
13354
13405
  // CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
13355
13406
  // 20 leaves room for wasm/sourcemap/chunk splitting.
13356
- modules: z28.array(McpModuleSchema).min(1).max(20),
13407
+ modules: z29.array(McpModuleSchema).min(1).max(20),
13357
13408
  metadata: McpMetadataSchema.superRefine(deployMetadataChecks),
13358
13409
  // Everything else in this schema is bounded; keep the opaque config
13359
13410
  // blob bounded too so it cannot balloon the JSONB row.
13360
- config: z28.unknown().optional().refine(maxSerializedBytes(MCP_CONFIG_MAX_BYTES), {
13411
+ config: z29.unknown().optional().refine(maxSerializedBytes(MCP_CONFIG_MAX_BYTES), {
13361
13412
  message: `config must be at most ${MCP_CONFIG_MAX_BYTES} bytes serialized`
13362
13413
  }),
13363
- generatorName: z28.string().min(1),
13364
- generatorVersion: z28.string().min(1),
13365
- cliVersion: z28.string().optional(),
13414
+ generatorName: z29.string().min(1),
13415
+ generatorVersion: z29.string().min(1),
13416
+ cliVersion: z29.string().optional(),
13366
13417
  git: McpGitInputSchema.optional(),
13367
13418
  inputs: McpInputFilesSchema.optional()
13368
13419
  }).strict().superRefine((input, ctx) => {
@@ -13370,7 +13421,7 @@ var DeployMcpServerInputSchema = z28.object({
13370
13421
  for (const module of input.modules) {
13371
13422
  if (names.has(module.name)) {
13372
13423
  ctx.addIssue({
13373
- code: z28.ZodIssueCode.custom,
13424
+ code: z29.ZodIssueCode.custom,
13374
13425
  path: ["modules"],
13375
13426
  message: `duplicate module name: ${module.name}`
13376
13427
  });
@@ -13379,18 +13430,18 @@ var DeployMcpServerInputSchema = z28.object({
13379
13430
  }
13380
13431
  if (!names.has(input.mainModule)) {
13381
13432
  ctx.addIssue({
13382
- code: z28.ZodIssueCode.custom,
13433
+ code: z29.ZodIssueCode.custom,
13383
13434
  path: ["mainModule"],
13384
13435
  message: `mainModule ${input.mainModule} is not among the submitted modules`
13385
13436
  });
13386
13437
  }
13387
13438
  });
13388
- var GetMcpServerInputSchema = z28.object({
13439
+ var GetMcpServerInputSchema = z29.object({
13389
13440
  orgId: McpPathSegmentSchema,
13390
13441
  slug: McpPathSegmentSchema
13391
13442
  });
13392
13443
  var GetMcpServerBrandingInputSchema = GetMcpServerInputSchema;
13393
- var GetMcpServerBrandingResponseSchema = z28.object({
13444
+ var GetMcpServerBrandingResponseSchema = z29.object({
13394
13445
  branding: McpServerBrandingSchema,
13395
13446
  inherited: DeploymentThemeSchema.nullable()
13396
13447
  });
@@ -13403,35 +13454,35 @@ var UpdateMcpServerAuthInputSchema = GetMcpServerInputSchema.extend(
13403
13454
  ).superRefine(mcpServerAuthChecks);
13404
13455
  var MCP_EXCHANGE_SECRET_MAX_LENGTH = 4096;
13405
13456
  var SetMcpServerExchangeSecretInputSchema = GetMcpServerInputSchema.extend({
13406
- secret: z28.string().min(1).max(MCP_EXCHANGE_SECRET_MAX_LENGTH).nullable()
13457
+ secret: z29.string().min(1).max(MCP_EXCHANGE_SECRET_MAX_LENGTH).nullable()
13407
13458
  });
13408
13459
  var SetMcpServerIpAllowListInputSchema = GetMcpServerInputSchema.extend({
13409
13460
  ranges: McpIpAllowListSchema
13410
13461
  });
13411
- var ListMcpServersInputSchema = z28.object({
13412
- orgId: z28.string()
13462
+ var ListMcpServersInputSchema = z29.object({
13463
+ orgId: z29.string()
13413
13464
  });
13414
13465
  var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
13415
13466
  var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
13416
13467
  var PauseMcpServerInputSchema = GetMcpServerInputSchema;
13417
13468
  var ResumeMcpServerInputSchema = GetMcpServerInputSchema;
13418
13469
  var RenameMcpServerInputSchema = GetMcpServerInputSchema.extend({ newSlug: McpPathSegmentSchema });
13419
- var GetMcpDeploymentInputSchema = z28.object({
13470
+ var GetMcpDeploymentInputSchema = z29.object({
13420
13471
  orgId: McpPathSegmentSchema,
13421
13472
  slug: McpPathSegmentSchema,
13422
13473
  /** Id of one of the server's attempts (the rows are uuid v7). */
13423
- deploymentId: z28.string().uuid()
13474
+ deploymentId: z29.string().uuid()
13424
13475
  });
13425
- var RollbackMcpServerInputSchema = z28.object({
13476
+ var RollbackMcpServerInputSchema = z29.object({
13426
13477
  orgId: McpPathSegmentSchema,
13427
13478
  slug: McpPathSegmentSchema,
13428
13479
  /** Id of the SUCCEEDED deployment whose payload should serve again. */
13429
- deploymentId: z28.string().min(1).max(64)
13480
+ deploymentId: z29.string().min(1).max(64)
13430
13481
  });
13431
13482
  var GetMcpCustomDomainInputSchema = GetMcpServerInputSchema;
13432
13483
  var RefreshMcpCustomDomainInputSchema = GetMcpServerInputSchema;
13433
13484
  var RemoveMcpCustomDomainInputSchema = GetMcpServerInputSchema;
13434
- var SetMcpCustomDomainInputSchema = z28.object({
13485
+ var SetMcpCustomDomainInputSchema = z29.object({
13435
13486
  orgId: McpPathSegmentSchema,
13436
13487
  slug: McpPathSegmentSchema,
13437
13488
  /**
@@ -13439,52 +13490,52 @@ var SetMcpCustomDomainInputSchema = z28.object({
13439
13490
  * against validateCustomDomain (customDomain.ts) and normalized by FDR;
13440
13491
  * the length cap only bounds what is parsed.
13441
13492
  */
13442
- hostname: z28.string().min(1).max(512)
13493
+ hostname: z29.string().min(1).max(512)
13443
13494
  });
13444
- var GetMcpAnalyticsInputSchema = z28.object({
13495
+ var GetMcpAnalyticsInputSchema = z29.object({
13445
13496
  orgId: McpPathSegmentSchema,
13446
13497
  slug: McpPathSegmentSchema,
13447
13498
  window: McpAnalyticsWindowSchema.default("24h")
13448
13499
  });
13449
- var McpDeploymentGitSchema = z28.object({
13450
- repoUrl: z28.string(),
13451
- branch: z28.string().nullish(),
13452
- commitSha: z28.string().nullish()
13500
+ var McpDeploymentGitSchema = z29.object({
13501
+ repoUrl: z29.string(),
13502
+ branch: z29.string().nullish(),
13503
+ commitSha: z29.string().nullish()
13453
13504
  });
13454
- var McpDeploymentSummarySchema = z28.object({
13455
- id: z28.string(),
13505
+ var McpDeploymentSummarySchema = z29.object({
13506
+ id: z29.string(),
13456
13507
  status: McpDeploymentStatusSchema,
13457
13508
  /** True when this deployment is the one the server currently serves. */
13458
- isActive: z28.boolean(),
13509
+ isActive: z29.boolean(),
13459
13510
  /**
13460
13511
  * Docker image name of the generator that produced this attempt's payload
13461
13512
  * (DeployMcpServerInputSchema.generatorName). Null only on the wire from
13462
13513
  * an FDR that predates the field; the column itself is required.
13463
13514
  */
13464
- generatorName: z28.string().nullish(),
13465
- generatorVersion: z28.string(),
13466
- createdAt: z28.string(),
13467
- createdBy: z28.string().nullish(),
13468
- error: z28.object({ name: z28.string(), message: z28.string() }).nullish(),
13515
+ generatorName: z29.string().nullish(),
13516
+ generatorVersion: z29.string(),
13517
+ createdAt: z29.string(),
13518
+ createdBy: z29.string().nullish(),
13519
+ error: z29.object({ name: z29.string(), message: z29.string() }).nullish(),
13469
13520
  /**
13470
13521
  * Set when this attempt republished an earlier deployment's payload
13471
13522
  * (rollbackServer): the id of that source deployment. Null for attempts
13472
13523
  * that came from a deploy.
13473
13524
  */
13474
- rolledBackFromDeploymentId: z28.string().nullish(),
13525
+ rolledBackFromDeploymentId: z29.string().nullish(),
13475
13526
  /**
13476
13527
  * Headline tool count of this attempt's payload, by the same rule as
13477
13528
  * McpServerCatalogSummarySchema.toolCount. Null when the stored payload
13478
13529
  * predates the current metadata schema.
13479
13530
  */
13480
- toolCount: z28.number().int().nullish(),
13531
+ toolCount: z29.number().int().nullish(),
13481
13532
  /**
13482
13533
  * Version of the Fern CLI that submitted this attempt, when one identified
13483
13534
  * itself (DeployMcpServerInputSchema.cliVersion). Null for attempts that
13484
13535
  * reached the deploy endpoint without it, and for rollbacks, which FDR
13485
13536
  * records on its own behalf.
13486
13537
  */
13487
- cliVersion: z28.string().nullish(),
13538
+ cliVersion: z29.string().nullish(),
13488
13539
  /**
13489
13540
  * The CI run that submitted this attempt, as the CLI described it in the
13490
13541
  * `X-CI-Source` header and FDR sanitized it (the same treatment docs
@@ -13493,7 +13544,7 @@ var McpDeploymentSummarySchema = z28.object({
13493
13544
  * and, like the deployer headers, self-asserted by the caller. Null for
13494
13545
  * local deploys and rollbacks.
13495
13546
  */
13496
- ciSource: z28.record(z28.string(), z28.unknown()).nullish(),
13547
+ ciSource: z29.record(z29.string(), z29.unknown()).nullish(),
13497
13548
  /**
13498
13549
  * The repository this attempt's payload was generated from, as the CLI
13499
13550
  * reported it (DeployMcpServerInputSchema.git). A rollback carries its
@@ -13509,47 +13560,47 @@ var McpDeploymentSummarySchema = z28.object({
13509
13560
  * deployment it restored always do — so it names what a version *is* rather
13510
13561
  * than which row it was. Null when the stored module list does not parse.
13511
13562
  */
13512
- bundleDigest: z28.string().nullish()
13563
+ bundleDigest: z29.string().nullish()
13513
13564
  });
13514
- var McpDeploymentInputFileSchema = z28.object({
13515
- name: z28.string(),
13516
- contentType: z28.string(),
13517
- hash: z28.string(),
13518
- downloadUrl: z28.string()
13565
+ var McpDeploymentInputFileSchema = z29.object({
13566
+ name: z29.string(),
13567
+ contentType: z29.string(),
13568
+ hash: z29.string(),
13569
+ downloadUrl: z29.string()
13519
13570
  });
13520
13571
  var McpDeploymentDetailSchema = McpDeploymentSummarySchema.extend({
13521
13572
  /** Empty when the stored metadata carries no `tools` (generators before provenance). */
13522
- tools: z28.array(McpDeploymentToolSchema),
13523
- skippedTools: z28.array(McpDeploymentSkippedToolSchema),
13573
+ tools: z29.array(McpDeploymentToolSchema),
13574
+ skippedTools: z29.array(McpDeploymentSkippedToolSchema),
13524
13575
  /** The stored toolset membership map, as deployed. */
13525
- toolsets: z28.record(z28.string(), z28.array(z28.string())),
13576
+ toolsets: z29.record(z29.string(), z29.array(z29.string())),
13526
13577
  /** The raw generators.yml `config:` block the CLI sent, or null. Visible to org members. */
13527
- config: z28.unknown().nullable(),
13578
+ config: z29.unknown().nullable(),
13528
13579
  /** Null when the attempt recorded no inputs (older CLIs, rollbacks of such rows). */
13529
- inputs: z28.array(McpDeploymentInputFileSchema).nullable()
13580
+ inputs: z29.array(McpDeploymentInputFileSchema).nullable()
13530
13581
  });
13531
- var McpCustomDomainStatusSchema = z28.enum(["PENDING", "ACTIVE", "FAILED"]);
13532
- var McpCustomDomainRecordSchema = z28.object({
13533
- type: z28.enum(["CNAME", "TXT"]),
13534
- name: z28.string(),
13535
- value: z28.string(),
13582
+ var McpCustomDomainStatusSchema = z29.enum(["PENDING", "ACTIVE", "FAILED"]);
13583
+ var McpCustomDomainRecordSchema = z29.object({
13584
+ type: z29.enum(["CNAME", "TXT"]),
13585
+ name: z29.string(),
13586
+ value: z29.string(),
13536
13587
  /** What the record is for, in a sentence the dashboard can show beside it. */
13537
- purpose: z28.string()
13588
+ purpose: z29.string()
13538
13589
  });
13539
- var McpCustomDomainSchema = z28.object({
13540
- hostname: z28.string(),
13590
+ var McpCustomDomainSchema = z29.object({
13591
+ hostname: z29.string(),
13541
13592
  status: McpCustomDomainStatusSchema,
13542
13593
  /** Records still to add; empty once the domain is ACTIVE. */
13543
- records: z28.array(McpCustomDomainRecordSchema),
13594
+ records: z29.array(McpCustomDomainRecordSchema),
13544
13595
  /** Why Cloudflare could not verify the domain or issue its certificate, when it said. */
13545
- errors: z28.array(z28.string()),
13546
- createdAt: z28.string(),
13547
- updatedAt: z28.string()
13548
- });
13549
- var McpServerSchema = z28.object({
13550
- id: z28.string(),
13551
- orgId: z28.string(),
13552
- slug: z28.string(),
13596
+ errors: z29.array(z29.string()),
13597
+ createdAt: z29.string(),
13598
+ updatedAt: z29.string()
13599
+ });
13600
+ var McpServerSchema = z29.object({
13601
+ id: z29.string(),
13602
+ orgId: z29.string(),
13603
+ slug: z29.string(),
13553
13604
  /** Per-server custom branding; empty when no values are set. */
13554
13605
  branding: McpServerBrandingSchema,
13555
13606
  /**
@@ -13563,9 +13614,9 @@ var McpServerSchema = z28.object({
13563
13614
  * setServerIpAllowList. Empty means open. Kept across deploys and
13564
13615
  * rollbacks. Absent only on the wire from an FDR that predates the field.
13565
13616
  */
13566
- ipAllowList: z28.array(z28.string()).optional(),
13617
+ ipAllowList: z29.array(z29.string()).optional(),
13567
13618
  /** The server is serving iff this is set; it names the serving deployment. */
13568
- activeDeploymentId: z28.string().nullish(),
13619
+ activeDeploymentId: z29.string().nullish(),
13569
13620
  /** Most recent publication attempt — how the last deploy went. */
13570
13621
  latestDeployment: McpDeploymentSummarySchema.nullish(),
13571
13622
  /**
@@ -13574,7 +13625,7 @@ var McpServerSchema = z28.object({
13574
13625
  * (KV_KEY_PREFIX_PAUSED in kv.ts). Independent of activeDeploymentId: a
13575
13626
  * paused server keeps its serving deployment and resumes exactly there.
13576
13627
  */
13577
- pausedAt: z28.string().nullish(),
13628
+ pausedAt: z29.string().nullish(),
13578
13629
  /**
13579
13630
  * What the server offers, derived from the ACTIVE deployment's stored
13580
13631
  * metadata (tools, toolsets, auth, configuration). Null when nothing is
@@ -13588,14 +13639,14 @@ var McpServerSchema = z28.object({
13588
13639
  * a UI shows both. Only an ACTIVE domain serves: read `customDomainStatus`
13589
13640
  * to tell a pending one from a live one.
13590
13641
  */
13591
- customDomain: z28.string().nullish(),
13642
+ customDomain: z29.string().nullish(),
13592
13643
  customDomainStatus: McpCustomDomainStatusSchema.nullish(),
13593
- url: z28.string().url(),
13594
- createdAt: z28.string(),
13595
- updatedAt: z28.string()
13644
+ url: z29.string().url(),
13645
+ createdAt: z29.string(),
13646
+ updatedAt: z29.string()
13596
13647
  });
13597
- var ListMcpServersResponseSchema = z28.object({ servers: z28.array(McpServerSchema) });
13598
- var ListMcpDeploymentsResponseSchema = z28.object({ deployments: z28.array(McpDeploymentSummarySchema) });
13648
+ var ListMcpServersResponseSchema = z29.object({ servers: z29.array(McpServerSchema) });
13649
+ var ListMcpDeploymentsResponseSchema = z29.object({ deployments: z29.array(McpDeploymentSummarySchema) });
13599
13650
  var mcpHostingContract = {
13600
13651
  deploy: oc15.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
13601
13652
  getServer: oc15.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
@@ -13683,7 +13734,19 @@ var mcpHostingContract = {
13683
13734
  * Analytics Engine by FDR (the tenant filter is applied server-side, so no
13684
13735
  * Cloudflare credential reaches the browser). See analytics.ts.
13685
13736
  */
13686
- getAnalytics: oc15.route({ method: "GET", path: "/servers/{slug}/analytics" }).input(GetMcpAnalyticsInputSchema).output(McpAnalyticsSchema)
13737
+ getAnalytics: oc15.route({ method: "GET", path: "/servers/{slug}/analytics" }).input(GetMcpAnalyticsInputSchema).output(McpAnalyticsSchema),
13738
+ /**
13739
+ * The org's exact tool-call count for a month against its allowance
13740
+ * (usage.ts). Any member. NOT_IMPLEMENTED when FDR has no usage read
13741
+ * token for the dispatcher.
13742
+ */
13743
+ getUsage: oc15.route({ method: "GET", path: "/usage" }).input(GetMcpUsageInputSchema).output(McpOrgUsageSchema),
13744
+ /**
13745
+ * Set the org's monthly allowance (sales raising a limit or approving an
13746
+ * org to go over). Fern staff (super-users) only. Applies at the
13747
+ * dispatcher within KV's propagation time plus its one-minute cache.
13748
+ */
13749
+ setUsageAllowance: oc15.route({ method: "PUT", path: "/usage/allowance" }).input(SetMcpUsageAllowanceInputSchema).output(McpOrgUsageSchema)
13687
13750
  };
13688
13751
 
13689
13752
  // src/orpc-client/mcp-hosting/client.ts
@@ -13705,87 +13768,87 @@ import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
13705
13768
 
13706
13769
  // src/orpc-client/pdf-export/contract.ts
13707
13770
  import { oc as oc16 } from "@orpc/contract";
13708
- import * as z29 from "zod";
13709
- var PdfExportScopeSchema = z29.object({
13710
- pageSlugs: z29.array(z29.string())
13711
- });
13712
- var PdfExportOptionsV1Schema = z29.object({
13713
- coverTitle: z29.string().nullish(),
13714
- coverSubtitle: z29.string().nullish(),
13715
- hideCoverFooter: z29.boolean().nullish(),
13716
- headerLeftTemplate: z29.string().nullish(),
13717
- headerRightTemplate: z29.string().nullish(),
13718
- footerLeftTemplate: z29.string().nullish(),
13719
- footerRightTemplate: z29.string().nullish(),
13771
+ import * as z30 from "zod";
13772
+ var PdfExportScopeSchema = z30.object({
13773
+ pageSlugs: z30.array(z30.string())
13774
+ });
13775
+ var PdfExportOptionsV1Schema = z30.object({
13776
+ coverTitle: z30.string().nullish(),
13777
+ coverSubtitle: z30.string().nullish(),
13778
+ hideCoverFooter: z30.boolean().nullish(),
13779
+ headerLeftTemplate: z30.string().nullish(),
13780
+ headerRightTemplate: z30.string().nullish(),
13781
+ footerLeftTemplate: z30.string().nullish(),
13782
+ footerRightTemplate: z30.string().nullish(),
13720
13783
  scope: PdfExportScopeSchema.nullish(),
13721
- hideCover: z29.boolean().nullish(),
13722
- hideToc: z29.boolean().nullish()
13784
+ hideCover: z30.boolean().nullish(),
13785
+ hideToc: z30.boolean().nullish()
13723
13786
  });
13724
- var PdfExportOptionsSchema = z29.discriminatedUnion("version", [
13725
- z29.object({ version: z29.literal("v1") }).merge(PdfExportOptionsV1Schema)
13787
+ var PdfExportOptionsSchema = z30.discriminatedUnion("version", [
13788
+ z30.object({ version: z30.literal("v1") }).merge(PdfExportOptionsV1Schema)
13726
13789
  ]);
13727
- var PdfExportTaskStatusSchema = z29.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
13728
- var PdfExportFormatSchema = z29.enum(["pdf", "html", "md"]);
13729
- var PdfExportTaskSchema = z29.object({
13730
- id: z29.string(),
13731
- orgId: z29.string(),
13732
- docsUrl: z29.string(),
13733
- productId: z29.string().nullish(),
13734
- versionId: z29.string().nullish(),
13735
- requesterName: z29.string().nullish(),
13736
- notifyEmails: z29.array(z29.string()).nullish(),
13790
+ var PdfExportTaskStatusSchema = z30.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
13791
+ var PdfExportFormatSchema = z30.enum(["pdf", "html", "md"]);
13792
+ var PdfExportTaskSchema = z30.object({
13793
+ id: z30.string(),
13794
+ orgId: z30.string(),
13795
+ docsUrl: z30.string(),
13796
+ productId: z30.string().nullish(),
13797
+ versionId: z30.string().nullish(),
13798
+ requesterName: z30.string().nullish(),
13799
+ notifyEmails: z30.array(z30.string()).nullish(),
13737
13800
  status: PdfExportTaskStatusSchema,
13738
13801
  format: PdfExportFormatSchema.nullish(),
13739
13802
  options: PdfExportOptionsSchema.nullish(),
13740
- createdAt: z29.string(),
13741
- startedAt: z29.string().nullish(),
13742
- completedAt: z29.string().nullish(),
13743
- fileName: z29.string().nullish(),
13744
- sizeBytes: z29.number().nullish(),
13745
- errorMessage: z29.string().nullish()
13746
- });
13747
- var ListPdfExportTasksResponseSchema = z29.object({
13748
- tasks: z29.array(PdfExportTaskSchema)
13749
- });
13750
- var PdfExportDownloadResponseSchema = z29.object({
13751
- downloadUrl: z29.string(),
13752
- fileName: z29.string(),
13753
- sizeBytes: z29.number()
13754
- });
13755
- var CreatePdfExportTaskInputSchema = z29.object({
13756
- orgId: z29.string(),
13757
- docsUrl: z29.string(),
13758
- productId: z29.string().nullish(),
13759
- versionId: z29.string().nullish(),
13760
- requesterName: z29.string().nullish(),
13803
+ createdAt: z30.string(),
13804
+ startedAt: z30.string().nullish(),
13805
+ completedAt: z30.string().nullish(),
13806
+ fileName: z30.string().nullish(),
13807
+ sizeBytes: z30.number().nullish(),
13808
+ errorMessage: z30.string().nullish()
13809
+ });
13810
+ var ListPdfExportTasksResponseSchema = z30.object({
13811
+ tasks: z30.array(PdfExportTaskSchema)
13812
+ });
13813
+ var PdfExportDownloadResponseSchema = z30.object({
13814
+ downloadUrl: z30.string(),
13815
+ fileName: z30.string(),
13816
+ sizeBytes: z30.number()
13817
+ });
13818
+ var CreatePdfExportTaskInputSchema = z30.object({
13819
+ orgId: z30.string(),
13820
+ docsUrl: z30.string(),
13821
+ productId: z30.string().nullish(),
13822
+ versionId: z30.string().nullish(),
13823
+ requesterName: z30.string().nullish(),
13761
13824
  format: PdfExportFormatSchema.nullish(),
13762
13825
  options: PdfExportOptionsSchema.nullish()
13763
13826
  });
13764
- var ListPdfExportTasksInputSchema = z29.object({
13765
- orgId: z29.string(),
13766
- docsUrl: z29.string(),
13767
- limit: z29.coerce.number().nullish()
13827
+ var ListPdfExportTasksInputSchema = z30.object({
13828
+ orgId: z30.string(),
13829
+ docsUrl: z30.string(),
13830
+ limit: z30.coerce.number().nullish()
13768
13831
  });
13769
- var GetPdfExportTaskInputSchema = z29.object({
13770
- taskId: z29.string()
13832
+ var GetPdfExportTaskInputSchema = z30.object({
13833
+ taskId: z30.string()
13771
13834
  });
13772
- var UpdatePdfExportTaskInputSchema = z29.object({
13773
- taskId: z29.string(),
13835
+ var UpdatePdfExportTaskInputSchema = z30.object({
13836
+ taskId: z30.string(),
13774
13837
  status: PdfExportTaskStatusSchema,
13775
- startedAt: z29.string().nullish(),
13776
- completedAt: z29.string().nullish(),
13777
- s3Key: z29.string().nullish(),
13778
- fileName: z29.string().nullish(),
13779
- sizeBytes: z29.number().nullish(),
13780
- errorMessage: z29.string().nullish()
13838
+ startedAt: z30.string().nullish(),
13839
+ completedAt: z30.string().nullish(),
13840
+ s3Key: z30.string().nullish(),
13841
+ fileName: z30.string().nullish(),
13842
+ sizeBytes: z30.number().nullish(),
13843
+ errorMessage: z30.string().nullish()
13781
13844
  });
13782
- var GetPdfExportDownloadUrlInputSchema = z29.object({
13783
- taskId: z29.string()
13845
+ var GetPdfExportDownloadUrlInputSchema = z30.object({
13846
+ taskId: z30.string()
13784
13847
  });
13785
- var CleanupPdfExportsResponseSchema = z29.object({
13786
- expiredTasksDeleted: z29.number(),
13787
- s3ObjectsDeleted: z29.number(),
13788
- timedOutTasksFailed: z29.number()
13848
+ var CleanupPdfExportsResponseSchema = z30.object({
13849
+ expiredTasksDeleted: z30.number(),
13850
+ s3ObjectsDeleted: z30.number(),
13851
+ timedOutTasksFailed: z30.number()
13789
13852
  });
13790
13853
  var pdfExportContract = {
13791
13854
  createTask: oc16.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
@@ -13818,8 +13881,8 @@ import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
13818
13881
 
13819
13882
  // src/orpc-client/sdks/contract.ts
13820
13883
  import { oc as oc17 } from "@orpc/contract";
13821
- import * as z30 from "zod";
13822
- var LanguageEnumSchema = z30.enum([
13884
+ import * as z31 from "zod";
13885
+ var LanguageEnumSchema = z31.enum([
13823
13886
  "Go",
13824
13887
  "TypeScript",
13825
13888
  "Java",
@@ -13830,14 +13893,14 @@ var LanguageEnumSchema = z30.enum([
13830
13893
  "Swift",
13831
13894
  "Rust"
13832
13895
  ]);
13833
- var VersionBumpEnumSchema = z30.enum(["MAJOR", "MINOR", "PATCH"]);
13834
- var ComputeSemanticVersionInputSchema = z30.object({
13835
- package: z30.string(),
13896
+ var VersionBumpEnumSchema = z31.enum(["MAJOR", "MINOR", "PATCH"]);
13897
+ var ComputeSemanticVersionInputSchema = z31.object({
13898
+ package: z31.string(),
13836
13899
  language: LanguageEnumSchema,
13837
- githubRepository: z30.string().nullish()
13900
+ githubRepository: z31.string().nullish()
13838
13901
  });
13839
- var ComputeSemanticVersionOutputSchema = z30.object({
13840
- version: z30.string(),
13902
+ var ComputeSemanticVersionOutputSchema = z31.object({
13903
+ version: z31.string(),
13841
13904
  bump: VersionBumpEnumSchema
13842
13905
  });
13843
13906
  var sdksContract = {
@@ -13863,32 +13926,32 @@ import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
13863
13926
 
13864
13927
  // src/orpc-client/slugs/contract.ts
13865
13928
  import { oc as oc18 } from "@orpc/contract";
13866
- import * as z31 from "zod";
13867
- var SlugsInputSchema = z31.object({
13868
- domain: z31.string(),
13869
- basepath: z31.string().optional().default("")
13870
- });
13871
- var SlugEntrySchema = z31.object({
13872
- orgId: z31.string(),
13873
- domain: z31.string(),
13874
- basepath: z31.string(),
13875
- slug: z31.string(),
13876
- lastUpdated: z31.string()
13877
- });
13878
- var MarkdownEntrySchema = z31.object({
13879
- orgId: z31.string(),
13880
- domain: z31.string(),
13881
- basepath: z31.string(),
13882
- pageId: z31.string(),
13883
- slug: z31.string(),
13884
- hash: z31.string(),
13885
- lastUpdated: z31.string()
13886
- });
13887
- var GetSlugEntriesResponseSchema = z31.object({
13888
- entries: z31.array(SlugEntrySchema)
13889
- });
13890
- var GetMarkdownEntriesResponseSchema = z31.object({
13891
- entries: z31.array(MarkdownEntrySchema)
13929
+ import * as z32 from "zod";
13930
+ var SlugsInputSchema = z32.object({
13931
+ domain: z32.string(),
13932
+ basepath: z32.string().optional().default("")
13933
+ });
13934
+ var SlugEntrySchema = z32.object({
13935
+ orgId: z32.string(),
13936
+ domain: z32.string(),
13937
+ basepath: z32.string(),
13938
+ slug: z32.string(),
13939
+ lastUpdated: z32.string()
13940
+ });
13941
+ var MarkdownEntrySchema = z32.object({
13942
+ orgId: z32.string(),
13943
+ domain: z32.string(),
13944
+ basepath: z32.string(),
13945
+ pageId: z32.string(),
13946
+ slug: z32.string(),
13947
+ hash: z32.string(),
13948
+ lastUpdated: z32.string()
13949
+ });
13950
+ var GetSlugEntriesResponseSchema = z32.object({
13951
+ entries: z32.array(SlugEntrySchema)
13952
+ });
13953
+ var GetMarkdownEntriesResponseSchema = z32.object({
13954
+ entries: z32.array(MarkdownEntrySchema)
13892
13955
  });
13893
13956
  var slugsContract = {
13894
13957
  getSlugEntries: oc18.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
@@ -13921,102 +13984,102 @@ __export(contract_exports3, {
13921
13984
  snippetsFactoryContract: () => snippetsFactoryContract
13922
13985
  });
13923
13986
  import { oc as oc19 } from "@orpc/contract";
13924
- import * as z32 from "zod";
13925
- var TypeScriptSdkSchema = z32.object({ package: z32.string(), version: z32.string() });
13926
- var PythonSdkSchema = z32.object({ package: z32.string(), version: z32.string() });
13927
- var GoSdkSchema = z32.object({ githubRepo: z32.string(), version: z32.string() });
13928
- var RubySdkSchema = z32.object({ gem: z32.string(), version: z32.string() });
13929
- var JavaSdkSchema = z32.object({ group: z32.string(), artifact: z32.string(), version: z32.string() });
13930
- var CsharpSdkSchema = z32.object({ package: z32.string(), version: z32.string() });
13931
- var BaseSnippetCreateSchema = z32.object({
13987
+ import * as z33 from "zod";
13988
+ var TypeScriptSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
13989
+ var PythonSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
13990
+ var GoSdkSchema = z33.object({ githubRepo: z33.string(), version: z33.string() });
13991
+ var RubySdkSchema = z33.object({ gem: z33.string(), version: z33.string() });
13992
+ var JavaSdkSchema = z33.object({ group: z33.string(), artifact: z33.string(), version: z33.string() });
13993
+ var CsharpSdkSchema = z33.object({ package: z33.string(), version: z33.string() });
13994
+ var BaseSnippetCreateSchema = z33.object({
13932
13995
  endpoint: EndpointIdentifierSchema,
13933
- exampleIdentifier: z32.string().nullish()
13996
+ exampleIdentifier: z33.string().nullish()
13934
13997
  });
13935
- var SdkSnippetsCreateSchema = z32.discriminatedUnion("type", [
13936
- z32.object({
13937
- type: z32.literal("typescript"),
13998
+ var SdkSnippetsCreateSchema = z33.discriminatedUnion("type", [
13999
+ z33.object({
14000
+ type: z33.literal("typescript"),
13938
14001
  sdk: TypeScriptSdkSchema,
13939
- snippets: z32.array(BaseSnippetCreateSchema.extend({ snippet: z32.object({ client: z32.string() }) }))
14002
+ snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
13940
14003
  }),
13941
- z32.object({
13942
- type: z32.literal("python"),
14004
+ z33.object({
14005
+ type: z33.literal("python"),
13943
14006
  sdk: PythonSdkSchema,
13944
- snippets: z32.array(
14007
+ snippets: z33.array(
13945
14008
  BaseSnippetCreateSchema.extend({
13946
- snippet: z32.object({ async_client: z32.string(), sync_client: z32.string() })
14009
+ snippet: z33.object({ async_client: z33.string(), sync_client: z33.string() })
13947
14010
  })
13948
14011
  )
13949
14012
  }),
13950
- z32.object({
13951
- type: z32.literal("go"),
14013
+ z33.object({
14014
+ type: z33.literal("go"),
13952
14015
  sdk: GoSdkSchema,
13953
- snippets: z32.array(BaseSnippetCreateSchema.extend({ snippet: z32.object({ client: z32.string() }) }))
14016
+ snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
13954
14017
  }),
13955
- z32.object({
13956
- type: z32.literal("java"),
14018
+ z33.object({
14019
+ type: z33.literal("java"),
13957
14020
  sdk: JavaSdkSchema,
13958
- snippets: z32.array(
14021
+ snippets: z33.array(
13959
14022
  BaseSnippetCreateSchema.extend({
13960
- snippet: z32.object({ async_client: z32.string(), sync_client: z32.string() })
14023
+ snippet: z33.object({ async_client: z33.string(), sync_client: z33.string() })
13961
14024
  })
13962
14025
  )
13963
14026
  }),
13964
- z32.object({
13965
- type: z32.literal("ruby"),
14027
+ z33.object({
14028
+ type: z33.literal("ruby"),
13966
14029
  sdk: RubySdkSchema,
13967
- snippets: z32.array(BaseSnippetCreateSchema.extend({ snippet: z32.object({ client: z32.string() }) }))
14030
+ snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
13968
14031
  }),
13969
- z32.object({
13970
- type: z32.literal("csharp"),
14032
+ z33.object({
14033
+ type: z33.literal("csharp"),
13971
14034
  sdk: CsharpSdkSchema,
13972
- snippets: z32.array(BaseSnippetCreateSchema.extend({ snippet: z32.object({ client: z32.string() }) }))
14035
+ snippets: z33.array(BaseSnippetCreateSchema.extend({ snippet: z33.object({ client: z33.string() }) }))
13973
14036
  })
13974
14037
  ]);
13975
14038
  var snippetsFactoryContract = {
13976
14039
  createSnippetsForSdk: oc19.route({ method: "POST", path: "/create" }).input(
13977
- z32.object({
13978
- orgId: z32.string(),
13979
- apiId: z32.string(),
14040
+ z33.object({
14041
+ orgId: z33.string(),
14042
+ apiId: z33.string(),
13980
14043
  snippets: SdkSnippetsCreateSchema
13981
14044
  })
13982
14045
  )
13983
14046
  };
13984
- var ParameterPayloadSchema = z32.object({
13985
- name: z32.string(),
13986
- value: z32.unknown()
14047
+ var ParameterPayloadSchema = z33.object({
14048
+ name: z33.string(),
14049
+ value: z33.unknown()
13987
14050
  });
13988
- var AuthPayloadSchema = z32.discriminatedUnion("type", [
13989
- z32.object({ type: z32.literal("bearer"), token: z32.string() }),
13990
- z32.object({ type: z32.literal("basic"), username: z32.string(), password: z32.string() })
14051
+ var AuthPayloadSchema = z33.discriminatedUnion("type", [
14052
+ z33.object({ type: z33.literal("bearer"), token: z33.string() }),
14053
+ z33.object({ type: z33.literal("basic"), username: z33.string(), password: z33.string() })
13991
14054
  ]);
13992
- var CustomSnippetPayloadSchema = z32.object({
13993
- headers: z32.array(ParameterPayloadSchema).nullish(),
13994
- pathParameters: z32.array(ParameterPayloadSchema).nullish(),
13995
- queryParameters: z32.array(ParameterPayloadSchema).nullish(),
13996
- requestBody: z32.unknown().nullish(),
14055
+ var CustomSnippetPayloadSchema = z33.object({
14056
+ headers: z33.array(ParameterPayloadSchema).nullish(),
14057
+ pathParameters: z33.array(ParameterPayloadSchema).nullish(),
14058
+ queryParameters: z33.array(ParameterPayloadSchema).nullish(),
14059
+ requestBody: z33.unknown().nullish(),
13997
14060
  auth: AuthPayloadSchema.nullish()
13998
14061
  });
13999
14062
  var snippetsContract = {
14000
14063
  get: oc19.route({ method: "POST", path: "/" }).input(
14001
- z32.object({
14002
- orgId: z32.string().nullish(),
14003
- apiId: z32.string().nullish(),
14004
- sdks: z32.array(SdkRequestSchema).nullish(),
14064
+ z33.object({
14065
+ orgId: z33.string().nullish(),
14066
+ apiId: z33.string().nullish(),
14067
+ sdks: z33.array(SdkRequestSchema).nullish(),
14005
14068
  endpoint: EndpointIdentifierSchema,
14006
- exampleIdentifier: z32.string().nullish(),
14069
+ exampleIdentifier: z33.string().nullish(),
14007
14070
  payload: CustomSnippetPayloadSchema.nullish()
14008
14071
  })
14009
- ).output(z32.array(z32.unknown())),
14072
+ ).output(z33.array(z33.unknown())),
14010
14073
  load: oc19.route({ method: "POST", path: "/load" }).input(
14011
- z32.object({
14012
- orgId: z32.string().nullish(),
14013
- apiId: z32.string().nullish(),
14014
- sdks: z32.array(SdkRequestSchema).nullish()
14074
+ z33.object({
14075
+ orgId: z33.string().nullish(),
14076
+ apiId: z33.string().nullish(),
14077
+ sdks: z33.array(SdkRequestSchema).nullish()
14015
14078
  })
14016
14079
  ).output(
14017
- z32.object({
14018
- next: z32.number().nullish(),
14019
- snippets: z32.record(z32.string(), z32.unknown())
14080
+ z33.object({
14081
+ next: z33.number().nullish(),
14082
+ snippets: z33.record(z33.string(), z33.unknown())
14020
14083
  })
14021
14084
  )
14022
14085
  };
@@ -14051,44 +14114,44 @@ import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
14051
14114
 
14052
14115
  // src/orpc-client/templates/contract.ts
14053
14116
  import { oc as oc20 } from "@orpc/contract";
14054
- import * as z33 from "zod";
14055
- var SnippetRegistryEntrySchema = z33.object({
14117
+ import * as z34 from "zod";
14118
+ var SnippetRegistryEntrySchema = z34.object({
14056
14119
  sdk: SdkSchema,
14057
- endpointId: z33.object({
14058
- path: z33.string(),
14120
+ endpointId: z34.object({
14121
+ path: z34.string(),
14059
14122
  method: HttpMethodSchema,
14060
- identifierOverride: z33.string().nullish()
14123
+ identifierOverride: z34.string().nullish()
14061
14124
  }),
14062
- snippetTemplate: z33.object({
14063
- type: z33.literal("v1"),
14064
- functionInvocation: z33.unknown(),
14065
- clientInstantiation: z33.string()
14125
+ snippetTemplate: z34.object({
14126
+ type: z34.literal("v1"),
14127
+ functionInvocation: z34.unknown(),
14128
+ clientInstantiation: z34.string()
14066
14129
  }),
14067
- additionalTemplates: z33.record(z33.string(), z33.unknown()).nullish()
14130
+ additionalTemplates: z34.record(z34.string(), z34.unknown()).nullish()
14068
14131
  });
14069
- var RegisterInputSchema = z33.object({
14070
- orgId: z33.string(),
14071
- apiId: z33.string(),
14072
- apiDefinitionId: z33.string(),
14132
+ var RegisterInputSchema = z34.object({
14133
+ orgId: z34.string(),
14134
+ apiId: z34.string(),
14135
+ apiDefinitionId: z34.string(),
14073
14136
  snippet: SnippetRegistryEntrySchema
14074
14137
  });
14075
- var RegisterBatchInputSchema = z33.object({
14076
- orgId: z33.string(),
14077
- apiId: z33.string(),
14078
- apiDefinitionId: z33.string(),
14079
- snippets: z33.array(SnippetRegistryEntrySchema)
14138
+ var RegisterBatchInputSchema = z34.object({
14139
+ orgId: z34.string(),
14140
+ apiId: z34.string(),
14141
+ apiDefinitionId: z34.string(),
14142
+ snippets: z34.array(SnippetRegistryEntrySchema)
14080
14143
  });
14081
- var GetInputSchema = z33.object({
14082
- orgId: z33.string(),
14083
- apiId: z33.string(),
14144
+ var GetInputSchema = z34.object({
14145
+ orgId: z34.string(),
14146
+ apiId: z34.string(),
14084
14147
  sdk: SdkSchema,
14085
- endpointId: z33.object({
14086
- path: z33.string(),
14148
+ endpointId: z34.object({
14149
+ path: z34.string(),
14087
14150
  method: HttpMethodSchema,
14088
- identifierOverride: z33.string().nullish()
14151
+ identifierOverride: z34.string().nullish()
14089
14152
  })
14090
14153
  });
14091
- var EndpointSnippetTemplateSchema = z33.record(z33.string(), z33.unknown());
14154
+ var EndpointSnippetTemplateSchema = z34.record(z34.string(), z34.unknown());
14092
14155
  var templatesContract = {
14093
14156
  register: oc20.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
14094
14157
  registerBatch: oc20.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
@@ -14115,18 +14178,18 @@ import { OpenAPILink as OpenAPILink23 } from "@orpc/openapi-client/fetch";
14115
14178
 
14116
14179
  // src/orpc-client/tokens/contract.ts
14117
14180
  import { oc as oc21 } from "@orpc/contract";
14118
- import * as z34 from "zod";
14119
- var GenerateTokenInputSchema = z34.object({
14120
- orgId: z34.string(),
14121
- scope: z34.string()
14181
+ import * as z35 from "zod";
14182
+ var GenerateTokenInputSchema = z35.object({
14183
+ orgId: z35.string(),
14184
+ scope: z35.string()
14122
14185
  });
14123
- var RevokeTokenInputSchema = z34.object({
14124
- orgId: z34.string(),
14125
- tokenId: z34.string()
14186
+ var RevokeTokenInputSchema = z35.object({
14187
+ orgId: z35.string(),
14188
+ tokenId: z35.string()
14126
14189
  });
14127
- var GenerateTokenOutputSchema = z34.object({
14128
- token: z34.string(),
14129
- id: z34.string()
14190
+ var GenerateTokenOutputSchema = z35.object({
14191
+ token: z35.string(),
14192
+ id: z35.string()
14130
14193
  });
14131
14194
  var tokensContract = {
14132
14195
  generate: oc21.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
@@ -14409,85 +14472,85 @@ __export(APIV1Db_exports, {
14409
14472
  });
14410
14473
 
14411
14474
  // src/orpc-client/api/contract-db.ts
14412
- import * as z35 from "zod";
14413
- var EndpointSnippetTemplatesSchema = z35.object({
14414
- typescript: z35.unknown().nullish(),
14415
- python: z35.unknown().nullish()
14475
+ import * as z36 from "zod";
14476
+ var EndpointSnippetTemplatesSchema = z36.object({
14477
+ typescript: z36.unknown().nullish(),
14478
+ python: z36.unknown().nullish()
14416
14479
  });
14417
- var DbHttpRequestSchema = z35.object({
14418
- description: z35.string().nullish(),
14419
- contentType: z35.string().nullish(),
14480
+ var DbHttpRequestSchema = z36.object({
14481
+ description: z36.string().nullish(),
14482
+ contentType: z36.string().nullish(),
14420
14483
  type: RegisterHttpRequestBodyShapeSchema
14421
14484
  });
14422
- var DbHttpRequestsV2Schema = z35.object({
14423
- requests: z35.array(DbHttpRequestSchema).nullish()
14485
+ var DbHttpRequestsV2Schema = z36.object({
14486
+ requests: z36.array(DbHttpRequestSchema).nullish()
14424
14487
  });
14425
- var DbEndpointDefinitionSchema = z35.object({
14426
- description: z35.string().nullish(),
14427
- subtitle: z35.string().nullish(),
14488
+ var DbEndpointDefinitionSchema = z36.object({
14489
+ description: z36.string().nullish(),
14490
+ subtitle: z36.string().nullish(),
14428
14491
  availability: AvailabilitySchema.nullish(),
14429
- authed: z35.boolean().nullish(),
14430
- authV2: z35.array(AuthSchemeIdSchema).nullish(),
14431
- multiAuth: z35.array(MultipleAuthTypeSchema).nullish(),
14492
+ authed: z36.boolean().nullish(),
14493
+ authV2: z36.array(AuthSchemeIdSchema).nullish(),
14494
+ multiAuth: z36.array(MultipleAuthTypeSchema).nullish(),
14432
14495
  defaultEnvironment: EnvironmentIdSchema.nullish(),
14433
- environments: z35.array(EnvironmentSchema).nullish(),
14496
+ environments: z36.array(EnvironmentSchema).nullish(),
14434
14497
  method: HttpMethodSchema,
14435
14498
  id: EndpointIdSchema,
14436
- originalEndpointId: z35.string().nullish(),
14437
- urlSlug: z35.string(),
14438
- migratedFromUrlSlugs: z35.array(z35.string()).nullish(),
14439
- name: z35.string().nullish(),
14499
+ originalEndpointId: z36.string().nullish(),
14500
+ urlSlug: z36.string(),
14501
+ migratedFromUrlSlugs: z36.array(z36.string()).nullish(),
14502
+ name: z36.string().nullish(),
14440
14503
  path: EndpointPathSchema,
14441
- queryParameters: z35.array(QueryParameterSchema),
14442
- headers: z35.array(HeaderSchema),
14443
- responseHeaders: z35.array(HeaderSchema).nullish(),
14504
+ queryParameters: z36.array(QueryParameterSchema),
14505
+ headers: z36.array(HeaderSchema),
14506
+ responseHeaders: z36.array(HeaderSchema).nullish(),
14444
14507
  request: DbHttpRequestSchema.nullish(),
14445
14508
  requestsV2: DbHttpRequestsV2Schema.nullish(),
14446
14509
  response: RegisterHttpResponseSchema.nullish(),
14447
14510
  responsesV2: RegisterHttpResponsesV2Schema.nullish(),
14448
- errors: z35.array(ErrorDeclarationSchema).nullish(),
14449
- errorsV2: z35.array(RegisterErrorDeclarationV2Schema).nullish(),
14450
- examples: z35.array(RegisterExampleEndpointCallSchema),
14511
+ errors: z36.array(ErrorDeclarationSchema).nullish(),
14512
+ errorsV2: z36.array(RegisterErrorDeclarationV2Schema).nullish(),
14513
+ examples: z36.array(RegisterExampleEndpointCallSchema),
14451
14514
  snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
14452
14515
  protocol: ProtocolSchema.nullish(),
14453
- includeInApiExplorer: z35.boolean().nullish()
14454
- });
14455
- var DbApiDefinitionPackageSchema = z35.object({
14456
- endpoints: z35.array(DbEndpointDefinitionSchema),
14457
- websockets: z35.array(RegisterWebSocketChannelSchema).nullish(),
14458
- webhooks: z35.array(RegisterWebhookDefinitionSchema).nullish(),
14459
- graphqlOperations: z35.array(GraphQlOperationSchema).nullish(),
14460
- types: z35.array(TypeIdSchema),
14461
- subpackages: z35.array(SubpackageIdSchema),
14516
+ includeInApiExplorer: z36.boolean().nullish()
14517
+ });
14518
+ var DbApiDefinitionPackageSchema = z36.object({
14519
+ endpoints: z36.array(DbEndpointDefinitionSchema),
14520
+ websockets: z36.array(RegisterWebSocketChannelSchema).nullish(),
14521
+ webhooks: z36.array(RegisterWebhookDefinitionSchema).nullish(),
14522
+ graphqlOperations: z36.array(GraphQlOperationSchema).nullish(),
14523
+ types: z36.array(TypeIdSchema),
14524
+ subpackages: z36.array(SubpackageIdSchema),
14462
14525
  pointsTo: SubpackageIdSchema.nullish()
14463
14526
  });
14464
- var DbApiDefinitionSubpackageSchema = z35.object({
14527
+ var DbApiDefinitionSubpackageSchema = z36.object({
14465
14528
  ...DbApiDefinitionPackageSchema.shape,
14466
- description: z35.string().nullish(),
14529
+ description: z36.string().nullish(),
14467
14530
  parent: SubpackageIdSchema.nullish(),
14468
14531
  subpackageId: SubpackageIdSchema,
14469
- name: z35.string(),
14470
- urlSlug: z35.string(),
14471
- displayName: z35.string().nullish()
14532
+ name: z36.string(),
14533
+ urlSlug: z36.string(),
14534
+ displayName: z36.string().nullish()
14472
14535
  });
14473
- var DbApiDefinitionSchema = z35.object({
14536
+ var DbApiDefinitionSchema = z36.object({
14474
14537
  id: ApiDefinitionIdSchema,
14475
- apiName: z35.string().nullish(),
14476
- specVersion: z35.string().nullish(),
14538
+ apiName: z36.string().nullish(),
14539
+ specVersion: z36.string().nullish(),
14477
14540
  rootPackage: DbApiDefinitionPackageSchema,
14478
- types: z35.record(TypeIdSchema, RegisterTypeDefinitionSchema),
14479
- subpackages: z35.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
14541
+ types: z36.record(TypeIdSchema, RegisterTypeDefinitionSchema),
14542
+ subpackages: z36.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
14480
14543
  snippetsConfiguration: SnippetsConfigSchema.nullish(),
14481
14544
  auth: ApiAuthSchema.nullish(),
14482
- authSchemes: z35.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
14483
- hasMultipleBaseUrls: z35.boolean(),
14545
+ authSchemes: z36.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
14546
+ hasMultipleBaseUrls: z36.boolean(),
14484
14547
  navigation: ApiNavigationConfigRootSchema.nullish(),
14485
- globalHeaders: z35.array(HeaderSchema).nullish()
14548
+ globalHeaders: z36.array(HeaderSchema).nullish()
14486
14549
  });
14487
- var DbEndpointWithContextSchema = z35.object({
14550
+ var DbEndpointWithContextSchema = z36.object({
14488
14551
  endpoint: DbEndpointDefinitionSchema,
14489
- authSchemes: z35.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
14490
- globalHeaders: z35.array(HeaderSchema).nullish()
14552
+ authSchemes: z36.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
14553
+ globalHeaders: z36.array(HeaderSchema).nullish()
14491
14554
  });
14492
14555
 
14493
14556
  // src/client/APIV1Read.ts
@@ -15079,15 +15142,15 @@ __export(DocsV1Db_exports, {
15079
15142
  });
15080
15143
 
15081
15144
  // src/client/docs-types/db.ts
15082
- import * as z37 from "zod";
15145
+ import * as z38 from "zod";
15083
15146
 
15084
15147
  // src/client/docs-types/db-docsRead.ts
15085
- import * as z36 from "zod";
15086
- var BackgroundSchema2 = z36.discriminatedUnion("type", [
15087
- z36.object({ type: z36.literal("solid"), ...RgbaColorSchema.shape }),
15088
- z36.object({ type: z36.literal("gradient") })
15148
+ import * as z37 from "zod";
15149
+ var BackgroundSchema2 = z37.discriminatedUnion("type", [
15150
+ z37.object({ type: z37.literal("solid"), ...RgbaColorSchema.shape }),
15151
+ z37.object({ type: z37.literal("gradient") })
15089
15152
  ]);
15090
- var ThemeConfigSchema3 = z36.object({
15153
+ var ThemeConfigSchema3 = z37.object({
15091
15154
  logo: FileIdSchema2.optional(),
15092
15155
  backgroundImage: FileIdSchema2.optional(),
15093
15156
  accentPrimary: RgbaColorSchema,
@@ -15109,175 +15172,175 @@ var ThemeConfigSchema3 = z36.object({
15109
15172
  accent11: RgbaColorSchema.optional(),
15110
15173
  accent12: RgbaColorSchema.optional()
15111
15174
  });
15112
- var DarkAndLightModeConfigSchema3 = z36.object({
15175
+ var DarkAndLightModeConfigSchema3 = z37.object({
15113
15176
  dark: ThemeConfigSchema3,
15114
15177
  light: ThemeConfigSchema3
15115
15178
  });
15116
- var ColorsConfigV3Schema3 = z36.discriminatedUnion("type", [
15117
- z36.object({ type: z36.literal("dark"), ...ThemeConfigSchema3.shape }),
15118
- z36.object({ type: z36.literal("light"), ...ThemeConfigSchema3.shape }),
15119
- z36.object({ type: z36.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
15179
+ var ColorsConfigV3Schema3 = z37.discriminatedUnion("type", [
15180
+ z37.object({ type: z37.literal("dark"), ...ThemeConfigSchema3.shape }),
15181
+ z37.object({ type: z37.literal("light"), ...ThemeConfigSchema3.shape }),
15182
+ z37.object({ type: z37.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
15120
15183
  ]);
15121
15184
 
15122
15185
  // src/client/docs-types/db.ts
15123
- var DbFileInfoSchema = z37.object({
15124
- s3Key: z37.string()
15125
- });
15126
- var DbImageFileInfoSchema = z37.object({
15127
- s3Key: z37.string(),
15128
- width: z37.number(),
15129
- height: z37.number(),
15130
- blurDataUrl: z37.string().optional(),
15131
- alt: z37.string().optional()
15132
- });
15133
- var DbFileInfoV2Schema = z37.discriminatedUnion("type", [
15134
- z37.object({ type: z37.literal("s3Key"), ...DbFileInfoSchema.shape }),
15135
- z37.object({ type: z37.literal("image"), ...DbImageFileInfoSchema.shape })
15186
+ var DbFileInfoSchema = z38.object({
15187
+ s3Key: z38.string()
15188
+ });
15189
+ var DbImageFileInfoSchema = z38.object({
15190
+ s3Key: z38.string(),
15191
+ width: z38.number(),
15192
+ height: z38.number(),
15193
+ blurDataUrl: z38.string().optional(),
15194
+ alt: z38.string().optional()
15195
+ });
15196
+ var DbFileInfoV2Schema = z38.discriminatedUnion("type", [
15197
+ z38.object({ type: z38.literal("s3Key"), ...DbFileInfoSchema.shape }),
15198
+ z38.object({ type: z38.literal("image"), ...DbImageFileInfoSchema.shape })
15136
15199
  ]);
15137
- var NavigationTabGroupSchema3 = z37.lazy(
15138
- () => z37.object({
15139
- title: z37.string(),
15140
- icon: z37.string().optional(),
15141
- items: z37.array(NavigationItemSchema3),
15142
- urlSlug: z37.string(),
15143
- skipUrlSlug: z37.boolean().optional()
15200
+ var NavigationTabGroupSchema3 = z38.lazy(
15201
+ () => z38.object({
15202
+ title: z38.string(),
15203
+ icon: z38.string().optional(),
15204
+ items: z38.array(NavigationItemSchema3),
15205
+ urlSlug: z38.string(),
15206
+ skipUrlSlug: z38.boolean().optional()
15144
15207
  })
15145
15208
  );
15146
- var NavigationTabSchema3 = z37.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
15147
- var NavigationTabV2Schema2 = z37.lazy(
15148
- () => z37.discriminatedUnion("type", [
15149
- z37.object({
15150
- type: z37.literal("group"),
15151
- title: z37.string(),
15152
- icon: z37.string().optional(),
15153
- items: z37.array(NavigationItemSchema3),
15154
- urlSlug: z37.string(),
15155
- skipUrlSlug: z37.boolean().optional()
15209
+ var NavigationTabSchema3 = z38.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
15210
+ var NavigationTabV2Schema2 = z38.lazy(
15211
+ () => z38.discriminatedUnion("type", [
15212
+ z38.object({
15213
+ type: z38.literal("group"),
15214
+ title: z38.string(),
15215
+ icon: z38.string().optional(),
15216
+ items: z38.array(NavigationItemSchema3),
15217
+ urlSlug: z38.string(),
15218
+ skipUrlSlug: z38.boolean().optional()
15156
15219
  }),
15157
- z37.object({ type: z37.literal("link"), ...NavigationTabLinkSchema.shape }),
15158
- z37.object({ type: z37.literal("changelog"), ...ChangelogSectionSchema.shape }),
15159
- z37.object({ type: z37.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
15220
+ z38.object({ type: z38.literal("link"), ...NavigationTabLinkSchema.shape }),
15221
+ z38.object({ type: z38.literal("changelog"), ...ChangelogSectionSchema.shape }),
15222
+ z38.object({ type: z38.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
15160
15223
  ])
15161
15224
  );
15162
- var ApiSectionSchema3 = z37.object({
15163
- title: z37.string(),
15164
- icon: z37.string().optional(),
15225
+ var ApiSectionSchema3 = z38.object({
15226
+ title: z38.string(),
15227
+ icon: z38.string().optional(),
15165
15228
  api: ApiDefinitionIdSchema2,
15166
- urlSlug: z37.string(),
15167
- skipUrlSlug: z37.boolean(),
15229
+ urlSlug: z38.string(),
15230
+ skipUrlSlug: z38.boolean(),
15168
15231
  artifacts: ApiArtifactsSchema.optional(),
15169
- showErrors: z37.boolean().optional(),
15232
+ showErrors: z38.boolean().optional(),
15170
15233
  changelog: ChangelogSectionSchema.optional(),
15171
- hidden: z37.boolean().optional(),
15172
- fullSlug: z37.array(z37.string()).optional(),
15234
+ hidden: z38.boolean().optional(),
15235
+ fullSlug: z38.array(z38.string()).optional(),
15173
15236
  navigation: ApiNavigationConfigRootSchema2.optional(),
15174
- longScrolling: z37.boolean().optional(),
15175
- flattened: z37.boolean().optional()
15176
- });
15177
- var DocsSectionSchema3 = z37.lazy(
15178
- () => z37.object({
15179
- title: z37.string(),
15180
- icon: z37.string().optional(),
15181
- items: z37.array(NavigationItemSchema3),
15182
- urlSlug: z37.string(),
15183
- skipUrlSlug: z37.boolean(),
15184
- collapsed: z37.union([z37.boolean(), z37.literal("open-by-default")]),
15185
- collapsible: z37.boolean().optional(),
15186
- collapsedByDefault: z37.boolean().optional(),
15187
- hidden: z37.boolean().optional(),
15188
- fullSlug: z37.array(z37.string()).optional(),
15237
+ longScrolling: z38.boolean().optional(),
15238
+ flattened: z38.boolean().optional()
15239
+ });
15240
+ var DocsSectionSchema3 = z38.lazy(
15241
+ () => z38.object({
15242
+ title: z38.string(),
15243
+ icon: z38.string().optional(),
15244
+ items: z38.array(NavigationItemSchema3),
15245
+ urlSlug: z38.string(),
15246
+ skipUrlSlug: z38.boolean(),
15247
+ collapsed: z38.union([z38.boolean(), z38.literal("open-by-default")]),
15248
+ collapsible: z38.boolean().optional(),
15249
+ collapsedByDefault: z38.boolean().optional(),
15250
+ hidden: z38.boolean().optional(),
15251
+ fullSlug: z38.array(z38.string()).optional(),
15189
15252
  overviewPageId: PageIdSchema2.optional()
15190
15253
  })
15191
15254
  );
15192
- var NavigationItemSchema3 = z37.lazy(
15193
- () => z37.discriminatedUnion("type", [
15194
- z37.object({
15195
- type: z37.literal("page"),
15255
+ var NavigationItemSchema3 = z38.lazy(
15256
+ () => z38.discriminatedUnion("type", [
15257
+ z38.object({
15258
+ type: z38.literal("page"),
15196
15259
  ...PageMetadataSchema.shape
15197
15260
  }),
15198
- z37.object({
15199
- type: z37.literal("api"),
15261
+ z38.object({
15262
+ type: z38.literal("api"),
15200
15263
  ...ApiSectionSchema3.shape
15201
15264
  }),
15202
- z37.object({
15203
- type: z37.literal("apiV2"),
15265
+ z38.object({
15266
+ type: z38.literal("apiV2"),
15204
15267
  ...ApiSectionV2Schema.shape
15205
15268
  }),
15206
- z37.object({
15207
- type: z37.literal("section"),
15208
- title: z37.string(),
15209
- icon: z37.string().optional(),
15210
- items: z37.array(NavigationItemSchema3),
15211
- urlSlug: z37.string(),
15212
- skipUrlSlug: z37.boolean(),
15213
- collapsed: z37.union([z37.boolean(), z37.literal("open-by-default")]),
15214
- collapsible: z37.boolean().optional(),
15215
- collapsedByDefault: z37.boolean().optional(),
15216
- hidden: z37.boolean().optional(),
15217
- fullSlug: z37.array(z37.string()).optional(),
15269
+ z38.object({
15270
+ type: z38.literal("section"),
15271
+ title: z38.string(),
15272
+ icon: z38.string().optional(),
15273
+ items: z38.array(NavigationItemSchema3),
15274
+ urlSlug: z38.string(),
15275
+ skipUrlSlug: z38.boolean(),
15276
+ collapsed: z38.union([z38.boolean(), z38.literal("open-by-default")]),
15277
+ collapsible: z38.boolean().optional(),
15278
+ collapsedByDefault: z38.boolean().optional(),
15279
+ hidden: z38.boolean().optional(),
15280
+ fullSlug: z38.array(z38.string()).optional(),
15218
15281
  overviewPageId: PageIdSchema2.optional()
15219
15282
  }),
15220
- z37.object({
15221
- type: z37.literal("link"),
15283
+ z38.object({
15284
+ type: z38.literal("link"),
15222
15285
  ...LinkMetadataSchema.shape
15223
15286
  }),
15224
- z37.object({
15225
- type: z37.literal("changelog"),
15287
+ z38.object({
15288
+ type: z38.literal("changelog"),
15226
15289
  ...ChangelogSectionSchema.shape
15227
15290
  }),
15228
- z37.object({
15229
- type: z37.literal("changelogV3"),
15291
+ z38.object({
15292
+ type: z38.literal("changelogV3"),
15230
15293
  ...ChangelogSectionV3Schema.shape
15231
15294
  })
15232
15295
  ])
15233
15296
  );
15234
- var UnversionedTabbedNavigationConfigSchema3 = z37.object({
15235
- tabs: z37.array(NavigationTabSchema3).optional(),
15236
- tabsV2: z37.array(NavigationTabV2Schema2).optional(),
15297
+ var UnversionedTabbedNavigationConfigSchema3 = z38.object({
15298
+ tabs: z38.array(NavigationTabSchema3).optional(),
15299
+ tabsV2: z38.array(NavigationTabV2Schema2).optional(),
15237
15300
  landingPage: PageMetadataSchema.optional()
15238
15301
  });
15239
- var UnversionedUntabbedNavigationConfigSchema3 = z37.object({
15240
- items: z37.array(NavigationItemSchema3),
15302
+ var UnversionedUntabbedNavigationConfigSchema3 = z38.object({
15303
+ items: z38.array(NavigationItemSchema3),
15241
15304
  landingPage: PageMetadataSchema.optional()
15242
15305
  });
15243
- var UnversionedNavigationConfigSchema3 = z37.union([
15306
+ var UnversionedNavigationConfigSchema3 = z38.union([
15244
15307
  UnversionedTabbedNavigationConfigSchema3,
15245
15308
  UnversionedUntabbedNavigationConfigSchema3
15246
15309
  ]);
15247
- var VersionedNavigationConfigDataSchema3 = z37.object({
15310
+ var VersionedNavigationConfigDataSchema3 = z38.object({
15248
15311
  version: VersionIdSchema2,
15249
- urlSlug: z37.string().optional(),
15312
+ urlSlug: z38.string().optional(),
15250
15313
  availability: AvailabilitySchema2.optional(),
15251
15314
  config: UnversionedNavigationConfigSchema3
15252
15315
  });
15253
- var VersionedNavigationConfigSchema3 = z37.object({
15254
- versions: z37.array(VersionedNavigationConfigDataSchema3)
15316
+ var VersionedNavigationConfigSchema3 = z38.object({
15317
+ versions: z38.array(VersionedNavigationConfigDataSchema3)
15255
15318
  });
15256
- var NavigationConfigSchema3 = z37.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
15257
- var DocsDbConfigSchema = z37.object({
15258
- title: z37.string().optional(),
15319
+ var NavigationConfigSchema3 = z38.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
15320
+ var DocsDbConfigSchema = z38.object({
15321
+ title: z38.string().optional(),
15259
15322
  defaultLanguage: ProgrammingLanguageSchema.optional(),
15260
- languages: z37.array(LanguageSchema).optional(),
15323
+ languages: z38.array(LanguageSchema).optional(),
15261
15324
  translations: DocsTranslationsConfigSchema.optional(),
15262
15325
  announcement: AnnouncementConfigSchema.optional(),
15263
15326
  navigation: NavigationConfigSchema3.optional(),
15264
- root: z37.custom().optional(),
15265
- navbarLinks: z37.array(NavbarLinkSchema).optional(),
15266
- footerLinks: z37.array(FooterLinkSchema).optional(),
15267
- hideNavLinks: z37.boolean().optional(),
15327
+ root: z38.custom().optional(),
15328
+ navbarLinks: z38.array(NavbarLinkSchema).optional(),
15329
+ footerLinks: z38.array(FooterLinkSchema).optional(),
15330
+ hideNavLinks: z38.boolean().optional(),
15268
15331
  logoHeight: HeightSchema.optional(),
15269
15332
  logoHref: UrlSchema2.optional(),
15270
- logoRightText: z37.string().optional(),
15333
+ logoRightText: z38.string().optional(),
15271
15334
  favicon: FileIdSchema2.optional(),
15272
15335
  agents: AgentsConfigSchema.optional(),
15273
15336
  metadata: MetadataConfigSchema.optional(),
15274
- redirects: z37.array(RedirectConfigSchema).optional(),
15275
- remotePaths: z37.array(RemotePathConfigSchema).optional(),
15337
+ redirects: z38.array(RedirectConfigSchema).optional(),
15338
+ remotePaths: z38.array(RemotePathConfigSchema).optional(),
15276
15339
  backgroundImage: FileIdSchema2.optional(),
15277
15340
  colorsV3: ColorsConfigV3Schema3.optional(),
15278
15341
  layout: DocsLayoutConfigSchema.optional(),
15279
15342
  theme: DocsThemeConfigSchema.optional(),
15280
- globalTheme: z37.string().optional(),
15343
+ globalTheme: z38.string().optional(),
15281
15344
  settings: DocsSettingsConfigSchema.optional(),
15282
15345
  typographyV2: DocsTypographyConfigV2Schema.optional(),
15283
15346
  analyticsConfig: AnalyticsConfigSchema.optional(),
@@ -15288,40 +15351,40 @@ var DocsDbConfigSchema = z37.object({
15288
15351
  pageActions: PageActionsConfigSchema.optional(),
15289
15352
  editThisPageLaunch: EditThisPageLaunchSchema.optional(),
15290
15353
  iframe: IframeConfigSchema.optional(),
15291
- header: z37.string().optional(),
15292
- footer: z37.string().optional(),
15354
+ header: z38.string().optional(),
15355
+ footer: z38.string().optional(),
15293
15356
  logo: FileIdSchema2.optional(),
15294
15357
  logoV2: ThemedFileIdSchema.optional(),
15295
15358
  colors: ColorsConfigSchema.optional(),
15296
15359
  colorsV2: ColorsConfigV2Schema.optional(),
15297
15360
  typography: DocsTypographyConfigSchema.optional()
15298
15361
  });
15299
- var DocsDefinitionDbV1Schema = z37.object({
15300
- pages: z37.record(PageIdSchema2, PageContentSchema),
15301
- referencedApis: z37.array(ApiDefinitionIdSchema2),
15302
- files: z37.record(FileIdSchema2, DbFileInfoSchema),
15362
+ var DocsDefinitionDbV1Schema = z38.object({
15363
+ pages: z38.record(PageIdSchema2, PageContentSchema),
15364
+ referencedApis: z38.array(ApiDefinitionIdSchema2),
15365
+ files: z38.record(FileIdSchema2, DbFileInfoSchema),
15303
15366
  config: DocsDbConfigSchema,
15304
15367
  colors: ColorsConfigSchema.optional()
15305
15368
  });
15306
- var DocsDefinitionDbV2Schema = z37.object({
15307
- pages: z37.record(PageIdSchema2, PageContentSchema),
15308
- referencedApis: z37.array(ApiDefinitionIdSchema2),
15309
- files: z37.record(FileIdSchema2, DbFileInfoSchema),
15369
+ var DocsDefinitionDbV2Schema = z38.object({
15370
+ pages: z38.record(PageIdSchema2, PageContentSchema),
15371
+ referencedApis: z38.array(ApiDefinitionIdSchema2),
15372
+ files: z38.record(FileIdSchema2, DbFileInfoSchema),
15310
15373
  config: DocsDbConfigSchema,
15311
15374
  colors: ColorsConfigSchema.optional(),
15312
15375
  typography: DocsTypographyConfigSchema.optional()
15313
15376
  });
15314
- var DocsDefinitionDbV3Schema = z37.object({
15315
- pages: z37.record(PageIdSchema2, PageContentSchema),
15316
- referencedApis: z37.array(ApiDefinitionIdSchema2),
15317
- files: z37.record(FileIdSchema2, DbFileInfoV2Schema),
15377
+ var DocsDefinitionDbV3Schema = z38.object({
15378
+ pages: z38.record(PageIdSchema2, PageContentSchema),
15379
+ referencedApis: z38.array(ApiDefinitionIdSchema2),
15380
+ files: z38.record(FileIdSchema2, DbFileInfoV2Schema),
15318
15381
  config: DocsDbConfigSchema,
15319
- jsFiles: z37.record(z37.string(), z37.string()).optional()
15382
+ jsFiles: z38.record(z38.string(), z38.string()).optional()
15320
15383
  });
15321
- var DocsDefinitionDbSchema = z37.discriminatedUnion("type", [
15322
- z37.object({ type: z37.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
15323
- z37.object({ type: z37.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
15324
- z37.object({ type: z37.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
15384
+ var DocsDefinitionDbSchema = z38.discriminatedUnion("type", [
15385
+ z38.object({ type: z38.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
15386
+ z38.object({ type: z38.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
15387
+ z38.object({ type: z38.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
15325
15388
  ]);
15326
15389
 
15327
15390
  // src/client/DocsV1Read.ts
@@ -16112,102 +16175,102 @@ __export(DocsLatest_exports, {
16112
16175
  });
16113
16176
 
16114
16177
  // src/client/docs-types/latest.ts
16115
- import * as z38 from "zod";
16116
- var StringOrStringListSchema = z38.union([z38.string(), z38.array(z38.string())]);
16117
- var TwitterCardSettingSchema2 = z38.enum(["summary", "summary_large_image", "app", "player"]);
16118
- var JsonLdBreadcrumbListElementSchema = z38.object({
16119
- "@type": z38.literal("ListItem"),
16120
- position: z38.number(),
16121
- name: z38.string(),
16122
- item: z38.string().optional()
16123
- });
16124
- var JsonLdBreadcrumbListSchema = z38.object({
16125
- "@context": z38.literal("https://schema.org"),
16126
- "@type": z38.literal("BreadcrumbList"),
16127
- itemListElement: z38.array(JsonLdBreadcrumbListElementSchema)
16128
- });
16129
- var WithJsonLdBreadcrumbsSchema = z38.object({
16178
+ import * as z39 from "zod";
16179
+ var StringOrStringListSchema = z39.union([z39.string(), z39.array(z39.string())]);
16180
+ var TwitterCardSettingSchema2 = z39.enum(["summary", "summary_large_image", "app", "player"]);
16181
+ var JsonLdBreadcrumbListElementSchema = z39.object({
16182
+ "@type": z39.literal("ListItem"),
16183
+ position: z39.number(),
16184
+ name: z39.string(),
16185
+ item: z39.string().optional()
16186
+ });
16187
+ var JsonLdBreadcrumbListSchema = z39.object({
16188
+ "@context": z39.literal("https://schema.org"),
16189
+ "@type": z39.literal("BreadcrumbList"),
16190
+ itemListElement: z39.array(JsonLdBreadcrumbListElementSchema)
16191
+ });
16192
+ var WithJsonLdBreadcrumbsSchema = z39.object({
16130
16193
  /** Set to `false` to suppress the built-in JSON-LD for the page. */
16131
- jsonld: z38.boolean().optional(),
16194
+ jsonld: z39.boolean().optional(),
16132
16195
  "jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
16133
16196
  });
16134
- var WithMetadataConfigSchema = z38.object({
16135
- "og:site_name": z38.string().optional(),
16136
- "og:title": z38.string().optional(),
16137
- "og:description": z38.string().optional(),
16138
- "og:url": z38.string().optional(),
16197
+ var WithMetadataConfigSchema = z39.object({
16198
+ "og:site_name": z39.string().optional(),
16199
+ "og:title": z39.string().optional(),
16200
+ "og:description": z39.string().optional(),
16201
+ "og:url": z39.string().optional(),
16139
16202
  "og:image": FileIdOrUrlSchema.optional(),
16140
- "og:image:width": z38.number().optional(),
16141
- "og:image:height": z38.number().optional(),
16142
- "og:locale": z38.string().optional(),
16203
+ "og:image:width": z39.number().optional(),
16204
+ "og:image:height": z39.number().optional(),
16205
+ "og:locale": z39.string().optional(),
16143
16206
  "og:logo": FileIdOrUrlSchema.optional(),
16144
- "twitter:title": z38.string().optional(),
16145
- "twitter:description": z38.string().optional(),
16146
- "twitter:handle": z38.string().optional(),
16207
+ "twitter:title": z39.string().optional(),
16208
+ "twitter:description": z39.string().optional(),
16209
+ "twitter:handle": z39.string().optional(),
16147
16210
  "twitter:image": FileIdOrUrlSchema.optional(),
16148
- "twitter:site": z38.string().optional(),
16149
- "twitter:url": z38.string().optional(),
16211
+ "twitter:site": z39.string().optional(),
16212
+ "twitter:url": z39.string().optional(),
16150
16213
  "twitter:card": TwitterCardSettingSchema2.optional(),
16151
16214
  "og:background-image": FileIdOrUrlSchema.optional(),
16152
- "og:dynamic": z38.boolean().optional(),
16215
+ "og:dynamic": z39.boolean().optional(),
16153
16216
  "og:dynamic:background-image": FileIdOrUrlSchema.optional(),
16154
- "og:dynamic:text-color": z38.string().optional(),
16155
- "og:dynamic:background-color": z38.string().optional(),
16156
- "og:dynamic:show-logo": z38.boolean().optional(),
16157
- "og:dynamic:show-section": z38.boolean().optional(),
16158
- "og:dynamic:show-description": z38.boolean().optional(),
16159
- "og:dynamic:show-url": z38.boolean().optional(),
16160
- "og:dynamic:show-gradient": z38.boolean().optional(),
16161
- noindex: z38.boolean().optional(),
16162
- nofollow: z38.boolean().optional(),
16217
+ "og:dynamic:text-color": z39.string().optional(),
16218
+ "og:dynamic:background-color": z39.string().optional(),
16219
+ "og:dynamic:show-logo": z39.boolean().optional(),
16220
+ "og:dynamic:show-section": z39.boolean().optional(),
16221
+ "og:dynamic:show-description": z39.boolean().optional(),
16222
+ "og:dynamic:show-url": z39.boolean().optional(),
16223
+ "og:dynamic:show-gradient": z39.boolean().optional(),
16224
+ noindex: z39.boolean().optional(),
16225
+ nofollow: z39.boolean().optional(),
16163
16226
  keywords: StringOrStringListSchema.optional()
16164
16227
  });
16165
- var LayoutSchema = z38.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
16166
- var LogoConfigurationSchema = z38.object({
16228
+ var LayoutSchema = z39.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
16229
+ var LogoConfigurationSchema = z39.object({
16167
16230
  light: FileIdOrUrlSchema.optional(),
16168
16231
  dark: FileIdOrUrlSchema.optional()
16169
16232
  });
16170
- var LogoSchema2 = z38.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
16171
- var BreadcrumbItemSchema = z38.object({
16172
- title: z38.string(),
16173
- pointsTo: z38.string().optional()
16233
+ var LogoSchema2 = z39.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
16234
+ var BreadcrumbItemSchema = z39.object({
16235
+ title: z39.string(),
16236
+ pointsTo: z39.string().optional()
16174
16237
  });
16175
16238
  var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
16176
- z38.object({
16239
+ z39.object({
16177
16240
  layout: LayoutSchema.optional(),
16178
- slug: z38.string().optional(),
16179
- title: z38.string().optional(),
16180
- headline: z38.string().optional(),
16181
- description: z38.string().optional(),
16182
- subtitle: z38.string().optional(),
16241
+ slug: z39.string().optional(),
16242
+ title: z39.string().optional(),
16243
+ headline: z39.string().optional(),
16244
+ description: z39.string().optional(),
16245
+ subtitle: z39.string().optional(),
16183
16246
  logo: LogoSchema2.optional(),
16184
16247
  image: FileIdOrUrlSchema.optional(),
16185
- "edit-this-page-url": z38.string().optional(),
16186
- "hide-toc": z38.boolean().optional(),
16187
- "force-toc": z38.boolean().optional(),
16188
- "hide-nav-links": z38.boolean().optional(),
16189
- "max-toc-depth": z38.number().optional(),
16190
- "hide-feedback": z38.boolean().optional(),
16191
- "hide-page-actions": z38.boolean().optional(),
16192
- "no-image-zoom": z38.boolean().optional(),
16193
- breadcrumb: z38.array(BreadcrumbItemSchema).optional(),
16194
- excerpt: z38.string().optional(),
16195
- "canonical-url": z38.string().optional(),
16248
+ "edit-this-page-url": z39.string().optional(),
16249
+ "hide-toc": z39.boolean().optional(),
16250
+ "force-toc": z39.boolean().optional(),
16251
+ "hide-nav-links": z39.boolean().optional(),
16252
+ "max-toc-depth": z39.number().optional(),
16253
+ "hide-feedback": z39.boolean().optional(),
16254
+ "hide-page-actions": z39.boolean().optional(),
16255
+ "no-image-zoom": z39.boolean().optional(),
16256
+ breadcrumb: z39.array(BreadcrumbItemSchema).optional(),
16257
+ excerpt: z39.string().optional(),
16258
+ "canonical-url": z39.string().optional(),
16196
16259
  tags: StringOrStringListSchema.optional(),
16197
- "last-updated": z38.string().optional(),
16260
+ "last-updated": z39.string().optional(),
16198
16261
  /**
16199
16262
  * Arbitrary author-defined metadata that is copied onto this page's search
16200
16263
  * records, so it can be faceted and filtered on by full path
16201
16264
  * (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
16202
16265
  */
16203
- "search-metadata": z38.record(z38.unknown()).optional()
16266
+ "search-metadata": z39.record(z39.unknown()).optional()
16204
16267
  })
16205
16268
  );
16206
- var ResolvedMdxSchema = z38.object({
16207
- code: z38.string(),
16269
+ var ResolvedMdxSchema = z39.object({
16270
+ code: z39.string(),
16208
16271
  frontmatter: FrontmatterSchema,
16209
- scope: z38.record(z38.string(), z38.unknown()),
16210
- jsxRefs: z38.array(z38.string()).optional()
16272
+ scope: z39.record(z39.string(), z39.unknown()),
16273
+ jsxRefs: z39.array(z39.string()).optional()
16211
16274
  });
16212
16275
 
16213
16276
  // src/client/DocsV1Commons.ts
@@ -16654,9 +16717,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
16654
16717
  }
16655
16718
  }
16656
16719
  }
16657
- function generateExampleObject(object37, resolveTypeById, ignoreOptionals, visited, depth) {
16720
+ function generateExampleObject(object38, resolveTypeById, ignoreOptionals, visited, depth) {
16658
16721
  const example = {};
16659
- for (const property of getAllObjectProperties(object37, resolveTypeById)) {
16722
+ for (const property of getAllObjectProperties(object38, resolveTypeById)) {
16660
16723
  const value = generateExampleFromTypeReference(
16661
16724
  property.valueType,
16662
16725
  resolveTypeById,
@@ -16843,10 +16906,10 @@ function generateExamplePrimitive(reference) {
16843
16906
  return reference.name;
16844
16907
  }
16845
16908
  }
16846
- function getAllObjectProperties(object37, resolveTypeById, extended = /* @__PURE__ */ new Set()) {
16909
+ function getAllObjectProperties(object38, resolveTypeById, extended = /* @__PURE__ */ new Set()) {
16847
16910
  return [
16848
- ...object37.properties,
16849
- ...object37.extends.flatMap((typeId) => {
16911
+ ...object38.properties,
16912
+ ...object38.extends.flatMap((typeId) => {
16850
16913
  if (extended.has(typeId)) {
16851
16914
  return [];
16852
16915
  }