@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.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, string34) => {
448
- const isLastWord = m.length + offset >= string34.length;
447
+ str = str.toLowerCase().replace(regex, (m, lead = "", forced, lower, rest, offset, string35) => {
448
+ const isLastWord = m.length + offset >= string35.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(object33, types, parentVisitedTypeIds) {
2541
- const cached = UnwrapObjectTypeCache.get(object33);
2540
+ function unwrapObjectType(object34, types, parentVisitedTypeIds) {
2541
+ const cached = UnwrapObjectTypeCache.get(object34);
2542
2542
  if (cached != null) {
2543
2543
  return cached;
2544
2544
  }
2545
- const directProperties = object33.properties;
2546
- const extraProperties = object33.extraProperties;
2545
+ const directProperties = object34.properties;
2546
+ const extraProperties = object34.extraProperties;
2547
2547
  const descriptions = [];
2548
2548
  const visitedTypeIds = /* @__PURE__ */ new Set();
2549
- const extendedProperties = object33.extends.flatMap((typeId) => {
2549
+ const extendedProperties = object34.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(object33, types, parentVisitedTypeIds) {
2593
2593
  };
2594
2594
  });
2595
2595
  });
2596
- const propertyKeys = new Set(object33.properties.map((property) => property.key));
2596
+ const propertyKeys = new Set(object34.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(object33, types, parentVisitedTypeIds) {
2616
2616
  extraProperties,
2617
2617
  visitedTypeIds
2618
2618
  };
2619
- UnwrapObjectTypeCache.set(object33, toRet2);
2619
+ UnwrapObjectTypeCache.set(object34, toRet2);
2620
2620
  return toRet2;
2621
2621
  }
2622
2622
  const properties = sortBy(
@@ -2628,7 +2628,7 @@ function unwrapObjectType(object33, types, parentVisitedTypeIds) {
2628
2628
  ]
2629
2629
  );
2630
2630
  const toRet = { properties, descriptions, extraProperties, visitedTypeIds };
2631
- UnwrapObjectTypeCache.set(object33, toRet);
2631
+ UnwrapObjectTypeCache.set(object34, 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: (object33) => {
4330
- const objectProperties = unwrapObjectType(object33, types).properties;
4329
+ object: (object34) => {
4330
+ const objectProperties = unwrapObjectType(object34, types).properties;
4331
4331
  return isPlainObject_default(obj) ? mapValues(
4332
4332
  sortKeysBy(
4333
4333
  obj,
@@ -11076,103 +11076,253 @@ function createGitClient(options) {
11076
11076
  return createORPCClient16(link);
11077
11077
  }
11078
11078
 
11079
- // src/orpc-client/pdf-export/client.ts
11079
+ // src/orpc-client/mcp-hosting/client.ts
11080
11080
  import { createORPCClient as createORPCClient17 } from "@orpc/client";
11081
11081
  import { OpenAPILink as OpenAPILink17 } from "@orpc/openapi-client/fetch";
11082
11082
 
11083
- // src/orpc-client/pdf-export/contract.ts
11083
+ // src/orpc-client/mcp-hosting/contract.ts
11084
11084
  import { oc as oc15 } from "@orpc/contract";
11085
11085
  import * as z25 from "zod";
11086
- var PdfExportScopeSchema = z25.object({
11087
- pageSlugs: z25.array(z25.string())
11088
- });
11089
- var PdfExportOptionsV1Schema = z25.object({
11090
- coverTitle: z25.string().nullish(),
11091
- coverSubtitle: z25.string().nullish(),
11092
- hideCoverFooter: z25.boolean().nullish(),
11093
- headerLeftTemplate: z25.string().nullish(),
11094
- headerRightTemplate: z25.string().nullish(),
11095
- footerLeftTemplate: z25.string().nullish(),
11096
- footerRightTemplate: z25.string().nullish(),
11097
- scope: PdfExportScopeSchema.nullish(),
11098
- hideCover: z25.boolean().nullish(),
11099
- hideToc: z25.boolean().nullish()
11100
- });
11101
- var PdfExportOptionsSchema = z25.discriminatedUnion("version", [
11102
- z25.object({ version: z25.literal("v1") }).merge(PdfExportOptionsV1Schema)
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
+ var McpAuthSchemeSchema = z25.discriminatedUnion("type", [
11089
+ z25.object({ type: z25.literal("bearer") }),
11090
+ z25.object({
11091
+ type: z25.literal("apiKey"),
11092
+ paramName: z25.string().min(1),
11093
+ in: z25.enum(["header", "query", "cookie"])
11094
+ }),
11095
+ z25.object({ type: z25.literal("basic") })
11103
11096
  ]);
11104
- var PdfExportTaskStatusSchema = z25.enum(["PENDING", "RUNNING", "COMPLETED", "FAILED"]);
11105
- var PdfExportTaskSchema = z25.object({
11106
- id: z25.string(),
11107
- orgId: z25.string(),
11108
- docsUrl: z25.string(),
11109
- productId: z25.string().nullish(),
11110
- versionId: z25.string().nullish(),
11111
- requesterName: z25.string().nullish(),
11112
- notifyEmails: z25.array(z25.string()).nullish(),
11113
- status: PdfExportTaskStatusSchema,
11114
- options: PdfExportOptionsSchema.nullish(),
11115
- createdAt: z25.string(),
11116
- startedAt: z25.string().nullish(),
11117
- completedAt: z25.string().nullish(),
11118
- fileName: z25.string().nullish(),
11119
- sizeBytes: z25.number().nullish(),
11120
- errorMessage: z25.string().nullish()
11097
+ var McpMetadataSchema = z25.object({
11098
+ name: z25.string().min(1),
11099
+ toolsets: z25.record(z25.string(), z25.array(z25.string())),
11100
+ toolsetMetadata: z25.array(
11101
+ z25.object({
11102
+ name: z25.string(),
11103
+ title: z25.string(),
11104
+ description: z25.string(),
11105
+ toolCount: z25.number().int().nonnegative()
11106
+ }).strict()
11107
+ ),
11108
+ auth: z25.object({
11109
+ schemes: z25.array(McpAuthSchemeSchema),
11110
+ required: z25.boolean()
11111
+ }).strict(),
11112
+ skippedTools: z25.array(z25.object({ name: z25.string(), reason: z25.string() }).strict()),
11113
+ environmentVariables: z25.array(
11114
+ z25.object({
11115
+ name: z25.string(),
11116
+ description: z25.string(),
11117
+ required: z25.boolean()
11118
+ }).strict()
11119
+ ),
11120
+ baseUrl: z25.string().url(),
11121
+ followRedirects: z25.boolean(),
11122
+ maxRedirects: z25.number().int().nonnegative(),
11123
+ allowedRedirectHosts: z25.array(z25.string())
11124
+ }).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
+ }).strict();
11130
+ var McpGitInputSchema = z25.object({
11131
+ repoUrl: z25.string(),
11132
+ branch: z25.string(),
11133
+ commitSha: z25.string().optional()
11134
+ }).strict();
11135
+ var DeployMcpServerInputSchema = z25.object({
11136
+ orgId: McpPathSegmentSchema,
11137
+ 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()),
11141
+ // Bounded so a single deploy request cannot fan out unbounded parallel
11142
+ // CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
11143
+ // 20 leaves room for wasm/sourcemap/chunk splitting.
11144
+ modules: z25.array(McpModuleSchema).min(1).max(20),
11145
+ metadata: McpMetadataSchema,
11146
+ // Everything else in this schema is bounded; keep the opaque config
11147
+ // 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, {
11149
+ message: "config must be at most 64KB serialized"
11150
+ }),
11151
+ generatorName: z25.string().min(1),
11152
+ generatorVersion: z25.string().min(1),
11153
+ cliVersion: z25.string().optional(),
11154
+ git: McpGitInputSchema.optional()
11155
+ }).strict().superRefine((input, ctx) => {
11156
+ const names = /* @__PURE__ */ new Set();
11157
+ for (const module of input.modules) {
11158
+ if (names.has(module.name)) {
11159
+ ctx.addIssue({
11160
+ code: z25.ZodIssueCode.custom,
11161
+ path: ["modules"],
11162
+ message: `duplicate module name: ${module.name}`
11163
+ });
11164
+ }
11165
+ names.add(module.name);
11166
+ }
11167
+ if (!names.has(input.mainModule)) {
11168
+ ctx.addIssue({
11169
+ code: z25.ZodIssueCode.custom,
11170
+ path: ["mainModule"],
11171
+ message: `mainModule ${input.mainModule} is not among the submitted modules`
11172
+ });
11173
+ }
11174
+ });
11175
+ var GetMcpServerInputSchema = z25.object({
11176
+ orgId: McpPathSegmentSchema,
11177
+ slug: McpPathSegmentSchema
11121
11178
  });
11122
- var ListPdfExportTasksResponseSchema = z25.object({
11123
- tasks: z25.array(PdfExportTaskSchema)
11179
+ var ListMcpServersInputSchema = z25.object({
11180
+ orgId: z25.string()
11124
11181
  });
11125
- var PdfExportDownloadResponseSchema = z25.object({
11126
- downloadUrl: z25.string(),
11127
- fileName: z25.string(),
11128
- sizeBytes: z25.number()
11182
+ var ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
11183
+ var DeleteMcpServerInputSchema = GetMcpServerInputSchema;
11184
+ var McpDeploymentSummarySchema = z25.object({
11185
+ id: z25.string(),
11186
+ status: McpDeploymentStatusSchema,
11187
+ /** 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()
11129
11193
  });
11130
- var CreatePdfExportTaskInputSchema = z25.object({
11194
+ var McpServerSchema = z25.object({
11195
+ id: z25.string(),
11131
11196
  orgId: z25.string(),
11132
- docsUrl: z25.string(),
11133
- productId: z25.string().nullish(),
11134
- versionId: z25.string().nullish(),
11135
- requesterName: z25.string().nullish(),
11197
+ slug: z25.string(),
11198
+ /** The server is serving iff this is set; it names the serving deployment. */
11199
+ activeDeploymentId: z25.string().nullish(),
11200
+ /** Most recent publication attempt — how the last deploy went. */
11201
+ latestDeployment: McpDeploymentSummarySchema.nullish(),
11202
+ url: z25.string().url(),
11203
+ createdAt: z25.string(),
11204
+ updatedAt: z25.string()
11205
+ });
11206
+ var ListMcpServersResponseSchema = z25.object({ servers: z25.array(McpServerSchema) });
11207
+ var ListMcpDeploymentsResponseSchema = z25.object({ deployments: z25.array(McpDeploymentSummarySchema) });
11208
+ var mcpHostingContract = {
11209
+ deploy: oc15.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
11210
+ getServer: oc15.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
11211
+ listServers: oc15.route({ method: "GET", path: "/servers" }).input(ListMcpServersInputSchema).output(ListMcpServersResponseSchema),
11212
+ listDeployments: oc15.route({ method: "GET", path: "/servers/{slug}/deployments" }).input(ListMcpDeploymentsInputSchema).output(ListMcpDeploymentsResponseSchema),
11213
+ deleteServer: oc15.route({ method: "DELETE", path: "/servers/{slug}" }).input(DeleteMcpServerInputSchema)
11214
+ };
11215
+
11216
+ // src/orpc-client/mcp-hosting/client.ts
11217
+ function createMcpHostingClient(options) {
11218
+ const link = new OpenAPILink17(mcpHostingContract, {
11219
+ url: `${options.baseUrl}/mcp-hosting`,
11220
+ headers: () => ({
11221
+ Authorization: `Bearer ${options.token}`,
11222
+ ...options.headers
11223
+ }),
11224
+ ...options.fetch != null ? { fetch: options.fetch } : {}
11225
+ });
11226
+ return createORPCClient17(link);
11227
+ }
11228
+
11229
+ // src/orpc-client/pdf-export/client.ts
11230
+ import { createORPCClient as createORPCClient18 } from "@orpc/client";
11231
+ import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
11232
+
11233
+ // src/orpc-client/pdf-export/contract.ts
11234
+ 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(),
11247
+ scope: PdfExportScopeSchema.nullish(),
11248
+ hideCover: z26.boolean().nullish(),
11249
+ hideToc: z26.boolean().nullish()
11250
+ });
11251
+ var PdfExportOptionsSchema = z26.discriminatedUnion("version", [
11252
+ z26.object({ version: z26.literal("v1") }).merge(PdfExportOptionsV1Schema)
11253
+ ]);
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(),
11263
+ status: PdfExportTaskStatusSchema,
11264
+ 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(),
11136
11286
  options: PdfExportOptionsSchema.nullish()
11137
11287
  });
11138
- var ListPdfExportTasksInputSchema = z25.object({
11139
- orgId: z25.string(),
11140
- docsUrl: z25.string(),
11141
- limit: z25.coerce.number().nullish()
11288
+ var ListPdfExportTasksInputSchema = z26.object({
11289
+ orgId: z26.string(),
11290
+ docsUrl: z26.string(),
11291
+ limit: z26.coerce.number().nullish()
11142
11292
  });
11143
- var GetPdfExportTaskInputSchema = z25.object({
11144
- taskId: z25.string()
11293
+ var GetPdfExportTaskInputSchema = z26.object({
11294
+ taskId: z26.string()
11145
11295
  });
11146
- var UpdatePdfExportTaskInputSchema = z25.object({
11147
- taskId: z25.string(),
11296
+ var UpdatePdfExportTaskInputSchema = z26.object({
11297
+ taskId: z26.string(),
11148
11298
  status: PdfExportTaskStatusSchema,
11149
- startedAt: z25.string().nullish(),
11150
- completedAt: z25.string().nullish(),
11151
- s3Key: z25.string().nullish(),
11152
- fileName: z25.string().nullish(),
11153
- sizeBytes: z25.number().nullish(),
11154
- errorMessage: z25.string().nullish()
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()
11155
11305
  });
11156
- var GetPdfExportDownloadUrlInputSchema = z25.object({
11157
- taskId: z25.string()
11306
+ var GetPdfExportDownloadUrlInputSchema = z26.object({
11307
+ taskId: z26.string()
11158
11308
  });
11159
- var CleanupPdfExportsResponseSchema = z25.object({
11160
- expiredTasksDeleted: z25.number(),
11161
- s3ObjectsDeleted: z25.number(),
11162
- timedOutTasksFailed: z25.number()
11309
+ var CleanupPdfExportsResponseSchema = z26.object({
11310
+ expiredTasksDeleted: z26.number(),
11311
+ s3ObjectsDeleted: z26.number(),
11312
+ timedOutTasksFailed: z26.number()
11163
11313
  });
11164
11314
  var pdfExportContract = {
11165
- createTask: oc15.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
11166
- listTasks: oc15.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
11167
- getTask: oc15.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
11168
- updateTask: oc15.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
11169
- getDownloadUrl: oc15.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
11170
- cleanup: oc15.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
11315
+ createTask: oc16.route({ method: "POST", path: "/task" }).input(CreatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
11316
+ listTasks: oc16.route({ method: "GET", path: "/tasks" }).input(ListPdfExportTasksInputSchema).output(ListPdfExportTasksResponseSchema),
11317
+ getTask: oc16.route({ method: "GET", path: "/task/{taskId}" }).input(GetPdfExportTaskInputSchema).output(PdfExportTaskSchema),
11318
+ updateTask: oc16.route({ method: "POST", path: "/task/{taskId}" }).input(UpdatePdfExportTaskInputSchema).output(PdfExportTaskSchema),
11319
+ getDownloadUrl: oc16.route({ method: "GET", path: "/task/{taskId}/download-url" }).input(GetPdfExportDownloadUrlInputSchema).output(PdfExportDownloadResponseSchema),
11320
+ cleanup: oc16.route({ method: "POST", path: "/cleanup" }).output(CleanupPdfExportsResponseSchema)
11171
11321
  };
11172
11322
 
11173
11323
  // src/orpc-client/pdf-export/client.ts
11174
11324
  function createPdfExportClient(options) {
11175
- const link = new OpenAPILink17(pdfExportContract, {
11325
+ const link = new OpenAPILink18(pdfExportContract, {
11176
11326
  url: `${options.baseUrl}/pdf-export`,
11177
11327
  headers: () => ({
11178
11328
  Authorization: `Bearer ${options.token}`,
@@ -11180,17 +11330,17 @@ function createPdfExportClient(options) {
11180
11330
  }),
11181
11331
  ...options.fetch != null ? { fetch: options.fetch } : {}
11182
11332
  });
11183
- return createORPCClient17(link);
11333
+ return createORPCClient18(link);
11184
11334
  }
11185
11335
 
11186
11336
  // src/orpc-client/sdks/client.ts
11187
- import { createORPCClient as createORPCClient18 } from "@orpc/client";
11188
- import { OpenAPILink as OpenAPILink18 } from "@orpc/openapi-client/fetch";
11337
+ import { createORPCClient as createORPCClient19 } from "@orpc/client";
11338
+ import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
11189
11339
 
11190
11340
  // src/orpc-client/sdks/contract.ts
11191
- import { oc as oc16 } from "@orpc/contract";
11192
- import * as z26 from "zod";
11193
- var LanguageEnumSchema = z26.enum([
11341
+ import { oc as oc17 } from "@orpc/contract";
11342
+ import * as z27 from "zod";
11343
+ var LanguageEnumSchema = z27.enum([
11194
11344
  "Go",
11195
11345
  "TypeScript",
11196
11346
  "Java",
@@ -11201,23 +11351,23 @@ var LanguageEnumSchema = z26.enum([
11201
11351
  "Swift",
11202
11352
  "Rust"
11203
11353
  ]);
11204
- var VersionBumpEnumSchema = z26.enum(["MAJOR", "MINOR", "PATCH"]);
11205
- var ComputeSemanticVersionInputSchema = z26.object({
11206
- package: z26.string(),
11354
+ var VersionBumpEnumSchema = z27.enum(["MAJOR", "MINOR", "PATCH"]);
11355
+ var ComputeSemanticVersionInputSchema = z27.object({
11356
+ package: z27.string(),
11207
11357
  language: LanguageEnumSchema,
11208
- githubRepository: z26.string().nullish()
11358
+ githubRepository: z27.string().nullish()
11209
11359
  });
11210
- var ComputeSemanticVersionOutputSchema = z26.object({
11211
- version: z26.string(),
11360
+ var ComputeSemanticVersionOutputSchema = z27.object({
11361
+ version: z27.string(),
11212
11362
  bump: VersionBumpEnumSchema
11213
11363
  });
11214
11364
  var sdksContract = {
11215
- computeSemanticVersion: oc16.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
11365
+ computeSemanticVersion: oc17.route({ method: "POST", path: "/semantic-version/compute" }).input(ComputeSemanticVersionInputSchema).output(ComputeSemanticVersionOutputSchema)
11216
11366
  };
11217
11367
 
11218
11368
  // src/orpc-client/sdks/client.ts
11219
11369
  function createSdksClient(options) {
11220
- const link = new OpenAPILink18(sdksContract, {
11370
+ const link = new OpenAPILink19(sdksContract, {
11221
11371
  url: `${options.baseUrl}/sdks`,
11222
11372
  headers: () => ({
11223
11373
  Authorization: `Bearer ${options.token}`,
@@ -11225,50 +11375,50 @@ function createSdksClient(options) {
11225
11375
  }),
11226
11376
  ...options.fetch != null ? { fetch: options.fetch } : {}
11227
11377
  });
11228
- return createORPCClient18(link);
11378
+ return createORPCClient19(link);
11229
11379
  }
11230
11380
 
11231
11381
  // src/orpc-client/slugs/client.ts
11232
- import { createORPCClient as createORPCClient19 } from "@orpc/client";
11233
- import { OpenAPILink as OpenAPILink19 } from "@orpc/openapi-client/fetch";
11382
+ import { createORPCClient as createORPCClient20 } from "@orpc/client";
11383
+ import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
11234
11384
 
11235
11385
  // src/orpc-client/slugs/contract.ts
11236
- import { oc as oc17 } from "@orpc/contract";
11237
- import * as z27 from "zod";
11238
- var SlugsInputSchema = z27.object({
11239
- domain: z27.string(),
11240
- basepath: z27.string().optional().default("")
11241
- });
11242
- var SlugEntrySchema = z27.object({
11243
- orgId: z27.string(),
11244
- domain: z27.string(),
11245
- basepath: z27.string(),
11246
- slug: z27.string(),
11247
- lastUpdated: z27.string()
11248
- });
11249
- var MarkdownEntrySchema = z27.object({
11250
- orgId: z27.string(),
11251
- domain: z27.string(),
11252
- basepath: z27.string(),
11253
- pageId: z27.string(),
11254
- slug: z27.string(),
11255
- hash: z27.string(),
11256
- lastUpdated: z27.string()
11257
- });
11258
- var GetSlugEntriesResponseSchema = z27.object({
11259
- entries: z27.array(SlugEntrySchema)
11260
- });
11261
- var GetMarkdownEntriesResponseSchema = z27.object({
11262
- entries: z27.array(MarkdownEntrySchema)
11386
+ 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)
11263
11413
  });
11264
11414
  var slugsContract = {
11265
- getSlugEntries: oc17.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
11266
- getMarkdownEntries: oc17.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
11415
+ getSlugEntries: oc18.route({ method: "POST", path: "/slugs" }).input(SlugsInputSchema).output(GetSlugEntriesResponseSchema),
11416
+ getMarkdownEntries: oc18.route({ method: "POST", path: "/markdowns" }).input(SlugsInputSchema).output(GetMarkdownEntriesResponseSchema)
11267
11417
  };
11268
11418
 
11269
11419
  // src/orpc-client/slugs/client.ts
11270
11420
  function createSlugsClient(options) {
11271
- const link = new OpenAPILink19(slugsContract, {
11421
+ const link = new OpenAPILink20(slugsContract, {
11272
11422
  url: `${options.baseUrl.replace(/\/+$/, "")}/slugs`,
11273
11423
  headers: () => ({
11274
11424
  Authorization: `Bearer ${options.token}`,
@@ -11276,12 +11426,12 @@ function createSlugsClient(options) {
11276
11426
  }),
11277
11427
  ...options.fetch != null ? { fetch: options.fetch } : {}
11278
11428
  });
11279
- return createORPCClient19(link);
11429
+ return createORPCClient20(link);
11280
11430
  }
11281
11431
 
11282
11432
  // src/orpc-client/snippets/client.ts
11283
- import { createORPCClient as createORPCClient20 } from "@orpc/client";
11284
- import { OpenAPILink as OpenAPILink20 } from "@orpc/openapi-client/fetch";
11433
+ import { createORPCClient as createORPCClient21 } from "@orpc/client";
11434
+ import { OpenAPILink as OpenAPILink21 } from "@orpc/openapi-client/fetch";
11285
11435
 
11286
11436
  // src/orpc-client/snippets/contract.ts
11287
11437
  var contract_exports3 = {};
@@ -11291,110 +11441,110 @@ __export(contract_exports3, {
11291
11441
  snippetsContract: () => snippetsContract,
11292
11442
  snippetsFactoryContract: () => snippetsFactoryContract
11293
11443
  });
11294
- import { oc as oc18 } from "@orpc/contract";
11295
- import * as z28 from "zod";
11296
- var TypeScriptSdkSchema = z28.object({ package: z28.string(), version: z28.string() });
11297
- var PythonSdkSchema = z28.object({ package: z28.string(), version: z28.string() });
11298
- var GoSdkSchema = z28.object({ githubRepo: z28.string(), version: z28.string() });
11299
- var RubySdkSchema = z28.object({ gem: z28.string(), version: z28.string() });
11300
- var JavaSdkSchema = z28.object({ group: z28.string(), artifact: z28.string(), version: z28.string() });
11301
- var CsharpSdkSchema = z28.object({ package: z28.string(), version: z28.string() });
11302
- var BaseSnippetCreateSchema = z28.object({
11444
+ 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({
11303
11453
  endpoint: EndpointIdentifierSchema,
11304
- exampleIdentifier: z28.string().nullish()
11454
+ exampleIdentifier: z29.string().nullish()
11305
11455
  });
11306
- var SdkSnippetsCreateSchema = z28.discriminatedUnion("type", [
11307
- z28.object({
11308
- type: z28.literal("typescript"),
11456
+ var SdkSnippetsCreateSchema = z29.discriminatedUnion("type", [
11457
+ z29.object({
11458
+ type: z29.literal("typescript"),
11309
11459
  sdk: TypeScriptSdkSchema,
11310
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
11460
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11311
11461
  }),
11312
- z28.object({
11313
- type: z28.literal("python"),
11462
+ z29.object({
11463
+ type: z29.literal("python"),
11314
11464
  sdk: PythonSdkSchema,
11315
- snippets: z28.array(
11465
+ snippets: z29.array(
11316
11466
  BaseSnippetCreateSchema.extend({
11317
- snippet: z28.object({ async_client: z28.string(), sync_client: z28.string() })
11467
+ snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
11318
11468
  })
11319
11469
  )
11320
11470
  }),
11321
- z28.object({
11322
- type: z28.literal("go"),
11471
+ z29.object({
11472
+ type: z29.literal("go"),
11323
11473
  sdk: GoSdkSchema,
11324
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
11474
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11325
11475
  }),
11326
- z28.object({
11327
- type: z28.literal("java"),
11476
+ z29.object({
11477
+ type: z29.literal("java"),
11328
11478
  sdk: JavaSdkSchema,
11329
- snippets: z28.array(
11479
+ snippets: z29.array(
11330
11480
  BaseSnippetCreateSchema.extend({
11331
- snippet: z28.object({ async_client: z28.string(), sync_client: z28.string() })
11481
+ snippet: z29.object({ async_client: z29.string(), sync_client: z29.string() })
11332
11482
  })
11333
11483
  )
11334
11484
  }),
11335
- z28.object({
11336
- type: z28.literal("ruby"),
11485
+ z29.object({
11486
+ type: z29.literal("ruby"),
11337
11487
  sdk: RubySdkSchema,
11338
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
11488
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11339
11489
  }),
11340
- z28.object({
11341
- type: z28.literal("csharp"),
11490
+ z29.object({
11491
+ type: z29.literal("csharp"),
11342
11492
  sdk: CsharpSdkSchema,
11343
- snippets: z28.array(BaseSnippetCreateSchema.extend({ snippet: z28.object({ client: z28.string() }) }))
11493
+ snippets: z29.array(BaseSnippetCreateSchema.extend({ snippet: z29.object({ client: z29.string() }) }))
11344
11494
  })
11345
11495
  ]);
11346
11496
  var snippetsFactoryContract = {
11347
- createSnippetsForSdk: oc18.route({ method: "POST", path: "/create" }).input(
11348
- z28.object({
11349
- orgId: z28.string(),
11350
- apiId: z28.string(),
11497
+ createSnippetsForSdk: oc19.route({ method: "POST", path: "/create" }).input(
11498
+ z29.object({
11499
+ orgId: z29.string(),
11500
+ apiId: z29.string(),
11351
11501
  snippets: SdkSnippetsCreateSchema
11352
11502
  })
11353
11503
  )
11354
11504
  };
11355
- var ParameterPayloadSchema = z28.object({
11356
- name: z28.string(),
11357
- value: z28.unknown()
11505
+ var ParameterPayloadSchema = z29.object({
11506
+ name: z29.string(),
11507
+ value: z29.unknown()
11358
11508
  });
11359
- var AuthPayloadSchema = z28.discriminatedUnion("type", [
11360
- z28.object({ type: z28.literal("bearer"), token: z28.string() }),
11361
- z28.object({ type: z28.literal("basic"), username: z28.string(), password: z28.string() })
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() })
11362
11512
  ]);
11363
- var CustomSnippetPayloadSchema = z28.object({
11364
- headers: z28.array(ParameterPayloadSchema).nullish(),
11365
- pathParameters: z28.array(ParameterPayloadSchema).nullish(),
11366
- queryParameters: z28.array(ParameterPayloadSchema).nullish(),
11367
- requestBody: z28.unknown().nullish(),
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(),
11368
11518
  auth: AuthPayloadSchema.nullish()
11369
11519
  });
11370
11520
  var snippetsContract = {
11371
- get: oc18.route({ method: "POST", path: "/" }).input(
11372
- z28.object({
11373
- orgId: z28.string().nullish(),
11374
- apiId: z28.string().nullish(),
11375
- sdks: z28.array(SdkRequestSchema).nullish(),
11521
+ 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(),
11376
11526
  endpoint: EndpointIdentifierSchema,
11377
- exampleIdentifier: z28.string().nullish(),
11527
+ exampleIdentifier: z29.string().nullish(),
11378
11528
  payload: CustomSnippetPayloadSchema.nullish()
11379
11529
  })
11380
- ).output(z28.array(z28.unknown())),
11381
- load: oc18.route({ method: "POST", path: "/load" }).input(
11382
- z28.object({
11383
- orgId: z28.string().nullish(),
11384
- apiId: z28.string().nullish(),
11385
- sdks: z28.array(SdkRequestSchema).nullish()
11530
+ ).output(z29.array(z29.unknown())),
11531
+ 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()
11386
11536
  })
11387
11537
  ).output(
11388
- z28.object({
11389
- next: z28.number().nullish(),
11390
- snippets: z28.record(z28.string(), z28.unknown())
11538
+ z29.object({
11539
+ next: z29.number().nullish(),
11540
+ snippets: z29.record(z29.string(), z29.unknown())
11391
11541
  })
11392
11542
  )
11393
11543
  };
11394
11544
 
11395
11545
  // src/orpc-client/snippets/client.ts
11396
11546
  function createSnippetsFactoryClient(options) {
11397
- const link = new OpenAPILink20(snippetsFactoryContract, {
11547
+ const link = new OpenAPILink21(snippetsFactoryContract, {
11398
11548
  url: `${options.baseUrl}/snippets`,
11399
11549
  headers: () => ({
11400
11550
  Authorization: `Bearer ${options.token}`,
@@ -11402,10 +11552,10 @@ function createSnippetsFactoryClient(options) {
11402
11552
  }),
11403
11553
  ...options.fetch != null ? { fetch: options.fetch } : {}
11404
11554
  });
11405
- return createORPCClient20(link);
11555
+ return createORPCClient21(link);
11406
11556
  }
11407
11557
  function createSnippetsClient(options) {
11408
- const link = new OpenAPILink20(snippetsContract, {
11558
+ const link = new OpenAPILink21(snippetsContract, {
11409
11559
  url: `${options.baseUrl}/snippets`,
11410
11560
  headers: () => ({
11411
11561
  Authorization: `Bearer ${options.token}`,
@@ -11413,63 +11563,63 @@ function createSnippetsClient(options) {
11413
11563
  }),
11414
11564
  ...options.fetch != null ? { fetch: options.fetch } : {}
11415
11565
  });
11416
- return createORPCClient20(link);
11566
+ return createORPCClient21(link);
11417
11567
  }
11418
11568
 
11419
11569
  // src/orpc-client/templates/client.ts
11420
- import { createORPCClient as createORPCClient21 } from "@orpc/client";
11421
- import { OpenAPILink as OpenAPILink21 } from "@orpc/openapi-client/fetch";
11570
+ import { createORPCClient as createORPCClient22 } from "@orpc/client";
11571
+ import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
11422
11572
 
11423
11573
  // src/orpc-client/templates/contract.ts
11424
- import { oc as oc19 } from "@orpc/contract";
11425
- import * as z29 from "zod";
11426
- var SnippetRegistryEntrySchema = z29.object({
11574
+ import { oc as oc20 } from "@orpc/contract";
11575
+ import * as z30 from "zod";
11576
+ var SnippetRegistryEntrySchema = z30.object({
11427
11577
  sdk: SdkSchema,
11428
- endpointId: z29.object({
11429
- path: z29.string(),
11578
+ endpointId: z30.object({
11579
+ path: z30.string(),
11430
11580
  method: HttpMethodSchema,
11431
- identifierOverride: z29.string().nullish()
11581
+ identifierOverride: z30.string().nullish()
11432
11582
  }),
11433
- snippetTemplate: z29.object({
11434
- type: z29.literal("v1"),
11435
- functionInvocation: z29.unknown(),
11436
- clientInstantiation: z29.string()
11583
+ snippetTemplate: z30.object({
11584
+ type: z30.literal("v1"),
11585
+ functionInvocation: z30.unknown(),
11586
+ clientInstantiation: z30.string()
11437
11587
  }),
11438
- additionalTemplates: z29.record(z29.string(), z29.unknown()).nullish()
11588
+ additionalTemplates: z30.record(z30.string(), z30.unknown()).nullish()
11439
11589
  });
11440
- var RegisterInputSchema = z29.object({
11441
- orgId: z29.string(),
11442
- apiId: z29.string(),
11443
- apiDefinitionId: z29.string(),
11590
+ var RegisterInputSchema = z30.object({
11591
+ orgId: z30.string(),
11592
+ apiId: z30.string(),
11593
+ apiDefinitionId: z30.string(),
11444
11594
  snippet: SnippetRegistryEntrySchema
11445
11595
  });
11446
- var RegisterBatchInputSchema = z29.object({
11447
- orgId: z29.string(),
11448
- apiId: z29.string(),
11449
- apiDefinitionId: z29.string(),
11450
- snippets: z29.array(SnippetRegistryEntrySchema)
11596
+ var RegisterBatchInputSchema = z30.object({
11597
+ orgId: z30.string(),
11598
+ apiId: z30.string(),
11599
+ apiDefinitionId: z30.string(),
11600
+ snippets: z30.array(SnippetRegistryEntrySchema)
11451
11601
  });
11452
- var GetInputSchema = z29.object({
11453
- orgId: z29.string(),
11454
- apiId: z29.string(),
11602
+ var GetInputSchema = z30.object({
11603
+ orgId: z30.string(),
11604
+ apiId: z30.string(),
11455
11605
  sdk: SdkSchema,
11456
- endpointId: z29.object({
11457
- path: z29.string(),
11606
+ endpointId: z30.object({
11607
+ path: z30.string(),
11458
11608
  method: HttpMethodSchema,
11459
- identifierOverride: z29.string().nullish()
11609
+ identifierOverride: z30.string().nullish()
11460
11610
  })
11461
11611
  });
11462
- var EndpointSnippetTemplateSchema = z29.record(z29.string(), z29.unknown());
11612
+ var EndpointSnippetTemplateSchema = z30.record(z30.string(), z30.unknown());
11463
11613
  var templatesContract = {
11464
- register: oc19.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
11465
- registerBatch: oc19.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
11466
- get: oc19.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
11614
+ register: oc20.route({ method: "POST", path: "/register" }).input(RegisterInputSchema),
11615
+ registerBatch: oc20.route({ method: "POST", path: "/register/batch" }).input(RegisterBatchInputSchema),
11616
+ get: oc20.route({ method: "POST", path: "/get" }).input(GetInputSchema).output(EndpointSnippetTemplateSchema)
11467
11617
  };
11468
11618
 
11469
11619
  // src/orpc-client/templates/client.ts
11470
11620
  function createTemplatesClient(options) {
11471
11621
  const baseUrl = options.baseUrl.replace(/\/+$/, "");
11472
- const link = new OpenAPILink21(templatesContract, {
11622
+ const link = new OpenAPILink22(templatesContract, {
11473
11623
  url: `${baseUrl}/snippet-template`,
11474
11624
  headers: () => ({
11475
11625
  Authorization: `Bearer ${options.token}`,
@@ -11477,36 +11627,36 @@ function createTemplatesClient(options) {
11477
11627
  }),
11478
11628
  ...options.fetch != null ? { fetch: options.fetch } : {}
11479
11629
  });
11480
- return createORPCClient21(link);
11630
+ return createORPCClient22(link);
11481
11631
  }
11482
11632
 
11483
11633
  // src/orpc-client/tokens/client.ts
11484
- import { createORPCClient as createORPCClient22 } from "@orpc/client";
11485
- import { OpenAPILink as OpenAPILink22 } from "@orpc/openapi-client/fetch";
11634
+ import { createORPCClient as createORPCClient23 } from "@orpc/client";
11635
+ import { OpenAPILink as OpenAPILink23 } from "@orpc/openapi-client/fetch";
11486
11636
 
11487
11637
  // src/orpc-client/tokens/contract.ts
11488
- import { oc as oc20 } from "@orpc/contract";
11489
- import * as z30 from "zod";
11490
- var GenerateTokenInputSchema = z30.object({
11491
- orgId: z30.string(),
11492
- scope: z30.string()
11638
+ 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()
11493
11643
  });
11494
- var RevokeTokenInputSchema = z30.object({
11495
- orgId: z30.string(),
11496
- tokenId: z30.string()
11644
+ var RevokeTokenInputSchema = z31.object({
11645
+ orgId: z31.string(),
11646
+ tokenId: z31.string()
11497
11647
  });
11498
- var GenerateTokenOutputSchema = z30.object({
11499
- token: z30.string(),
11500
- id: z30.string()
11648
+ var GenerateTokenOutputSchema = z31.object({
11649
+ token: z31.string(),
11650
+ id: z31.string()
11501
11651
  });
11502
11652
  var tokensContract = {
11503
- generate: oc20.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
11504
- revoke: oc20.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
11653
+ generate: oc21.route({ method: "POST", path: "/generate" }).input(GenerateTokenInputSchema).output(GenerateTokenOutputSchema),
11654
+ revoke: oc21.route({ method: "POST", path: "/revoke" }).input(RevokeTokenInputSchema)
11505
11655
  };
11506
11656
 
11507
11657
  // src/orpc-client/tokens/client.ts
11508
11658
  function createTokensClient(options) {
11509
- const link = new OpenAPILink22(tokensContract, {
11659
+ const link = new OpenAPILink23(tokensContract, {
11510
11660
  url: `${options.baseUrl}/tokens`,
11511
11661
  headers: () => ({
11512
11662
  Authorization: `Bearer ${options.token}`,
@@ -11514,7 +11664,7 @@ function createTokensClient(options) {
11514
11664
  }),
11515
11665
  ...options.fetch != null ? { fetch: options.fetch } : {}
11516
11666
  });
11517
- return createORPCClient22(link);
11667
+ return createORPCClient23(link);
11518
11668
  }
11519
11669
 
11520
11670
  // src/orpc-client/client.ts
@@ -11538,6 +11688,7 @@ function createFdrORPCClient(options) {
11538
11688
  versions: createGeneratorVersionsClient(normalizedOptions)
11539
11689
  },
11540
11690
  git: createGitClient(normalizedOptions),
11691
+ mcpHosting: createMcpHostingClient(normalizedOptions),
11541
11692
  slugs: createSlugsClient(normalizedOptions),
11542
11693
  pdfExport: createPdfExportClient(normalizedOptions),
11543
11694
  sdks: createSdksClient(normalizedOptions),
@@ -11774,85 +11925,85 @@ __export(APIV1Db_exports, {
11774
11925
  });
11775
11926
 
11776
11927
  // src/orpc-client/api/contract-db.ts
11777
- import * as z31 from "zod";
11778
- var EndpointSnippetTemplatesSchema = z31.object({
11779
- typescript: z31.unknown().nullish(),
11780
- python: z31.unknown().nullish()
11928
+ import * as z32 from "zod";
11929
+ var EndpointSnippetTemplatesSchema = z32.object({
11930
+ typescript: z32.unknown().nullish(),
11931
+ python: z32.unknown().nullish()
11781
11932
  });
11782
- var DbHttpRequestSchema = z31.object({
11783
- description: z31.string().nullish(),
11784
- contentType: z31.string().nullish(),
11933
+ var DbHttpRequestSchema = z32.object({
11934
+ description: z32.string().nullish(),
11935
+ contentType: z32.string().nullish(),
11785
11936
  type: RegisterHttpRequestBodyShapeSchema
11786
11937
  });
11787
- var DbHttpRequestsV2Schema = z31.object({
11788
- requests: z31.array(DbHttpRequestSchema).nullish()
11938
+ var DbHttpRequestsV2Schema = z32.object({
11939
+ requests: z32.array(DbHttpRequestSchema).nullish()
11789
11940
  });
11790
- var DbEndpointDefinitionSchema = z31.object({
11791
- description: z31.string().nullish(),
11792
- subtitle: z31.string().nullish(),
11941
+ var DbEndpointDefinitionSchema = z32.object({
11942
+ description: z32.string().nullish(),
11943
+ subtitle: z32.string().nullish(),
11793
11944
  availability: AvailabilitySchema.nullish(),
11794
- authed: z31.boolean().nullish(),
11795
- authV2: z31.array(AuthSchemeIdSchema).nullish(),
11796
- multiAuth: z31.array(MultipleAuthTypeSchema).nullish(),
11945
+ authed: z32.boolean().nullish(),
11946
+ authV2: z32.array(AuthSchemeIdSchema).nullish(),
11947
+ multiAuth: z32.array(MultipleAuthTypeSchema).nullish(),
11797
11948
  defaultEnvironment: EnvironmentIdSchema.nullish(),
11798
- environments: z31.array(EnvironmentSchema).nullish(),
11949
+ environments: z32.array(EnvironmentSchema).nullish(),
11799
11950
  method: HttpMethodSchema,
11800
11951
  id: EndpointIdSchema,
11801
- originalEndpointId: z31.string().nullish(),
11802
- urlSlug: z31.string(),
11803
- migratedFromUrlSlugs: z31.array(z31.string()).nullish(),
11804
- name: z31.string().nullish(),
11952
+ originalEndpointId: z32.string().nullish(),
11953
+ urlSlug: z32.string(),
11954
+ migratedFromUrlSlugs: z32.array(z32.string()).nullish(),
11955
+ name: z32.string().nullish(),
11805
11956
  path: EndpointPathSchema,
11806
- queryParameters: z31.array(QueryParameterSchema),
11807
- headers: z31.array(HeaderSchema),
11808
- responseHeaders: z31.array(HeaderSchema).nullish(),
11957
+ queryParameters: z32.array(QueryParameterSchema),
11958
+ headers: z32.array(HeaderSchema),
11959
+ responseHeaders: z32.array(HeaderSchema).nullish(),
11809
11960
  request: DbHttpRequestSchema.nullish(),
11810
11961
  requestsV2: DbHttpRequestsV2Schema.nullish(),
11811
11962
  response: RegisterHttpResponseSchema.nullish(),
11812
11963
  responsesV2: RegisterHttpResponsesV2Schema.nullish(),
11813
- errors: z31.array(ErrorDeclarationSchema).nullish(),
11814
- errorsV2: z31.array(RegisterErrorDeclarationV2Schema).nullish(),
11815
- examples: z31.array(RegisterExampleEndpointCallSchema),
11964
+ errors: z32.array(ErrorDeclarationSchema).nullish(),
11965
+ errorsV2: z32.array(RegisterErrorDeclarationV2Schema).nullish(),
11966
+ examples: z32.array(RegisterExampleEndpointCallSchema),
11816
11967
  snippetTemplates: EndpointSnippetTemplatesSchema.nullish(),
11817
11968
  protocol: ProtocolSchema.nullish(),
11818
- includeInApiExplorer: z31.boolean().nullish()
11819
- });
11820
- var DbApiDefinitionPackageSchema = z31.object({
11821
- endpoints: z31.array(DbEndpointDefinitionSchema),
11822
- websockets: z31.array(RegisterWebSocketChannelSchema).nullish(),
11823
- webhooks: z31.array(RegisterWebhookDefinitionSchema).nullish(),
11824
- graphqlOperations: z31.array(GraphQlOperationSchema).nullish(),
11825
- types: z31.array(TypeIdSchema),
11826
- subpackages: z31.array(SubpackageIdSchema),
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),
11827
11978
  pointsTo: SubpackageIdSchema.nullish()
11828
11979
  });
11829
- var DbApiDefinitionSubpackageSchema = z31.object({
11980
+ var DbApiDefinitionSubpackageSchema = z32.object({
11830
11981
  ...DbApiDefinitionPackageSchema.shape,
11831
- description: z31.string().nullish(),
11982
+ description: z32.string().nullish(),
11832
11983
  parent: SubpackageIdSchema.nullish(),
11833
11984
  subpackageId: SubpackageIdSchema,
11834
- name: z31.string(),
11835
- urlSlug: z31.string(),
11836
- displayName: z31.string().nullish()
11985
+ name: z32.string(),
11986
+ urlSlug: z32.string(),
11987
+ displayName: z32.string().nullish()
11837
11988
  });
11838
- var DbApiDefinitionSchema = z31.object({
11989
+ var DbApiDefinitionSchema = z32.object({
11839
11990
  id: ApiDefinitionIdSchema,
11840
- apiName: z31.string().nullish(),
11841
- specVersion: z31.string().nullish(),
11991
+ apiName: z32.string().nullish(),
11992
+ specVersion: z32.string().nullish(),
11842
11993
  rootPackage: DbApiDefinitionPackageSchema,
11843
- types: z31.record(TypeIdSchema, RegisterTypeDefinitionSchema),
11844
- subpackages: z31.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
11994
+ types: z32.record(TypeIdSchema, RegisterTypeDefinitionSchema),
11995
+ subpackages: z32.record(SubpackageIdSchema, DbApiDefinitionSubpackageSchema),
11845
11996
  snippetsConfiguration: SnippetsConfigSchema.nullish(),
11846
11997
  auth: ApiAuthSchema.nullish(),
11847
- authSchemes: z31.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
11848
- hasMultipleBaseUrls: z31.boolean(),
11998
+ authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
11999
+ hasMultipleBaseUrls: z32.boolean(),
11849
12000
  navigation: ApiNavigationConfigRootSchema.nullish(),
11850
- globalHeaders: z31.array(HeaderSchema).nullish()
12001
+ globalHeaders: z32.array(HeaderSchema).nullish()
11851
12002
  });
11852
- var DbEndpointWithContextSchema = z31.object({
12003
+ var DbEndpointWithContextSchema = z32.object({
11853
12004
  endpoint: DbEndpointDefinitionSchema,
11854
- authSchemes: z31.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
11855
- globalHeaders: z31.array(HeaderSchema).nullish()
12005
+ authSchemes: z32.record(AuthSchemeIdSchema, ApiAuthSchema).nullish(),
12006
+ globalHeaders: z32.array(HeaderSchema).nullish()
11856
12007
  });
11857
12008
 
11858
12009
  // src/client/APIV1Read.ts
@@ -12430,15 +12581,15 @@ __export(DocsV1Db_exports, {
12430
12581
  });
12431
12582
 
12432
12583
  // src/client/docs-types/db.ts
12433
- import * as z33 from "zod";
12584
+ import * as z34 from "zod";
12434
12585
 
12435
12586
  // src/client/docs-types/db-docsRead.ts
12436
- import * as z32 from "zod";
12437
- var BackgroundSchema2 = z32.discriminatedUnion("type", [
12438
- z32.object({ type: z32.literal("solid"), ...RgbaColorSchema.shape }),
12439
- z32.object({ type: z32.literal("gradient") })
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") })
12440
12591
  ]);
12441
- var ThemeConfigSchema3 = z32.object({
12592
+ var ThemeConfigSchema3 = z33.object({
12442
12593
  logo: FileIdSchema2.optional(),
12443
12594
  backgroundImage: FileIdSchema2.optional(),
12444
12595
  accentPrimary: RgbaColorSchema,
@@ -12460,174 +12611,174 @@ var ThemeConfigSchema3 = z32.object({
12460
12611
  accent11: RgbaColorSchema.optional(),
12461
12612
  accent12: RgbaColorSchema.optional()
12462
12613
  });
12463
- var DarkAndLightModeConfigSchema3 = z32.object({
12614
+ var DarkAndLightModeConfigSchema3 = z33.object({
12464
12615
  dark: ThemeConfigSchema3,
12465
12616
  light: ThemeConfigSchema3
12466
12617
  });
12467
- var ColorsConfigV3Schema3 = z32.discriminatedUnion("type", [
12468
- z32.object({ type: z32.literal("dark"), ...ThemeConfigSchema3.shape }),
12469
- z32.object({ type: z32.literal("light"), ...ThemeConfigSchema3.shape }),
12470
- z32.object({ type: z32.literal("darkAndLight"), ...DarkAndLightModeConfigSchema3.shape })
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 })
12471
12622
  ]);
12472
12623
 
12473
12624
  // src/client/docs-types/db.ts
12474
- var DbFileInfoSchema = z33.object({
12475
- s3Key: z33.string()
12476
- });
12477
- var DbImageFileInfoSchema = z33.object({
12478
- s3Key: z33.string(),
12479
- width: z33.number(),
12480
- height: z33.number(),
12481
- blurDataUrl: z33.string().optional(),
12482
- alt: z33.string().optional()
12483
- });
12484
- var DbFileInfoV2Schema = z33.discriminatedUnion("type", [
12485
- z33.object({ type: z33.literal("s3Key"), ...DbFileInfoSchema.shape }),
12486
- z33.object({ type: z33.literal("image"), ...DbImageFileInfoSchema.shape })
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 })
12487
12638
  ]);
12488
- var NavigationTabGroupSchema3 = z33.lazy(
12489
- () => z33.object({
12490
- title: z33.string(),
12491
- icon: z33.string().optional(),
12492
- items: z33.array(NavigationItemSchema3),
12493
- urlSlug: z33.string(),
12494
- skipUrlSlug: z33.boolean().optional()
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()
12495
12646
  })
12496
12647
  );
12497
- var NavigationTabSchema3 = z33.union([NavigationTabGroupSchema3, NavigationTabLinkSchema]);
12498
- var NavigationTabV2Schema2 = z33.lazy(
12499
- () => z33.discriminatedUnion("type", [
12500
- z33.object({
12501
- type: z33.literal("group"),
12502
- title: z33.string(),
12503
- icon: z33.string().optional(),
12504
- items: z33.array(NavigationItemSchema3),
12505
- urlSlug: z33.string(),
12506
- skipUrlSlug: z33.boolean().optional()
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()
12507
12658
  }),
12508
- z33.object({ type: z33.literal("link"), ...NavigationTabLinkSchema.shape }),
12509
- z33.object({ type: z33.literal("changelog"), ...ChangelogSectionSchema.shape }),
12510
- z33.object({ type: z33.literal("changelogV3"), ...ChangelogSectionV3Schema.shape })
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 })
12511
12662
  ])
12512
12663
  );
12513
- var ApiSectionSchema3 = z33.object({
12514
- title: z33.string(),
12515
- icon: z33.string().optional(),
12664
+ var ApiSectionSchema3 = z34.object({
12665
+ title: z34.string(),
12666
+ icon: z34.string().optional(),
12516
12667
  api: ApiDefinitionIdSchema2,
12517
- urlSlug: z33.string(),
12518
- skipUrlSlug: z33.boolean(),
12668
+ urlSlug: z34.string(),
12669
+ skipUrlSlug: z34.boolean(),
12519
12670
  artifacts: ApiArtifactsSchema.optional(),
12520
- showErrors: z33.boolean().optional(),
12671
+ showErrors: z34.boolean().optional(),
12521
12672
  changelog: ChangelogSectionSchema.optional(),
12522
- hidden: z33.boolean().optional(),
12523
- fullSlug: z33.array(z33.string()).optional(),
12673
+ hidden: z34.boolean().optional(),
12674
+ fullSlug: z34.array(z34.string()).optional(),
12524
12675
  navigation: ApiNavigationConfigRootSchema2.optional(),
12525
- longScrolling: z33.boolean().optional(),
12526
- flattened: z33.boolean().optional()
12527
- });
12528
- var DocsSectionSchema3 = z33.lazy(
12529
- () => z33.object({
12530
- title: z33.string(),
12531
- icon: z33.string().optional(),
12532
- items: z33.array(NavigationItemSchema3),
12533
- urlSlug: z33.string(),
12534
- skipUrlSlug: z33.boolean(),
12535
- collapsed: z33.union([z33.boolean(), z33.literal("open-by-default")]),
12536
- collapsible: z33.boolean().optional(),
12537
- collapsedByDefault: z33.boolean().optional(),
12538
- hidden: z33.boolean().optional(),
12539
- fullSlug: z33.array(z33.string()).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(),
12540
12691
  overviewPageId: PageIdSchema2.optional()
12541
12692
  })
12542
12693
  );
12543
- var NavigationItemSchema3 = z33.lazy(
12544
- () => z33.discriminatedUnion("type", [
12545
- z33.object({
12546
- type: z33.literal("page"),
12694
+ var NavigationItemSchema3 = z34.lazy(
12695
+ () => z34.discriminatedUnion("type", [
12696
+ z34.object({
12697
+ type: z34.literal("page"),
12547
12698
  ...PageMetadataSchema.shape
12548
12699
  }),
12549
- z33.object({
12550
- type: z33.literal("api"),
12700
+ z34.object({
12701
+ type: z34.literal("api"),
12551
12702
  ...ApiSectionSchema3.shape
12552
12703
  }),
12553
- z33.object({
12554
- type: z33.literal("apiV2"),
12704
+ z34.object({
12705
+ type: z34.literal("apiV2"),
12555
12706
  ...ApiSectionV2Schema.shape
12556
12707
  }),
12557
- z33.object({
12558
- type: z33.literal("section"),
12559
- title: z33.string(),
12560
- icon: z33.string().optional(),
12561
- items: z33.array(NavigationItemSchema3),
12562
- urlSlug: z33.string(),
12563
- skipUrlSlug: z33.boolean(),
12564
- collapsed: z33.union([z33.boolean(), z33.literal("open-by-default")]),
12565
- collapsible: z33.boolean().optional(),
12566
- collapsedByDefault: z33.boolean().optional(),
12567
- hidden: z33.boolean().optional(),
12568
- fullSlug: z33.array(z33.string()).optional(),
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(),
12569
12720
  overviewPageId: PageIdSchema2.optional()
12570
12721
  }),
12571
- z33.object({
12572
- type: z33.literal("link"),
12722
+ z34.object({
12723
+ type: z34.literal("link"),
12573
12724
  ...LinkMetadataSchema.shape
12574
12725
  }),
12575
- z33.object({
12576
- type: z33.literal("changelog"),
12726
+ z34.object({
12727
+ type: z34.literal("changelog"),
12577
12728
  ...ChangelogSectionSchema.shape
12578
12729
  }),
12579
- z33.object({
12580
- type: z33.literal("changelogV3"),
12730
+ z34.object({
12731
+ type: z34.literal("changelogV3"),
12581
12732
  ...ChangelogSectionV3Schema.shape
12582
12733
  })
12583
12734
  ])
12584
12735
  );
12585
- var UnversionedTabbedNavigationConfigSchema3 = z33.object({
12586
- tabs: z33.array(NavigationTabSchema3).optional(),
12587
- tabsV2: z33.array(NavigationTabV2Schema2).optional(),
12736
+ var UnversionedTabbedNavigationConfigSchema3 = z34.object({
12737
+ tabs: z34.array(NavigationTabSchema3).optional(),
12738
+ tabsV2: z34.array(NavigationTabV2Schema2).optional(),
12588
12739
  landingPage: PageMetadataSchema.optional()
12589
12740
  });
12590
- var UnversionedUntabbedNavigationConfigSchema3 = z33.object({
12591
- items: z33.array(NavigationItemSchema3),
12741
+ var UnversionedUntabbedNavigationConfigSchema3 = z34.object({
12742
+ items: z34.array(NavigationItemSchema3),
12592
12743
  landingPage: PageMetadataSchema.optional()
12593
12744
  });
12594
- var UnversionedNavigationConfigSchema3 = z33.union([
12745
+ var UnversionedNavigationConfigSchema3 = z34.union([
12595
12746
  UnversionedTabbedNavigationConfigSchema3,
12596
12747
  UnversionedUntabbedNavigationConfigSchema3
12597
12748
  ]);
12598
- var VersionedNavigationConfigDataSchema3 = z33.object({
12749
+ var VersionedNavigationConfigDataSchema3 = z34.object({
12599
12750
  version: VersionIdSchema2,
12600
- urlSlug: z33.string().optional(),
12751
+ urlSlug: z34.string().optional(),
12601
12752
  availability: AvailabilitySchema2.optional(),
12602
12753
  config: UnversionedNavigationConfigSchema3
12603
12754
  });
12604
- var VersionedNavigationConfigSchema3 = z33.object({
12605
- versions: z33.array(VersionedNavigationConfigDataSchema3)
12755
+ var VersionedNavigationConfigSchema3 = z34.object({
12756
+ versions: z34.array(VersionedNavigationConfigDataSchema3)
12606
12757
  });
12607
- var NavigationConfigSchema3 = z33.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
12608
- var DocsDbConfigSchema = z33.object({
12609
- title: z33.string().optional(),
12758
+ var NavigationConfigSchema3 = z34.union([UnversionedNavigationConfigSchema3, VersionedNavigationConfigSchema3]);
12759
+ var DocsDbConfigSchema = z34.object({
12760
+ title: z34.string().optional(),
12610
12761
  defaultLanguage: ProgrammingLanguageSchema.optional(),
12611
- languages: z33.array(LanguageSchema).optional(),
12762
+ languages: z34.array(LanguageSchema).optional(),
12612
12763
  translations: DocsTranslationsConfigSchema.optional(),
12613
12764
  announcement: AnnouncementConfigSchema.optional(),
12614
12765
  navigation: NavigationConfigSchema3.optional(),
12615
- root: z33.custom().optional(),
12616
- navbarLinks: z33.array(NavbarLinkSchema).optional(),
12617
- footerLinks: z33.array(FooterLinkSchema).optional(),
12618
- hideNavLinks: z33.boolean().optional(),
12766
+ root: z34.custom().optional(),
12767
+ navbarLinks: z34.array(NavbarLinkSchema).optional(),
12768
+ footerLinks: z34.array(FooterLinkSchema).optional(),
12769
+ hideNavLinks: z34.boolean().optional(),
12619
12770
  logoHeight: HeightSchema.optional(),
12620
12771
  logoHref: UrlSchema2.optional(),
12621
- logoRightText: z33.string().optional(),
12772
+ logoRightText: z34.string().optional(),
12622
12773
  favicon: FileIdSchema2.optional(),
12623
12774
  agents: AgentsConfigSchema.optional(),
12624
12775
  metadata: MetadataConfigSchema.optional(),
12625
- redirects: z33.array(RedirectConfigSchema).optional(),
12776
+ redirects: z34.array(RedirectConfigSchema).optional(),
12626
12777
  backgroundImage: FileIdSchema2.optional(),
12627
12778
  colorsV3: ColorsConfigV3Schema3.optional(),
12628
12779
  layout: DocsLayoutConfigSchema.optional(),
12629
12780
  theme: DocsThemeConfigSchema.optional(),
12630
- globalTheme: z33.string().optional(),
12781
+ globalTheme: z34.string().optional(),
12631
12782
  settings: DocsSettingsConfigSchema.optional(),
12632
12783
  typographyV2: DocsTypographyConfigV2Schema.optional(),
12633
12784
  analyticsConfig: AnalyticsConfigSchema.optional(),
@@ -12637,40 +12788,40 @@ var DocsDbConfigSchema = z33.object({
12637
12788
  aiChatConfig: AIChatConfigSchema.optional(),
12638
12789
  pageActions: PageActionsConfigSchema.optional(),
12639
12790
  editThisPageLaunch: EditThisPageLaunchSchema.optional(),
12640
- header: z33.string().optional(),
12641
- footer: z33.string().optional(),
12791
+ header: z34.string().optional(),
12792
+ footer: z34.string().optional(),
12642
12793
  logo: FileIdSchema2.optional(),
12643
12794
  logoV2: ThemedFileIdSchema.optional(),
12644
12795
  colors: ColorsConfigSchema.optional(),
12645
12796
  colorsV2: ColorsConfigV2Schema.optional(),
12646
12797
  typography: DocsTypographyConfigSchema.optional()
12647
12798
  });
12648
- var DocsDefinitionDbV1Schema = z33.object({
12649
- pages: z33.record(PageIdSchema2, PageContentSchema),
12650
- referencedApis: z33.array(ApiDefinitionIdSchema2),
12651
- files: z33.record(FileIdSchema2, DbFileInfoSchema),
12799
+ var DocsDefinitionDbV1Schema = z34.object({
12800
+ pages: z34.record(PageIdSchema2, PageContentSchema),
12801
+ referencedApis: z34.array(ApiDefinitionIdSchema2),
12802
+ files: z34.record(FileIdSchema2, DbFileInfoSchema),
12652
12803
  config: DocsDbConfigSchema,
12653
12804
  colors: ColorsConfigSchema.optional()
12654
12805
  });
12655
- var DocsDefinitionDbV2Schema = z33.object({
12656
- pages: z33.record(PageIdSchema2, PageContentSchema),
12657
- referencedApis: z33.array(ApiDefinitionIdSchema2),
12658
- files: z33.record(FileIdSchema2, DbFileInfoSchema),
12806
+ var DocsDefinitionDbV2Schema = z34.object({
12807
+ pages: z34.record(PageIdSchema2, PageContentSchema),
12808
+ referencedApis: z34.array(ApiDefinitionIdSchema2),
12809
+ files: z34.record(FileIdSchema2, DbFileInfoSchema),
12659
12810
  config: DocsDbConfigSchema,
12660
12811
  colors: ColorsConfigSchema.optional(),
12661
12812
  typography: DocsTypographyConfigSchema.optional()
12662
12813
  });
12663
- var DocsDefinitionDbV3Schema = z33.object({
12664
- pages: z33.record(PageIdSchema2, PageContentSchema),
12665
- referencedApis: z33.array(ApiDefinitionIdSchema2),
12666
- files: z33.record(FileIdSchema2, DbFileInfoV2Schema),
12814
+ var DocsDefinitionDbV3Schema = z34.object({
12815
+ pages: z34.record(PageIdSchema2, PageContentSchema),
12816
+ referencedApis: z34.array(ApiDefinitionIdSchema2),
12817
+ files: z34.record(FileIdSchema2, DbFileInfoV2Schema),
12667
12818
  config: DocsDbConfigSchema,
12668
- jsFiles: z33.record(z33.string(), z33.string()).optional()
12819
+ jsFiles: z34.record(z34.string(), z34.string()).optional()
12669
12820
  });
12670
- var DocsDefinitionDbSchema = z33.discriminatedUnion("type", [
12671
- z33.object({ type: z33.literal("v1"), ...DocsDefinitionDbV1Schema.shape }),
12672
- z33.object({ type: z33.literal("v2"), ...DocsDefinitionDbV2Schema.shape }),
12673
- z33.object({ type: z33.literal("v3"), ...DocsDefinitionDbV3Schema.shape })
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 })
12674
12825
  ]);
12675
12826
 
12676
12827
  // src/client/DocsV1Read.ts
@@ -13445,100 +13596,100 @@ __export(DocsLatest_exports, {
13445
13596
  });
13446
13597
 
13447
13598
  // src/client/docs-types/latest.ts
13448
- import * as z34 from "zod";
13449
- var StringOrStringListSchema = z34.union([z34.string(), z34.array(z34.string())]);
13450
- var TwitterCardSettingSchema2 = z34.enum(["summary", "summary_large_image", "app", "player"]);
13451
- var JsonLdBreadcrumbListElementSchema = z34.object({
13452
- "@type": z34.literal("ListItem"),
13453
- position: z34.number(),
13454
- name: z34.string(),
13455
- item: z34.string().optional()
13456
- });
13457
- var JsonLdBreadcrumbListSchema = z34.object({
13458
- "@context": z34.literal("https://schema.org"),
13459
- "@type": z34.literal("BreadcrumbList"),
13460
- itemListElement: z34.array(JsonLdBreadcrumbListElementSchema)
13461
- });
13462
- var WithJsonLdBreadcrumbsSchema = z34.object({
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({
13463
13614
  "jsonld:breadcrumb": JsonLdBreadcrumbListSchema.optional()
13464
13615
  });
13465
- var WithMetadataConfigSchema = z34.object({
13466
- "og:site_name": z34.string().optional(),
13467
- "og:title": z34.string().optional(),
13468
- "og:description": z34.string().optional(),
13469
- "og:url": z34.string().optional(),
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(),
13470
13621
  "og:image": FileIdOrUrlSchema.optional(),
13471
- "og:image:width": z34.number().optional(),
13472
- "og:image:height": z34.number().optional(),
13473
- "og:locale": z34.string().optional(),
13622
+ "og:image:width": z35.number().optional(),
13623
+ "og:image:height": z35.number().optional(),
13624
+ "og:locale": z35.string().optional(),
13474
13625
  "og:logo": FileIdOrUrlSchema.optional(),
13475
- "twitter:title": z34.string().optional(),
13476
- "twitter:description": z34.string().optional(),
13477
- "twitter:handle": z34.string().optional(),
13626
+ "twitter:title": z35.string().optional(),
13627
+ "twitter:description": z35.string().optional(),
13628
+ "twitter:handle": z35.string().optional(),
13478
13629
  "twitter:image": FileIdOrUrlSchema.optional(),
13479
- "twitter:site": z34.string().optional(),
13480
- "twitter:url": z34.string().optional(),
13630
+ "twitter:site": z35.string().optional(),
13631
+ "twitter:url": z35.string().optional(),
13481
13632
  "twitter:card": TwitterCardSettingSchema2.optional(),
13482
13633
  "og:background-image": FileIdOrUrlSchema.optional(),
13483
- "og:dynamic": z34.boolean().optional(),
13634
+ "og:dynamic": z35.boolean().optional(),
13484
13635
  "og:dynamic:background-image": FileIdOrUrlSchema.optional(),
13485
- "og:dynamic:text-color": z34.string().optional(),
13486
- "og:dynamic:background-color": z34.string().optional(),
13487
- "og:dynamic:show-logo": z34.boolean().optional(),
13488
- "og:dynamic:show-section": z34.boolean().optional(),
13489
- "og:dynamic:show-description": z34.boolean().optional(),
13490
- "og:dynamic:show-url": z34.boolean().optional(),
13491
- "og:dynamic:show-gradient": z34.boolean().optional(),
13492
- noindex: z34.boolean().optional(),
13493
- nofollow: z34.boolean().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(),
13494
13645
  keywords: StringOrStringListSchema.optional()
13495
13646
  });
13496
- var LayoutSchema = z34.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
13497
- var LogoConfigurationSchema = z34.object({
13647
+ var LayoutSchema = z35.enum(["guide", "overview", "reference", "page", "custom", "classic", "timeline"]);
13648
+ var LogoConfigurationSchema = z35.object({
13498
13649
  light: FileIdOrUrlSchema.optional(),
13499
13650
  dark: FileIdOrUrlSchema.optional()
13500
13651
  });
13501
- var LogoSchema = z34.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
13502
- var BreadcrumbItemSchema = z34.object({
13503
- title: z34.string(),
13504
- pointsTo: z34.string().optional()
13652
+ var LogoSchema = z35.union([FileIdOrUrlSchema, LogoConfigurationSchema]);
13653
+ var BreadcrumbItemSchema = z35.object({
13654
+ title: z35.string(),
13655
+ pointsTo: z35.string().optional()
13505
13656
  });
13506
13657
  var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSchema).merge(
13507
- z34.object({
13658
+ z35.object({
13508
13659
  layout: LayoutSchema.optional(),
13509
- slug: z34.string().optional(),
13510
- title: z34.string().optional(),
13511
- headline: z34.string().optional(),
13512
- description: z34.string().optional(),
13513
- subtitle: z34.string().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(),
13514
13665
  logo: LogoSchema.optional(),
13515
13666
  image: FileIdOrUrlSchema.optional(),
13516
- "edit-this-page-url": z34.string().optional(),
13517
- "hide-toc": z34.boolean().optional(),
13518
- "force-toc": z34.boolean().optional(),
13519
- "hide-nav-links": z34.boolean().optional(),
13520
- "max-toc-depth": z34.number().optional(),
13521
- "hide-feedback": z34.boolean().optional(),
13522
- "hide-page-actions": z34.boolean().optional(),
13523
- "no-image-zoom": z34.boolean().optional(),
13524
- breadcrumb: z34.array(BreadcrumbItemSchema).optional(),
13525
- excerpt: z34.string().optional(),
13526
- "canonical-url": z34.string().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(),
13527
13678
  tags: StringOrStringListSchema.optional(),
13528
- "last-updated": z34.string().optional(),
13679
+ "last-updated": z35.string().optional(),
13529
13680
  /**
13530
13681
  * Arbitrary author-defined metadata that is copied onto this page's search
13531
13682
  * records, so it can be faceted and filtered on by full path
13532
13683
  * (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
13533
13684
  */
13534
- "search-metadata": z34.record(z34.unknown()).optional()
13685
+ "search-metadata": z35.record(z35.unknown()).optional()
13535
13686
  })
13536
13687
  );
13537
- var ResolvedMdxSchema = z34.object({
13538
- code: z34.string(),
13688
+ var ResolvedMdxSchema = z35.object({
13689
+ code: z35.string(),
13539
13690
  frontmatter: FrontmatterSchema,
13540
- scope: z34.record(z34.string(), z34.unknown()),
13541
- jsxRefs: z34.array(z34.string()).optional()
13691
+ scope: z35.record(z35.string(), z35.unknown()),
13692
+ jsxRefs: z35.array(z35.string()).optional()
13542
13693
  });
13543
13694
 
13544
13695
  // src/client/DocsV1Commons.ts
@@ -13978,9 +14129,9 @@ function generateHttpResponseBodyExample(type, resolveTypeById) {
13978
14129
  }
13979
14130
  }
13980
14131
  }
13981
- function generateExampleObject(object33, resolveTypeById, ignoreOptionals, visited, depth) {
14132
+ function generateExampleObject(object34, resolveTypeById, ignoreOptionals, visited, depth) {
13982
14133
  const example = {};
13983
- for (const property of getAllObjectProperties(object33, resolveTypeById)) {
14134
+ for (const property of getAllObjectProperties(object34, resolveTypeById)) {
13984
14135
  const value = generateExampleFromTypeReference(
13985
14136
  property.valueType,
13986
14137
  resolveTypeById,
@@ -14164,10 +14315,10 @@ function generateExamplePrimitive(reference) {
14164
14315
  return reference.name;
14165
14316
  }
14166
14317
  }
14167
- function getAllObjectProperties(object33, resolveTypeById) {
14318
+ function getAllObjectProperties(object34, resolveTypeById) {
14168
14319
  return [
14169
- ...object33.properties,
14170
- ...object33.extends.flatMap((typeId) => {
14320
+ ...object34.properties,
14321
+ ...object34.extends.flatMap((typeId) => {
14171
14322
  let type = resolveTypeById(typeId);
14172
14323
  if (type == null) {
14173
14324
  return [];