@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.mjs CHANGED
@@ -444,8 +444,8 @@ function parseMatch(match) {
444
444
  return match;
445
445
  }
446
446
  var src_default = (str, options = {}) => {
447
- str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string35) => {
448
- const isLastWord = m.length + offset >= string35.length;
447
+ str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string36) => {
448
+ const isLastWord = m.length + offset >= string36.length;
449
449
  const parsedMatch = parseMatch(m);
450
450
  if (!parsedMatch) {
451
451
  return m;
@@ -2537,16 +2537,16 @@ function selectDefaultValue(shape, defaults) {
2537
2537
  }
2538
2538
  }
2539
2539
  var UnwrapObjectTypeCache = /* @__PURE__ */ new WeakMap();
2540
- function unwrapObjectType(object34, types, parentVisitedTypeIds) {
2541
- const cached = UnwrapObjectTypeCache.get(object34);
2540
+ function unwrapObjectType(object35, types, parentVisitedTypeIds) {
2541
+ const cached = UnwrapObjectTypeCache.get(object35);
2542
2542
  if (cached != null) {
2543
2543
  return cached;
2544
2544
  }
2545
- const directProperties = object34.properties;
2546
- const extraProperties = object34.extraProperties;
2545
+ const directProperties = object35.properties;
2546
+ const extraProperties = object35.extraProperties;
2547
2547
  const descriptions = [];
2548
2548
  const visitedTypeIds = /* @__PURE__ */ new Set();
2549
- const extendedProperties = object34.extends.flatMap((typeId) => {
2549
+ const extendedProperties = object35.extends.flatMap((typeId) => {
2550
2550
  if (parentVisitedTypeIds?.has(typeId)) {
2551
2551
  console.error(`Circular reference detected. Cannot extend type=${typeId}`);
2552
2552
  return [];
@@ -2593,7 +2593,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
2593
2593
  };
2594
2594
  });
2595
2595
  });
2596
- const propertyKeys = new Set(object34.properties.map((property) => property.key));
2596
+ const propertyKeys = new Set(object35.properties.map((property) => property.key));
2597
2597
  const seenExtendedKeys = /* @__PURE__ */ new Set();
2598
2598
  const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
2599
2599
  if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
@@ -2616,7 +2616,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
2616
2616
  extraProperties,
2617
2617
  visitedTypeIds
2618
2618
  };
2619
- UnwrapObjectTypeCache.set(object34, toRet2);
2619
+ UnwrapObjectTypeCache.set(object35, toRet2);
2620
2620
  return toRet2;
2621
2621
  }
2622
2622
  const properties = sortBy(
@@ -2628,7 +2628,7 @@ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
2628
2628
  ]
2629
2629
  );
2630
2630
  const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
2631
- UnwrapObjectTypeCache.set(object34, toRet);
2631
+ UnwrapObjectTypeCache.set(object35, toRet);
2632
2632
  return toRet;
2633
2633
  }
2634
2634
  function unwrapDiscriminatedUnionVariant(union12, variant, types) {
@@ -4326,8 +4326,8 @@ function sortKeysByShape(obj, shape, types) {
4326
4326
  set: ({ itemShape }) => Array.isArray(obj) ? obj.map((o) => sortKeysByShape(o, itemShape, types)) : obj,
4327
4327
  map: ({ valueShape }) => isPlainObject_default(obj) ? mapValues(obj, (value) => sortKeysByShape(value, valueShape, types)) : obj,
4328
4328
  unknown: () => obj,
4329
- object: (object34) => {
4330
- const objectProperties = unwrapObjectType(object34, types).properties;
4329
+ object: (object35) => {
4330
+ const objectProperties = unwrapObjectType(object35, types).properties;
4331
4331
  return isPlainObject_default(obj) ? mapValues(
4332
4332
  sortKeysBy(
4333
4333
  obj,
@@ -11082,9 +11082,10 @@ import { OpenAPILink as OpenAPILink17 } from "@orpc/openapi-client/fetch";
11082
11082
 
11083
11083
  // src/orpc-client/mcp-hosting/contract.ts
11084
11084
  import { oc as oc15 } from "@orpc/contract";
11085
+ import * as z26 from "zod";
11086
+
11087
+ // src/orpc-client/mcp-hosting/schemas.ts
11085
11088
  import * as z25 from "zod";
11086
- var McpPathSegmentSchema = z25.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
11087
- var McpDeploymentStatusSchema = z25.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
11088
11089
  var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
11089
11090
  z25.object({ type: z25.literal("bearer") }),
11090
11091
  z25.object({
@@ -11094,6 +11095,9 @@ var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
11094
11095
  }),
11095
11096
  z25.object({ type: z25.literal("basic") })
11096
11097
  ]);
11098
+ var HttpUrlSchema = z25.string().url().refine((value) => /^https?:\/\//i.test(value), {
11099
+ message: "must be an http(s) URL"
11100
+ });
11097
11101
  var McpMetadataSchema = z25.object({
11098
11102
  name: z25.string().min(1),
11099
11103
  toolsets: z25.record(z25.string(), z25.array(z25.string())),
@@ -11117,47 +11121,67 @@ var McpMetadataSchema = z25.object({
11117
11121
  required: z25.boolean()
11118
11122
  }).strict()
11119
11123
  ),
11120
- baseUrl: z25.string().url(),
11124
+ baseUrl: HttpUrlSchema,
11121
11125
  followRedirects: z25.boolean(),
11122
11126
  maxRedirects: z25.number().int().nonnegative(),
11123
11127
  allowedRedirectHosts: z25.array(z25.string())
11124
11128
  }).passthrough();
11125
- var McpModuleSchema = z25.object({
11126
- name: z25.string().regex(/^[A-Za-z0-9._/-]+$/),
11127
- hash: z25.string().regex(/^[0-9a-f]{64}$/),
11128
- contentType: z25.string().min(1)
11129
+ var DeploymentConfigSchema = z25.object({
11130
+ serverName: z25.string().min(1),
11131
+ baseUrl: HttpUrlSchema,
11132
+ /**
11133
+ * Runtime rewrite of the upstream base URL. Part of the edge contract
11134
+ * (the outbound worker honors it) but not yet written by FDR.
11135
+ */
11136
+ baseUrlOverride: HttpUrlSchema.optional(),
11137
+ followRedirects: z25.boolean(),
11138
+ maxRedirects: z25.number().int().nonnegative(),
11139
+ allowedRedirectHosts: z25.array(z25.string()),
11140
+ authSchemes: z25.array(McpAuthSchemeSchema),
11141
+ authRequired: z25.boolean(),
11142
+ toolsets: z25.record(z25.string(), z25.array(z25.string())),
11143
+ toolsetMetadata: McpMetadataSchema.shape.toolsetMetadata
11144
+ });
11145
+
11146
+ // src/orpc-client/mcp-hosting/contract.ts
11147
+ var McpPathSegmentSchema = z26.string().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
11148
+ var McpDeploymentStatusSchema = z26.enum(["PUBLISHING", "SUCCEEDED", "FAILED"]);
11149
+ var McpModuleSchema = z26.object({
11150
+ name: z26.string().regex(/^[A-Za-z0-9._/-]+$/),
11151
+ hash: z26.string().regex(/^[0-9a-f]{64}$/),
11152
+ contentType: z26.string().min(1)
11129
11153
  }).strict();
11130
- var McpGitInputSchema = z25.object({
11131
- repoUrl: z25.string(),
11132
- branch: z25.string(),
11133
- commitSha: z25.string().optional()
11154
+ var McpGitInputSchema = z26.object({
11155
+ repoUrl: z26.string(),
11156
+ branch: z26.string(),
11157
+ commitSha: z26.string().optional()
11134
11158
  }).strict();
11135
- var DeployMcpServerInputSchema = z25.object({
11159
+ var DeployMcpServerInputSchema = z26.object({
11136
11160
  orgId: McpPathSegmentSchema,
11137
11161
  slug: McpPathSegmentSchema,
11138
- mainModule: z25.string().min(1),
11139
- compatibilityDate: z25.string().regex(/^\d{4}-\d{2}-\d{2}$/),
11140
- compatibilityFlags: z25.array(z25.string()),
11162
+ mainModule: z26.string().min(1),
11163
+ compatibilityDate: z26.string().regex(/^\d{4}-\d{2}-\d{2}$/),
11164
+ compatibilityFlags: z26.array(z26.string()),
11141
11165
  // Bounded so a single deploy request cannot fan out unbounded parallel
11142
11166
  // CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
11143
11167
  // 20 leaves room for wasm/sourcemap/chunk splitting.
11144
- modules: z25.array(McpModuleSchema).min(1).max(20),
11168
+ modules: z26.array(McpModuleSchema).min(1).max(20),
11145
11169
  metadata: McpMetadataSchema,
11146
11170
  // Everything else in this schema is bounded; keep the opaque config
11147
11171
  // blob bounded too so it cannot balloon the JSONB row.
11148
- config: z25.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
11172
+ config: z26.unknown().optional().refine((value) => value === void 0 || (JSON.stringify(value)?.length ?? 0) <= 65536, {
11149
11173
  message: "config must be at most 64KB serialized"
11150
11174
  }),
11151
- generatorName: z25.string().min(1),
11152
- generatorVersion: z25.string().min(1),
11153
- cliVersion: z25.string().optional(),
11175
+ generatorName: z26.string().min(1),
11176
+ generatorVersion: z26.string().min(1),
11177
+ cliVersion: z26.string().optional(),
11154
11178
  git: McpGitInputSchema.optional()
11155
11179
  }).strict().superRefine((input, ctx) => {
11156
11180
  const names = /* @__PURE__ */ new Set();
11157
11181
  for (const module of input.modules) {
11158
11182
  if (names.has(module.name)) {
11159
11183
  ctx.addIssue({
11160
- code: z25.ZodIssueCode.custom,
11184
+ code: z26.ZodIssueCode.custom,
11161
11185
  path: ["modules"],
11162
11186
  message: `duplicate module name: ${module.name}`
11163
11187
  });
@@ -11166,45 +11190,45 @@ var DeployMcpServerInputSchema = z25.object({
11166
11190
  }
11167
11191
  if (!names.has(input.mainModule)) {
11168
11192
  ctx.addIssue({
11169
- code: z25.ZodIssueCode.custom,
11193
+ code: z26.ZodIssueCode.custom,
11170
11194
  path: ["mainModule"],
11171
11195
  message: `mainModule ${input.mainModule} is not among the submitted modules`
11172
11196
  });
11173
11197
  }
11174
11198
  });
11175
- var GetMcpServerInputSchema = z25.object({
11199
+ var GetMcpServerInputSchema = z26.object({
11176
11200
  orgId: McpPathSegmentSchema,
11177
11201
  slug: McpPathSegmentSchema
11178
11202
  });
11179
- var ListMcpServersInputSchema = z25.object({
11180
- orgId: z25.string()
11203
+ var ListMcpServersInputSchema = z26.object({
11204
+ orgId: z26.string()
11181
11205
  });
11182
11206
  var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
11183
11207
  var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
11184
- var McpDeploymentSummarySchema = z25.object({
11185
- id: z25.string(),
11208
+ var McpDeploymentSummarySchema = z26.object({
11209
+ id: z26.string(),
11186
11210
  status: McpDeploymentStatusSchema,
11187
11211
  /** True when this deployment is the one the server currently serves. */
11188
- isActive: z25.boolean(),
11189
- generatorVersion: z25.string(),
11190
- createdAt: z25.string(),
11191
- createdBy: z25.string().nullish(),
11192
- error: z25.object({ name: z25.string(), message: z25.string() }).nullish()
11193
- });
11194
- var McpServerSchema = z25.object({
11195
- id: z25.string(),
11196
- orgId: z25.string(),
11197
- slug: z25.string(),
11212
+ isActive: z26.boolean(),
11213
+ generatorVersion: z26.string(),
11214
+ createdAt: z26.string(),
11215
+ createdBy: z26.string().nullish(),
11216
+ error: z26.object({ name: z26.string(), message: z26.string() }).nullish()
11217
+ });
11218
+ var McpServerSchema = z26.object({
11219
+ id: z26.string(),
11220
+ orgId: z26.string(),
11221
+ slug: z26.string(),
11198
11222
  /** The server is serving iff this is set; it names the serving deployment. */
11199
- activeDeploymentId: z25.string().nullish(),
11223
+ activeDeploymentId: z26.string().nullish(),
11200
11224
  /** Most recent publication attempt — how the last deploy went. */
11201
11225
  latestDeployment: McpDeploymentSummarySchema.nullish(),
11202
- url: z25.string().url(),
11203
- createdAt: z25.string(),
11204
- updatedAt: z25.string()
11226
+ url: z26.string().url(),
11227
+ createdAt: z26.string(),
11228
+ updatedAt: z26.string()
11205
11229
  });
11206
- var ListMcpServersResponseSchema = z25.object({ servers: z25.array(McpServerSchema) });
11207
- var ListMcpDeploymentsResponseSchema = z25.object({ deployments: z25.array(McpDeploymentSummarySchema) });
11230
+ var ListMcpServersResponseSchema = z26.object({ servers: z26.array(McpServerSchema) });
11231
+ var ListMcpDeploymentsResponseSchema = z26.object({ deployments: z26.array(McpDeploymentSummarySchema) });
11208
11232
  var mcpHostingContract = {
11209
11233
  deploy: oc15.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
11210
11234
  getServer: oc15.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
@@ -11232,84 +11256,84 @@ import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
11232
11256
 
11233
11257
  // src/orpc-client/pdf-export/contract.ts
11234
11258
  import { oc as oc16 } from "@orpc/contract";
11235
- import * as z26 from "zod";
11236
- var PdfExportScopeSchema = z26.object({
11237
- pageSlugs: z26.array(z26.string())
11238
- });
11239
- var PdfExportOptionsV1Schema = z26.object({
11240
- coverTitle: z26.string().nullish(),
11241
- coverSubtitle: z26.string().nullish(),
11242
- hideCoverFooter: z26.boolean().nullish(),
11243
- headerLeftTemplate: z26.string().nullish(),
11244
- headerRightTemplate: z26.string().nullish(),
11245
- footerLeftTemplate: z26.string().nullish(),
11246
- footerRightTemplate: z26.string().nullish(),
11259
+ import * as z27 from "zod";
11260
+ var PdfExportScopeSchema = z27.object({
11261
+ pageSlugs: z27.array(z27.string())
11262
+ });
11263
+ var PdfExportOptionsV1Schema = z27.object({
11264
+ coverTitle: z27.string().nullish(),
11265
+ coverSubtitle: z27.string().nullish(),
11266
+ hideCoverFooter: z27.boolean().nullish(),
11267
+ headerLeftTemplate: z27.string().nullish(),
11268
+ headerRightTemplate: z27.string().nullish(),
11269
+ footerLeftTemplate: z27.string().nullish(),
11270
+ footerRightTemplate: z27.string().nullish(),
11247
11271
  scope: PdfExportScopeSchema.nullish(),
11248
- hideCover: z26.boolean().nullish(),
11249
- hideToc: z26.boolean().nullish()
11272
+ hideCover: z27.boolean().nullish(),
11273
+ hideToc: z27.boolean().nullish()
11250
11274
  });
11251
- var PdfExportOptionsSchema = z26.discriminatedUnion("version", [
11252
- z26.object({ version: z26.literal("v1") }).merge(PdfExportOptionsV1Schema)
11275
+ var PdfExportOptionsSchema = z27.discriminatedUnion("version", [
11276
+ z27.object({ version: z27.literal("v1") }).merge(PdfExportOptionsV1Schema)
11253
11277
  ]);
11254
- var PdfExportTaskStatusSchema = z26.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
11255
- var PdfExportTaskSchema = z26.object({
11256
- id: z26.string(),
11257
- orgId: z26.string(),
11258
- docsUrl: z26.string(),
11259
- productId: z26.string().nullish(),
11260
- versionId: z26.string().nullish(),
11261
- requesterName: z26.string().nullish(),
11262
- notifyEmails: z26.array(z26.string()).nullish(),
11278
+ var PdfExportTaskStatusSchema = z27.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
11279
+ var PdfExportTaskSchema = z27.object({
11280
+ id: z27.string(),
11281
+ orgId: z27.string(),
11282
+ docsUrl: z27.string(),
11283
+ productId: z27.string().nullish(),
11284
+ versionId: z27.string().nullish(),
11285
+ requesterName: z27.string().nullish(),
11286
+ notifyEmails: z27.array(z27.string()).nullish(),
11263
11287
  status: PdfExportTaskStatusSchema,
11264
11288
  options: PdfExportOptionsSchema.nullish(),
11265
- createdAt: z26.string(),
11266
- startedAt: z26.string().nullish(),
11267
- completedAt: z26.string().nullish(),
11268
- fileName: z26.string().nullish(),
11269
- sizeBytes: z26.number().nullish(),
11270
- errorMessage: z26.string().nullish()
11271
- });
11272
- var ListPdfExportTasksResponseSchema = z26.object({
11273
- tasks: z26.array(PdfExportTaskSchema)
11274
- });
11275
- var PdfExportDownloadResponseSchema = z26.object({
11276
- downloadUrl: z26.string(),
11277
- fileName: z26.string(),
11278
- sizeBytes: z26.number()
11279
- });
11280
- var CreatePdfExportTaskInputSchema = z26.object({
11281
- orgId: z26.string(),
11282
- docsUrl: z26.string(),
11283
- productId: z26.string().nullish(),
11284
- versionId: z26.string().nullish(),
11285
- requesterName: z26.string().nullish(),
11289
+ createdAt: z27.string(),
11290
+ startedAt: z27.string().nullish(),
11291
+ completedAt: z27.string().nullish(),
11292
+ fileName: z27.string().nullish(),
11293
+ sizeBytes: z27.number().nullish(),
11294
+ errorMessage: z27.string().nullish()
11295
+ });
11296
+ var ListPdfExportTasksResponseSchema = z27.object({
11297
+ tasks: z27.array(PdfExportTaskSchema)
11298
+ });
11299
+ var PdfExportDownloadResponseSchema = z27.object({
11300
+ downloadUrl: z27.string(),
11301
+ fileName: z27.string(),
11302
+ sizeBytes: z27.number()
11303
+ });
11304
+ var CreatePdfExportTaskInputSchema = z27.object({
11305
+ orgId: z27.string(),
11306
+ docsUrl: z27.string(),
11307
+ productId: z27.string().nullish(),
11308
+ versionId: z27.string().nullish(),
11309
+ requesterName: z27.string().nullish(),
11286
11310
  options: PdfExportOptionsSchema.nullish()
11287
11311
  });
11288
- var ListPdfExportTasksInputSchema = z26.object({
11289
- orgId: z26.string(),
11290
- docsUrl: z26.string(),
11291
- limit: z26.coerce.number().nullish()
11312
+ var ListPdfExportTasksInputSchema = z27.object({
11313
+ orgId: z27.string(),
11314
+ docsUrl: z27.string(),
11315
+ limit: z27.coerce.number().nullish()
11292
11316
  });
11293
- var GetPdfExportTaskInputSchema = z26.object({
11294
- taskId: z26.string()
11317
+ var GetPdfExportTaskInputSchema = z27.object({
11318
+ taskId: z27.string()
11295
11319
  });
11296
- var UpdatePdfExportTaskInputSchema = z26.object({
11297
- taskId: z26.string(),
11320
+ var UpdatePdfExportTaskInputSchema = z27.object({
11321
+ taskId: z27.string(),
11298
11322
  status: PdfExportTaskStatusSchema,
11299
- startedAt: z26.string().nullish(),
11300
- completedAt: z26.string().nullish(),
11301
- s3Key: z26.string().nullish(),
11302
- fileName: z26.string().nullish(),
11303
- sizeBytes: z26.number().nullish(),
11304
- errorMessage: z26.string().nullish()
11323
+ startedAt: z27.string().nullish(),
11324
+ completedAt: z27.string().nullish(),
11325
+ s3Key: z27.string().nullish(),
11326
+ fileName: z27.string().nullish(),
11327
+ sizeBytes: z27.number().nullish(),
11328
+ errorMessage: z27.string().nullish()
11305
11329
  });
11306
- var GetPdfExportDownloadUrlInputSchema = z26.object({
11307
- taskId: z26.string()
11330
+ var GetPdfExportDownloadUrlInputSchema = z27.object({
11331
+ taskId: z27.string()
11308
11332
  });
11309
- var CleanupPdfExportsResponseSchema = z26.object({
11310
- expiredTasksDeleted: z26.number(),
11311
- s3ObjectsDeleted: z26.number(),
11312
- timedOutTasksFailed: z26.number()
11333
+ var CleanupPdfExportsResponseSchema = z27.object({
11334
+ expiredTasksDeleted: z27.number(),
11335
+ s3ObjectsDeleted: z27.number(),
11336
+ timedOutTasksFailed: z27.number()
11313
11337
  });
11314
11338
  var pdfExportContract = {
11315
11339
  createTask: oc16.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
@@ -11339,8 +11363,8 @@ import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
11339
11363
 
11340
11364
  // src/orpc-client/sdks/contract.ts
11341
11365
  import { oc as oc17 } from "@orpc/contract";
11342
- import * as z27 from "zod";
11343
- var LanguageEnumSchema = z27.enum([
11366
+ import * as z28 from "zod";
11367
+ var LanguageEnumSchema = z28.enum([
11344
11368
  "Go",
11345
11369
  "TypeScript",
11346
11370
  "Java",
@@ -11351,14 +11375,14 @@ var LanguageEnumSchema = z27.enum([
11351
11375
  "Swift",
11352
11376
  "Rust"
11353
11377
  ]);
11354
- var VersionBumpEnumSchema = z27.enum(["MAJOR", "MINOR", "PATCH"]);
11355
- var ComputeSemanticVersionInputSchema = z27.object({
11356
- package: z27.string(),
11378
+ var VersionBumpEnumSchema = z28.enum(["MAJOR", "MINOR", "PATCH"]);
11379
+ var ComputeSemanticVersionInputSchema = z28.object({
11380
+ package: z28.string(),
11357
11381
  language: LanguageEnumSchema,
11358
- githubRepository: z27.string().nullish()
11382
+ githubRepository: z28.string().nullish()
11359
11383
  });
11360
- var ComputeSemanticVersionOutputSchema = z27.object({
11361
- version: z27.string(),
11384
+ var ComputeSemanticVersionOutputSchema = z28.object({
11385
+ version: z28.string(),
11362
11386
  bump: VersionBumpEnumSchema
11363
11387
  });
11364
11388
  var sdksContract = {
@@ -11384,32 +11408,32 @@ import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
11384
11408
 
11385
11409
  // src/orpc-client/slugs/contract.ts
11386
11410
  import { oc as oc18 } from "@orpc/contract";
11387
- import * as z28 from "zod";
11388
- var SlugsInputSchema = z28.object({
11389
- domain: z28.string(),
11390
- basepath: z28.string().optional().default("")
11391
- });
11392
- var SlugEntrySchema = z28.object({
11393
- orgId: z28.string(),
11394
- domain: z28.string(),
11395
- basepath: z28.string(),
11396
- slug: z28.string(),
11397
- lastUpdated: z28.string()
11398
- });
11399
- var MarkdownEntrySchema = z28.object({
11400
- orgId: z28.string(),
11401
- domain: z28.string(),
11402
- basepath: z28.string(),
11403
- pageId: z28.string(),
11404
- slug: z28.string(),
11405
- hash: z28.string(),
11406
- lastUpdated: z28.string()
11407
- });
11408
- var GetSlugEntriesResponseSchema = z28.object({
11409
- entries: z28.array(SlugEntrySchema)
11410
- });
11411
- var GetMarkdownEntriesResponseSchema = z28.object({
11412
- entries: z28.array(MarkdownEntrySchema)
11411
+ import * as z29 from "zod";
11412
+ var SlugsInputSchema = z29.object({
11413
+ domain: z29.string(),
11414
+ basepath: z29.string().optional().default("")
11415
+ });
11416
+ var SlugEntrySchema = z29.object({
11417
+ orgId: z29.string(),
11418
+ domain: z29.string(),
11419
+ basepath: z29.string(),
11420
+ slug: z29.string(),
11421
+ lastUpdated: z29.string()
11422
+ });
11423
+ var MarkdownEntrySchema = z29.object({
11424
+ orgId: z29.string(),
11425
+ domain: z29.string(),
11426
+ basepath: z29.string(),
11427
+ pageId: z29.string(),
11428
+ slug: z29.string(),
11429
+ hash: z29.string(),
11430
+ lastUpdated: z29.string()
11431
+ });
11432
+ var GetSlugEntriesResponseSchema = z29.object({
11433
+ entries: z29.array(SlugEntrySchema)
11434
+ });
11435
+ var GetMarkdownEntriesResponseSchema = z29.object({
11436
+ entries: z29.array(MarkdownEntrySchema)
11413
11437
  });
11414
11438
  var slugsContract = {
11415
11439
  getSlugEntries: oc18.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
@@ -11442,102 +11466,102 @@ __export(contract_exports3, {
11442
11466
  snippetsFactoryContract: () => snippetsFactoryContract
11443
11467
  });
11444
11468
  import { oc as oc19 } from "@orpc/contract";
11445
- import * as z29 from "zod";
11446
- var TypeScriptSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
11447
- var PythonSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
11448
- var GoSdkSchema = z29.object({ githubRepo: z29.string(), version: z29.string() });
11449
- var RubySdkSchema = z29.object({ gem: z29.string(), version: z29.string() });
11450
- var JavaSdkSchema = z29.object({ group: z29.string(), artifact: z29.string(), version: z29.string() });
11451
- var CsharpSdkSchema = z29.object({ package: z29.string(), version: z29.string() });
11452
- var BaseSnippetCreateSchema = z29.object({
11469
+ import * as z30 from "zod";
11470
+ var TypeScriptSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
11471
+ var PythonSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
11472
+ var GoSdkSchema = z30.object({ githubRepo: z30.string(), version: z30.string() });
11473
+ var RubySdkSchema = z30.object({ gem: z30.string(), version: z30.string() });
11474
+ var JavaSdkSchema = z30.object({ group: z30.string(), artifact: z30.string(), version: z30.string() });
11475
+ var CsharpSdkSchema = z30.object({ package: z30.string(), version: z30.string() });
11476
+ var BaseSnippetCreateSchema = z30.object({
11453
11477
  endpoint: EndpointIdentifierSchema,
11454
- exampleIdentifier: z29.string().nullish()
11478
+ exampleIdentifier: z30.string().nullish()
11455
11479
  });
11456
- var SdkSnippetsCreateSchema = z29.discriminatedUnion("type", [
11457
- z29.object({
11458
- type: z29.literal("typescript"),
11480
+ var SdkSnippetsCreateSchema = z30.discriminatedUnion("type", [
11481
+ z30.object({
11482
+ type: z30.literal("typescript"),
11459
11483
  sdk: TypeScriptSdkSchema,
11460
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11484
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
11461
11485
  }),
11462
- z29.object({
11463
- type: z29.literal("python"),
11486
+ z30.object({
11487
+ type: z30.literal("python"),
11464
11488
  sdk: PythonSdkSchema,
11465
- snippets: z29.array(
11489
+ snippets: z30.array(
11466
11490
  BaseSnippetCreateSchema.extend({
11467
- snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
11491
+ snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
11468
11492
  })
11469
11493
  )
11470
11494
  }),
11471
- z29.object({
11472
- type: z29.literal("go"),
11495
+ z30.object({
11496
+ type: z30.literal("go"),
11473
11497
  sdk: GoSdkSchema,
11474
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11498
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
11475
11499
  }),
11476
- z29.object({
11477
- type: z29.literal("java"),
11500
+ z30.object({
11501
+ type: z30.literal("java"),
11478
11502
  sdk: JavaSdkSchema,
11479
- snippets: z29.array(
11503
+ snippets: z30.array(
11480
11504
  BaseSnippetCreateSchema.extend({
11481
- snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
11505
+ snippet: z30.object({ async_client: z30.string(), sync_client: z30.string() })
11482
11506
  })
11483
11507
  )
11484
11508
  }),
11485
- z29.object({
11486
- type: z29.literal("ruby"),
11509
+ z30.object({
11510
+ type: z30.literal("ruby"),
11487
11511
  sdk: RubySdkSchema,
11488
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11512
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
11489
11513
  }),
11490
- z29.object({
11491
- type: z29.literal("csharp"),
11514
+ z30.object({
11515
+ type: z30.literal("csharp"),
11492
11516
  sdk: CsharpSdkSchema,
11493
- snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11517
+ snippets: z30.array(BaseSnippetCreateSchema.extend({ snippet: z30.object({ client: z30.string() }) }))
11494
11518
  })
11495
11519
  ]);
11496
11520
  var snippetsFactoryContract = {
11497
11521
  createSnippetsForSdk: oc19.route({ method: "POST", path: "/create" }).input(
11498
- z29.object({
11499
- orgId: z29.string(),
11500
- apiId: z29.string(),
11522
+ z30.object({
11523
+ orgId: z30.string(),
11524
+ apiId: z30.string(),
11501
11525
  snippets: SdkSnippetsCreateSchema
11502
11526
  })
11503
11527
  )
11504
11528
  };
11505
- var ParameterPayloadSchema = z29.object({
11506
- name: z29.string(),
11507
- value: z29.unknown()
11529
+ var ParameterPayloadSchema = z30.object({
11530
+ name: z30.string(),
11531
+ value: z30.unknown()
11508
11532
  });
11509
- var AuthPayloadSchema = z29.discriminatedUnion("type", [
11510
- z29.object({ type: z29.literal("bearer"), token: z29.string() }),
11511
- z29.object({ type: z29.literal("basic"), username: z29.string(), password: z29.string() })
11533
+ var AuthPayloadSchema = z30.discriminatedUnion("type", [
11534
+ z30.object({ type: z30.literal("bearer"), token: z30.string() }),
11535
+ z30.object({ type: z30.literal("basic"), username: z30.string(), password: z30.string() })
11512
11536
  ]);
11513
- var CustomSnippetPayloadSchema = z29.object({
11514
- headers: z29.array(ParameterPayloadSchema).nullish(),
11515
- pathParameters: z29.array(ParameterPayloadSchema).nullish(),
11516
- queryParameters: z29.array(ParameterPayloadSchema).nullish(),
11517
- requestBody: z29.unknown().nullish(),
11537
+ var CustomSnippetPayloadSchema = z30.object({
11538
+ headers: z30.array(ParameterPayloadSchema).nullish(),
11539
+ pathParameters: z30.array(ParameterPayloadSchema).nullish(),
11540
+ queryParameters: z30.array(ParameterPayloadSchema).nullish(),
11541
+ requestBody: z30.unknown().nullish(),
11518
11542
  auth: AuthPayloadSchema.nullish()
11519
11543
  });
11520
11544
  var snippetsContract = {
11521
11545
  get: oc19.route({ method: "POST", path: "/" }).input(
11522
- z29.object({
11523
- orgId: z29.string().nullish(),
11524
- apiId: z29.string().nullish(),
11525
- sdks: z29.array(SdkRequestSchema).nullish(),
11546
+ z30.object({
11547
+ orgId: z30.string().nullish(),
11548
+ apiId: z30.string().nullish(),
11549
+ sdks: z30.array(SdkRequestSchema).nullish(),
11526
11550
  endpoint: EndpointIdentifierSchema,
11527
- exampleIdentifier: z29.string().nullish(),
11551
+ exampleIdentifier: z30.string().nullish(),
11528
11552
  payload: CustomSnippetPayloadSchema.nullish()
11529
11553
  })
11530
- ).output(z29.array(z29.unknown())),
11554
+ ).output(z30.array(z30.unknown())),
11531
11555
  load: oc19.route({ method: "POST", path: "/load" }).input(
11532
- z29.object({
11533
- orgId: z29.string().nullish(),
11534
- apiId: z29.string().nullish(),
11535
- sdks: z29.array(SdkRequestSchema).nullish()
11556
+ z30.object({
11557
+ orgId: z30.string().nullish(),
11558
+ apiId: z30.string().nullish(),
11559
+ sdks: z30.array(SdkRequestSchema).nullish()
11536
11560
  })
11537
11561
  ).output(
11538
- z29.object({
11539
- next: z29.number().nullish(),
11540
- snippets: z29.record(z29.string(), z29.unknown())
11562
+ z30.object({
11563
+ next: z30.number().nullish(),
11564
+ snippets: z30.record(z30.string(), z30.unknown())
11541
11565
  })
11542
11566
  )
11543
11567
  };
@@ -11572,44 +11596,44 @@ import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
11572
11596
 
11573
11597
  // src/orpc-client/templates/contract.ts
11574
11598
  import { oc as oc20 } from "@orpc/contract";
11575
- import * as z30 from "zod";
11576
- var SnippetRegistryEntrySchema = z30.object({
11599
+ import * as z31 from "zod";
11600
+ var SnippetRegistryEntrySchema = z31.object({
11577
11601
  sdk: SdkSchema,
11578
- endpointId: z30.object({
11579
- path: z30.string(),
11602
+ endpointId: z31.object({
11603
+ path: z31.string(),
11580
11604
  method: HttpMethodSchema,
11581
- identifierOverride: z30.string().nullish()
11605
+ identifierOverride: z31.string().nullish()
11582
11606
  }),
11583
- snippetTemplate: z30.object({
11584
- type: z30.literal("v1"),
11585
- functionInvocation: z30.unknown(),
11586
- clientInstantiation: z30.string()
11607
+ snippetTemplate: z31.object({
11608
+ type: z31.literal("v1"),
11609
+ functionInvocation: z31.unknown(),
11610
+ clientInstantiation: z31.string()
11587
11611
  }),
11588
- additionalTemplates: z30.record(z30.string(), z30.unknown()).nullish()
11612
+ additionalTemplates: z31.record(z31.string(), z31.unknown()).nullish()
11589
11613
  });
11590
- var RegisterInputSchema = z30.object({
11591
- orgId: z30.string(),
11592
- apiId: z30.string(),
11593
- apiDefinitionId: z30.string(),
11614
+ var RegisterInputSchema = z31.object({
11615
+ orgId: z31.string(),
11616
+ apiId: z31.string(),
11617
+ apiDefinitionId: z31.string(),
11594
11618
  snippet: SnippetRegistryEntrySchema
11595
11619
  });
11596
- var RegisterBatchInputSchema = z30.object({
11597
- orgId: z30.string(),
11598
- apiId: z30.string(),
11599
- apiDefinitionId: z30.string(),
11600
- snippets: z30.array(SnippetRegistryEntrySchema)
11620
+ var RegisterBatchInputSchema = z31.object({
11621
+ orgId: z31.string(),
11622
+ apiId: z31.string(),
11623
+ apiDefinitionId: z31.string(),
11624
+ snippets: z31.array(SnippetRegistryEntrySchema)
11601
11625
  });
11602
- var GetInputSchema = z30.object({
11603
- orgId: z30.string(),
11604
- apiId: z30.string(),
11626
+ var GetInputSchema = z31.object({
11627
+ orgId: z31.string(),
11628
+ apiId: z31.string(),
11605
11629
  sdk: SdkSchema,
11606
- endpointId: z30.object({
11607
- path: z30.string(),
11630
+ endpointId: z31.object({
11631
+ path: z31.string(),
11608
11632
  method: HttpMethodSchema,
11609
- identifierOverride: z30.string().nullish()
11633
+ identifierOverride: z31.string().nullish()
11610
11634
  })
11611
11635
  });
11612
- var EndpointSnippetTemplateSchema = z30.record(z30.string(), z30.unknown());
11636
+ var EndpointSnippetTemplateSchema = z31.record(z31.string(), z31.unknown());
11613
11637
  var templatesContract = {
11614
11638
  register: oc20.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
11615
11639
  registerBatch: oc20.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
@@ -11636,18 +11660,18 @@ import { OpenAPILink as OpenAPILink23 } from "@orpc/openapi-client/fetch";
11636
11660
 
11637
11661
  // src/orpc-client/tokens/contract.ts
11638
11662
  import { oc as oc21 } from "@orpc/contract";
11639
- import * as z31 from "zod";
11640
- var GenerateTokenInputSchema = z31.object({
11641
- orgId: z31.string(),
11642
- scope: z31.string()
11663
+ import * as z32 from "zod";
11664
+ var GenerateTokenInputSchema = z32.object({
11665
+ orgId: z32.string(),
11666
+ scope: z32.string()
11643
11667
  });
11644
- var RevokeTokenInputSchema = z31.object({
11645
- orgId: z31.string(),
11646
- tokenId: z31.string()
11668
+ var RevokeTokenInputSchema = z32.object({
11669
+ orgId: z32.string(),
11670
+ tokenId: z32.string()
11647
11671
  });
11648
- var GenerateTokenOutputSchema = z31.object({
11649
- token: z31.string(),
11650
- id: z31.string()
11672
+ var GenerateTokenOutputSchema = z32.object({
11673
+ token: z32.string(),
11674
+ id: z32.string()
11651
11675
  });
11652
11676
  var tokensContract = {
11653
11677
  generate: oc21.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
@@ -11925,85 +11949,85 @@ __export(APIV1Db_exports, {
11925
11949
  });
11926
11950
 
11927
11951
  // src/orpc-client/api/contract-db.ts
11928
- import * as z32 from "zod";
11929
- var EndpointSnippetTemplatesSchema = z32.object({
11930
- typescript: z32.unknown().nullish(),
11931
- python: z32.unknown().nullish()
11952
+ import * as z33 from "zod";
11953
+ var EndpointSnippetTemplatesSchema = z33.object({
11954
+ typescript: z33.unknown().nullish(),
11955
+ python: z33.unknown().nullish()
11932
11956
  });
11933
- var DbHttpRequestSchema = z32.object({
11934
- description: z32.string().nullish(),
11935
- contentType: z32.string().nullish(),
11957
+ var DbHttpRequestSchema = z33.object({
11958
+ description: z33.string().nullish(),
11959
+ contentType: z33.string().nullish(),
11936
11960
  type: RegisterHttpRequestBodyShapeSchema
11937
11961
  });
11938
- var DbHttpRequestsV2Schema = z32.object({
11939
- requests: z32.array(DbHttpRequestSchema).nullish()
11962
+ var DbHttpRequestsV2Schema = z33.object({
11963
+ requests: z33.array(DbHttpRequestSchema).nullish()
11940
11964
  });
11941
- var DbEndpointDefinitionSchema = z32.object({
11942
- description: z32.string().nullish(),
11943
- subtitle: z32.string().nullish(),
11965
+ var DbEndpointDefinitionSchema = z33.object({
11966
+ description: z33.string().nullish(),
11967
+ subtitle: z33.string().nullish(),
11944
11968
  availability: AvailabilitySchema.nullish(),
11945
- authed: z32.boolean().nullish(),
11946
- authV2: z32.array(AuthSchemeIdSchema).nullish(),
11947
- multiAuth: z32.array(MultipleAuthTypeSchema).nullish(),
11969
+ authed: z33.boolean().nullish(),
11970
+ authV2: z33.array(AuthSchemeIdSchema).nullish(),
11971
+ multiAuth: z33.array(MultipleAuthTypeSchema).nullish(),
11948
11972
  defaultEnvironment: EnvironmentIdSchema.nullish(),
11949
- environments: z32.array(EnvironmentSchema).nullish(),
11973
+ environments: z33.array(EnvironmentSchema).nullish(),
11950
11974
  method: HttpMethodSchema,
11951
11975
  id: EndpointIdSchema,
11952
- originalEndpointId: z32.string().nullish(),
11953
- urlSlug: z32.string(),
11954
- migratedFromUrlSlugs: z32.array(z32.string()).nullish(),
11955
- name: z32.string().nullish(),
11976
+ originalEndpointId: z33.string().nullish(),
11977
+ urlSlug: z33.string(),
11978
+ migratedFromUrlSlugs: z33.array(z33.string()).nullish(),
11979
+ name: z33.string().nullish(),
11956
11980
  path: EndpointPathSchema,
11957
- queryParameters: z32.array(QueryParameterSchema),
11958
- headers: z32.array(HeaderSchema),
11959
- responseHeaders: z32.array(HeaderSchema).nullish(),
11981
+ queryParameters: z33.array(QueryParameterSchema),
11982
+ headers: z33.array(HeaderSchema),
11983
+ responseHeaders: z33.array(HeaderSchema).nullish(),
11960
11984
  request: DbHttpRequestSchema.nullish(),
11961
11985
  requestsV2: DbHttpRequestsV2Schema.nullish(),
11962
11986
  response: RegisterHttpResponseSchema.nullish(),
11963
11987
  responsesV2: RegisterHttpResponsesV2Schema.nullish(),
11964
- errors: z32.array(ErrorDeclarationSchema).nullish(),
11965
- errorsV2: z32.array(RegisterErrorDeclarationV2Schema).nullish(),
11966
- examples: z32.array(RegisterExampleEndpointCallSchema),
11988
+ errors: z33.array(ErrorDeclarationSchema).nullish(),
11989
+ errorsV2: z33.array(RegisterErrorDeclarationV2Schema).nullish(),
11990
+ examples: z33.array(RegisterExampleEndpointCallSchema),
11967
11991
  snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
11968
11992
  protocol: ProtocolSchema.nullish(),
11969
- includeInApiExplorer: z32.boolean().nullish()
11970
- });
11971
- var DbApiDefinitionPackageSchema = z32.object({
11972
- endpoints: z32.array(DbEndpointDefinitionSchema),
11973
- websockets: z32.array(RegisterWebSocketChannelSchema).nullish(),
11974
- webhooks: z32.array(RegisterWebhookDefinitionSchema).nullish(),
11975
- graphqlOperations: z32.array(GraphQlOperationSchema).nullish(),
11976
- types: z32.array(TypeIdSchema),
11977
- subpackages: z32.array(SubpackageIdSchema),
11993
+ includeInApiExplorer: z33.boolean().nullish()
11994
+ });
11995
+ var DbApiDefinitionPackageSchema = z33.object({
11996
+ endpoints: z33.array(DbEndpointDefinitionSchema),
11997
+ websockets: z33.array(RegisterWebSocketChannelSchema).nullish(),
11998
+ webhooks: z33.array(RegisterWebhookDefinitionSchema).nullish(),
11999
+ graphqlOperations: z33.array(GraphQlOperationSchema).nullish(),
12000
+ types: z33.array(TypeIdSchema),
12001
+ subpackages: z33.array(SubpackageIdSchema),
11978
12002
  pointsTo: SubpackageIdSchema.nullish()
11979
12003
  });
11980
- var DbApiDefinitionSubpackageSchema = z32.object({
12004
+ var DbApiDefinitionSubpackageSchema = z33.object({
11981
12005
  ...DbApiDefinitionPackageSchema.shape,
11982
- description: z32.string().nullish(),
12006
+ description: z33.string().nullish(),
11983
12007
  parent: SubpackageIdSchema.nullish(),
11984
12008
  subpackageId: SubpackageIdSchema,
11985
- name: z32.string(),
11986
- urlSlug: z32.string(),
11987
- displayName: z32.string().nullish()
12009
+ name: z33.string(),
12010
+ urlSlug: z33.string(),
12011
+ displayName: z33.string().nullish()
11988
12012
  });
11989
- var DbApiDefinitionSchema = z32.object({
12013
+ var DbApiDefinitionSchema = z33.object({
11990
12014
  id: ApiDefinitionIdSchema,
11991
- apiName: z32.string().nullish(),
11992
- specVersion: z32.string().nullish(),
12015
+ apiName: z33.string().nullish(),
12016
+ specVersion: z33.string().nullish(),
11993
12017
  rootPackage: DbApiDefinitionPackageSchema,
11994
- types: z32.record(TypeIdSchema, RegisterTypeDefinitionSchema),
11995
- subpackages: z32.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
12018
+ types: z33.record(TypeIdSchema, RegisterTypeDefinitionSchema),
12019
+ subpackages: z33.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
11996
12020
  snippetsConfiguration: SnippetsConfigSchema.nullish(),
11997
12021
  auth: ApiAuthSchema.nullish(),
11998
- authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
11999
- hasMultipleBaseUrls: z32.boolean(),
12022
+ authSchemes: z33.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
12023
+ hasMultipleBaseUrls: z33.boolean(),
12000
12024
  navigation: ApiNavigationConfigRootSchema.nullish(),
12001
- globalHeaders: z32.array(HeaderSchema).nullish()
12025
+ globalHeaders: z33.array(HeaderSchema).nullish()
12002
12026
  });
12003
- var DbEndpointWithContextSchema = z32.object({
12027
+ var DbEndpointWithContextSchema = z33.object({
12004
12028
  endpoint: DbEndpointDefinitionSchema,
12005
- authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
12006
- globalHeaders: z32.array(HeaderSchema).nullish()
12029
+ authSchemes: z33.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
12030
+ globalHeaders: z33.array(HeaderSchema).nullish()
12007
12031
  });
12008
12032
 
12009
12033
  // src/client/APIV1Read.ts
@@ -12581,15 +12605,15 @@ __export(DocsV1Db_exports, {
12581
12605
  });
12582
12606
 
12583
12607
  // src/client/docs-types/db.ts
12584
- import * as z34 from "zod";
12608
+ import * as z35 from "zod";
12585
12609
 
12586
12610
  // src/client/docs-types/db-docsRead.ts
12587
- import * as z33 from "zod";
12588
- var BackgroundSchema2 = z33.discriminatedUnion("type", [
12589
- z33.object({ type: z33.literal("solid"), ...RgbaColorSchema.shape }),
12590
- z33.object({ type: z33.literal("gradient") })
12611
+ import * as z34 from "zod";
12612
+ var BackgroundSchema2 = z34.discriminatedUnion("type", [
12613
+ z34.object({ type: z34.literal("solid"), ...RgbaColorSchema.shape }),
12614
+ z34.object({ type: z34.literal("gradient") })
12591
12615
  ]);
12592
- var ThemeConfigSchema3 = z33.object({
12616
+ var ThemeConfigSchema3 = z34.object({
12593
12617
  logo: FileIdSchema2.optional(),
12594
12618
  backgroundImage: FileIdSchema2.optional(),
12595
12619
  accentPrimary: RgbaColorSchema,
@@ -12611,174 +12635,174 @@ var ThemeConfigSchema3 = z33.object({
12611
12635
  accent11: RgbaColorSchema.optional(),
12612
12636
  accent12: RgbaColorSchema.optional()
12613
12637
  });
12614
- var DarkAndLightModeConfigSchema3 = z33.object({
12638
+ var DarkAndLightModeConfigSchema3 = z34.object({
12615
12639
  dark: ThemeConfigSchema3,
12616
12640
  light: ThemeConfigSchema3
12617
12641
  });
12618
- var ColorsConfigV3Schema3 = z33.discriminatedUnion("type", [
12619
- z33.object({ type: z33.literal("dark"), ...ThemeConfigSchema3.shape }),
12620
- z33.object({ type: z33.literal("light"), ...ThemeConfigSchema3.shape }),
12621
- z33.object({ type: z33.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
12642
+ var ColorsConfigV3Schema3 = z34.discriminatedUnion("type", [
12643
+ z34.object({ type: z34.literal("dark"), ...ThemeConfigSchema3.shape }),
12644
+ z34.object({ type: z34.literal("light"), ...ThemeConfigSchema3.shape }),
12645
+ z34.object({ type: z34.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
12622
12646
  ]);
12623
12647
 
12624
12648
  // src/client/docs-types/db.ts
12625
- var DbFileInfoSchema = z34.object({
12626
- s3Key: z34.string()
12627
- });
12628
- var DbImageFileInfoSchema = z34.object({
12629
- s3Key: z34.string(),
12630
- width: z34.number(),
12631
- height: z34.number(),
12632
- blurDataUrl: z34.string().optional(),
12633
- alt: z34.string().optional()
12634
- });
12635
- var DbFileInfoV2Schema = z34.discriminatedUnion("type", [
12636
- z34.object({ type: z34.literal("s3Key"), ...DbFileInfoSchema.shape }),
12637
- z34.object({ type: z34.literal("image"), ...DbImageFileInfoSchema.shape })
12649
+ var DbFileInfoSchema = z35.object({
12650
+ s3Key: z35.string()
12651
+ });
12652
+ var DbImageFileInfoSchema = z35.object({
12653
+ s3Key: z35.string(),
12654
+ width: z35.number(),
12655
+ height: z35.number(),
12656
+ blurDataUrl: z35.string().optional(),
12657
+ alt: z35.string().optional()
12658
+ });
12659
+ var DbFileInfoV2Schema = z35.discriminatedUnion("type", [
12660
+ z35.object({ type: z35.literal("s3Key"), ...DbFileInfoSchema.shape }),
12661
+ z35.object({ type: z35.literal("image"), ...DbImageFileInfoSchema.shape })
12638
12662
  ]);
12639
- var NavigationTabGroupSchema3 = z34.lazy(
12640
- () => z34.object({
12641
- title: z34.string(),
12642
- icon: z34.string().optional(),
12643
- items: z34.array(NavigationItemSchema3),
12644
- urlSlug: z34.string(),
12645
- skipUrlSlug: z34.boolean().optional()
12663
+ var NavigationTabGroupSchema3 = z35.lazy(
12664
+ () => z35.object({
12665
+ title: z35.string(),
12666
+ icon: z35.string().optional(),
12667
+ items: z35.array(NavigationItemSchema3),
12668
+ urlSlug: z35.string(),
12669
+ skipUrlSlug: z35.boolean().optional()
12646
12670
  })
12647
12671
  );
12648
- var NavigationTabSchema3 = z34.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
12649
- var NavigationTabV2Schema2 = z34.lazy(
12650
- () => z34.discriminatedUnion("type", [
12651
- z34.object({
12652
- type: z34.literal("group"),
12653
- title: z34.string(),
12654
- icon: z34.string().optional(),
12655
- items: z34.array(NavigationItemSchema3),
12656
- urlSlug: z34.string(),
12657
- skipUrlSlug: z34.boolean().optional()
12672
+ var NavigationTabSchema3 = z35.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
12673
+ var NavigationTabV2Schema2 = z35.lazy(
12674
+ () => z35.discriminatedUnion("type", [
12675
+ z35.object({
12676
+ type: z35.literal("group"),
12677
+ title: z35.string(),
12678
+ icon: z35.string().optional(),
12679
+ items: z35.array(NavigationItemSchema3),
12680
+ urlSlug: z35.string(),
12681
+ skipUrlSlug: z35.boolean().optional()
12658
12682
  }),
12659
- z34.object({ type: z34.literal("link"), ...NavigationTabLinkSchema.shape }),
12660
- z34.object({ type: z34.literal("changelog"), ...ChangelogSectionSchema.shape }),
12661
- z34.object({ type: z34.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
12683
+ z35.object({ type: z35.literal("link"), ...NavigationTabLinkSchema.shape }),
12684
+ z35.object({ type: z35.literal("changelog"), ...ChangelogSectionSchema.shape }),
12685
+ z35.object({ type: z35.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
12662
12686
  ])
12663
12687
  );
12664
- var ApiSectionSchema3 = z34.object({
12665
- title: z34.string(),
12666
- icon: z34.string().optional(),
12688
+ var ApiSectionSchema3 = z35.object({
12689
+ title: z35.string(),
12690
+ icon: z35.string().optional(),
12667
12691
  api: ApiDefinitionIdSchema2,
12668
- urlSlug: z34.string(),
12669
- skipUrlSlug: z34.boolean(),
12692
+ urlSlug: z35.string(),
12693
+ skipUrlSlug: z35.boolean(),
12670
12694
  artifacts: ApiArtifactsSchema.optional(),
12671
- showErrors: z34.boolean().optional(),
12695
+ showErrors: z35.boolean().optional(),
12672
12696
  changelog: ChangelogSectionSchema.optional(),
12673
- hidden: z34.boolean().optional(),
12674
- fullSlug: z34.array(z34.string()).optional(),
12697
+ hidden: z35.boolean().optional(),
12698
+ fullSlug: z35.array(z35.string()).optional(),
12675
12699
  navigation: ApiNavigationConfigRootSchema2.optional(),
12676
- longScrolling: z34.boolean().optional(),
12677
- flattened: z34.boolean().optional()
12678
- });
12679
- var DocsSectionSchema3 = z34.lazy(
12680
- () => z34.object({
12681
- title: z34.string(),
12682
- icon: z34.string().optional(),
12683
- items: z34.array(NavigationItemSchema3),
12684
- urlSlug: z34.string(),
12685
- skipUrlSlug: z34.boolean(),
12686
- collapsed: z34.union([z34.boolean(), z34.literal("open-by-default")]),
12687
- collapsible: z34.boolean().optional(),
12688
- collapsedByDefault: z34.boolean().optional(),
12689
- hidden: z34.boolean().optional(),
12690
- fullSlug: z34.array(z34.string()).optional(),
12700
+ longScrolling: z35.boolean().optional(),
12701
+ flattened: z35.boolean().optional()
12702
+ });
12703
+ var DocsSectionSchema3 = z35.lazy(
12704
+ () => z35.object({
12705
+ title: z35.string(),
12706
+ icon: z35.string().optional(),
12707
+ items: z35.array(NavigationItemSchema3),
12708
+ urlSlug: z35.string(),
12709
+ skipUrlSlug: z35.boolean(),
12710
+ collapsed: z35.union([z35.boolean(), z35.literal("open-by-default")]),
12711
+ collapsible: z35.boolean().optional(),
12712
+ collapsedByDefault: z35.boolean().optional(),
12713
+ hidden: z35.boolean().optional(),
12714
+ fullSlug: z35.array(z35.string()).optional(),
12691
12715
  overviewPageId: PageIdSchema2.optional()
12692
12716
  })
12693
12717
  );
12694
- var NavigationItemSchema3 = z34.lazy(
12695
- () => z34.discriminatedUnion("type", [
12696
- z34.object({
12697
- type: z34.literal("page"),
12718
+ var NavigationItemSchema3 = z35.lazy(
12719
+ () => z35.discriminatedUnion("type", [
12720
+ z35.object({
12721
+ type: z35.literal("page"),
12698
12722
  ...PageMetadataSchema.shape
12699
12723
  }),
12700
- z34.object({
12701
- type: z34.literal("api"),
12724
+ z35.object({
12725
+ type: z35.literal("api"),
12702
12726
  ...ApiSectionSchema3.shape
12703
12727
  }),
12704
- z34.object({
12705
- type: z34.literal("apiV2"),
12728
+ z35.object({
12729
+ type: z35.literal("apiV2"),
12706
12730
  ...ApiSectionV2Schema.shape
12707
12731
  }),
12708
- z34.object({
12709
- type: z34.literal("section"),
12710
- title: z34.string(),
12711
- icon: z34.string().optional(),
12712
- items: z34.array(NavigationItemSchema3),
12713
- urlSlug: z34.string(),
12714
- skipUrlSlug: z34.boolean(),
12715
- collapsed: z34.union([z34.boolean(), z34.literal("open-by-default")]),
12716
- collapsible: z34.boolean().optional(),
12717
- collapsedByDefault: z34.boolean().optional(),
12718
- hidden: z34.boolean().optional(),
12719
- fullSlug: z34.array(z34.string()).optional(),
12732
+ z35.object({
12733
+ type: z35.literal("section"),
12734
+ title: z35.string(),
12735
+ icon: z35.string().optional(),
12736
+ items: z35.array(NavigationItemSchema3),
12737
+ urlSlug: z35.string(),
12738
+ skipUrlSlug: z35.boolean(),
12739
+ collapsed: z35.union([z35.boolean(), z35.literal("open-by-default")]),
12740
+ collapsible: z35.boolean().optional(),
12741
+ collapsedByDefault: z35.boolean().optional(),
12742
+ hidden: z35.boolean().optional(),
12743
+ fullSlug: z35.array(z35.string()).optional(),
12720
12744
  overviewPageId: PageIdSchema2.optional()
12721
12745
  }),
12722
- z34.object({
12723
- type: z34.literal("link"),
12746
+ z35.object({
12747
+ type: z35.literal("link"),
12724
12748
  ...LinkMetadataSchema.shape
12725
12749
  }),
12726
- z34.object({
12727
- type: z34.literal("changelog"),
12750
+ z35.object({
12751
+ type: z35.literal("changelog"),
12728
12752
  ...ChangelogSectionSchema.shape
12729
12753
  }),
12730
- z34.object({
12731
- type: z34.literal("changelogV3"),
12754
+ z35.object({
12755
+ type: z35.literal("changelogV3"),
12732
12756
  ...ChangelogSectionV3Schema.shape
12733
12757
  })
12734
12758
  ])
12735
12759
  );
12736
- var UnversionedTabbedNavigationConfigSchema3 = z34.object({
12737
- tabs: z34.array(NavigationTabSchema3).optional(),
12738
- tabsV2: z34.array(NavigationTabV2Schema2).optional(),
12760
+ var UnversionedTabbedNavigationConfigSchema3 = z35.object({
12761
+ tabs: z35.array(NavigationTabSchema3).optional(),
12762
+ tabsV2: z35.array(NavigationTabV2Schema2).optional(),
12739
12763
  landingPage: PageMetadataSchema.optional()
12740
12764
  });
12741
- var UnversionedUntabbedNavigationConfigSchema3 = z34.object({
12742
- items: z34.array(NavigationItemSchema3),
12765
+ var UnversionedUntabbedNavigationConfigSchema3 = z35.object({
12766
+ items: z35.array(NavigationItemSchema3),
12743
12767
  landingPage: PageMetadataSchema.optional()
12744
12768
  });
12745
- var UnversionedNavigationConfigSchema3 = z34.union([
12769
+ var UnversionedNavigationConfigSchema3 = z35.union([
12746
12770
  UnversionedTabbedNavigationConfigSchema3,
12747
12771
  UnversionedUntabbedNavigationConfigSchema3
12748
12772
  ]);
12749
- var VersionedNavigationConfigDataSchema3 = z34.object({
12773
+ var VersionedNavigationConfigDataSchema3 = z35.object({
12750
12774
  version: VersionIdSchema2,
12751
- urlSlug: z34.string().optional(),
12775
+ urlSlug: z35.string().optional(),
12752
12776
  availability: AvailabilitySchema2.optional(),
12753
12777
  config: UnversionedNavigationConfigSchema3
12754
12778
  });
12755
- var VersionedNavigationConfigSchema3 = z34.object({
12756
- versions: z34.array(VersionedNavigationConfigDataSchema3)
12779
+ var VersionedNavigationConfigSchema3 = z35.object({
12780
+ versions: z35.array(VersionedNavigationConfigDataSchema3)
12757
12781
  });
12758
- var NavigationConfigSchema3 = z34.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
12759
- var DocsDbConfigSchema = z34.object({
12760
- title: z34.string().optional(),
12782
+ var NavigationConfigSchema3 = z35.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
12783
+ var DocsDbConfigSchema = z35.object({
12784
+ title: z35.string().optional(),
12761
12785
  defaultLanguage: ProgrammingLanguageSchema.optional(),
12762
- languages: z34.array(LanguageSchema).optional(),
12786
+ languages: z35.array(LanguageSchema).optional(),
12763
12787
  translations: DocsTranslationsConfigSchema.optional(),
12764
12788
  announcement: AnnouncementConfigSchema.optional(),
12765
12789
  navigation: NavigationConfigSchema3.optional(),
12766
- root: z34.custom().optional(),
12767
- navbarLinks: z34.array(NavbarLinkSchema).optional(),
12768
- footerLinks: z34.array(FooterLinkSchema).optional(),
12769
- hideNavLinks: z34.boolean().optional(),
12790
+ root: z35.custom().optional(),
12791
+ navbarLinks: z35.array(NavbarLinkSchema).optional(),
12792
+ footerLinks: z35.array(FooterLinkSchema).optional(),
12793
+ hideNavLinks: z35.boolean().optional(),
12770
12794
  logoHeight: HeightSchema.optional(),
12771
12795
  logoHref: UrlSchema2.optional(),
12772
- logoRightText: z34.string().optional(),
12796
+ logoRightText: z35.string().optional(),
12773
12797
  favicon: FileIdSchema2.optional(),
12774
12798
  agents: AgentsConfigSchema.optional(),
12775
12799
  metadata: MetadataConfigSchema.optional(),
12776
- redirects: z34.array(RedirectConfigSchema).optional(),
12800
+ redirects: z35.array(RedirectConfigSchema).optional(),
12777
12801
  backgroundImage: FileIdSchema2.optional(),
12778
12802
  colorsV3: ColorsConfigV3Schema3.optional(),
12779
12803
  layout: DocsLayoutConfigSchema.optional(),
12780
12804
  theme: DocsThemeConfigSchema.optional(),
12781
- globalTheme: z34.string().optional(),
12805
+ globalTheme: z35.string().optional(),
12782
12806
  settings: DocsSettingsConfigSchema.optional(),
12783
12807
  typographyV2: DocsTypographyConfigV2Schema.optional(),
12784
12808
  analyticsConfig: AnalyticsConfigSchema.optional(),
@@ -12788,40 +12812,40 @@ var DocsDbConfigSchema = z34.object({
12788
12812
  aiChatConfig: AIChatConfigSchema.optional(),
12789
12813
  pageActions: PageActionsConfigSchema.optional(),
12790
12814
  editThisPageLaunch: EditThisPageLaunchSchema.optional(),
12791
- header: z34.string().optional(),
12792
- footer: z34.string().optional(),
12815
+ header: z35.string().optional(),
12816
+ footer: z35.string().optional(),
12793
12817
  logo: FileIdSchema2.optional(),
12794
12818
  logoV2: ThemedFileIdSchema.optional(),
12795
12819
  colors: ColorsConfigSchema.optional(),
12796
12820
  colorsV2: ColorsConfigV2Schema.optional(),
12797
12821
  typography: DocsTypographyConfigSchema.optional()
12798
12822
  });
12799
- var DocsDefinitionDbV1Schema = z34.object({
12800
- pages: z34.record(PageIdSchema2, PageContentSchema),
12801
- referencedApis: z34.array(ApiDefinitionIdSchema2),
12802
- files: z34.record(FileIdSchema2, DbFileInfoSchema),
12823
+ var DocsDefinitionDbV1Schema = z35.object({
12824
+ pages: z35.record(PageIdSchema2, PageContentSchema),
12825
+ referencedApis: z35.array(ApiDefinitionIdSchema2),
12826
+ files: z35.record(FileIdSchema2, DbFileInfoSchema),
12803
12827
  config: DocsDbConfigSchema,
12804
12828
  colors: ColorsConfigSchema.optional()
12805
12829
  });
12806
- var DocsDefinitionDbV2Schema = z34.object({
12807
- pages: z34.record(PageIdSchema2, PageContentSchema),
12808
- referencedApis: z34.array(ApiDefinitionIdSchema2),
12809
- files: z34.record(FileIdSchema2, DbFileInfoSchema),
12830
+ var DocsDefinitionDbV2Schema = z35.object({
12831
+ pages: z35.record(PageIdSchema2, PageContentSchema),
12832
+ referencedApis: z35.array(ApiDefinitionIdSchema2),
12833
+ files: z35.record(FileIdSchema2, DbFileInfoSchema),
12810
12834
  config: DocsDbConfigSchema,
12811
12835
  colors: ColorsConfigSchema.optional(),
12812
12836
  typography: DocsTypographyConfigSchema.optional()
12813
12837
  });
12814
- var DocsDefinitionDbV3Schema = z34.object({
12815
- pages: z34.record(PageIdSchema2, PageContentSchema),
12816
- referencedApis: z34.array(ApiDefinitionIdSchema2),
12817
- files: z34.record(FileIdSchema2, DbFileInfoV2Schema),
12838
+ var DocsDefinitionDbV3Schema = z35.object({
12839
+ pages: z35.record(PageIdSchema2, PageContentSchema),
12840
+ referencedApis: z35.array(ApiDefinitionIdSchema2),
12841
+ files: z35.record(FileIdSchema2, DbFileInfoV2Schema),
12818
12842
  config: DocsDbConfigSchema,
12819
- jsFiles: z34.record(z34.string(), z34.string()).optional()
12843
+ jsFiles: z35.record(z35.string(), z35.string()).optional()
12820
12844
  });
12821
- var DocsDefinitionDbSchema = z34.discriminatedUnion("type", [
12822
- z34.object({ type: z34.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
12823
- z34.object({ type: z34.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
12824
- z34.object({ type: z34.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
12845
+ var DocsDefinitionDbSchema = z35.discriminatedUnion("type", [
12846
+ z35.object({ type: z35.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
12847
+ z35.object({ type: z35.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
12848
+ z35.object({ type: z35.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
12825
12849
  ]);
12826
12850
 
12827
12851
  // src/client/DocsV1Read.ts
@@ -13596,100 +13620,100 @@ __export(DocsLatest_exports, {
13596
13620
  });
13597
13621
 
13598
13622
  // src/client/docs-types/latest.ts
13599
- import * as z35 from "zod";
13600
- var StringOrStringListSchema = z35.union([z35.string(), z35.array(z35.string())]);
13601
- var TwitterCardSettingSchema2 = z35.enum(["summary", "summary_large_image", "app", "player"]);
13602
- var JsonLdBreadcrumbListElementSchema = z35.object({
13603
- "@type": z35.literal("ListItem"),
13604
- position: z35.number(),
13605
- name: z35.string(),
13606
- item: z35.string().optional()
13607
- });
13608
- var JsonLdBreadcrumbListSchema = z35.object({
13609
- "@context": z35.literal("https://schema.org"),
13610
- "@type": z35.literal("BreadcrumbList"),
13611
- itemListElement: z35.array(JsonLdBreadcrumbListElementSchema)
13612
- });
13613
- var WithJsonLdBreadcrumbsSchema = z35.object({
13623
+ import * as z36 from "zod";
13624
+ var StringOrStringListSchema = z36.union([z36.string(), z36.array(z36.string())]);
13625
+ var TwitterCardSettingSchema2 = z36.enum(["summary", "summary_large_image", "app", "player"]);
13626
+ var JsonLdBreadcrumbListElementSchema = z36.object({
13627
+ "@type": z36.literal("ListItem"),
13628
+ position: z36.number(),
13629
+ name: z36.string(),
13630
+ item: z36.string().optional()
13631
+ });
13632
+ var JsonLdBreadcrumbListSchema = z36.object({
13633
+ "@context": z36.literal("https://schema.org"),
13634
+ "@type": z36.literal("BreadcrumbList"),
13635
+ itemListElement: z36.array(JsonLdBreadcrumbListElementSchema)
13636
+ });
13637
+ var WithJsonLdBreadcrumbsSchema = z36.object({
13614
13638
  "jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
13615
13639
  });
13616
- var WithMetadataConfigSchema = z35.object({
13617
- "og:site_name": z35.string().optional(),
13618
- "og:title": z35.string().optional(),
13619
- "og:description": z35.string().optional(),
13620
- "og:url": z35.string().optional(),
13640
+ var WithMetadataConfigSchema = z36.object({
13641
+ "og:site_name": z36.string().optional(),
13642
+ "og:title": z36.string().optional(),
13643
+ "og:description": z36.string().optional(),
13644
+ "og:url": z36.string().optional(),
13621
13645
  "og:image": FileIdOrUrlSchema.optional(),
13622
- "og:image:width": z35.number().optional(),
13623
- "og:image:height": z35.number().optional(),
13624
- "og:locale": z35.string().optional(),
13646
+ "og:image:width": z36.number().optional(),
13647
+ "og:image:height": z36.number().optional(),
13648
+ "og:locale": z36.string().optional(),
13625
13649
  "og:logo": FileIdOrUrlSchema.optional(),
13626
- "twitter:title": z35.string().optional(),
13627
- "twitter:description": z35.string().optional(),
13628
- "twitter:handle": z35.string().optional(),
13650
+ "twitter:title": z36.string().optional(),
13651
+ "twitter:description": z36.string().optional(),
13652
+ "twitter:handle": z36.string().optional(),
13629
13653
  "twitter:image": FileIdOrUrlSchema.optional(),
13630
- "twitter:site": z35.string().optional(),
13631
- "twitter:url": z35.string().optional(),
13654
+ "twitter:site": z36.string().optional(),
13655
+ "twitter:url": z36.string().optional(),
13632
13656
  "twitter:card": TwitterCardSettingSchema2.optional(),
13633
13657
  "og:background-image": FileIdOrUrlSchema.optional(),
13634
- "og:dynamic": z35.boolean().optional(),
13658
+ "og:dynamic": z36.boolean().optional(),
13635
13659
  "og:dynamic:background-image": FileIdOrUrlSchema.optional(),
13636
- "og:dynamic:text-color": z35.string().optional(),
13637
- "og:dynamic:background-color": z35.string().optional(),
13638
- "og:dynamic:show-logo": z35.boolean().optional(),
13639
- "og:dynamic:show-section": z35.boolean().optional(),
13640
- "og:dynamic:show-description": z35.boolean().optional(),
13641
- "og:dynamic:show-url": z35.boolean().optional(),
13642
- "og:dynamic:show-gradient": z35.boolean().optional(),
13643
- noindex: z35.boolean().optional(),
13644
- nofollow: z35.boolean().optional(),
13660
+ "og:dynamic:text-color": z36.string().optional(),
13661
+ "og:dynamic:background-color": z36.string().optional(),
13662
+ "og:dynamic:show-logo": z36.boolean().optional(),
13663
+ "og:dynamic:show-section": z36.boolean().optional(),
13664
+ "og:dynamic:show-description": z36.boolean().optional(),
13665
+ "og:dynamic:show-url": z36.boolean().optional(),
13666
+ "og:dynamic:show-gradient": z36.boolean().optional(),
13667
+ noindex: z36.boolean().optional(),
13668
+ nofollow: z36.boolean().optional(),
13645
13669
  keywords: StringOrStringListSchema.optional()
13646
13670
  });
13647
- var LayoutSchema = z35.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
13648
- var LogoConfigurationSchema = z35.object({
13671
+ var LayoutSchema = z36.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
13672
+ var LogoConfigurationSchema = z36.object({
13649
13673
  light: FileIdOrUrlSchema.optional(),
13650
13674
  dark: FileIdOrUrlSchema.optional()
13651
13675
  });
13652
- var LogoSchema = z35.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
13653
- var BreadcrumbItemSchema = z35.object({
13654
- title: z35.string(),
13655
- pointsTo: z35.string().optional()
13676
+ var LogoSchema = z36.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
13677
+ var BreadcrumbItemSchema = z36.object({
13678
+ title: z36.string(),
13679
+ pointsTo: z36.string().optional()
13656
13680
  });
13657
13681
  var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
13658
- z35.object({
13682
+ z36.object({
13659
13683
  layout: LayoutSchema.optional(),
13660
- slug: z35.string().optional(),
13661
- title: z35.string().optional(),
13662
- headline: z35.string().optional(),
13663
- description: z35.string().optional(),
13664
- subtitle: z35.string().optional(),
13684
+ slug: z36.string().optional(),
13685
+ title: z36.string().optional(),
13686
+ headline: z36.string().optional(),
13687
+ description: z36.string().optional(),
13688
+ subtitle: z36.string().optional(),
13665
13689
  logo: LogoSchema.optional(),
13666
13690
  image: FileIdOrUrlSchema.optional(),
13667
- "edit-this-page-url": z35.string().optional(),
13668
- "hide-toc": z35.boolean().optional(),
13669
- "force-toc": z35.boolean().optional(),
13670
- "hide-nav-links": z35.boolean().optional(),
13671
- "max-toc-depth": z35.number().optional(),
13672
- "hide-feedback": z35.boolean().optional(),
13673
- "hide-page-actions": z35.boolean().optional(),
13674
- "no-image-zoom": z35.boolean().optional(),
13675
- breadcrumb: z35.array(BreadcrumbItemSchema).optional(),
13676
- excerpt: z35.string().optional(),
13677
- "canonical-url": z35.string().optional(),
13691
+ "edit-this-page-url": z36.string().optional(),
13692
+ "hide-toc": z36.boolean().optional(),
13693
+ "force-toc": z36.boolean().optional(),
13694
+ "hide-nav-links": z36.boolean().optional(),
13695
+ "max-toc-depth": z36.number().optional(),
13696
+ "hide-feedback": z36.boolean().optional(),
13697
+ "hide-page-actions": z36.boolean().optional(),
13698
+ "no-image-zoom": z36.boolean().optional(),
13699
+ breadcrumb: z36.array(BreadcrumbItemSchema).optional(),
13700
+ excerpt: z36.string().optional(),
13701
+ "canonical-url": z36.string().optional(),
13678
13702
  tags: StringOrStringListSchema.optional(),
13679
- "last-updated": z35.string().optional(),
13703
+ "last-updated": z36.string().optional(),
13680
13704
  /**
13681
13705
  * Arbitrary author-defined metadata that is copied onto this page's search
13682
13706
  * records, so it can be faceted and filtered on by full path
13683
13707
  * (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
13684
13708
  */
13685
- "search-metadata": z35.record(z35.unknown()).optional()
13709
+ "search-metadata": z36.record(z36.unknown()).optional()
13686
13710
  })
13687
13711
  );
13688
- var ResolvedMdxSchema = z35.object({
13689
- code: z35.string(),
13712
+ var ResolvedMdxSchema = z36.object({
13713
+ code: z36.string(),
13690
13714
  frontmatter: FrontmatterSchema,
13691
- scope: z35.record(z35.string(), z35.unknown()),
13692
- jsxRefs: z35.array(z35.string()).optional()
13715
+ scope: z36.record(z36.string(), z36.unknown()),
13716
+ jsxRefs: z36.array(z36.string()).optional()
13693
13717
  });
13694
13718
 
13695
13719
  // src/client/DocsV1Commons.ts
@@ -14129,9 +14153,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
14129
14153
  }
14130
14154
  }
14131
14155
  }
14132
- function generateExampleObject(object34, resolveTypeById, ignoreOptionals, visited, depth) {
14156
+ function generateExampleObject(object35, resolveTypeById, ignoreOptionals, visited, depth) {
14133
14157
  const example = {};
14134
- for (const property of getAllObjectProperties(object34, resolveTypeById)) {
14158
+ for (const property of getAllObjectProperties(object35, resolveTypeById)) {
14135
14159
  const value = generateExampleFromTypeReference(
14136
14160
  property.valueType,
14137
14161
  resolveTypeById,
@@ -14315,10 +14339,10 @@ function generateExamplePrimitive(reference) {
14315
14339
  return reference.name;
14316
14340
  }
14317
14341
  }
14318
- function getAllObjectProperties(object34, resolveTypeById) {
14342
+ function getAllObjectProperties(object35, resolveTypeById) {
14319
14343
  return [
14320
- ...object34.properties,
14321
- ...object34.extends.flatMap((typeId) => {
14344
+ ...object35.properties,
14345
+ ...object35.extends.flatMap((typeId) => {
14322
14346
  let type = resolveTypeById(typeId);
14323
14347
  if (type == null) {
14324
14348
  return [];