@fern-api/fdr-sdk 1.2.115-60bc9699d1 → 1.2.116-4e00acf721

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/js/index.js CHANGED
@@ -507,8 +507,8 @@ function parseMatch(match) {
507
507
  return match;
508
508
  }
509
509
  var src_default = (str, options = {}) => {
510
- str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string35) => {
511
- const isLastWord = m.length + offset >= string35.length;
510
+ str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string36) => {
511
+ const isLastWord = m.length + offset >= string36.length;
512
512
  const parsedMatch = parseMatch(m);
513
513
  if (!parsedMatch) {
514
514
  return m;
@@ -2600,16 +2600,16 @@ function selectDefaultValue(shape, defaults) {
2600
2600
  }
2601
2601
  }
2602
2602
  var UnwrapObjectTypeCache = /* @__PURE__ */ new WeakMap();
2603
- function unwrapObjectType(object34, types, parentVisitedTypeIds) {
2604
- const cached = UnwrapObjectTypeCache.get(object34);
2603
+ function unwrapObjectType(object35, types, parentVisitedTypeIds) {
2604
+ const cached = UnwrapObjectTypeCache.get(object35);
2605
2605
  if (cached != null) {
2606
2606
  return cached;
2607
2607
  }
2608
- const directProperties = object34.properties;
2609
- const extraProperties = object34.extraProperties;
2608
+ const directProperties = object35.properties;
2609
+ const extraProperties = object35.extraProperties;
2610
2610
  const descriptions = [];
2611
2611
  const visitedTypeIds = /* @__PURE__ */ new Set();
2612
- const extendedProperties = object34.extends.flatMap((typeId) => {
2612
+ const extendedProperties = object35.extends.flatMap((typeId) => {
2613
2613
  if (parentVisitedTypeIds?.has(typeId)) {
2614
2614
  console.error(`Circular reference detected. Cannot extend type=${typeId}`);
2615
2615
  return [];
@@ -2656,7 +2656,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
2656
2656
  };
2657
2657
  });
2658
2658
  });
2659
- const propertyKeys = new Set(object34.properties.map((property) => property.key));
2659
+ const propertyKeys = new Set(object35.properties.map((property) => property.key));
2660
2660
  const seenExtendedKeys = /* @__PURE__ */ new Set();
2661
2661
  const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
2662
2662
  if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
@@ -2679,7 +2679,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
2679
2679
  extraProperties,
2680
2680
  visitedTypeIds
2681
2681
  };
2682
- UnwrapObjectTypeCache.set(object34, toRet2);
2682
+ UnwrapObjectTypeCache.set(object35, toRet2);
2683
2683
  return toRet2;
2684
2684
  }
2685
2685
  const properties = (0, import_array.sortBy)(
@@ -2691,7 +2691,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
2691
2691
  ]
2692
2692
  );
2693
2693
  const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
2694
- UnwrapObjectTypeCache.set(object34, toRet);
2694
+ UnwrapObjectTypeCache.set(object35, toRet);
2695
2695
  return toRet;
2696
2696
  }
2697
2697
  function unwrapDiscriminatedUnionVariant(union12, variant, types) {
@@ -4389,8 +4389,8 @@ function sortKeysByShape(obj, shape, types) {
4389
4389
  set: ({ itemShape }) => Array.isArray(obj) ? obj.map((o) => sortKeysByShape(o, itemShape, types)) : obj,
4390
4390
  map: ({ valueShape }) => isPlainObject_default(obj) ? (0, import_object.mapValues)(obj, (value) => sortKeysByShape(value, valueShape, types)) : obj,
4391
4391
  unknown: () => obj,
4392
- object: (object34) => {
4393
- const objectProperties = unwrapObjectType(object34, types).properties;
4392
+ object: (object35) => {
4393
+ const objectProperties = unwrapObjectType(object35, types).properties;
4394
4394
  return isPlainObject_default(obj) ? (0, import_object.mapValues)(
4395
4395
  sortKeysBy(
4396
4396
  obj,
@@ -11145,9 +11145,10 @@ var import_fetch17 = require("@orpc/openapi-client/fetch");
11145
11145
 
11146
11146
  // src/orpc-client/mcp-hosting/contract.ts
11147
11147
  var import_contract31 = require("@orpc/contract");
11148
+ var z26 = __toESM(require("zod"), 1);
11149
+
11150
+ // src/orpc-client/mcp-hosting/schemas.ts
11148
11151
  var z25 = __toESM(require("zod"), 1);
11149
- var McpPathSegmentSchema = z25.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
11150
- var McpDeploymentStatusSchema = z25.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
11151
11152
  var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
11152
11153
  z25.object({ type: z25.literal("bearer") }),
11153
11154
  z25.object({
@@ -11157,6 +11158,9 @@ var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
11157
11158
  }),
11158
11159
  z25.object({ type: z25.literal("basic") })
11159
11160
  ]);
11161
+ var HttpUrlSchema = z25.string().url().refine((value) => /^https?:\/\//i.test(value), {
11162
+ message: "must be an http(s) URL"
11163
+ });
11160
11164
  var McpMetadataSchema = z25.object({
11161
11165
  name: z25.string().min(1),
11162
11166
  toolsets: z25.record(z25.string(), z25.array(z25.string())),
@@ -11180,47 +11184,67 @@ var McpMetadataSchema = z25.object({
11180
11184
  required: z25.boolean()
11181
11185
  }).strict()
11182
11186
  ),
11183
- baseUrl: z25.string().url(),
11187
+ baseUrl: HttpUrlSchema,
11184
11188
  followRedirects: z25.boolean(),
11185
11189
  maxRedirects: z25.number().int().nonnegative(),
11186
11190
  allowedRedirectHosts: z25.array(z25.string())
11187
11191
  }).passthrough();
11188
- var McpModuleSchema = z25.object({
11189
- name: z25.string().regex(/^[A-Za-z0-9._/-]+$/),
11190
- hash: z25.string().regex(/^[0-9a-f]{64}$/),
11191
- contentType: z25.string().min(1)
11192
+ var DeploymentConfigSchema = z25.object({
11193
+ serverName: z25.string().min(1),
11194
+ baseUrl: HttpUrlSchema,
11195
+ /**
11196
+ * Runtime rewrite of the upstream base URL. Part of the edge contract
11197
+ * (the outbound worker honors it) but not yet written by FDR.
11198
+ */
11199
+ baseUrlOverride: HttpUrlSchema.optional(),
11200
+ followRedirects: z25.boolean(),
11201
+ maxRedirects: z25.number().int().nonnegative(),
11202
+ allowedRedirectHosts: z25.array(z25.string()),
11203
+ authSchemes: z25.array(McpAuthSchemeSchema),
11204
+ authRequired: z25.boolean(),
11205
+ toolsets: z25.record(z25.string(), z25.array(z25.string())),
11206
+ toolsetMetadata: McpMetadataSchema.shape.toolsetMetadata
11207
+ });
11208
+
11209
+ // src/orpc-client/mcp-hosting/contract.ts
11210
+ var McpPathSegmentSchema = z26.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
11211
+ var McpDeploymentStatusSchema = z26.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
11212
+ var McpModuleSchema = z26.object({
11213
+ name: z26.string().regex(/^[A-Za-z0-9._/-]+$/),
11214
+ hash: z26.string().regex(/^[0-9a-f]{64}$/),
11215
+ contentType: z26.string().min(1)
11192
11216
  }).strict();
11193
- var McpGitInputSchema = z25.object({
11194
- repoUrl: z25.string(),
11195
- branch: z25.string(),
11196
- commitSha: z25.string().optional()
11217
+ var McpGitInputSchema = z26.object({
11218
+ repoUrl: z26.string(),
11219
+ branch: z26.string(),
11220
+ commitSha: z26.string().optional()
11197
11221
  }).strict();
11198
- var DeployMcpServerInputSchema = z25.object({
11222
+ var DeployMcpServerInputSchema = z26.object({
11199
11223
  orgId: McpPathSegmentSchema,
11200
11224
  slug: McpPathSegmentSchema,
11201
- mainModule: z25.string().min(1),
11202
- compatibilityDate: z25.string().regex(/^\d{4}-\d{2}-\d{2}$/),
11203
- compatibilityFlags: z25.array(z25.string()),
11225
+ mainModule: z26.string().min(1),
11226
+ compatibilityDate: z26.string().regex(/^\d{4}-\d{2}-\d{2}$/),
11227
+ compatibilityFlags: z26.array(z26.string()),
11204
11228
  // Bounded so a single deploy request cannot fan out unbounded parallel
11205
11229
  // CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
11206
11230
  // 20 leaves room for wasm/sourcemap/chunk splitting.
11207
- modules: z25.array(McpModuleSchema).min(1).max(20),
11231
+ modules: z26.array(McpModuleSchema).min(1).max(20),
11208
11232
  metadata: McpMetadataSchema,
11209
11233
  // Everything else in this schema is bounded; keep the opaque config
11210
11234
  // blob bounded too so it cannot balloon the JSONB row.
11211
- config: z25.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
11235
+ config: z26.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
11212
11236
  message: "config must be at most 64KB serialized"
11213
11237
  }),
11214
- generatorName: z25.string().min(1),
11215
- generatorVersion: z25.string().min(1),
11216
- cliVersion: z25.string().optional(),
11238
+ generatorName: z26.string().min(1),
11239
+ generatorVersion: z26.string().min(1),
11240
+ cliVersion: z26.string().optional(),
11217
11241
  git: McpGitInputSchema.optional()
11218
11242
  }).strict().superRefine((input, ctx) => {
11219
11243
  const names = /* @__PURE__ */ new Set();
11220
11244
  for (const module2 of input.modules) {
11221
11245
  if (names.has(module2.name)) {
11222
11246
  ctx.addIssue({
11223
- code: z25.ZodIssueCode.custom,
11247
+ code: z26.ZodIssueCode.custom,
11224
11248
  path: ["modules"],
11225
11249
  message: `duplicate module name: ${module2.name}`
11226
11250
  });
@@ -11229,45 +11253,45 @@ var DeployMcpServerInputSchema = z25.object({
11229
11253
  }
11230
11254
  if (!names.has(input.mainModule)) {
11231
11255
  ctx.addIssue({
11232
- code: z25.ZodIssueCode.custom,
11256
+ code: z26.ZodIssueCode.custom,
11233
11257
  path: ["mainModule"],
11234
11258
  message: `mainModule ${input.mainModule} is not among the submitted modules`
11235
11259
  });
11236
11260
  }
11237
11261
  });
11238
- var GetMcpServerInputSchema = z25.object({
11262
+ var GetMcpServerInputSchema = z26.object({
11239
11263
  orgId: McpPathSegmentSchema,
11240
11264
  slug: McpPathSegmentSchema
11241
11265
  });
11242
- var ListMcpServersInputSchema = z25.object({
11243
- orgId: z25.string()
11266
+ var ListMcpServersInputSchema = z26.object({
11267
+ orgId: z26.string()
11244
11268
  });
11245
11269
  var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
11246
11270
  var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
11247
- var McpDeploymentSummarySchema = z25.object({
11248
- id: z25.string(),
11271
+ var McpDeploymentSummarySchema = z26.object({
11272
+ id: z26.string(),
11249
11273
  status: McpDeploymentStatusSchema,
11250
11274
  /** True when this deployment is the one the server currently serves. */
11251
- isActive: z25.boolean(),
11252
- generatorVersion: z25.string(),
11253
- createdAt: z25.string(),
11254
- createdBy: z25.string().nullish(),
11255
- error: z25.object({ name: z25.string(), message: z25.string() }).nullish()
11256
- });
11257
- var McpServerSchema = z25.object({
11258
- id: z25.string(),
11259
- orgId: z25.string(),
11260
- slug: z25.string(),
11275
+ isActive: z26.boolean(),
11276
+ generatorVersion: z26.string(),
11277
+ createdAt: z26.string(),
11278
+ createdBy: z26.string().nullish(),
11279
+ error: z26.object({ name: z26.string(), message: z26.string() }).nullish()
11280
+ });
11281
+ var McpServerSchema = z26.object({
11282
+ id: z26.string(),
11283
+ orgId: z26.string(),
11284
+ slug: z26.string(),
11261
11285
  /** The server is serving iff this is set; it names the serving deployment. */
11262
- activeDeploymentId: z25.string().nullish(),
11286
+ activeDeploymentId: z26.string().nullish(),
11263
11287
  /** Most recent publication attempt — how the last deploy went. */
11264
11288
  latestDeployment: McpDeploymentSummarySchema.nullish(),
11265
- url: z25.string().url(),
11266
- createdAt: z25.string(),
11267
- updatedAt: z25.string()
11289
+ url: z26.string().url(),
11290
+ createdAt: z26.string(),
11291
+ updatedAt: z26.string()
11268
11292
  });
11269
- var ListMcpServersResponseSchema = z25.object({ servers: z25.array(McpServerSchema) });
11270
- var ListMcpDeploymentsResponseSchema = z25.object({ deployments: z25.array(McpDeploymentSummarySchema) });
11293
+ var ListMcpServersResponseSchema = z26.object({ servers: z26.array(McpServerSchema) });
11294
+ var ListMcpDeploymentsResponseSchema = z26.object({ deployments: z26.array(McpDeploymentSummarySchema) });
11271
11295
  var mcpHostingContract = {
11272
11296
  deploy: import_contract31.oc.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
11273
11297
  getServer: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
@@ -11295,84 +11319,84 @@ var import_fetch18 = require("@orpc/openapi-client/fetch");
11295
11319
 
11296
11320
  // src/orpc-client/pdf-export/contract.ts
11297
11321
  var import_contract33 = require("@orpc/contract");
11298
- var z26 = __toESM(require("zod"), 1);
11299
- var PdfExportScopeSchema = z26.object({
11300
- pageSlugs: z26.array(z26.string())
11301
- });
11302
- var PdfExportOptionsV1Schema = z26.object({
11303
- coverTitle: z26.string().nullish(),
11304
- coverSubtitle: z26.string().nullish(),
11305
- hideCoverFooter: z26.boolean().nullish(),
11306
- headerLeftTemplate: z26.string().nullish(),
11307
- headerRightTemplate: z26.string().nullish(),
11308
- footerLeftTemplate: z26.string().nullish(),
11309
- footerRightTemplate: z26.string().nullish(),
11322
+ var z27 = __toESM(require("zod"), 1);
11323
+ var PdfExportScopeSchema = z27.object({
11324
+ pageSlugs: z27.array(z27.string())
11325
+ });
11326
+ var PdfExportOptionsV1Schema = z27.object({
11327
+ coverTitle: z27.string().nullish(),
11328
+ coverSubtitle: z27.string().nullish(),
11329
+ hideCoverFooter: z27.boolean().nullish(),
11330
+ headerLeftTemplate: z27.string().nullish(),
11331
+ headerRightTemplate: z27.string().nullish(),
11332
+ footerLeftTemplate: z27.string().nullish(),
11333
+ footerRightTemplate: z27.string().nullish(),
11310
11334
  scope: PdfExportScopeSchema.nullish(),
11311
- hideCover: z26.boolean().nullish(),
11312
- hideToc: z26.boolean().nullish()
11335
+ hideCover: z27.boolean().nullish(),
11336
+ hideToc: z27.boolean().nullish()
11313
11337
  });
11314
- var PdfExportOptionsSchema = z26.discriminatedUnion("version", [
11315
- z26.object({ version: z26.literal("v1") }).merge(PdfExportOptionsV1Schema)
11338
+ var PdfExportOptionsSchema = z27.discriminatedUnion("version", [
11339
+ z27.object({ version: z27.literal("v1") }).merge(PdfExportOptionsV1Schema)
11316
11340
  ]);
11317
- var PdfExportTaskStatusSchema = z26.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
11318
- var PdfExportTaskSchema = z26.object({
11319
- id: z26.string(),
11320
- orgId: z26.string(),
11321
- docsUrl: z26.string(),
11322
- productId: z26.string().nullish(),
11323
- versionId: z26.string().nullish(),
11324
- requesterName: z26.string().nullish(),
11325
- notifyEmails: z26.array(z26.string()).nullish(),
11341
+ var PdfExportTaskStatusSchema = z27.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
11342
+ var PdfExportTaskSchema = z27.object({
11343
+ id: z27.string(),
11344
+ orgId: z27.string(),
11345
+ docsUrl: z27.string(),
11346
+ productId: z27.string().nullish(),
11347
+ versionId: z27.string().nullish(),
11348
+ requesterName: z27.string().nullish(),
11349
+ notifyEmails: z27.array(z27.string()).nullish(),
11326
11350
  status: PdfExportTaskStatusSchema,
11327
11351
  options: PdfExportOptionsSchema.nullish(),
11328
- createdAt: z26.string(),
11329
- startedAt: z26.string().nullish(),
11330
- completedAt: z26.string().nullish(),
11331
- fileName: z26.string().nullish(),
11332
- sizeBytes: z26.number().nullish(),
11333
- errorMessage: z26.string().nullish()
11334
- });
11335
- var ListPdfExportTasksResponseSchema = z26.object({
11336
- tasks: z26.array(PdfExportTaskSchema)
11337
- });
11338
- var PdfExportDownloadResponseSchema = z26.object({
11339
- downloadUrl: z26.string(),
11340
- fileName: z26.string(),
11341
- sizeBytes: z26.number()
11342
- });
11343
- var CreatePdfExportTaskInputSchema = z26.object({
11344
- orgId: z26.string(),
11345
- docsUrl: z26.string(),
11346
- productId: z26.string().nullish(),
11347
- versionId: z26.string().nullish(),
11348
- requesterName: z26.string().nullish(),
11352
+ createdAt: z27.string(),
11353
+ startedAt: z27.string().nullish(),
11354
+ completedAt: z27.string().nullish(),
11355
+ fileName: z27.string().nullish(),
11356
+ sizeBytes: z27.number().nullish(),
11357
+ errorMessage: z27.string().nullish()
11358
+ });
11359
+ var ListPdfExportTasksResponseSchema = z27.object({
11360
+ tasks: z27.array(PdfExportTaskSchema)
11361
+ });
11362
+ var PdfExportDownloadResponseSchema = z27.object({
11363
+ downloadUrl: z27.string(),
11364
+ fileName: z27.string(),
11365
+ sizeBytes: z27.number()
11366
+ });
11367
+ var CreatePdfExportTaskInputSchema = z27.object({
11368
+ orgId: z27.string(),
11369
+ docsUrl: z27.string(),
11370
+ productId: z27.string().nullish(),
11371
+ versionId: z27.string().nullish(),
11372
+ requesterName: z27.string().nullish(),
11349
11373
  options: PdfExportOptionsSchema.nullish()
11350
11374
  });
11351
- var ListPdfExportTasksInputSchema = z26.object({
11352
- orgId: z26.string(),
11353
- docsUrl: z26.string(),
11354
- limit: z26.coerce.number().nullish()
11375
+ var ListPdfExportTasksInputSchema = z27.object({
11376
+ orgId: z27.string(),
11377
+ docsUrl: z27.string(),
11378
+ limit: z27.coerce.number().nullish()
11355
11379
  });
11356
- var GetPdfExportTaskInputSchema = z26.object({
11357
- taskId: z26.string()
11380
+ var GetPdfExportTaskInputSchema = z27.object({
11381
+ taskId: z27.string()
11358
11382
  });
11359
- var UpdatePdfExportTaskInputSchema = z26.object({
11360
- taskId: z26.string(),
11383
+ var UpdatePdfExportTaskInputSchema = z27.object({
11384
+ taskId: z27.string(),
11361
11385
  status: PdfExportTaskStatusSchema,
11362
- startedAt: z26.string().nullish(),
11363
- completedAt: z26.string().nullish(),
11364
- s3Key: z26.string().nullish(),
11365
- fileName: z26.string().nullish(),
11366
- sizeBytes: z26.number().nullish(),
11367
- errorMessage: z26.string().nullish()
11386
+ startedAt: z27.string().nullish(),
11387
+ completedAt: z27.string().nullish(),
11388
+ s3Key: z27.string().nullish(),
11389
+ fileName: z27.string().nullish(),
11390
+ sizeBytes: z27.number().nullish(),
11391
+ errorMessage: z27.string().nullish()
11368
11392
  });
11369
- var GetPdfExportDownloadUrlInputSchema = z26.object({
11370
- taskId: z26.string()
11393
+ var GetPdfExportDownloadUrlInputSchema = z27.object({
11394
+ taskId: z27.string()
11371
11395
  });
11372
- var CleanupPdfExportsResponseSchema = z26.object({
11373
- expiredTasksDeleted: z26.number(),
11374
- s3ObjectsDeleted: z26.number(),
11375
- timedOutTasksFailed: z26.number()
11396
+ var CleanupPdfExportsResponseSchema = z27.object({
11397
+ expiredTasksDeleted: z27.number(),
11398
+ s3ObjectsDeleted: z27.number(),
11399
+ timedOutTasksFailed: z27.number()
11376
11400
  });
11377
11401
  var pdfExportContract = {
11378
11402
  createTask: import_contract33.oc.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
@@ -11402,8 +11426,8 @@ var import_fetch19 = require("@orpc/openapi-client/fetch");
11402
11426
 
11403
11427
  // src/orpc-client/sdks/contract.ts
11404
11428
  var import_contract35 = require("@orpc/contract");
11405
- var z27 = __toESM(require("zod"), 1);
11406
- var LanguageEnumSchema = z27.enum([
11429
+ var z28 = __toESM(require("zod"), 1);
11430
+ var LanguageEnumSchema = z28.enum([
11407
11431
  "Go",
11408
11432
  "TypeScript",
11409
11433
  "Java",
@@ -11414,14 +11438,14 @@ var LanguageEnumSchema = z27.enum([
11414
11438
  "Swift",
11415
11439
  "Rust"
11416
11440
  ]);
11417
- var VersionBumpEnumSchema = z27.enum(["MAJOR", "MINOR", "PATCH"]);
11418
- var ComputeSemanticVersionInputSchema = z27.object({
11419
- package: z27.string(),
11441
+ var VersionBumpEnumSchema = z28.enum(["MAJOR", "MINOR", "PATCH"]);
11442
+ var ComputeSemanticVersionInputSchema = z28.object({
11443
+ package: z28.string(),
11420
11444
  language: LanguageEnumSchema,
11421
- githubRepository: z27.string().nullish()
11445
+ githubRepository: z28.string().nullish()
11422
11446
  });
11423
- var ComputeSemanticVersionOutputSchema = z27.object({
11424
- version: z27.string(),
11447
+ var ComputeSemanticVersionOutputSchema = z28.object({
11448
+ version: z28.string(),
11425
11449
  bump: VersionBumpEnumSchema
11426
11450
  });
11427
11451
  var sdksContract = {
@@ -11447,32 +11471,32 @@ var import_fetch20 = require("@orpc/openapi-client/fetch");
11447
11471
 
11448
11472
  // src/orpc-client/slugs/contract.ts
11449
11473
  var import_contract37 = require("@orpc/contract");
11450
- var z28 = __toESM(require("zod"), 1);
11451
- var SlugsInputSchema = z28.object({
11452
- domain: z28.string(),
11453
- basepath: z28.string().optional().default("")
11454
- });
11455
- var SlugEntrySchema = z28.object({
11456
- orgId: z28.string(),
11457
- domain: z28.string(),
11458
- basepath: z28.string(),
11459
- slug: z28.string(),
11460
- lastUpdated: z28.string()
11461
- });
11462
- var MarkdownEntrySchema = z28.object({
11463
- orgId: z28.string(),
11464
- domain: z28.string(),
11465
- basepath: z28.string(),
11466
- pageId: z28.string(),
11467
- slug: z28.string(),
11468
- hash: z28.string(),
11469
- lastUpdated: z28.string()
11470
- });
11471
- var GetSlugEntriesResponseSchema = z28.object({
11472
- entries: z28.array(SlugEntrySchema)
11473
- });
11474
- var GetMarkdownEntriesResponseSchema = z28.object({
11475
- entries: z28.array(MarkdownEntrySchema)
11474
+ var z29 = __toESM(require("zod"), 1);
11475
+ var SlugsInputSchema = z29.object({
11476
+ domain: z29.string(),
11477
+ basepath: z29.string().optional().default("")
11478
+ });
11479
+ var SlugEntrySchema = z29.object({
11480
+ orgId: z29.string(),
11481
+ domain: z29.string(),
11482
+ basepath: z29.string(),
11483
+ slug: z29.string(),
11484
+ lastUpdated: z29.string()
11485
+ });
11486
+ var MarkdownEntrySchema = z29.object({
11487
+ orgId: z29.string(),
11488
+ domain: z29.string(),
11489
+ basepath: z29.string(),
11490
+ pageId: z29.string(),
11491
+ slug: z29.string(),
11492
+ hash: z29.string(),
11493
+ lastUpdated: z29.string()
11494
+ });
11495
+ var GetSlugEntriesResponseSchema = z29.object({
11496
+ entries: z29.array(SlugEntrySchema)
11497
+ });
11498
+ var GetMarkdownEntriesResponseSchema = z29.object({
11499
+ entries: z29.array(MarkdownEntrySchema)
11476
11500
  });
11477
11501
  var slugsContract = {
11478
11502
  getSlugEntries: import_contract37.oc.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
@@ -11505,102 +11529,102 @@ __export(contract_exports3, {
11505
11529
  snippetsFactoryContract: () => snippetsFactoryContract
11506
11530
  });
11507
11531
  var import_contract39 = require("@orpc/contract");
11508
- var z29 = __toESM(require("zod"), 1);
11509
- var TypeScriptSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
11510
- var PythonSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
11511
- var GoSdkSchema = z29.object({ githubRepo: z29.string(), version: z29.string() });
11512
- var RubySdkSchema = z29.object({ gem: z29.string(), version: z29.string() });
11513
- var JavaSdkSchema = z29.object({ group: z29.string(), artifact: z29.string(), version: z29.string() });
11514
- var CsharpSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
11515
- var BaseSnippetCreateSchema = z29.object({
11532
+ var z30 = __toESM(require("zod"), 1);
11533
+ var TypeScriptSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
11534
+ var PythonSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
11535
+ var GoSdkSchema = z30.object({ githubRepo: z30.string(), version: z30.string() });
11536
+ var RubySdkSchema = z30.object({ gem: z30.string(), version: z30.string() });
11537
+ var JavaSdkSchema = z30.object({ group: z30.string(), artifact: z30.string(), version: z30.string() });
11538
+ var CsharpSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
11539
+ var BaseSnippetCreateSchema = z30.object({
11516
11540
  endpoint: EndpointIdentifierSchema,
11517
- exampleIdentifier: z29.string().nullish()
11541
+ exampleIdentifier: z30.string().nullish()
11518
11542
  });
11519
- var SdkSnippetsCreateSchema = z29.discriminatedUnion("type", [
11520
- z29.object({
11521
- type: z29.literal("typescript"),
11543
+ var SdkSnippetsCreateSchema = z30.discriminatedUnion("type", [
11544
+ z30.object({
11545
+ type: z30.literal("typescript"),
11522
11546
  sdk: TypeScriptSdkSchema,
11523
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11547
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
11524
11548
  }),
11525
- z29.object({
11526
- type: z29.literal("python"),
11549
+ z30.object({
11550
+ type: z30.literal("python"),
11527
11551
  sdk: PythonSdkSchema,
11528
- snippets: z29.array(
11552
+ snippets: z30.array(
11529
11553
  BaseSnippetCreateSchema.extend({
11530
- snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
11554
+ snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
11531
11555
  })
11532
11556
  )
11533
11557
  }),
11534
- z29.object({
11535
- type: z29.literal("go"),
11558
+ z30.object({
11559
+ type: z30.literal("go"),
11536
11560
  sdk: GoSdkSchema,
11537
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11561
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
11538
11562
  }),
11539
- z29.object({
11540
- type: z29.literal("java"),
11563
+ z30.object({
11564
+ type: z30.literal("java"),
11541
11565
  sdk: JavaSdkSchema,
11542
- snippets: z29.array(
11566
+ snippets: z30.array(
11543
11567
  BaseSnippetCreateSchema.extend({
11544
- snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
11568
+ snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
11545
11569
  })
11546
11570
  )
11547
11571
  }),
11548
- z29.object({
11549
- type: z29.literal("ruby"),
11572
+ z30.object({
11573
+ type: z30.literal("ruby"),
11550
11574
  sdk: RubySdkSchema,
11551
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11575
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
11552
11576
  }),
11553
- z29.object({
11554
- type: z29.literal("csharp"),
11577
+ z30.object({
11578
+ type: z30.literal("csharp"),
11555
11579
  sdk: CsharpSdkSchema,
11556
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11580
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
11557
11581
  })
11558
11582
  ]);
11559
11583
  var snippetsFactoryContract = {
11560
11584
  createSnippetsForSdk: import_contract39.oc.route({ method: "POST", path: "/create" }).input(
11561
- z29.object({
11562
- orgId: z29.string(),
11563
- apiId: z29.string(),
11585
+ z30.object({
11586
+ orgId: z30.string(),
11587
+ apiId: z30.string(),
11564
11588
  snippets: SdkSnippetsCreateSchema
11565
11589
  })
11566
11590
  )
11567
11591
  };
11568
- var ParameterPayloadSchema = z29.object({
11569
- name: z29.string(),
11570
- value: z29.unknown()
11592
+ var ParameterPayloadSchema = z30.object({
11593
+ name: z30.string(),
11594
+ value: z30.unknown()
11571
11595
  });
11572
- var AuthPayloadSchema = z29.discriminatedUnion("type", [
11573
- z29.object({ type: z29.literal("bearer"), token: z29.string() }),
11574
- z29.object({ type: z29.literal("basic"), username: z29.string(), password: z29.string() })
11596
+ var AuthPayloadSchema = z30.discriminatedUnion("type", [
11597
+ z30.object({ type: z30.literal("bearer"), token: z30.string() }),
11598
+ z30.object({ type: z30.literal("basic"), username: z30.string(), password: z30.string() })
11575
11599
  ]);
11576
- var CustomSnippetPayloadSchema = z29.object({
11577
- headers: z29.array(ParameterPayloadSchema).nullish(),
11578
- pathParameters: z29.array(ParameterPayloadSchema).nullish(),
11579
- queryParameters: z29.array(ParameterPayloadSchema).nullish(),
11580
- requestBody: z29.unknown().nullish(),
11600
+ var CustomSnippetPayloadSchema = z30.object({
11601
+ headers: z30.array(ParameterPayloadSchema).nullish(),
11602
+ pathParameters: z30.array(ParameterPayloadSchema).nullish(),
11603
+ queryParameters: z30.array(ParameterPayloadSchema).nullish(),
11604
+ requestBody: z30.unknown().nullish(),
11581
11605
  auth: AuthPayloadSchema.nullish()
11582
11606
  });
11583
11607
  var snippetsContract = {
11584
11608
  get: import_contract39.oc.route({ method: "POST", path: "/" }).input(
11585
- z29.object({
11586
- orgId: z29.string().nullish(),
11587
- apiId: z29.string().nullish(),
11588
- sdks: z29.array(SdkRequestSchema).nullish(),
11609
+ z30.object({
11610
+ orgId: z30.string().nullish(),
11611
+ apiId: z30.string().nullish(),
11612
+ sdks: z30.array(SdkRequestSchema).nullish(),
11589
11613
  endpoint: EndpointIdentifierSchema,
11590
- exampleIdentifier: z29.string().nullish(),
11614
+ exampleIdentifier: z30.string().nullish(),
11591
11615
  payload: CustomSnippetPayloadSchema.nullish()
11592
11616
  })
11593
- ).output(z29.array(z29.unknown())),
11617
+ ).output(z30.array(z30.unknown())),
11594
11618
  load: import_contract39.oc.route({ method: "POST", path: "/load" }).input(
11595
- z29.object({
11596
- orgId: z29.string().nullish(),
11597
- apiId: z29.string().nullish(),
11598
- sdks: z29.array(SdkRequestSchema).nullish()
11619
+ z30.object({
11620
+ orgId: z30.string().nullish(),
11621
+ apiId: z30.string().nullish(),
11622
+ sdks: z30.array(SdkRequestSchema).nullish()
11599
11623
  })
11600
11624
  ).output(
11601
- z29.object({
11602
- next: z29.number().nullish(),
11603
- snippets: z29.record(z29.string(), z29.unknown())
11625
+ z30.object({
11626
+ next: z30.number().nullish(),
11627
+ snippets: z30.record(z30.string(), z30.unknown())
11604
11628
  })
11605
11629
  )
11606
11630
  };
@@ -11635,44 +11659,44 @@ var import_fetch22 = require("@orpc/openapi-client/fetch");
11635
11659
 
11636
11660
  // src/orpc-client/templates/contract.ts
11637
11661
  var import_contract41 = require("@orpc/contract");
11638
- var z30 = __toESM(require("zod"), 1);
11639
- var SnippetRegistryEntrySchema = z30.object({
11662
+ var z31 = __toESM(require("zod"), 1);
11663
+ var SnippetRegistryEntrySchema = z31.object({
11640
11664
  sdk: SdkSchema,
11641
- endpointId: z30.object({
11642
- path: z30.string(),
11665
+ endpointId: z31.object({
11666
+ path: z31.string(),
11643
11667
  method: HttpMethodSchema,
11644
- identifierOverride: z30.string().nullish()
11668
+ identifierOverride: z31.string().nullish()
11645
11669
  }),
11646
- snippetTemplate: z30.object({
11647
- type: z30.literal("v1"),
11648
- functionInvocation: z30.unknown(),
11649
- clientInstantiation: z30.string()
11670
+ snippetTemplate: z31.object({
11671
+ type: z31.literal("v1"),
11672
+ functionInvocation: z31.unknown(),
11673
+ clientInstantiation: z31.string()
11650
11674
  }),
11651
- additionalTemplates: z30.record(z30.string(), z30.unknown()).nullish()
11675
+ additionalTemplates: z31.record(z31.string(), z31.unknown()).nullish()
11652
11676
  });
11653
- var RegisterInputSchema = z30.object({
11654
- orgId: z30.string(),
11655
- apiId: z30.string(),
11656
- apiDefinitionId: z30.string(),
11677
+ var RegisterInputSchema = z31.object({
11678
+ orgId: z31.string(),
11679
+ apiId: z31.string(),
11680
+ apiDefinitionId: z31.string(),
11657
11681
  snippet: SnippetRegistryEntrySchema
11658
11682
  });
11659
- var RegisterBatchInputSchema = z30.object({
11660
- orgId: z30.string(),
11661
- apiId: z30.string(),
11662
- apiDefinitionId: z30.string(),
11663
- snippets: z30.array(SnippetRegistryEntrySchema)
11683
+ var RegisterBatchInputSchema = z31.object({
11684
+ orgId: z31.string(),
11685
+ apiId: z31.string(),
11686
+ apiDefinitionId: z31.string(),
11687
+ snippets: z31.array(SnippetRegistryEntrySchema)
11664
11688
  });
11665
- var GetInputSchema = z30.object({
11666
- orgId: z30.string(),
11667
- apiId: z30.string(),
11689
+ var GetInputSchema = z31.object({
11690
+ orgId: z31.string(),
11691
+ apiId: z31.string(),
11668
11692
  sdk: SdkSchema,
11669
- endpointId: z30.object({
11670
- path: z30.string(),
11693
+ endpointId: z31.object({
11694
+ path: z31.string(),
11671
11695
  method: HttpMethodSchema,
11672
- identifierOverride: z30.string().nullish()
11696
+ identifierOverride: z31.string().nullish()
11673
11697
  })
11674
11698
  });
11675
- var EndpointSnippetTemplateSchema = z30.record(z30.string(), z30.unknown());
11699
+ var EndpointSnippetTemplateSchema = z31.record(z31.string(), z31.unknown());
11676
11700
  var templatesContract = {
11677
11701
  register: import_contract41.oc.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
11678
11702
  registerBatch: import_contract41.oc.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
@@ -11699,18 +11723,18 @@ var import_fetch23 = require("@orpc/openapi-client/fetch");
11699
11723
 
11700
11724
  // src/orpc-client/tokens/contract.ts
11701
11725
  var import_contract43 = require("@orpc/contract");
11702
- var z31 = __toESM(require("zod"), 1);
11703
- var GenerateTokenInputSchema = z31.object({
11704
- orgId: z31.string(),
11705
- scope: z31.string()
11726
+ var z32 = __toESM(require("zod"), 1);
11727
+ var GenerateTokenInputSchema = z32.object({
11728
+ orgId: z32.string(),
11729
+ scope: z32.string()
11706
11730
  });
11707
- var RevokeTokenInputSchema = z31.object({
11708
- orgId: z31.string(),
11709
- tokenId: z31.string()
11731
+ var RevokeTokenInputSchema = z32.object({
11732
+ orgId: z32.string(),
11733
+ tokenId: z32.string()
11710
11734
  });
11711
- var GenerateTokenOutputSchema = z31.object({
11712
- token: z31.string(),
11713
- id: z31.string()
11735
+ var GenerateTokenOutputSchema = z32.object({
11736
+ token: z32.string(),
11737
+ id: z32.string()
11714
11738
  });
11715
11739
  var tokensContract = {
11716
11740
  generate: import_contract43.oc.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
@@ -11988,85 +12012,85 @@ __export(APIV1Db_exports, {
11988
12012
  });
11989
12013
 
11990
12014
  // src/orpc-client/api/contract-db.ts
11991
- var z32 = __toESM(require("zod"), 1);
11992
- var EndpointSnippetTemplatesSchema = z32.object({
11993
- typescript: z32.unknown().nullish(),
11994
- python: z32.unknown().nullish()
12015
+ var z33 = __toESM(require("zod"), 1);
12016
+ var EndpointSnippetTemplatesSchema = z33.object({
12017
+ typescript: z33.unknown().nullish(),
12018
+ python: z33.unknown().nullish()
11995
12019
  });
11996
- var DbHttpRequestSchema = z32.object({
11997
- description: z32.string().nullish(),
11998
- contentType: z32.string().nullish(),
12020
+ var DbHttpRequestSchema = z33.object({
12021
+ description: z33.string().nullish(),
12022
+ contentType: z33.string().nullish(),
11999
12023
  type: RegisterHttpRequestBodyShapeSchema
12000
12024
  });
12001
- var DbHttpRequestsV2Schema = z32.object({
12002
- requests: z32.array(DbHttpRequestSchema).nullish()
12025
+ var DbHttpRequestsV2Schema = z33.object({
12026
+ requests: z33.array(DbHttpRequestSchema).nullish()
12003
12027
  });
12004
- var DbEndpointDefinitionSchema = z32.object({
12005
- description: z32.string().nullish(),
12006
- subtitle: z32.string().nullish(),
12028
+ var DbEndpointDefinitionSchema = z33.object({
12029
+ description: z33.string().nullish(),
12030
+ subtitle: z33.string().nullish(),
12007
12031
  availability: AvailabilitySchema.nullish(),
12008
- authed: z32.boolean().nullish(),
12009
- authV2: z32.array(AuthSchemeIdSchema).nullish(),
12010
- multiAuth: z32.array(MultipleAuthTypeSchema).nullish(),
12032
+ authed: z33.boolean().nullish(),
12033
+ authV2: z33.array(AuthSchemeIdSchema).nullish(),
12034
+ multiAuth: z33.array(MultipleAuthTypeSchema).nullish(),
12011
12035
  defaultEnvironment: EnvironmentIdSchema.nullish(),
12012
- environments: z32.array(EnvironmentSchema).nullish(),
12036
+ environments: z33.array(EnvironmentSchema).nullish(),
12013
12037
  method: HttpMethodSchema,
12014
12038
  id: EndpointIdSchema,
12015
- originalEndpointId: z32.string().nullish(),
12016
- urlSlug: z32.string(),
12017
- migratedFromUrlSlugs: z32.array(z32.string()).nullish(),
12018
- name: z32.string().nullish(),
12039
+ originalEndpointId: z33.string().nullish(),
12040
+ urlSlug: z33.string(),
12041
+ migratedFromUrlSlugs: z33.array(z33.string()).nullish(),
12042
+ name: z33.string().nullish(),
12019
12043
  path: EndpointPathSchema,
12020
- queryParameters: z32.array(QueryParameterSchema),
12021
- headers: z32.array(HeaderSchema),
12022
- responseHeaders: z32.array(HeaderSchema).nullish(),
12044
+ queryParameters: z33.array(QueryParameterSchema),
12045
+ headers: z33.array(HeaderSchema),
12046
+ responseHeaders: z33.array(HeaderSchema).nullish(),
12023
12047
  request: DbHttpRequestSchema.nullish(),
12024
12048
  requestsV2: DbHttpRequestsV2Schema.nullish(),
12025
12049
  response: RegisterHttpResponseSchema.nullish(),
12026
12050
  responsesV2: RegisterHttpResponsesV2Schema.nullish(),
12027
- errors: z32.array(ErrorDeclarationSchema).nullish(),
12028
- errorsV2: z32.array(RegisterErrorDeclarationV2Schema).nullish(),
12029
- examples: z32.array(RegisterExampleEndpointCallSchema),
12051
+ errors: z33.array(ErrorDeclarationSchema).nullish(),
12052
+ errorsV2: z33.array(RegisterErrorDeclarationV2Schema).nullish(),
12053
+ examples: z33.array(RegisterExampleEndpointCallSchema),
12030
12054
  snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
12031
12055
  protocol: ProtocolSchema.nullish(),
12032
- includeInApiExplorer: z32.boolean().nullish()
12033
- });
12034
- var DbApiDefinitionPackageSchema = z32.object({
12035
- endpoints: z32.array(DbEndpointDefinitionSchema),
12036
- websockets: z32.array(RegisterWebSocketChannelSchema).nullish(),
12037
- webhooks: z32.array(RegisterWebhookDefinitionSchema).nullish(),
12038
- graphqlOperations: z32.array(GraphQlOperationSchema).nullish(),
12039
- types: z32.array(TypeIdSchema),
12040
- subpackages: z32.array(SubpackageIdSchema),
12056
+ includeInApiExplorer: z33.boolean().nullish()
12057
+ });
12058
+ var DbApiDefinitionPackageSchema = z33.object({
12059
+ endpoints: z33.array(DbEndpointDefinitionSchema),
12060
+ websockets: z33.array(RegisterWebSocketChannelSchema).nullish(),
12061
+ webhooks: z33.array(RegisterWebhookDefinitionSchema).nullish(),
12062
+ graphqlOperations: z33.array(GraphQlOperationSchema).nullish(),
12063
+ types: z33.array(TypeIdSchema),
12064
+ subpackages: z33.array(SubpackageIdSchema),
12041
12065
  pointsTo: SubpackageIdSchema.nullish()
12042
12066
  });
12043
- var DbApiDefinitionSubpackageSchema = z32.object({
12067
+ var DbApiDefinitionSubpackageSchema = z33.object({
12044
12068
  ...DbApiDefinitionPackageSchema.shape,
12045
- description: z32.string().nullish(),
12069
+ description: z33.string().nullish(),
12046
12070
  parent: SubpackageIdSchema.nullish(),
12047
12071
  subpackageId: SubpackageIdSchema,
12048
- name: z32.string(),
12049
- urlSlug: z32.string(),
12050
- displayName: z32.string().nullish()
12072
+ name: z33.string(),
12073
+ urlSlug: z33.string(),
12074
+ displayName: z33.string().nullish()
12051
12075
  });
12052
- var DbApiDefinitionSchema = z32.object({
12076
+ var DbApiDefinitionSchema = z33.object({
12053
12077
  id: ApiDefinitionIdSchema,
12054
- apiName: z32.string().nullish(),
12055
- specVersion: z32.string().nullish(),
12078
+ apiName: z33.string().nullish(),
12079
+ specVersion: z33.string().nullish(),
12056
12080
  rootPackage: DbApiDefinitionPackageSchema,
12057
- types: z32.record(TypeIdSchema, RegisterTypeDefinitionSchema),
12058
- subpackages: z32.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
12081
+ types: z33.record(TypeIdSchema, RegisterTypeDefinitionSchema),
12082
+ subpackages: z33.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
12059
12083
  snippetsConfiguration: SnippetsConfigSchema.nullish(),
12060
12084
  auth: ApiAuthSchema.nullish(),
12061
- authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
12062
- hasMultipleBaseUrls: z32.boolean(),
12085
+ authSchemes: z33.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
12086
+ hasMultipleBaseUrls: z33.boolean(),
12063
12087
  navigation: ApiNavigationConfigRootSchema.nullish(),
12064
- globalHeaders: z32.array(HeaderSchema).nullish()
12088
+ globalHeaders: z33.array(HeaderSchema).nullish()
12065
12089
  });
12066
- var DbEndpointWithContextSchema = z32.object({
12090
+ var DbEndpointWithContextSchema = z33.object({
12067
12091
  endpoint: DbEndpointDefinitionSchema,
12068
- authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
12069
- globalHeaders: z32.array(HeaderSchema).nullish()
12092
+ authSchemes: z33.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
12093
+ globalHeaders: z33.array(HeaderSchema).nullish()
12070
12094
  });
12071
12095
 
12072
12096
  // src/client/APIV1Read.ts
@@ -12644,15 +12668,15 @@ __export(DocsV1Db_exports, {
12644
12668
  });
12645
12669
 
12646
12670
  // src/client/docs-types/db.ts
12647
- var z34 = __toESM(require("zod"), 1);
12671
+ var z35 = __toESM(require("zod"), 1);
12648
12672
 
12649
12673
  // src/client/docs-types/db-docsRead.ts
12650
- var z33 = __toESM(require("zod"), 1);
12651
- var BackgroundSchema2 = z33.discriminatedUnion("type", [
12652
- z33.object({ type: z33.literal("solid"), ...RgbaColorSchema.shape }),
12653
- z33.object({ type: z33.literal("gradient") })
12674
+ var z34 = __toESM(require("zod"), 1);
12675
+ var BackgroundSchema2 = z34.discriminatedUnion("type", [
12676
+ z34.object({ type: z34.literal("solid"), ...RgbaColorSchema.shape }),
12677
+ z34.object({ type: z34.literal("gradient") })
12654
12678
  ]);
12655
- var ThemeConfigSchema3 = z33.object({
12679
+ var ThemeConfigSchema3 = z34.object({
12656
12680
  logo: FileIdSchema2.optional(),
12657
12681
  backgroundImage: FileIdSchema2.optional(),
12658
12682
  accentPrimary: RgbaColorSchema,
@@ -12674,174 +12698,174 @@ var ThemeConfigSchema3 = z33.object({
12674
12698
  accent11: RgbaColorSchema.optional(),
12675
12699
  accent12: RgbaColorSchema.optional()
12676
12700
  });
12677
- var DarkAndLightModeConfigSchema3 = z33.object({
12701
+ var DarkAndLightModeConfigSchema3 = z34.object({
12678
12702
  dark: ThemeConfigSchema3,
12679
12703
  light: ThemeConfigSchema3
12680
12704
  });
12681
- var ColorsConfigV3Schema3 = z33.discriminatedUnion("type", [
12682
- z33.object({ type: z33.literal("dark"), ...ThemeConfigSchema3.shape }),
12683
- z33.object({ type: z33.literal("light"), ...ThemeConfigSchema3.shape }),
12684
- z33.object({ type: z33.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
12705
+ var ColorsConfigV3Schema3 = z34.discriminatedUnion("type", [
12706
+ z34.object({ type: z34.literal("dark"), ...ThemeConfigSchema3.shape }),
12707
+ z34.object({ type: z34.literal("light"), ...ThemeConfigSchema3.shape }),
12708
+ z34.object({ type: z34.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
12685
12709
  ]);
12686
12710
 
12687
12711
  // src/client/docs-types/db.ts
12688
- var DbFileInfoSchema = z34.object({
12689
- s3Key: z34.string()
12690
- });
12691
- var DbImageFileInfoSchema = z34.object({
12692
- s3Key: z34.string(),
12693
- width: z34.number(),
12694
- height: z34.number(),
12695
- blurDataUrl: z34.string().optional(),
12696
- alt: z34.string().optional()
12697
- });
12698
- var DbFileInfoV2Schema = z34.discriminatedUnion("type", [
12699
- z34.object({ type: z34.literal("s3Key"), ...DbFileInfoSchema.shape }),
12700
- z34.object({ type: z34.literal("image"), ...DbImageFileInfoSchema.shape })
12712
+ var DbFileInfoSchema = z35.object({
12713
+ s3Key: z35.string()
12714
+ });
12715
+ var DbImageFileInfoSchema = z35.object({
12716
+ s3Key: z35.string(),
12717
+ width: z35.number(),
12718
+ height: z35.number(),
12719
+ blurDataUrl: z35.string().optional(),
12720
+ alt: z35.string().optional()
12721
+ });
12722
+ var DbFileInfoV2Schema = z35.discriminatedUnion("type", [
12723
+ z35.object({ type: z35.literal("s3Key"), ...DbFileInfoSchema.shape }),
12724
+ z35.object({ type: z35.literal("image"), ...DbImageFileInfoSchema.shape })
12701
12725
  ]);
12702
- var NavigationTabGroupSchema3 = z34.lazy(
12703
- () => z34.object({
12704
- title: z34.string(),
12705
- icon: z34.string().optional(),
12706
- items: z34.array(NavigationItemSchema3),
12707
- urlSlug: z34.string(),
12708
- skipUrlSlug: z34.boolean().optional()
12726
+ var NavigationTabGroupSchema3 = z35.lazy(
12727
+ () => z35.object({
12728
+ title: z35.string(),
12729
+ icon: z35.string().optional(),
12730
+ items: z35.array(NavigationItemSchema3),
12731
+ urlSlug: z35.string(),
12732
+ skipUrlSlug: z35.boolean().optional()
12709
12733
  })
12710
12734
  );
12711
- var NavigationTabSchema3 = z34.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
12712
- var NavigationTabV2Schema2 = z34.lazy(
12713
- () => z34.discriminatedUnion("type", [
12714
- z34.object({
12715
- type: z34.literal("group"),
12716
- title: z34.string(),
12717
- icon: z34.string().optional(),
12718
- items: z34.array(NavigationItemSchema3),
12719
- urlSlug: z34.string(),
12720
- skipUrlSlug: z34.boolean().optional()
12735
+ var NavigationTabSchema3 = z35.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
12736
+ var NavigationTabV2Schema2 = z35.lazy(
12737
+ () => z35.discriminatedUnion("type", [
12738
+ z35.object({
12739
+ type: z35.literal("group"),
12740
+ title: z35.string(),
12741
+ icon: z35.string().optional(),
12742
+ items: z35.array(NavigationItemSchema3),
12743
+ urlSlug: z35.string(),
12744
+ skipUrlSlug: z35.boolean().optional()
12721
12745
  }),
12722
- z34.object({ type: z34.literal("link"), ...NavigationTabLinkSchema.shape }),
12723
- z34.object({ type: z34.literal("changelog"), ...ChangelogSectionSchema.shape }),
12724
- z34.object({ type: z34.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
12746
+ z35.object({ type: z35.literal("link"), ...NavigationTabLinkSchema.shape }),
12747
+ z35.object({ type: z35.literal("changelog"), ...ChangelogSectionSchema.shape }),
12748
+ z35.object({ type: z35.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
12725
12749
  ])
12726
12750
  );
12727
- var ApiSectionSchema3 = z34.object({
12728
- title: z34.string(),
12729
- icon: z34.string().optional(),
12751
+ var ApiSectionSchema3 = z35.object({
12752
+ title: z35.string(),
12753
+ icon: z35.string().optional(),
12730
12754
  api: ApiDefinitionIdSchema2,
12731
- urlSlug: z34.string(),
12732
- skipUrlSlug: z34.boolean(),
12755
+ urlSlug: z35.string(),
12756
+ skipUrlSlug: z35.boolean(),
12733
12757
  artifacts: ApiArtifactsSchema.optional(),
12734
- showErrors: z34.boolean().optional(),
12758
+ showErrors: z35.boolean().optional(),
12735
12759
  changelog: ChangelogSectionSchema.optional(),
12736
- hidden: z34.boolean().optional(),
12737
- fullSlug: z34.array(z34.string()).optional(),
12760
+ hidden: z35.boolean().optional(),
12761
+ fullSlug: z35.array(z35.string()).optional(),
12738
12762
  navigation: ApiNavigationConfigRootSchema2.optional(),
12739
- longScrolling: z34.boolean().optional(),
12740
- flattened: z34.boolean().optional()
12741
- });
12742
- var DocsSectionSchema3 = z34.lazy(
12743
- () => z34.object({
12744
- title: z34.string(),
12745
- icon: z34.string().optional(),
12746
- items: z34.array(NavigationItemSchema3),
12747
- urlSlug: z34.string(),
12748
- skipUrlSlug: z34.boolean(),
12749
- collapsed: z34.union([z34.boolean(), z34.literal("open-by-default")]),
12750
- collapsible: z34.boolean().optional(),
12751
- collapsedByDefault: z34.boolean().optional(),
12752
- hidden: z34.boolean().optional(),
12753
- fullSlug: z34.array(z34.string()).optional(),
12763
+ longScrolling: z35.boolean().optional(),
12764
+ flattened: z35.boolean().optional()
12765
+ });
12766
+ var DocsSectionSchema3 = z35.lazy(
12767
+ () => z35.object({
12768
+ title: z35.string(),
12769
+ icon: z35.string().optional(),
12770
+ items: z35.array(NavigationItemSchema3),
12771
+ urlSlug: z35.string(),
12772
+ skipUrlSlug: z35.boolean(),
12773
+ collapsed: z35.union([z35.boolean(), z35.literal("open-by-default")]),
12774
+ collapsible: z35.boolean().optional(),
12775
+ collapsedByDefault: z35.boolean().optional(),
12776
+ hidden: z35.boolean().optional(),
12777
+ fullSlug: z35.array(z35.string()).optional(),
12754
12778
  overviewPageId: PageIdSchema2.optional()
12755
12779
  })
12756
12780
  );
12757
- var NavigationItemSchema3 = z34.lazy(
12758
- () => z34.discriminatedUnion("type", [
12759
- z34.object({
12760
- type: z34.literal("page"),
12781
+ var NavigationItemSchema3 = z35.lazy(
12782
+ () => z35.discriminatedUnion("type", [
12783
+ z35.object({
12784
+ type: z35.literal("page"),
12761
12785
  ...PageMetadataSchema.shape
12762
12786
  }),
12763
- z34.object({
12764
- type: z34.literal("api"),
12787
+ z35.object({
12788
+ type: z35.literal("api"),
12765
12789
  ...ApiSectionSchema3.shape
12766
12790
  }),
12767
- z34.object({
12768
- type: z34.literal("apiV2"),
12791
+ z35.object({
12792
+ type: z35.literal("apiV2"),
12769
12793
  ...ApiSectionV2Schema.shape
12770
12794
  }),
12771
- z34.object({
12772
- type: z34.literal("section"),
12773
- title: z34.string(),
12774
- icon: z34.string().optional(),
12775
- items: z34.array(NavigationItemSchema3),
12776
- urlSlug: z34.string(),
12777
- skipUrlSlug: z34.boolean(),
12778
- collapsed: z34.union([z34.boolean(), z34.literal("open-by-default")]),
12779
- collapsible: z34.boolean().optional(),
12780
- collapsedByDefault: z34.boolean().optional(),
12781
- hidden: z34.boolean().optional(),
12782
- fullSlug: z34.array(z34.string()).optional(),
12795
+ z35.object({
12796
+ type: z35.literal("section"),
12797
+ title: z35.string(),
12798
+ icon: z35.string().optional(),
12799
+ items: z35.array(NavigationItemSchema3),
12800
+ urlSlug: z35.string(),
12801
+ skipUrlSlug: z35.boolean(),
12802
+ collapsed: z35.union([z35.boolean(), z35.literal("open-by-default")]),
12803
+ collapsible: z35.boolean().optional(),
12804
+ collapsedByDefault: z35.boolean().optional(),
12805
+ hidden: z35.boolean().optional(),
12806
+ fullSlug: z35.array(z35.string()).optional(),
12783
12807
  overviewPageId: PageIdSchema2.optional()
12784
12808
  }),
12785
- z34.object({
12786
- type: z34.literal("link"),
12809
+ z35.object({
12810
+ type: z35.literal("link"),
12787
12811
  ...LinkMetadataSchema.shape
12788
12812
  }),
12789
- z34.object({
12790
- type: z34.literal("changelog"),
12813
+ z35.object({
12814
+ type: z35.literal("changelog"),
12791
12815
  ...ChangelogSectionSchema.shape
12792
12816
  }),
12793
- z34.object({
12794
- type: z34.literal("changelogV3"),
12817
+ z35.object({
12818
+ type: z35.literal("changelogV3"),
12795
12819
  ...ChangelogSectionV3Schema.shape
12796
12820
  })
12797
12821
  ])
12798
12822
  );
12799
- var UnversionedTabbedNavigationConfigSchema3 = z34.object({
12800
- tabs: z34.array(NavigationTabSchema3).optional(),
12801
- tabsV2: z34.array(NavigationTabV2Schema2).optional(),
12823
+ var UnversionedTabbedNavigationConfigSchema3 = z35.object({
12824
+ tabs: z35.array(NavigationTabSchema3).optional(),
12825
+ tabsV2: z35.array(NavigationTabV2Schema2).optional(),
12802
12826
  landingPage: PageMetadataSchema.optional()
12803
12827
  });
12804
- var UnversionedUntabbedNavigationConfigSchema3 = z34.object({
12805
- items: z34.array(NavigationItemSchema3),
12828
+ var UnversionedUntabbedNavigationConfigSchema3 = z35.object({
12829
+ items: z35.array(NavigationItemSchema3),
12806
12830
  landingPage: PageMetadataSchema.optional()
12807
12831
  });
12808
- var UnversionedNavigationConfigSchema3 = z34.union([
12832
+ var UnversionedNavigationConfigSchema3 = z35.union([
12809
12833
  UnversionedTabbedNavigationConfigSchema3,
12810
12834
  UnversionedUntabbedNavigationConfigSchema3
12811
12835
  ]);
12812
- var VersionedNavigationConfigDataSchema3 = z34.object({
12836
+ var VersionedNavigationConfigDataSchema3 = z35.object({
12813
12837
  version: VersionIdSchema2,
12814
- urlSlug: z34.string().optional(),
12838
+ urlSlug: z35.string().optional(),
12815
12839
  availability: AvailabilitySchema2.optional(),
12816
12840
  config: UnversionedNavigationConfigSchema3
12817
12841
  });
12818
- var VersionedNavigationConfigSchema3 = z34.object({
12819
- versions: z34.array(VersionedNavigationConfigDataSchema3)
12842
+ var VersionedNavigationConfigSchema3 = z35.object({
12843
+ versions: z35.array(VersionedNavigationConfigDataSchema3)
12820
12844
  });
12821
- var NavigationConfigSchema3 = z34.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
12822
- var DocsDbConfigSchema = z34.object({
12823
- title: z34.string().optional(),
12845
+ var NavigationConfigSchema3 = z35.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
12846
+ var DocsDbConfigSchema = z35.object({
12847
+ title: z35.string().optional(),
12824
12848
  defaultLanguage: ProgrammingLanguageSchema.optional(),
12825
- languages: z34.array(LanguageSchema).optional(),
12849
+ languages: z35.array(LanguageSchema).optional(),
12826
12850
  translations: DocsTranslationsConfigSchema.optional(),
12827
12851
  announcement: AnnouncementConfigSchema.optional(),
12828
12852
  navigation: NavigationConfigSchema3.optional(),
12829
- root: z34.custom().optional(),
12830
- navbarLinks: z34.array(NavbarLinkSchema).optional(),
12831
- footerLinks: z34.array(FooterLinkSchema).optional(),
12832
- hideNavLinks: z34.boolean().optional(),
12853
+ root: z35.custom().optional(),
12854
+ navbarLinks: z35.array(NavbarLinkSchema).optional(),
12855
+ footerLinks: z35.array(FooterLinkSchema).optional(),
12856
+ hideNavLinks: z35.boolean().optional(),
12833
12857
  logoHeight: HeightSchema.optional(),
12834
12858
  logoHref: UrlSchema2.optional(),
12835
- logoRightText: z34.string().optional(),
12859
+ logoRightText: z35.string().optional(),
12836
12860
  favicon: FileIdSchema2.optional(),
12837
12861
  agents: AgentsConfigSchema.optional(),
12838
12862
  metadata: MetadataConfigSchema.optional(),
12839
- redirects: z34.array(RedirectConfigSchema).optional(),
12863
+ redirects: z35.array(RedirectConfigSchema).optional(),
12840
12864
  backgroundImage: FileIdSchema2.optional(),
12841
12865
  colorsV3: ColorsConfigV3Schema3.optional(),
12842
12866
  layout: DocsLayoutConfigSchema.optional(),
12843
12867
  theme: DocsThemeConfigSchema.optional(),
12844
- globalTheme: z34.string().optional(),
12868
+ globalTheme: z35.string().optional(),
12845
12869
  settings: DocsSettingsConfigSchema.optional(),
12846
12870
  typographyV2: DocsTypographyConfigV2Schema.optional(),
12847
12871
  analyticsConfig: AnalyticsConfigSchema.optional(),
@@ -12851,40 +12875,40 @@ var DocsDbConfigSchema = z34.object({
12851
12875
  aiChatConfig: AIChatConfigSchema.optional(),
12852
12876
  pageActions: PageActionsConfigSchema.optional(),
12853
12877
  editThisPageLaunch: EditThisPageLaunchSchema.optional(),
12854
- header: z34.string().optional(),
12855
- footer: z34.string().optional(),
12878
+ header: z35.string().optional(),
12879
+ footer: z35.string().optional(),
12856
12880
  logo: FileIdSchema2.optional(),
12857
12881
  logoV2: ThemedFileIdSchema.optional(),
12858
12882
  colors: ColorsConfigSchema.optional(),
12859
12883
  colorsV2: ColorsConfigV2Schema.optional(),
12860
12884
  typography: DocsTypographyConfigSchema.optional()
12861
12885
  });
12862
- var DocsDefinitionDbV1Schema = z34.object({
12863
- pages: z34.record(PageIdSchema2, PageContentSchema),
12864
- referencedApis: z34.array(ApiDefinitionIdSchema2),
12865
- files: z34.record(FileIdSchema2, DbFileInfoSchema),
12886
+ var DocsDefinitionDbV1Schema = z35.object({
12887
+ pages: z35.record(PageIdSchema2, PageContentSchema),
12888
+ referencedApis: z35.array(ApiDefinitionIdSchema2),
12889
+ files: z35.record(FileIdSchema2, DbFileInfoSchema),
12866
12890
  config: DocsDbConfigSchema,
12867
12891
  colors: ColorsConfigSchema.optional()
12868
12892
  });
12869
- var DocsDefinitionDbV2Schema = z34.object({
12870
- pages: z34.record(PageIdSchema2, PageContentSchema),
12871
- referencedApis: z34.array(ApiDefinitionIdSchema2),
12872
- files: z34.record(FileIdSchema2, DbFileInfoSchema),
12893
+ var DocsDefinitionDbV2Schema = z35.object({
12894
+ pages: z35.record(PageIdSchema2, PageContentSchema),
12895
+ referencedApis: z35.array(ApiDefinitionIdSchema2),
12896
+ files: z35.record(FileIdSchema2, DbFileInfoSchema),
12873
12897
  config: DocsDbConfigSchema,
12874
12898
  colors: ColorsConfigSchema.optional(),
12875
12899
  typography: DocsTypographyConfigSchema.optional()
12876
12900
  });
12877
- var DocsDefinitionDbV3Schema = z34.object({
12878
- pages: z34.record(PageIdSchema2, PageContentSchema),
12879
- referencedApis: z34.array(ApiDefinitionIdSchema2),
12880
- files: z34.record(FileIdSchema2, DbFileInfoV2Schema),
12901
+ var DocsDefinitionDbV3Schema = z35.object({
12902
+ pages: z35.record(PageIdSchema2, PageContentSchema),
12903
+ referencedApis: z35.array(ApiDefinitionIdSchema2),
12904
+ files: z35.record(FileIdSchema2, DbFileInfoV2Schema),
12881
12905
  config: DocsDbConfigSchema,
12882
- jsFiles: z34.record(z34.string(), z34.string()).optional()
12906
+ jsFiles: z35.record(z35.string(), z35.string()).optional()
12883
12907
  });
12884
- var DocsDefinitionDbSchema = z34.discriminatedUnion("type", [
12885
- z34.object({ type: z34.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
12886
- z34.object({ type: z34.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
12887
- z34.object({ type: z34.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
12908
+ var DocsDefinitionDbSchema = z35.discriminatedUnion("type", [
12909
+ z35.object({ type: z35.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
12910
+ z35.object({ type: z35.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
12911
+ z35.object({ type: z35.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
12888
12912
  ]);
12889
12913
 
12890
12914
  // src/client/DocsV1Read.ts
@@ -13659,100 +13683,100 @@ __export(DocsLatest_exports, {
13659
13683
  });
13660
13684
 
13661
13685
  // src/client/docs-types/latest.ts
13662
- var z35 = __toESM(require("zod"), 1);
13663
- var StringOrStringListSchema = z35.union([z35.string(), z35.array(z35.string())]);
13664
- var TwitterCardSettingSchema2 = z35.enum(["summary", "summary_large_image", "app", "player"]);
13665
- var JsonLdBreadcrumbListElementSchema = z35.object({
13666
- "@type": z35.literal("ListItem"),
13667
- position: z35.number(),
13668
- name: z35.string(),
13669
- item: z35.string().optional()
13670
- });
13671
- var JsonLdBreadcrumbListSchema = z35.object({
13672
- "@context": z35.literal("https://schema.org"),
13673
- "@type": z35.literal("BreadcrumbList"),
13674
- itemListElement: z35.array(JsonLdBreadcrumbListElementSchema)
13675
- });
13676
- var WithJsonLdBreadcrumbsSchema = z35.object({
13686
+ var z36 = __toESM(require("zod"), 1);
13687
+ var StringOrStringListSchema = z36.union([z36.string(), z36.array(z36.string())]);
13688
+ var TwitterCardSettingSchema2 = z36.enum(["summary", "summary_large_image", "app", "player"]);
13689
+ var JsonLdBreadcrumbListElementSchema = z36.object({
13690
+ "@type": z36.literal("ListItem"),
13691
+ position: z36.number(),
13692
+ name: z36.string(),
13693
+ item: z36.string().optional()
13694
+ });
13695
+ var JsonLdBreadcrumbListSchema = z36.object({
13696
+ "@context": z36.literal("https://schema.org"),
13697
+ "@type": z36.literal("BreadcrumbList"),
13698
+ itemListElement: z36.array(JsonLdBreadcrumbListElementSchema)
13699
+ });
13700
+ var WithJsonLdBreadcrumbsSchema = z36.object({
13677
13701
  "jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
13678
13702
  });
13679
- var WithMetadataConfigSchema = z35.object({
13680
- "og:site_name": z35.string().optional(),
13681
- "og:title": z35.string().optional(),
13682
- "og:description": z35.string().optional(),
13683
- "og:url": z35.string().optional(),
13703
+ var WithMetadataConfigSchema = z36.object({
13704
+ "og:site_name": z36.string().optional(),
13705
+ "og:title": z36.string().optional(),
13706
+ "og:description": z36.string().optional(),
13707
+ "og:url": z36.string().optional(),
13684
13708
  "og:image": FileIdOrUrlSchema.optional(),
13685
- "og:image:width": z35.number().optional(),
13686
- "og:image:height": z35.number().optional(),
13687
- "og:locale": z35.string().optional(),
13709
+ "og:image:width": z36.number().optional(),
13710
+ "og:image:height": z36.number().optional(),
13711
+ "og:locale": z36.string().optional(),
13688
13712
  "og:logo": FileIdOrUrlSchema.optional(),
13689
- "twitter:title": z35.string().optional(),
13690
- "twitter:description": z35.string().optional(),
13691
- "twitter:handle": z35.string().optional(),
13713
+ "twitter:title": z36.string().optional(),
13714
+ "twitter:description": z36.string().optional(),
13715
+ "twitter:handle": z36.string().optional(),
13692
13716
  "twitter:image": FileIdOrUrlSchema.optional(),
13693
- "twitter:site": z35.string().optional(),
13694
- "twitter:url": z35.string().optional(),
13717
+ "twitter:site": z36.string().optional(),
13718
+ "twitter:url": z36.string().optional(),
13695
13719
  "twitter:card": TwitterCardSettingSchema2.optional(),
13696
13720
  "og:background-image": FileIdOrUrlSchema.optional(),
13697
- "og:dynamic": z35.boolean().optional(),
13721
+ "og:dynamic": z36.boolean().optional(),
13698
13722
  "og:dynamic:background-image": FileIdOrUrlSchema.optional(),
13699
- "og:dynamic:text-color": z35.string().optional(),
13700
- "og:dynamic:background-color": z35.string().optional(),
13701
- "og:dynamic:show-logo": z35.boolean().optional(),
13702
- "og:dynamic:show-section": z35.boolean().optional(),
13703
- "og:dynamic:show-description": z35.boolean().optional(),
13704
- "og:dynamic:show-url": z35.boolean().optional(),
13705
- "og:dynamic:show-gradient": z35.boolean().optional(),
13706
- noindex: z35.boolean().optional(),
13707
- nofollow: z35.boolean().optional(),
13723
+ "og:dynamic:text-color": z36.string().optional(),
13724
+ "og:dynamic:background-color": z36.string().optional(),
13725
+ "og:dynamic:show-logo": z36.boolean().optional(),
13726
+ "og:dynamic:show-section": z36.boolean().optional(),
13727
+ "og:dynamic:show-description": z36.boolean().optional(),
13728
+ "og:dynamic:show-url": z36.boolean().optional(),
13729
+ "og:dynamic:show-gradient": z36.boolean().optional(),
13730
+ noindex: z36.boolean().optional(),
13731
+ nofollow: z36.boolean().optional(),
13708
13732
  keywords: StringOrStringListSchema.optional()
13709
13733
  });
13710
- var LayoutSchema = z35.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
13711
- var LogoConfigurationSchema = z35.object({
13734
+ var LayoutSchema = z36.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
13735
+ var LogoConfigurationSchema = z36.object({
13712
13736
  light: FileIdOrUrlSchema.optional(),
13713
13737
  dark: FileIdOrUrlSchema.optional()
13714
13738
  });
13715
- var LogoSchema = z35.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
13716
- var BreadcrumbItemSchema = z35.object({
13717
- title: z35.string(),
13718
- pointsTo: z35.string().optional()
13739
+ var LogoSchema = z36.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
13740
+ var BreadcrumbItemSchema = z36.object({
13741
+ title: z36.string(),
13742
+ pointsTo: z36.string().optional()
13719
13743
  });
13720
13744
  var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
13721
- z35.object({
13745
+ z36.object({
13722
13746
  layout: LayoutSchema.optional(),
13723
- slug: z35.string().optional(),
13724
- title: z35.string().optional(),
13725
- headline: z35.string().optional(),
13726
- description: z35.string().optional(),
13727
- subtitle: z35.string().optional(),
13747
+ slug: z36.string().optional(),
13748
+ title: z36.string().optional(),
13749
+ headline: z36.string().optional(),
13750
+ description: z36.string().optional(),
13751
+ subtitle: z36.string().optional(),
13728
13752
  logo: LogoSchema.optional(),
13729
13753
  image: FileIdOrUrlSchema.optional(),
13730
- "edit-this-page-url": z35.string().optional(),
13731
- "hide-toc": z35.boolean().optional(),
13732
- "force-toc": z35.boolean().optional(),
13733
- "hide-nav-links": z35.boolean().optional(),
13734
- "max-toc-depth": z35.number().optional(),
13735
- "hide-feedback": z35.boolean().optional(),
13736
- "hide-page-actions": z35.boolean().optional(),
13737
- "no-image-zoom": z35.boolean().optional(),
13738
- breadcrumb: z35.array(BreadcrumbItemSchema).optional(),
13739
- excerpt: z35.string().optional(),
13740
- "canonical-url": z35.string().optional(),
13754
+ "edit-this-page-url": z36.string().optional(),
13755
+ "hide-toc": z36.boolean().optional(),
13756
+ "force-toc": z36.boolean().optional(),
13757
+ "hide-nav-links": z36.boolean().optional(),
13758
+ "max-toc-depth": z36.number().optional(),
13759
+ "hide-feedback": z36.boolean().optional(),
13760
+ "hide-page-actions": z36.boolean().optional(),
13761
+ "no-image-zoom": z36.boolean().optional(),
13762
+ breadcrumb: z36.array(BreadcrumbItemSchema).optional(),
13763
+ excerpt: z36.string().optional(),
13764
+ "canonical-url": z36.string().optional(),
13741
13765
  tags: StringOrStringListSchema.optional(),
13742
- "last-updated": z35.string().optional(),
13766
+ "last-updated": z36.string().optional(),
13743
13767
  /**
13744
13768
  * Arbitrary author-defined metadata that is copied onto this page's search
13745
13769
  * records, so it can be faceted and filtered on by full path
13746
13770
  * (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
13747
13771
  */
13748
- "search-metadata": z35.record(z35.unknown()).optional()
13772
+ "search-metadata": z36.record(z36.unknown()).optional()
13749
13773
  })
13750
13774
  );
13751
- var ResolvedMdxSchema = z35.object({
13752
- code: z35.string(),
13775
+ var ResolvedMdxSchema = z36.object({
13776
+ code: z36.string(),
13753
13777
  frontmatter: FrontmatterSchema,
13754
- scope: z35.record(z35.string(), z35.unknown()),
13755
- jsxRefs: z35.array(z35.string()).optional()
13778
+ scope: z36.record(z36.string(), z36.unknown()),
13779
+ jsxRefs: z36.array(z36.string()).optional()
13756
13780
  });
13757
13781
 
13758
13782
  // src/client/DocsV1Commons.ts
@@ -14192,9 +14216,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
14192
14216
  }
14193
14217
  }
14194
14218
  }
14195
- function generateExampleObject(object34, resolveTypeById, ignoreOptionals, visited, depth) {
14219
+ function generateExampleObject(object35, resolveTypeById, ignoreOptionals, visited, depth) {
14196
14220
  const example = {};
14197
- for (const property of getAllObjectProperties(object34, resolveTypeById)) {
14221
+ for (const property of getAllObjectProperties(object35, resolveTypeById)) {
14198
14222
  const value = generateExampleFromTypeReference(
14199
14223
  property.valueType,
14200
14224
  resolveTypeById,
@@ -14378,10 +14402,10 @@ function generateExamplePrimitive(reference) {
14378
14402
  return reference.name;
14379
14403
  }
14380
14404
  }
14381
- function getAllObjectProperties(object34, resolveTypeById) {
14405
+ function getAllObjectProperties(object35, resolveTypeById) {
14382
14406
  return [
14383
- ...object34.properties,
14384
- ...object34.extends.flatMap((typeId) => {
14407
+ ...object35.properties,
14408
+ ...object35.extends.flatMap((typeId) => {
14385
14409
  let type = resolveTypeById(typeId);
14386
14410
  if (type == null) {
14387
14411
  return [];