@fern-api/fdr-sdk 1.2.114-2dfb9e1373 → 1.2.114-7409d6cc42

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, string34) => {
511
- const isLastWord = m.length + offset >= string34.length;
510
+ str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string35) => {
511
+ const isLastWord = m.length + offset >= string35.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(object33, types, parentVisitedTypeIds) {
2604
- const cached = UnwrapObjectTypeCache.get(object33);
2603
+ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
2604
+ const cached = UnwrapObjectTypeCache.get(object34);
2605
2605
  if (cached != null) {
2606
2606
  return cached;
2607
2607
  }
2608
- const directProperties = object33.properties;
2609
- const extraProperties = object33.extraProperties;
2608
+ const directProperties = object34.properties;
2609
+ const extraProperties = object34.extraProperties;
2610
2610
  const descriptions = [];
2611
2611
  const visitedTypeIds = /* @__PURE__ */ new Set();
2612
- const extendedProperties = object33.extends.flatMap((typeId) => {
2612
+ const extendedProperties = object34.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(object33, types, parentVisitedTypeIds) {
2656
2656
  };
2657
2657
  });
2658
2658
  });
2659
- const propertyKeys = new Set(object33.properties.map((property) => property.key));
2659
+ const propertyKeys = new Set(object34.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(object33, types, parentVisitedTypeIds) {
2679
2679
  extraProperties,
2680
2680
  visitedTypeIds
2681
2681
  };
2682
- UnwrapObjectTypeCache.set(object33, toRet2);
2682
+ UnwrapObjectTypeCache.set(object34, toRet2);
2683
2683
  return toRet2;
2684
2684
  }
2685
2685
  const properties = (0, import_array.sortBy)(
@@ -2691,7 +2691,7 @@ function unwrapObjectType(object33, types, parentVisitedTypeIds) {
2691
2691
  ]
2692
2692
  );
2693
2693
  const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
2694
- UnwrapObjectTypeCache.set(object33, toRet);
2694
+ UnwrapObjectTypeCache.set(object34, 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: (object33) => {
4393
- const objectProperties = unwrapObjectType(object33, types).properties;
4392
+ object: (object34) => {
4393
+ const objectProperties = unwrapObjectType(object34, types).properties;
4394
4394
  return isPlainObject_default(obj) ? (0, import_object.mapValues)(
4395
4395
  sortKeysBy(
4396
4396
  obj,
@@ -11139,103 +11139,253 @@ function createGitClient(options) {
11139
11139
  return (0, import_client21.createORPCClient)(link);
11140
11140
  }
11141
11141
 
11142
- // src/orpc-client/pdf-export/client.ts
11142
+ // src/orpc-client/mcp-hosting/client.ts
11143
11143
  var import_client22 = require("@orpc/client");
11144
11144
  var import_fetch17 = require("@orpc/openapi-client/fetch");
11145
11145
 
11146
- // src/orpc-client/pdf-export/contract.ts
11146
+ // src/orpc-client/mcp-hosting/contract.ts
11147
11147
  var import_contract31 = require("@orpc/contract");
11148
11148
  var z25 = __toESM(require("zod"), 1);
11149
- var PdfExportScopeSchema = z25.object({
11150
- pageSlugs: z25.array(z25.string())
11151
- });
11152
- var PdfExportOptionsV1Schema = z25.object({
11153
- coverTitle: z25.string().nullish(),
11154
- coverSubtitle: z25.string().nullish(),
11155
- hideCoverFooter: z25.boolean().nullish(),
11156
- headerLeftTemplate: z25.string().nullish(),
11157
- headerRightTemplate: z25.string().nullish(),
11158
- footerLeftTemplate: z25.string().nullish(),
11159
- footerRightTemplate: z25.string().nullish(),
11160
- scope: PdfExportScopeSchema.nullish(),
11161
- hideCover: z25.boolean().nullish(),
11162
- hideToc: z25.boolean().nullish()
11163
- });
11164
- var PdfExportOptionsSchema = z25.discriminatedUnion("version", [
11165
- z25.object({ version: z25.literal("v1") }).merge(PdfExportOptionsV1Schema)
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
+ var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
11152
+ z25.object({ type: z25.literal("bearer") }),
11153
+ z25.object({
11154
+ type: z25.literal("apiKey"),
11155
+ paramName: z25.string().min(1),
11156
+ in: z25.enum(["header", "query", "cookie"])
11157
+ }),
11158
+ z25.object({ type: z25.literal("basic") })
11166
11159
  ]);
11167
- var PdfExportTaskStatusSchema = z25.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
11168
- var PdfExportTaskSchema = z25.object({
11169
- id: z25.string(),
11170
- orgId: z25.string(),
11171
- docsUrl: z25.string(),
11172
- productId: z25.string().nullish(),
11173
- versionId: z25.string().nullish(),
11174
- requesterName: z25.string().nullish(),
11175
- notifyEmails: z25.array(z25.string()).nullish(),
11176
- status: PdfExportTaskStatusSchema,
11177
- options: PdfExportOptionsSchema.nullish(),
11178
- createdAt: z25.string(),
11179
- startedAt: z25.string().nullish(),
11180
- completedAt: z25.string().nullish(),
11181
- fileName: z25.string().nullish(),
11182
- sizeBytes: z25.number().nullish(),
11183
- errorMessage: z25.string().nullish()
11160
+ var McpMetadataSchema = z25.object({
11161
+ name: z25.string().min(1),
11162
+ toolsets: z25.record(z25.string(), z25.array(z25.string())),
11163
+ toolsetMetadata: z25.array(
11164
+ z25.object({
11165
+ name: z25.string(),
11166
+ title: z25.string(),
11167
+ description: z25.string(),
11168
+ toolCount: z25.number().int().nonnegative()
11169
+ }).strict()
11170
+ ),
11171
+ auth: z25.object({
11172
+ schemes: z25.array(McpAuthSchemeSchema),
11173
+ required: z25.boolean()
11174
+ }).strict(),
11175
+ skippedTools: z25.array(z25.object({ name: z25.string(), reason: z25.string() }).strict()),
11176
+ environmentVariables: z25.array(
11177
+ z25.object({
11178
+ name: z25.string(),
11179
+ description: z25.string(),
11180
+ required: z25.boolean()
11181
+ }).strict()
11182
+ ),
11183
+ baseUrl: z25.string().url(),
11184
+ followRedirects: z25.boolean(),
11185
+ maxRedirects: z25.number().int().nonnegative(),
11186
+ allowedRedirectHosts: z25.array(z25.string())
11187
+ }).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
+ }).strict();
11193
+ var McpGitInputSchema = z25.object({
11194
+ repoUrl: z25.string(),
11195
+ branch: z25.string(),
11196
+ commitSha: z25.string().optional()
11197
+ }).strict();
11198
+ var DeployMcpServerInputSchema = z25.object({
11199
+ orgId: McpPathSegmentSchema,
11200
+ 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()),
11204
+ // Bounded so a single deploy request cannot fan out unbounded parallel
11205
+ // CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
11206
+ // 20 leaves room for wasm/sourcemap/chunk splitting.
11207
+ modules: z25.array(McpModuleSchema).min(1).max(20),
11208
+ metadata: McpMetadataSchema,
11209
+ // Everything else in this schema is bounded; keep the opaque config
11210
+ // 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, {
11212
+ message: "config must be at most 64KB serialized"
11213
+ }),
11214
+ generatorName: z25.string().min(1),
11215
+ generatorVersion: z25.string().min(1),
11216
+ cliVersion: z25.string().optional(),
11217
+ git: McpGitInputSchema.optional()
11218
+ }).strict().superRefine((input, ctx) => {
11219
+ const names = /* @__PURE__ */ new Set();
11220
+ for (const module2 of input.modules) {
11221
+ if (names.has(module2.name)) {
11222
+ ctx.addIssue({
11223
+ code: z25.ZodIssueCode.custom,
11224
+ path: ["modules"],
11225
+ message: `duplicate module name: ${module2.name}`
11226
+ });
11227
+ }
11228
+ names.add(module2.name);
11229
+ }
11230
+ if (!names.has(input.mainModule)) {
11231
+ ctx.addIssue({
11232
+ code: z25.ZodIssueCode.custom,
11233
+ path: ["mainModule"],
11234
+ message: `mainModule ${input.mainModule} is not among the submitted modules`
11235
+ });
11236
+ }
11237
+ });
11238
+ var GetMcpServerInputSchema = z25.object({
11239
+ orgId: McpPathSegmentSchema,
11240
+ slug: McpPathSegmentSchema
11184
11241
  });
11185
- var ListPdfExportTasksResponseSchema = z25.object({
11186
- tasks: z25.array(PdfExportTaskSchema)
11242
+ var ListMcpServersInputSchema = z25.object({
11243
+ orgId: z25.string()
11187
11244
  });
11188
- var PdfExportDownloadResponseSchema = z25.object({
11189
- downloadUrl: z25.string(),
11190
- fileName: z25.string(),
11191
- sizeBytes: z25.number()
11245
+ var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
11246
+ var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
11247
+ var McpDeploymentSummarySchema = z25.object({
11248
+ id: z25.string(),
11249
+ status: McpDeploymentStatusSchema,
11250
+ /** 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()
11192
11256
  });
11193
- var CreatePdfExportTaskInputSchema = z25.object({
11257
+ var McpServerSchema = z25.object({
11258
+ id: z25.string(),
11194
11259
  orgId: z25.string(),
11195
- docsUrl: z25.string(),
11196
- productId: z25.string().nullish(),
11197
- versionId: z25.string().nullish(),
11198
- requesterName: z25.string().nullish(),
11260
+ slug: z25.string(),
11261
+ /** The server is serving iff this is set; it names the serving deployment. */
11262
+ activeDeploymentId: z25.string().nullish(),
11263
+ /** Most recent publication attempt — how the last deploy went. */
11264
+ latestDeployment: McpDeploymentSummarySchema.nullish(),
11265
+ url: z25.string().url(),
11266
+ createdAt: z25.string(),
11267
+ updatedAt: z25.string()
11268
+ });
11269
+ var ListMcpServersResponseSchema = z25.object({ servers: z25.array(McpServerSchema) });
11270
+ var ListMcpDeploymentsResponseSchema = z25.object({ deployments: z25.array(McpDeploymentSummarySchema) });
11271
+ var mcpHostingContract = {
11272
+ deploy: import_contract31.oc.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
11273
+ getServer: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
11274
+ listServers: import_contract31.oc.route({ method: "GET", path: "/servers" }).input(ListMcpServersInputSchema).output(ListMcpServersResponseSchema),
11275
+ listDeployments: import_contract31.oc.route({ method: "GET", path: "/servers/{slug}/deployments" }).input(ListMcpDeploymentsInputSchema).output(ListMcpDeploymentsResponseSchema),
11276
+ deleteServer: import_contract31.oc.route({ method: "DELETE", path: "/servers/{slug}" }).input(DeleteMcpServerInputSchema)
11277
+ };
11278
+
11279
+ // src/orpc-client/mcp-hosting/client.ts
11280
+ function createMcpHostingClient(options) {
11281
+ const link = new import_fetch17.OpenAPILink(mcpHostingContract, {
11282
+ url: `${options.baseUrl}/mcp-hosting`,
11283
+ headers: () => ({
11284
+ Authorization: `Bearer ${options.token}`,
11285
+ ...options.headers
11286
+ }),
11287
+ ...options.fetch != null ? { fetch: options.fetch } : {}
11288
+ });
11289
+ return (0, import_client22.createORPCClient)(link);
11290
+ }
11291
+
11292
+ // src/orpc-client/pdf-export/client.ts
11293
+ var import_client23 = require("@orpc/client");
11294
+ var import_fetch18 = require("@orpc/openapi-client/fetch");
11295
+
11296
+ // src/orpc-client/pdf-export/contract.ts
11297
+ 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(),
11310
+ scope: PdfExportScopeSchema.nullish(),
11311
+ hideCover: z26.boolean().nullish(),
11312
+ hideToc: z26.boolean().nullish()
11313
+ });
11314
+ var PdfExportOptionsSchema = z26.discriminatedUnion("version", [
11315
+ z26.object({ version: z26.literal("v1") }).merge(PdfExportOptionsV1Schema)
11316
+ ]);
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(),
11326
+ status: PdfExportTaskStatusSchema,
11327
+ 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(),
11199
11349
  options: PdfExportOptionsSchema.nullish()
11200
11350
  });
11201
- var ListPdfExportTasksInputSchema = z25.object({
11202
- orgId: z25.string(),
11203
- docsUrl: z25.string(),
11204
- limit: z25.coerce.number().nullish()
11351
+ var ListPdfExportTasksInputSchema = z26.object({
11352
+ orgId: z26.string(),
11353
+ docsUrl: z26.string(),
11354
+ limit: z26.coerce.number().nullish()
11205
11355
  });
11206
- var GetPdfExportTaskInputSchema = z25.object({
11207
- taskId: z25.string()
11356
+ var GetPdfExportTaskInputSchema = z26.object({
11357
+ taskId: z26.string()
11208
11358
  });
11209
- var UpdatePdfExportTaskInputSchema = z25.object({
11210
- taskId: z25.string(),
11359
+ var UpdatePdfExportTaskInputSchema = z26.object({
11360
+ taskId: z26.string(),
11211
11361
  status: PdfExportTaskStatusSchema,
11212
- startedAt: z25.string().nullish(),
11213
- completedAt: z25.string().nullish(),
11214
- s3Key: z25.string().nullish(),
11215
- fileName: z25.string().nullish(),
11216
- sizeBytes: z25.number().nullish(),
11217
- errorMessage: z25.string().nullish()
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()
11218
11368
  });
11219
- var GetPdfExportDownloadUrlInputSchema = z25.object({
11220
- taskId: z25.string()
11369
+ var GetPdfExportDownloadUrlInputSchema = z26.object({
11370
+ taskId: z26.string()
11221
11371
  });
11222
- var CleanupPdfExportsResponseSchema = z25.object({
11223
- expiredTasksDeleted: z25.number(),
11224
- s3ObjectsDeleted: z25.number(),
11225
- timedOutTasksFailed: z25.number()
11372
+ var CleanupPdfExportsResponseSchema = z26.object({
11373
+ expiredTasksDeleted: z26.number(),
11374
+ s3ObjectsDeleted: z26.number(),
11375
+ timedOutTasksFailed: z26.number()
11226
11376
  });
11227
11377
  var pdfExportContract = {
11228
- createTask: import_contract31.oc.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
11229
- listTasks: import_contract31.oc.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
11230
- getTask: import_contract31.oc.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
11231
- updateTask: import_contract31.oc.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
11232
- getDownloadUrl: import_contract31.oc.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
11233
- cleanup: import_contract31.oc.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
11378
+ createTask: import_contract33.oc.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
11379
+ listTasks: import_contract33.oc.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
11380
+ getTask: import_contract33.oc.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
11381
+ updateTask: import_contract33.oc.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
11382
+ getDownloadUrl: import_contract33.oc.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
11383
+ cleanup: import_contract33.oc.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
11234
11384
  };
11235
11385
 
11236
11386
  // src/orpc-client/pdf-export/client.ts
11237
11387
  function createPdfExportClient(options) {
11238
- const link = new import_fetch17.OpenAPILink(pdfExportContract, {
11388
+ const link = new import_fetch18.OpenAPILink(pdfExportContract, {
11239
11389
  url: `${options.baseUrl}/pdf-export`,
11240
11390
  headers: () => ({
11241
11391
  Authorization: `Bearer ${options.token}`,
@@ -11243,17 +11393,17 @@ function createPdfExportClient(options) {
11243
11393
  }),
11244
11394
  ...options.fetch != null ? { fetch: options.fetch } : {}
11245
11395
  });
11246
- return (0, import_client22.createORPCClient)(link);
11396
+ return (0, import_client23.createORPCClient)(link);
11247
11397
  }
11248
11398
 
11249
11399
  // src/orpc-client/sdks/client.ts
11250
- var import_client23 = require("@orpc/client");
11251
- var import_fetch18 = require("@orpc/openapi-client/fetch");
11400
+ var import_client24 = require("@orpc/client");
11401
+ var import_fetch19 = require("@orpc/openapi-client/fetch");
11252
11402
 
11253
11403
  // src/orpc-client/sdks/contract.ts
11254
- var import_contract33 = require("@orpc/contract");
11255
- var z26 = __toESM(require("zod"), 1);
11256
- var LanguageEnumSchema = z26.enum([
11404
+ var import_contract35 = require("@orpc/contract");
11405
+ var z27 = __toESM(require("zod"), 1);
11406
+ var LanguageEnumSchema = z27.enum([
11257
11407
  "Go",
11258
11408
  "TypeScript",
11259
11409
  "Java",
@@ -11264,23 +11414,23 @@ var LanguageEnumSchema = z26.enum([
11264
11414
  "Swift",
11265
11415
  "Rust"
11266
11416
  ]);
11267
- var VersionBumpEnumSchema = z26.enum(["MAJOR", "MINOR", "PATCH"]);
11268
- var ComputeSemanticVersionInputSchema = z26.object({
11269
- package: z26.string(),
11417
+ var VersionBumpEnumSchema = z27.enum(["MAJOR", "MINOR", "PATCH"]);
11418
+ var ComputeSemanticVersionInputSchema = z27.object({
11419
+ package: z27.string(),
11270
11420
  language: LanguageEnumSchema,
11271
- githubRepository: z26.string().nullish()
11421
+ githubRepository: z27.string().nullish()
11272
11422
  });
11273
- var ComputeSemanticVersionOutputSchema = z26.object({
11274
- version: z26.string(),
11423
+ var ComputeSemanticVersionOutputSchema = z27.object({
11424
+ version: z27.string(),
11275
11425
  bump: VersionBumpEnumSchema
11276
11426
  });
11277
11427
  var sdksContract = {
11278
- computeSemanticVersion: import_contract33.oc.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
11428
+ computeSemanticVersion: import_contract35.oc.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
11279
11429
  };
11280
11430
 
11281
11431
  // src/orpc-client/sdks/client.ts
11282
11432
  function createSdksClient(options) {
11283
- const link = new import_fetch18.OpenAPILink(sdksContract, {
11433
+ const link = new import_fetch19.OpenAPILink(sdksContract, {
11284
11434
  url: `${options.baseUrl}/sdks`,
11285
11435
  headers: () => ({
11286
11436
  Authorization: `Bearer ${options.token}`,
@@ -11288,50 +11438,50 @@ function createSdksClient(options) {
11288
11438
  }),
11289
11439
  ...options.fetch != null ? { fetch: options.fetch } : {}
11290
11440
  });
11291
- return (0, import_client23.createORPCClient)(link);
11441
+ return (0, import_client24.createORPCClient)(link);
11292
11442
  }
11293
11443
 
11294
11444
  // src/orpc-client/slugs/client.ts
11295
- var import_client24 = require("@orpc/client");
11296
- var import_fetch19 = require("@orpc/openapi-client/fetch");
11445
+ var import_client25 = require("@orpc/client");
11446
+ var import_fetch20 = require("@orpc/openapi-client/fetch");
11297
11447
 
11298
11448
  // src/orpc-client/slugs/contract.ts
11299
- var import_contract35 = require("@orpc/contract");
11300
- var z27 = __toESM(require("zod"), 1);
11301
- var SlugsInputSchema = z27.object({
11302
- domain: z27.string(),
11303
- basepath: z27.string().optional().default("")
11304
- });
11305
- var SlugEntrySchema = z27.object({
11306
- orgId: z27.string(),
11307
- domain: z27.string(),
11308
- basepath: z27.string(),
11309
- slug: z27.string(),
11310
- lastUpdated: z27.string()
11311
- });
11312
- var MarkdownEntrySchema = z27.object({
11313
- orgId: z27.string(),
11314
- domain: z27.string(),
11315
- basepath: z27.string(),
11316
- pageId: z27.string(),
11317
- slug: z27.string(),
11318
- hash: z27.string(),
11319
- lastUpdated: z27.string()
11320
- });
11321
- var GetSlugEntriesResponseSchema = z27.object({
11322
- entries: z27.array(SlugEntrySchema)
11323
- });
11324
- var GetMarkdownEntriesResponseSchema = z27.object({
11325
- entries: z27.array(MarkdownEntrySchema)
11449
+ 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)
11326
11476
  });
11327
11477
  var slugsContract = {
11328
- getSlugEntries: import_contract35.oc.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
11329
- getMarkdownEntries: import_contract35.oc.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
11478
+ getSlugEntries: import_contract37.oc.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
11479
+ getMarkdownEntries: import_contract37.oc.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
11330
11480
  };
11331
11481
 
11332
11482
  // src/orpc-client/slugs/client.ts
11333
11483
  function createSlugsClient(options) {
11334
- const link = new import_fetch19.OpenAPILink(slugsContract, {
11484
+ const link = new import_fetch20.OpenAPILink(slugsContract, {
11335
11485
  url: `${options.baseUrl.replace(/\/+$/, "")}/slugs`,
11336
11486
  headers: () => ({
11337
11487
  Authorization: `Bearer ${options.token}`,
@@ -11339,12 +11489,12 @@ function createSlugsClient(options) {
11339
11489
  }),
11340
11490
  ...options.fetch != null ? { fetch: options.fetch } : {}
11341
11491
  });
11342
- return (0, import_client24.createORPCClient)(link);
11492
+ return (0, import_client25.createORPCClient)(link);
11343
11493
  }
11344
11494
 
11345
11495
  // src/orpc-client/snippets/client.ts
11346
- var import_client25 = require("@orpc/client");
11347
- var import_fetch20 = require("@orpc/openapi-client/fetch");
11496
+ var import_client26 = require("@orpc/client");
11497
+ var import_fetch21 = require("@orpc/openapi-client/fetch");
11348
11498
 
11349
11499
  // src/orpc-client/snippets/contract.ts
11350
11500
  var contract_exports3 = {};
@@ -11354,110 +11504,110 @@ __export(contract_exports3, {
11354
11504
  snippetsContract: () => snippetsContract,
11355
11505
  snippetsFactoryContract: () => snippetsFactoryContract
11356
11506
  });
11357
- var import_contract37 = require("@orpc/contract");
11358
- var z28 = __toESM(require("zod"), 1);
11359
- var TypeScriptSdkSchema = z28.object({ package: z28.string(), version: z28.string() });
11360
- var PythonSdkSchema = z28.object({ package: z28.string(), version: z28.string() });
11361
- var GoSdkSchema = z28.object({ githubRepo: z28.string(), version: z28.string() });
11362
- var RubySdkSchema = z28.object({ gem: z28.string(), version: z28.string() });
11363
- var JavaSdkSchema = z28.object({ group: z28.string(), artifact: z28.string(), version: z28.string() });
11364
- var CsharpSdkSchema = z28.object({ package: z28.string(), version: z28.string() });
11365
- var BaseSnippetCreateSchema = z28.object({
11507
+ 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({
11366
11516
  endpoint: EndpointIdentifierSchema,
11367
- exampleIdentifier: z28.string().nullish()
11517
+ exampleIdentifier: z29.string().nullish()
11368
11518
  });
11369
- var SdkSnippetsCreateSchema = z28.discriminatedUnion("type", [
11370
- z28.object({
11371
- type: z28.literal("typescript"),
11519
+ var SdkSnippetsCreateSchema = z29.discriminatedUnion("type", [
11520
+ z29.object({
11521
+ type: z29.literal("typescript"),
11372
11522
  sdk: TypeScriptSdkSchema,
11373
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
11523
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11374
11524
  }),
11375
- z28.object({
11376
- type: z28.literal("python"),
11525
+ z29.object({
11526
+ type: z29.literal("python"),
11377
11527
  sdk: PythonSdkSchema,
11378
- snippets: z28.array(
11528
+ snippets: z29.array(
11379
11529
  BaseSnippetCreateSchema.extend({
11380
- snippet: z28.object({ async_client: z28.string(), sync_client: z28.string() })
11530
+ snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
11381
11531
  })
11382
11532
  )
11383
11533
  }),
11384
- z28.object({
11385
- type: z28.literal("go"),
11534
+ z29.object({
11535
+ type: z29.literal("go"),
11386
11536
  sdk: GoSdkSchema,
11387
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
11537
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11388
11538
  }),
11389
- z28.object({
11390
- type: z28.literal("java"),
11539
+ z29.object({
11540
+ type: z29.literal("java"),
11391
11541
  sdk: JavaSdkSchema,
11392
- snippets: z28.array(
11542
+ snippets: z29.array(
11393
11543
  BaseSnippetCreateSchema.extend({
11394
- snippet: z28.object({ async_client: z28.string(), sync_client: z28.string() })
11544
+ snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
11395
11545
  })
11396
11546
  )
11397
11547
  }),
11398
- z28.object({
11399
- type: z28.literal("ruby"),
11548
+ z29.object({
11549
+ type: z29.literal("ruby"),
11400
11550
  sdk: RubySdkSchema,
11401
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
11551
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11402
11552
  }),
11403
- z28.object({
11404
- type: z28.literal("csharp"),
11553
+ z29.object({
11554
+ type: z29.literal("csharp"),
11405
11555
  sdk: CsharpSdkSchema,
11406
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
11556
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11407
11557
  })
11408
11558
  ]);
11409
11559
  var snippetsFactoryContract = {
11410
- createSnippetsForSdk: import_contract37.oc.route({ method: "POST", path: "/create" }).input(
11411
- z28.object({
11412
- orgId: z28.string(),
11413
- apiId: z28.string(),
11560
+ createSnippetsForSdk: import_contract39.oc.route({ method: "POST", path: "/create" }).input(
11561
+ z29.object({
11562
+ orgId: z29.string(),
11563
+ apiId: z29.string(),
11414
11564
  snippets: SdkSnippetsCreateSchema
11415
11565
  })
11416
11566
  )
11417
11567
  };
11418
- var ParameterPayloadSchema = z28.object({
11419
- name: z28.string(),
11420
- value: z28.unknown()
11568
+ var ParameterPayloadSchema = z29.object({
11569
+ name: z29.string(),
11570
+ value: z29.unknown()
11421
11571
  });
11422
- var AuthPayloadSchema = z28.discriminatedUnion("type", [
11423
- z28.object({ type: z28.literal("bearer"), token: z28.string() }),
11424
- z28.object({ type: z28.literal("basic"), username: z28.string(), password: z28.string() })
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() })
11425
11575
  ]);
11426
- var CustomSnippetPayloadSchema = z28.object({
11427
- headers: z28.array(ParameterPayloadSchema).nullish(),
11428
- pathParameters: z28.array(ParameterPayloadSchema).nullish(),
11429
- queryParameters: z28.array(ParameterPayloadSchema).nullish(),
11430
- requestBody: z28.unknown().nullish(),
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(),
11431
11581
  auth: AuthPayloadSchema.nullish()
11432
11582
  });
11433
11583
  var snippetsContract = {
11434
- get: import_contract37.oc.route({ method: "POST", path: "/" }).input(
11435
- z28.object({
11436
- orgId: z28.string().nullish(),
11437
- apiId: z28.string().nullish(),
11438
- sdks: z28.array(SdkRequestSchema).nullish(),
11584
+ 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(),
11439
11589
  endpoint: EndpointIdentifierSchema,
11440
- exampleIdentifier: z28.string().nullish(),
11590
+ exampleIdentifier: z29.string().nullish(),
11441
11591
  payload: CustomSnippetPayloadSchema.nullish()
11442
11592
  })
11443
- ).output(z28.array(z28.unknown())),
11444
- load: import_contract37.oc.route({ method: "POST", path: "/load" }).input(
11445
- z28.object({
11446
- orgId: z28.string().nullish(),
11447
- apiId: z28.string().nullish(),
11448
- sdks: z28.array(SdkRequestSchema).nullish()
11593
+ ).output(z29.array(z29.unknown())),
11594
+ 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()
11449
11599
  })
11450
11600
  ).output(
11451
- z28.object({
11452
- next: z28.number().nullish(),
11453
- snippets: z28.record(z28.string(), z28.unknown())
11601
+ z29.object({
11602
+ next: z29.number().nullish(),
11603
+ snippets: z29.record(z29.string(), z29.unknown())
11454
11604
  })
11455
11605
  )
11456
11606
  };
11457
11607
 
11458
11608
  // src/orpc-client/snippets/client.ts
11459
11609
  function createSnippetsFactoryClient(options) {
11460
- const link = new import_fetch20.OpenAPILink(snippetsFactoryContract, {
11610
+ const link = new import_fetch21.OpenAPILink(snippetsFactoryContract, {
11461
11611
  url: `${options.baseUrl}/snippets`,
11462
11612
  headers: () => ({
11463
11613
  Authorization: `Bearer ${options.token}`,
@@ -11465,10 +11615,10 @@ function createSnippetsFactoryClient(options) {
11465
11615
  }),
11466
11616
  ...options.fetch != null ? { fetch: options.fetch } : {}
11467
11617
  });
11468
- return (0, import_client25.createORPCClient)(link);
11618
+ return (0, import_client26.createORPCClient)(link);
11469
11619
  }
11470
11620
  function createSnippetsClient(options) {
11471
- const link = new import_fetch20.OpenAPILink(snippetsContract, {
11621
+ const link = new import_fetch21.OpenAPILink(snippetsContract, {
11472
11622
  url: `${options.baseUrl}/snippets`,
11473
11623
  headers: () => ({
11474
11624
  Authorization: `Bearer ${options.token}`,
@@ -11476,63 +11626,63 @@ function createSnippetsClient(options) {
11476
11626
  }),
11477
11627
  ...options.fetch != null ? { fetch: options.fetch } : {}
11478
11628
  });
11479
- return (0, import_client25.createORPCClient)(link);
11629
+ return (0, import_client26.createORPCClient)(link);
11480
11630
  }
11481
11631
 
11482
11632
  // src/orpc-client/templates/client.ts
11483
- var import_client26 = require("@orpc/client");
11484
- var import_fetch21 = require("@orpc/openapi-client/fetch");
11633
+ var import_client27 = require("@orpc/client");
11634
+ var import_fetch22 = require("@orpc/openapi-client/fetch");
11485
11635
 
11486
11636
  // src/orpc-client/templates/contract.ts
11487
- var import_contract39 = require("@orpc/contract");
11488
- var z29 = __toESM(require("zod"), 1);
11489
- var SnippetRegistryEntrySchema = z29.object({
11637
+ var import_contract41 = require("@orpc/contract");
11638
+ var z30 = __toESM(require("zod"), 1);
11639
+ var SnippetRegistryEntrySchema = z30.object({
11490
11640
  sdk: SdkSchema,
11491
- endpointId: z29.object({
11492
- path: z29.string(),
11641
+ endpointId: z30.object({
11642
+ path: z30.string(),
11493
11643
  method: HttpMethodSchema,
11494
- identifierOverride: z29.string().nullish()
11644
+ identifierOverride: z30.string().nullish()
11495
11645
  }),
11496
- snippetTemplate: z29.object({
11497
- type: z29.literal("v1"),
11498
- functionInvocation: z29.unknown(),
11499
- clientInstantiation: z29.string()
11646
+ snippetTemplate: z30.object({
11647
+ type: z30.literal("v1"),
11648
+ functionInvocation: z30.unknown(),
11649
+ clientInstantiation: z30.string()
11500
11650
  }),
11501
- additionalTemplates: z29.record(z29.string(), z29.unknown()).nullish()
11651
+ additionalTemplates: z30.record(z30.string(), z30.unknown()).nullish()
11502
11652
  });
11503
- var RegisterInputSchema = z29.object({
11504
- orgId: z29.string(),
11505
- apiId: z29.string(),
11506
- apiDefinitionId: z29.string(),
11653
+ var RegisterInputSchema = z30.object({
11654
+ orgId: z30.string(),
11655
+ apiId: z30.string(),
11656
+ apiDefinitionId: z30.string(),
11507
11657
  snippet: SnippetRegistryEntrySchema
11508
11658
  });
11509
- var RegisterBatchInputSchema = z29.object({
11510
- orgId: z29.string(),
11511
- apiId: z29.string(),
11512
- apiDefinitionId: z29.string(),
11513
- snippets: z29.array(SnippetRegistryEntrySchema)
11659
+ var RegisterBatchInputSchema = z30.object({
11660
+ orgId: z30.string(),
11661
+ apiId: z30.string(),
11662
+ apiDefinitionId: z30.string(),
11663
+ snippets: z30.array(SnippetRegistryEntrySchema)
11514
11664
  });
11515
- var GetInputSchema = z29.object({
11516
- orgId: z29.string(),
11517
- apiId: z29.string(),
11665
+ var GetInputSchema = z30.object({
11666
+ orgId: z30.string(),
11667
+ apiId: z30.string(),
11518
11668
  sdk: SdkSchema,
11519
- endpointId: z29.object({
11520
- path: z29.string(),
11669
+ endpointId: z30.object({
11670
+ path: z30.string(),
11521
11671
  method: HttpMethodSchema,
11522
- identifierOverride: z29.string().nullish()
11672
+ identifierOverride: z30.string().nullish()
11523
11673
  })
11524
11674
  });
11525
- var EndpointSnippetTemplateSchema = z29.record(z29.string(), z29.unknown());
11675
+ var EndpointSnippetTemplateSchema = z30.record(z30.string(), z30.unknown());
11526
11676
  var templatesContract = {
11527
- register: import_contract39.oc.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
11528
- registerBatch: import_contract39.oc.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
11529
- get: import_contract39.oc.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
11677
+ register: import_contract41.oc.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
11678
+ registerBatch: import_contract41.oc.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
11679
+ get: import_contract41.oc.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
11530
11680
  };
11531
11681
 
11532
11682
  // src/orpc-client/templates/client.ts
11533
11683
  function createTemplatesClient(options) {
11534
11684
  const baseUrl = options.baseUrl.replace(/\/+$/, "");
11535
- const link = new import_fetch21.OpenAPILink(templatesContract, {
11685
+ const link = new import_fetch22.OpenAPILink(templatesContract, {
11536
11686
  url: `${baseUrl}/snippet-template`,
11537
11687
  headers: () => ({
11538
11688
  Authorization: `Bearer ${options.token}`,
@@ -11540,36 +11690,36 @@ function createTemplatesClient(options) {
11540
11690
  }),
11541
11691
  ...options.fetch != null ? { fetch: options.fetch } : {}
11542
11692
  });
11543
- return (0, import_client26.createORPCClient)(link);
11693
+ return (0, import_client27.createORPCClient)(link);
11544
11694
  }
11545
11695
 
11546
11696
  // src/orpc-client/tokens/client.ts
11547
- var import_client27 = require("@orpc/client");
11548
- var import_fetch22 = require("@orpc/openapi-client/fetch");
11697
+ var import_client28 = require("@orpc/client");
11698
+ var import_fetch23 = require("@orpc/openapi-client/fetch");
11549
11699
 
11550
11700
  // src/orpc-client/tokens/contract.ts
11551
- var import_contract41 = require("@orpc/contract");
11552
- var z30 = __toESM(require("zod"), 1);
11553
- var GenerateTokenInputSchema = z30.object({
11554
- orgId: z30.string(),
11555
- scope: z30.string()
11701
+ 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()
11556
11706
  });
11557
- var RevokeTokenInputSchema = z30.object({
11558
- orgId: z30.string(),
11559
- tokenId: z30.string()
11707
+ var RevokeTokenInputSchema = z31.object({
11708
+ orgId: z31.string(),
11709
+ tokenId: z31.string()
11560
11710
  });
11561
- var GenerateTokenOutputSchema = z30.object({
11562
- token: z30.string(),
11563
- id: z30.string()
11711
+ var GenerateTokenOutputSchema = z31.object({
11712
+ token: z31.string(),
11713
+ id: z31.string()
11564
11714
  });
11565
11715
  var tokensContract = {
11566
- generate: import_contract41.oc.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
11567
- revoke: import_contract41.oc.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
11716
+ generate: import_contract43.oc.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
11717
+ revoke: import_contract43.oc.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
11568
11718
  };
11569
11719
 
11570
11720
  // src/orpc-client/tokens/client.ts
11571
11721
  function createTokensClient(options) {
11572
- const link = new import_fetch22.OpenAPILink(tokensContract, {
11722
+ const link = new import_fetch23.OpenAPILink(tokensContract, {
11573
11723
  url: `${options.baseUrl}/tokens`,
11574
11724
  headers: () => ({
11575
11725
  Authorization: `Bearer ${options.token}`,
@@ -11577,7 +11727,7 @@ function createTokensClient(options) {
11577
11727
  }),
11578
11728
  ...options.fetch != null ? { fetch: options.fetch } : {}
11579
11729
  });
11580
- return (0, import_client27.createORPCClient)(link);
11730
+ return (0, import_client28.createORPCClient)(link);
11581
11731
  }
11582
11732
 
11583
11733
  // src/orpc-client/client.ts
@@ -11601,6 +11751,7 @@ function createFdrORPCClient(options) {
11601
11751
  versions: createGeneratorVersionsClient(normalizedOptions)
11602
11752
  },
11603
11753
  git: createGitClient(normalizedOptions),
11754
+ mcpHosting: createMcpHostingClient(normalizedOptions),
11604
11755
  slugs: createSlugsClient(normalizedOptions),
11605
11756
  pdfExport: createPdfExportClient(normalizedOptions),
11606
11757
  sdks: createSdksClient(normalizedOptions),
@@ -11837,85 +11988,85 @@ __export(APIV1Db_exports, {
11837
11988
  });
11838
11989
 
11839
11990
  // src/orpc-client/api/contract-db.ts
11840
- var z31 = __toESM(require("zod"), 1);
11841
- var EndpointSnippetTemplatesSchema = z31.object({
11842
- typescript: z31.unknown().nullish(),
11843
- python: z31.unknown().nullish()
11991
+ var z32 = __toESM(require("zod"), 1);
11992
+ var EndpointSnippetTemplatesSchema = z32.object({
11993
+ typescript: z32.unknown().nullish(),
11994
+ python: z32.unknown().nullish()
11844
11995
  });
11845
- var DbHttpRequestSchema = z31.object({
11846
- description: z31.string().nullish(),
11847
- contentType: z31.string().nullish(),
11996
+ var DbHttpRequestSchema = z32.object({
11997
+ description: z32.string().nullish(),
11998
+ contentType: z32.string().nullish(),
11848
11999
  type: RegisterHttpRequestBodyShapeSchema
11849
12000
  });
11850
- var DbHttpRequestsV2Schema = z31.object({
11851
- requests: z31.array(DbHttpRequestSchema).nullish()
12001
+ var DbHttpRequestsV2Schema = z32.object({
12002
+ requests: z32.array(DbHttpRequestSchema).nullish()
11852
12003
  });
11853
- var DbEndpointDefinitionSchema = z31.object({
11854
- description: z31.string().nullish(),
11855
- subtitle: z31.string().nullish(),
12004
+ var DbEndpointDefinitionSchema = z32.object({
12005
+ description: z32.string().nullish(),
12006
+ subtitle: z32.string().nullish(),
11856
12007
  availability: AvailabilitySchema.nullish(),
11857
- authed: z31.boolean().nullish(),
11858
- authV2: z31.array(AuthSchemeIdSchema).nullish(),
11859
- multiAuth: z31.array(MultipleAuthTypeSchema).nullish(),
12008
+ authed: z32.boolean().nullish(),
12009
+ authV2: z32.array(AuthSchemeIdSchema).nullish(),
12010
+ multiAuth: z32.array(MultipleAuthTypeSchema).nullish(),
11860
12011
  defaultEnvironment: EnvironmentIdSchema.nullish(),
11861
- environments: z31.array(EnvironmentSchema).nullish(),
12012
+ environments: z32.array(EnvironmentSchema).nullish(),
11862
12013
  method: HttpMethodSchema,
11863
12014
  id: EndpointIdSchema,
11864
- originalEndpointId: z31.string().nullish(),
11865
- urlSlug: z31.string(),
11866
- migratedFromUrlSlugs: z31.array(z31.string()).nullish(),
11867
- name: z31.string().nullish(),
12015
+ originalEndpointId: z32.string().nullish(),
12016
+ urlSlug: z32.string(),
12017
+ migratedFromUrlSlugs: z32.array(z32.string()).nullish(),
12018
+ name: z32.string().nullish(),
11868
12019
  path: EndpointPathSchema,
11869
- queryParameters: z31.array(QueryParameterSchema),
11870
- headers: z31.array(HeaderSchema),
11871
- responseHeaders: z31.array(HeaderSchema).nullish(),
12020
+ queryParameters: z32.array(QueryParameterSchema),
12021
+ headers: z32.array(HeaderSchema),
12022
+ responseHeaders: z32.array(HeaderSchema).nullish(),
11872
12023
  request: DbHttpRequestSchema.nullish(),
11873
12024
  requestsV2: DbHttpRequestsV2Schema.nullish(),
11874
12025
  response: RegisterHttpResponseSchema.nullish(),
11875
12026
  responsesV2: RegisterHttpResponsesV2Schema.nullish(),
11876
- errors: z31.array(ErrorDeclarationSchema).nullish(),
11877
- errorsV2: z31.array(RegisterErrorDeclarationV2Schema).nullish(),
11878
- examples: z31.array(RegisterExampleEndpointCallSchema),
12027
+ errors: z32.array(ErrorDeclarationSchema).nullish(),
12028
+ errorsV2: z32.array(RegisterErrorDeclarationV2Schema).nullish(),
12029
+ examples: z32.array(RegisterExampleEndpointCallSchema),
11879
12030
  snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
11880
12031
  protocol: ProtocolSchema.nullish(),
11881
- includeInApiExplorer: z31.boolean().nullish()
11882
- });
11883
- var DbApiDefinitionPackageSchema = z31.object({
11884
- endpoints: z31.array(DbEndpointDefinitionSchema),
11885
- websockets: z31.array(RegisterWebSocketChannelSchema).nullish(),
11886
- webhooks: z31.array(RegisterWebhookDefinitionSchema).nullish(),
11887
- graphqlOperations: z31.array(GraphQlOperationSchema).nullish(),
11888
- types: z31.array(TypeIdSchema),
11889
- subpackages: z31.array(SubpackageIdSchema),
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),
11890
12041
  pointsTo: SubpackageIdSchema.nullish()
11891
12042
  });
11892
- var DbApiDefinitionSubpackageSchema = z31.object({
12043
+ var DbApiDefinitionSubpackageSchema = z32.object({
11893
12044
  ...DbApiDefinitionPackageSchema.shape,
11894
- description: z31.string().nullish(),
12045
+ description: z32.string().nullish(),
11895
12046
  parent: SubpackageIdSchema.nullish(),
11896
12047
  subpackageId: SubpackageIdSchema,
11897
- name: z31.string(),
11898
- urlSlug: z31.string(),
11899
- displayName: z31.string().nullish()
12048
+ name: z32.string(),
12049
+ urlSlug: z32.string(),
12050
+ displayName: z32.string().nullish()
11900
12051
  });
11901
- var DbApiDefinitionSchema = z31.object({
12052
+ var DbApiDefinitionSchema = z32.object({
11902
12053
  id: ApiDefinitionIdSchema,
11903
- apiName: z31.string().nullish(),
11904
- specVersion: z31.string().nullish(),
12054
+ apiName: z32.string().nullish(),
12055
+ specVersion: z32.string().nullish(),
11905
12056
  rootPackage: DbApiDefinitionPackageSchema,
11906
- types: z31.record(TypeIdSchema, RegisterTypeDefinitionSchema),
11907
- subpackages: z31.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
12057
+ types: z32.record(TypeIdSchema, RegisterTypeDefinitionSchema),
12058
+ subpackages: z32.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
11908
12059
  snippetsConfiguration: SnippetsConfigSchema.nullish(),
11909
12060
  auth: ApiAuthSchema.nullish(),
11910
- authSchemes: z31.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
11911
- hasMultipleBaseUrls: z31.boolean(),
12061
+ authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
12062
+ hasMultipleBaseUrls: z32.boolean(),
11912
12063
  navigation: ApiNavigationConfigRootSchema.nullish(),
11913
- globalHeaders: z31.array(HeaderSchema).nullish()
12064
+ globalHeaders: z32.array(HeaderSchema).nullish()
11914
12065
  });
11915
- var DbEndpointWithContextSchema = z31.object({
12066
+ var DbEndpointWithContextSchema = z32.object({
11916
12067
  endpoint: DbEndpointDefinitionSchema,
11917
- authSchemes: z31.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
11918
- globalHeaders: z31.array(HeaderSchema).nullish()
12068
+ authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
12069
+ globalHeaders: z32.array(HeaderSchema).nullish()
11919
12070
  });
11920
12071
 
11921
12072
  // src/client/APIV1Read.ts
@@ -12493,15 +12644,15 @@ __export(DocsV1Db_exports, {
12493
12644
  });
12494
12645
 
12495
12646
  // src/client/docs-types/db.ts
12496
- var z33 = __toESM(require("zod"), 1);
12647
+ var z34 = __toESM(require("zod"), 1);
12497
12648
 
12498
12649
  // src/client/docs-types/db-docsRead.ts
12499
- var z32 = __toESM(require("zod"), 1);
12500
- var BackgroundSchema2 = z32.discriminatedUnion("type", [
12501
- z32.object({ type: z32.literal("solid"), ...RgbaColorSchema.shape }),
12502
- z32.object({ type: z32.literal("gradient") })
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") })
12503
12654
  ]);
12504
- var ThemeConfigSchema3 = z32.object({
12655
+ var ThemeConfigSchema3 = z33.object({
12505
12656
  logo: FileIdSchema2.optional(),
12506
12657
  backgroundImage: FileIdSchema2.optional(),
12507
12658
  accentPrimary: RgbaColorSchema,
@@ -12523,174 +12674,174 @@ var ThemeConfigSchema3 = z32.object({
12523
12674
  accent11: RgbaColorSchema.optional(),
12524
12675
  accent12: RgbaColorSchema.optional()
12525
12676
  });
12526
- var DarkAndLightModeConfigSchema3 = z32.object({
12677
+ var DarkAndLightModeConfigSchema3 = z33.object({
12527
12678
  dark: ThemeConfigSchema3,
12528
12679
  light: ThemeConfigSchema3
12529
12680
  });
12530
- var ColorsConfigV3Schema3 = z32.discriminatedUnion("type", [
12531
- z32.object({ type: z32.literal("dark"), ...ThemeConfigSchema3.shape }),
12532
- z32.object({ type: z32.literal("light"), ...ThemeConfigSchema3.shape }),
12533
- z32.object({ type: z32.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
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 })
12534
12685
  ]);
12535
12686
 
12536
12687
  // src/client/docs-types/db.ts
12537
- var DbFileInfoSchema = z33.object({
12538
- s3Key: z33.string()
12539
- });
12540
- var DbImageFileInfoSchema = z33.object({
12541
- s3Key: z33.string(),
12542
- width: z33.number(),
12543
- height: z33.number(),
12544
- blurDataUrl: z33.string().optional(),
12545
- alt: z33.string().optional()
12546
- });
12547
- var DbFileInfoV2Schema = z33.discriminatedUnion("type", [
12548
- z33.object({ type: z33.literal("s3Key"), ...DbFileInfoSchema.shape }),
12549
- z33.object({ type: z33.literal("image"), ...DbImageFileInfoSchema.shape })
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 })
12550
12701
  ]);
12551
- var NavigationTabGroupSchema3 = z33.lazy(
12552
- () => z33.object({
12553
- title: z33.string(),
12554
- icon: z33.string().optional(),
12555
- items: z33.array(NavigationItemSchema3),
12556
- urlSlug: z33.string(),
12557
- skipUrlSlug: z33.boolean().optional()
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()
12558
12709
  })
12559
12710
  );
12560
- var NavigationTabSchema3 = z33.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
12561
- var NavigationTabV2Schema2 = z33.lazy(
12562
- () => z33.discriminatedUnion("type", [
12563
- z33.object({
12564
- type: z33.literal("group"),
12565
- title: z33.string(),
12566
- icon: z33.string().optional(),
12567
- items: z33.array(NavigationItemSchema3),
12568
- urlSlug: z33.string(),
12569
- skipUrlSlug: z33.boolean().optional()
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()
12570
12721
  }),
12571
- z33.object({ type: z33.literal("link"), ...NavigationTabLinkSchema.shape }),
12572
- z33.object({ type: z33.literal("changelog"), ...ChangelogSectionSchema.shape }),
12573
- z33.object({ type: z33.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
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 })
12574
12725
  ])
12575
12726
  );
12576
- var ApiSectionSchema3 = z33.object({
12577
- title: z33.string(),
12578
- icon: z33.string().optional(),
12727
+ var ApiSectionSchema3 = z34.object({
12728
+ title: z34.string(),
12729
+ icon: z34.string().optional(),
12579
12730
  api: ApiDefinitionIdSchema2,
12580
- urlSlug: z33.string(),
12581
- skipUrlSlug: z33.boolean(),
12731
+ urlSlug: z34.string(),
12732
+ skipUrlSlug: z34.boolean(),
12582
12733
  artifacts: ApiArtifactsSchema.optional(),
12583
- showErrors: z33.boolean().optional(),
12734
+ showErrors: z34.boolean().optional(),
12584
12735
  changelog: ChangelogSectionSchema.optional(),
12585
- hidden: z33.boolean().optional(),
12586
- fullSlug: z33.array(z33.string()).optional(),
12736
+ hidden: z34.boolean().optional(),
12737
+ fullSlug: z34.array(z34.string()).optional(),
12587
12738
  navigation: ApiNavigationConfigRootSchema2.optional(),
12588
- longScrolling: z33.boolean().optional(),
12589
- flattened: z33.boolean().optional()
12590
- });
12591
- var DocsSectionSchema3 = z33.lazy(
12592
- () => z33.object({
12593
- title: z33.string(),
12594
- icon: z33.string().optional(),
12595
- items: z33.array(NavigationItemSchema3),
12596
- urlSlug: z33.string(),
12597
- skipUrlSlug: z33.boolean(),
12598
- collapsed: z33.union([z33.boolean(), z33.literal("open-by-default")]),
12599
- collapsible: z33.boolean().optional(),
12600
- collapsedByDefault: z33.boolean().optional(),
12601
- hidden: z33.boolean().optional(),
12602
- fullSlug: z33.array(z33.string()).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(),
12603
12754
  overviewPageId: PageIdSchema2.optional()
12604
12755
  })
12605
12756
  );
12606
- var NavigationItemSchema3 = z33.lazy(
12607
- () => z33.discriminatedUnion("type", [
12608
- z33.object({
12609
- type: z33.literal("page"),
12757
+ var NavigationItemSchema3 = z34.lazy(
12758
+ () => z34.discriminatedUnion("type", [
12759
+ z34.object({
12760
+ type: z34.literal("page"),
12610
12761
  ...PageMetadataSchema.shape
12611
12762
  }),
12612
- z33.object({
12613
- type: z33.literal("api"),
12763
+ z34.object({
12764
+ type: z34.literal("api"),
12614
12765
  ...ApiSectionSchema3.shape
12615
12766
  }),
12616
- z33.object({
12617
- type: z33.literal("apiV2"),
12767
+ z34.object({
12768
+ type: z34.literal("apiV2"),
12618
12769
  ...ApiSectionV2Schema.shape
12619
12770
  }),
12620
- z33.object({
12621
- type: z33.literal("section"),
12622
- title: z33.string(),
12623
- icon: z33.string().optional(),
12624
- items: z33.array(NavigationItemSchema3),
12625
- urlSlug: z33.string(),
12626
- skipUrlSlug: z33.boolean(),
12627
- collapsed: z33.union([z33.boolean(), z33.literal("open-by-default")]),
12628
- collapsible: z33.boolean().optional(),
12629
- collapsedByDefault: z33.boolean().optional(),
12630
- hidden: z33.boolean().optional(),
12631
- fullSlug: z33.array(z33.string()).optional(),
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(),
12632
12783
  overviewPageId: PageIdSchema2.optional()
12633
12784
  }),
12634
- z33.object({
12635
- type: z33.literal("link"),
12785
+ z34.object({
12786
+ type: z34.literal("link"),
12636
12787
  ...LinkMetadataSchema.shape
12637
12788
  }),
12638
- z33.object({
12639
- type: z33.literal("changelog"),
12789
+ z34.object({
12790
+ type: z34.literal("changelog"),
12640
12791
  ...ChangelogSectionSchema.shape
12641
12792
  }),
12642
- z33.object({
12643
- type: z33.literal("changelogV3"),
12793
+ z34.object({
12794
+ type: z34.literal("changelogV3"),
12644
12795
  ...ChangelogSectionV3Schema.shape
12645
12796
  })
12646
12797
  ])
12647
12798
  );
12648
- var UnversionedTabbedNavigationConfigSchema3 = z33.object({
12649
- tabs: z33.array(NavigationTabSchema3).optional(),
12650
- tabsV2: z33.array(NavigationTabV2Schema2).optional(),
12799
+ var UnversionedTabbedNavigationConfigSchema3 = z34.object({
12800
+ tabs: z34.array(NavigationTabSchema3).optional(),
12801
+ tabsV2: z34.array(NavigationTabV2Schema2).optional(),
12651
12802
  landingPage: PageMetadataSchema.optional()
12652
12803
  });
12653
- var UnversionedUntabbedNavigationConfigSchema3 = z33.object({
12654
- items: z33.array(NavigationItemSchema3),
12804
+ var UnversionedUntabbedNavigationConfigSchema3 = z34.object({
12805
+ items: z34.array(NavigationItemSchema3),
12655
12806
  landingPage: PageMetadataSchema.optional()
12656
12807
  });
12657
- var UnversionedNavigationConfigSchema3 = z33.union([
12808
+ var UnversionedNavigationConfigSchema3 = z34.union([
12658
12809
  UnversionedTabbedNavigationConfigSchema3,
12659
12810
  UnversionedUntabbedNavigationConfigSchema3
12660
12811
  ]);
12661
- var VersionedNavigationConfigDataSchema3 = z33.object({
12812
+ var VersionedNavigationConfigDataSchema3 = z34.object({
12662
12813
  version: VersionIdSchema2,
12663
- urlSlug: z33.string().optional(),
12814
+ urlSlug: z34.string().optional(),
12664
12815
  availability: AvailabilitySchema2.optional(),
12665
12816
  config: UnversionedNavigationConfigSchema3
12666
12817
  });
12667
- var VersionedNavigationConfigSchema3 = z33.object({
12668
- versions: z33.array(VersionedNavigationConfigDataSchema3)
12818
+ var VersionedNavigationConfigSchema3 = z34.object({
12819
+ versions: z34.array(VersionedNavigationConfigDataSchema3)
12669
12820
  });
12670
- var NavigationConfigSchema3 = z33.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
12671
- var DocsDbConfigSchema = z33.object({
12672
- title: z33.string().optional(),
12821
+ var NavigationConfigSchema3 = z34.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
12822
+ var DocsDbConfigSchema = z34.object({
12823
+ title: z34.string().optional(),
12673
12824
  defaultLanguage: ProgrammingLanguageSchema.optional(),
12674
- languages: z33.array(LanguageSchema).optional(),
12825
+ languages: z34.array(LanguageSchema).optional(),
12675
12826
  translations: DocsTranslationsConfigSchema.optional(),
12676
12827
  announcement: AnnouncementConfigSchema.optional(),
12677
12828
  navigation: NavigationConfigSchema3.optional(),
12678
- root: z33.custom().optional(),
12679
- navbarLinks: z33.array(NavbarLinkSchema).optional(),
12680
- footerLinks: z33.array(FooterLinkSchema).optional(),
12681
- hideNavLinks: z33.boolean().optional(),
12829
+ root: z34.custom().optional(),
12830
+ navbarLinks: z34.array(NavbarLinkSchema).optional(),
12831
+ footerLinks: z34.array(FooterLinkSchema).optional(),
12832
+ hideNavLinks: z34.boolean().optional(),
12682
12833
  logoHeight: HeightSchema.optional(),
12683
12834
  logoHref: UrlSchema2.optional(),
12684
- logoRightText: z33.string().optional(),
12835
+ logoRightText: z34.string().optional(),
12685
12836
  favicon: FileIdSchema2.optional(),
12686
12837
  agents: AgentsConfigSchema.optional(),
12687
12838
  metadata: MetadataConfigSchema.optional(),
12688
- redirects: z33.array(RedirectConfigSchema).optional(),
12839
+ redirects: z34.array(RedirectConfigSchema).optional(),
12689
12840
  backgroundImage: FileIdSchema2.optional(),
12690
12841
  colorsV3: ColorsConfigV3Schema3.optional(),
12691
12842
  layout: DocsLayoutConfigSchema.optional(),
12692
12843
  theme: DocsThemeConfigSchema.optional(),
12693
- globalTheme: z33.string().optional(),
12844
+ globalTheme: z34.string().optional(),
12694
12845
  settings: DocsSettingsConfigSchema.optional(),
12695
12846
  typographyV2: DocsTypographyConfigV2Schema.optional(),
12696
12847
  analyticsConfig: AnalyticsConfigSchema.optional(),
@@ -12700,40 +12851,40 @@ var DocsDbConfigSchema = z33.object({
12700
12851
  aiChatConfig: AIChatConfigSchema.optional(),
12701
12852
  pageActions: PageActionsConfigSchema.optional(),
12702
12853
  editThisPageLaunch: EditThisPageLaunchSchema.optional(),
12703
- header: z33.string().optional(),
12704
- footer: z33.string().optional(),
12854
+ header: z34.string().optional(),
12855
+ footer: z34.string().optional(),
12705
12856
  logo: FileIdSchema2.optional(),
12706
12857
  logoV2: ThemedFileIdSchema.optional(),
12707
12858
  colors: ColorsConfigSchema.optional(),
12708
12859
  colorsV2: ColorsConfigV2Schema.optional(),
12709
12860
  typography: DocsTypographyConfigSchema.optional()
12710
12861
  });
12711
- var DocsDefinitionDbV1Schema = z33.object({
12712
- pages: z33.record(PageIdSchema2, PageContentSchema),
12713
- referencedApis: z33.array(ApiDefinitionIdSchema2),
12714
- files: z33.record(FileIdSchema2, DbFileInfoSchema),
12862
+ var DocsDefinitionDbV1Schema = z34.object({
12863
+ pages: z34.record(PageIdSchema2, PageContentSchema),
12864
+ referencedApis: z34.array(ApiDefinitionIdSchema2),
12865
+ files: z34.record(FileIdSchema2, DbFileInfoSchema),
12715
12866
  config: DocsDbConfigSchema,
12716
12867
  colors: ColorsConfigSchema.optional()
12717
12868
  });
12718
- var DocsDefinitionDbV2Schema = z33.object({
12719
- pages: z33.record(PageIdSchema2, PageContentSchema),
12720
- referencedApis: z33.array(ApiDefinitionIdSchema2),
12721
- files: z33.record(FileIdSchema2, DbFileInfoSchema),
12869
+ var DocsDefinitionDbV2Schema = z34.object({
12870
+ pages: z34.record(PageIdSchema2, PageContentSchema),
12871
+ referencedApis: z34.array(ApiDefinitionIdSchema2),
12872
+ files: z34.record(FileIdSchema2, DbFileInfoSchema),
12722
12873
  config: DocsDbConfigSchema,
12723
12874
  colors: ColorsConfigSchema.optional(),
12724
12875
  typography: DocsTypographyConfigSchema.optional()
12725
12876
  });
12726
- var DocsDefinitionDbV3Schema = z33.object({
12727
- pages: z33.record(PageIdSchema2, PageContentSchema),
12728
- referencedApis: z33.array(ApiDefinitionIdSchema2),
12729
- files: z33.record(FileIdSchema2, DbFileInfoV2Schema),
12877
+ var DocsDefinitionDbV3Schema = z34.object({
12878
+ pages: z34.record(PageIdSchema2, PageContentSchema),
12879
+ referencedApis: z34.array(ApiDefinitionIdSchema2),
12880
+ files: z34.record(FileIdSchema2, DbFileInfoV2Schema),
12730
12881
  config: DocsDbConfigSchema,
12731
- jsFiles: z33.record(z33.string(), z33.string()).optional()
12882
+ jsFiles: z34.record(z34.string(), z34.string()).optional()
12732
12883
  });
12733
- var DocsDefinitionDbSchema = z33.discriminatedUnion("type", [
12734
- z33.object({ type: z33.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
12735
- z33.object({ type: z33.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
12736
- z33.object({ type: z33.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
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 })
12737
12888
  ]);
12738
12889
 
12739
12890
  // src/client/DocsV1Read.ts
@@ -13508,100 +13659,100 @@ __export(DocsLatest_exports, {
13508
13659
  });
13509
13660
 
13510
13661
  // src/client/docs-types/latest.ts
13511
- var z34 = __toESM(require("zod"), 1);
13512
- var StringOrStringListSchema = z34.union([z34.string(), z34.array(z34.string())]);
13513
- var TwitterCardSettingSchema2 = z34.enum(["summary", "summary_large_image", "app", "player"]);
13514
- var JsonLdBreadcrumbListElementSchema = z34.object({
13515
- "@type": z34.literal("ListItem"),
13516
- position: z34.number(),
13517
- name: z34.string(),
13518
- item: z34.string().optional()
13519
- });
13520
- var JsonLdBreadcrumbListSchema = z34.object({
13521
- "@context": z34.literal("https://schema.org"),
13522
- "@type": z34.literal("BreadcrumbList"),
13523
- itemListElement: z34.array(JsonLdBreadcrumbListElementSchema)
13524
- });
13525
- var WithJsonLdBreadcrumbsSchema = z34.object({
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({
13526
13677
  "jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
13527
13678
  });
13528
- var WithMetadataConfigSchema = z34.object({
13529
- "og:site_name": z34.string().optional(),
13530
- "og:title": z34.string().optional(),
13531
- "og:description": z34.string().optional(),
13532
- "og:url": z34.string().optional(),
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(),
13533
13684
  "og:image": FileIdOrUrlSchema.optional(),
13534
- "og:image:width": z34.number().optional(),
13535
- "og:image:height": z34.number().optional(),
13536
- "og:locale": z34.string().optional(),
13685
+ "og:image:width": z35.number().optional(),
13686
+ "og:image:height": z35.number().optional(),
13687
+ "og:locale": z35.string().optional(),
13537
13688
  "og:logo": FileIdOrUrlSchema.optional(),
13538
- "twitter:title": z34.string().optional(),
13539
- "twitter:description": z34.string().optional(),
13540
- "twitter:handle": z34.string().optional(),
13689
+ "twitter:title": z35.string().optional(),
13690
+ "twitter:description": z35.string().optional(),
13691
+ "twitter:handle": z35.string().optional(),
13541
13692
  "twitter:image": FileIdOrUrlSchema.optional(),
13542
- "twitter:site": z34.string().optional(),
13543
- "twitter:url": z34.string().optional(),
13693
+ "twitter:site": z35.string().optional(),
13694
+ "twitter:url": z35.string().optional(),
13544
13695
  "twitter:card": TwitterCardSettingSchema2.optional(),
13545
13696
  "og:background-image": FileIdOrUrlSchema.optional(),
13546
- "og:dynamic": z34.boolean().optional(),
13697
+ "og:dynamic": z35.boolean().optional(),
13547
13698
  "og:dynamic:background-image": FileIdOrUrlSchema.optional(),
13548
- "og:dynamic:text-color": z34.string().optional(),
13549
- "og:dynamic:background-color": z34.string().optional(),
13550
- "og:dynamic:show-logo": z34.boolean().optional(),
13551
- "og:dynamic:show-section": z34.boolean().optional(),
13552
- "og:dynamic:show-description": z34.boolean().optional(),
13553
- "og:dynamic:show-url": z34.boolean().optional(),
13554
- "og:dynamic:show-gradient": z34.boolean().optional(),
13555
- noindex: z34.boolean().optional(),
13556
- nofollow: z34.boolean().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(),
13557
13708
  keywords: StringOrStringListSchema.optional()
13558
13709
  });
13559
- var LayoutSchema = z34.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
13560
- var LogoConfigurationSchema = z34.object({
13710
+ var LayoutSchema = z35.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
13711
+ var LogoConfigurationSchema = z35.object({
13561
13712
  light: FileIdOrUrlSchema.optional(),
13562
13713
  dark: FileIdOrUrlSchema.optional()
13563
13714
  });
13564
- var LogoSchema = z34.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
13565
- var BreadcrumbItemSchema = z34.object({
13566
- title: z34.string(),
13567
- pointsTo: z34.string().optional()
13715
+ var LogoSchema = z35.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
13716
+ var BreadcrumbItemSchema = z35.object({
13717
+ title: z35.string(),
13718
+ pointsTo: z35.string().optional()
13568
13719
  });
13569
13720
  var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
13570
- z34.object({
13721
+ z35.object({
13571
13722
  layout: LayoutSchema.optional(),
13572
- slug: z34.string().optional(),
13573
- title: z34.string().optional(),
13574
- headline: z34.string().optional(),
13575
- description: z34.string().optional(),
13576
- subtitle: z34.string().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(),
13577
13728
  logo: LogoSchema.optional(),
13578
13729
  image: FileIdOrUrlSchema.optional(),
13579
- "edit-this-page-url": z34.string().optional(),
13580
- "hide-toc": z34.boolean().optional(),
13581
- "force-toc": z34.boolean().optional(),
13582
- "hide-nav-links": z34.boolean().optional(),
13583
- "max-toc-depth": z34.number().optional(),
13584
- "hide-feedback": z34.boolean().optional(),
13585
- "hide-page-actions": z34.boolean().optional(),
13586
- "no-image-zoom": z34.boolean().optional(),
13587
- breadcrumb: z34.array(BreadcrumbItemSchema).optional(),
13588
- excerpt: z34.string().optional(),
13589
- "canonical-url": z34.string().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(),
13590
13741
  tags: StringOrStringListSchema.optional(),
13591
- "last-updated": z34.string().optional(),
13742
+ "last-updated": z35.string().optional(),
13592
13743
  /**
13593
13744
  * Arbitrary author-defined metadata that is copied onto this page's search
13594
13745
  * records, so it can be faceted and filtered on by full path
13595
13746
  * (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
13596
13747
  */
13597
- "search-metadata": z34.record(z34.unknown()).optional()
13748
+ "search-metadata": z35.record(z35.unknown()).optional()
13598
13749
  })
13599
13750
  );
13600
- var ResolvedMdxSchema = z34.object({
13601
- code: z34.string(),
13751
+ var ResolvedMdxSchema = z35.object({
13752
+ code: z35.string(),
13602
13753
  frontmatter: FrontmatterSchema,
13603
- scope: z34.record(z34.string(), z34.unknown()),
13604
- jsxRefs: z34.array(z34.string()).optional()
13754
+ scope: z35.record(z35.string(), z35.unknown()),
13755
+ jsxRefs: z35.array(z35.string()).optional()
13605
13756
  });
13606
13757
 
13607
13758
  // src/client/DocsV1Commons.ts
@@ -14041,9 +14192,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
14041
14192
  }
14042
14193
  }
14043
14194
  }
14044
- function generateExampleObject(object33, resolveTypeById, ignoreOptionals, visited, depth) {
14195
+ function generateExampleObject(object34, resolveTypeById, ignoreOptionals, visited, depth) {
14045
14196
  const example = {};
14046
- for (const property of getAllObjectProperties(object33, resolveTypeById)) {
14197
+ for (const property of getAllObjectProperties(object34, resolveTypeById)) {
14047
14198
  const value = generateExampleFromTypeReference(
14048
14199
  property.valueType,
14049
14200
  resolveTypeById,
@@ -14227,10 +14378,10 @@ function generateExamplePrimitive(reference) {
14227
14378
  return reference.name;
14228
14379
  }
14229
14380
  }
14230
- function getAllObjectProperties(object33, resolveTypeById) {
14381
+ function getAllObjectProperties(object34, resolveTypeById) {
14231
14382
  return [
14232
- ...object33.properties,
14233
- ...object33.extends.flatMap((typeId) => {
14383
+ ...object34.properties,
14384
+ ...object34.extends.flatMap((typeId) => {
14234
14385
  let type = resolveTypeById(typeId);
14235
14386
  if (type == null) {
14236
14387
  return [];