@fern-api/fern-api-dev 5.116.0 → 5.117.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.cjs +1397 -254
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -54336,6 +54336,13 @@ var init_WithEnvironmentVariable = __esm({
54336
54336
  }
54337
54337
  });
54338
54338
 
54339
+ // ../fern-definition/schema/lib/schemas/api/resources/auth/types/WithPlaygroundDocsSchema.js
54340
+ var init_WithPlaygroundDocsSchema = __esm({
54341
+ "../fern-definition/schema/lib/schemas/api/resources/auth/types/WithPlaygroundDocsSchema.js"() {
54342
+ "use strict";
54343
+ }
54344
+ });
54345
+
54339
54346
  // ../fern-definition/schema/lib/schemas/api/resources/auth/types/index.js
54340
54347
  var init_types2 = __esm({
54341
54348
  "../fern-definition/schema/lib/schemas/api/resources/auth/types/index.js"() {
@@ -54371,6 +54378,7 @@ var init_types2 = __esm({
54371
54378
  init_TokenBearerAuthSchema();
54372
54379
  init_WithAuthSchema();
54373
54380
  init_WithEnvironmentVariable();
54381
+ init_WithPlaygroundDocsSchema();
54374
54382
  }
54375
54383
  });
54376
54384
 
@@ -58336,6 +58344,18 @@ var init_AuthVariable2 = __esm({
58336
58344
  }
58337
58345
  });
58338
58346
 
58347
+ // ../fern-definition/schema/lib/schemas/serialization/resources/auth/types/WithPlaygroundDocsSchema.js
58348
+ var WithPlaygroundDocsSchema;
58349
+ var init_WithPlaygroundDocsSchema2 = __esm({
58350
+ "../fern-definition/schema/lib/schemas/serialization/resources/auth/types/WithPlaygroundDocsSchema.js"() {
58351
+ "use strict";
58352
+ init_core();
58353
+ WithPlaygroundDocsSchema = schemas_exports.object({
58354
+ "playground-docs": schemas_exports.string().optional()
58355
+ });
58356
+ }
58357
+ });
58358
+
58339
58359
  // ../fern-definition/schema/lib/schemas/serialization/resources/auth/types/BasicAuthSchemeSchema.js
58340
58360
  var BasicAuthSchemeSchema;
58341
58361
  var init_BasicAuthSchemeSchema2 = __esm({
@@ -58344,11 +58364,12 @@ var init_BasicAuthSchemeSchema2 = __esm({
58344
58364
  init_core();
58345
58365
  init_WithDocsSchema2();
58346
58366
  init_AuthVariable2();
58367
+ init_WithPlaygroundDocsSchema2();
58347
58368
  BasicAuthSchemeSchema = schemas_exports.object({
58348
58369
  scheme: schemas_exports.stringLiteral("basic"),
58349
58370
  username: AuthVariable.optional(),
58350
58371
  password: AuthVariable.optional()
58351
- }).extend(WithDocsSchema);
58372
+ }).extend(WithDocsSchema).extend(WithPlaygroundDocsSchema);
58352
58373
  }
58353
58374
  });
58354
58375
 
@@ -58400,10 +58421,11 @@ var init_InferredBearerAuthSchema2 = __esm({
58400
58421
  init_core();
58401
58422
  init_WithDocsSchema2();
58402
58423
  init_InferredGetTokenEndpointSchema2();
58424
+ init_WithPlaygroundDocsSchema2();
58403
58425
  InferredBearerAuthSchema = schemas_exports.object({
58404
58426
  scheme: schemas_exports.stringLiteral("bearer"),
58405
58427
  "get-token": InferredGetTokenEndpointSchema
58406
- }).extend(WithDocsSchema);
58428
+ }).extend(WithDocsSchema).extend(WithPlaygroundDocsSchema);
58407
58429
  }
58408
58430
  });
58409
58431
 
@@ -58415,10 +58437,11 @@ var init_TokenBearerAuthSchema2 = __esm({
58415
58437
  init_core();
58416
58438
  init_WithDocsSchema2();
58417
58439
  init_AuthVariable2();
58440
+ init_WithPlaygroundDocsSchema2();
58418
58441
  TokenBearerAuthSchema = schemas_exports.object({
58419
58442
  scheme: schemas_exports.stringLiteral("bearer"),
58420
58443
  token: AuthVariable.optional()
58421
- }).extend(WithDocsSchema);
58444
+ }).extend(WithDocsSchema).extend(WithPlaygroundDocsSchema);
58422
58445
  }
58423
58446
  });
58424
58447
 
@@ -58443,12 +58466,13 @@ var init_HeaderAuthSchemeSchema2 = __esm({
58443
58466
  init_WithDocsSchema2();
58444
58467
  init_WithName2();
58445
58468
  init_WithEnvironmentVariable2();
58469
+ init_WithPlaygroundDocsSchema2();
58446
58470
  HeaderAuthSchemeSchema = schemas_exports.object({
58447
58471
  header: schemas_exports.string(),
58448
58472
  type: schemas_exports.string().optional(),
58449
58473
  prefix: schemas_exports.string().optional(),
58450
58474
  placeholder: schemas_exports.string().optional()
58451
- }).extend(WithEnvironmentVariable).extend(WithName).extend(WithDocsSchema);
58475
+ }).extend(WithEnvironmentVariable).extend(WithName).extend(WithDocsSchema).extend(WithPlaygroundDocsSchema);
58452
58476
  }
58453
58477
  });
58454
58478
 
@@ -58607,6 +58631,7 @@ var init_OAuthSchemeSchema2 = __esm({
58607
58631
  init_OAuthPkceSchema2();
58608
58632
  init_OAuthRefreshTokenEndpointSchema2();
58609
58633
  init_RedirectUriSchema2();
58634
+ init_WithPlaygroundDocsSchema2();
58610
58635
  OAuthSchemeSchema = schemas_exports.object({
58611
58636
  scheme: schemas_exports.stringLiteral("oauth"),
58612
58637
  type: OAuthFlowTypeSchema2,
@@ -58630,7 +58655,7 @@ var init_OAuthSchemeSchema2 = __esm({
58630
58655
  "device-authorization-parameters": schemas_exports.record(schemas_exports.string(), schemas_exports.string()).optional(),
58631
58656
  "token-parameters": schemas_exports.record(schemas_exports.string(), schemas_exports.string()).optional(),
58632
58657
  "refresh-parameters": schemas_exports.record(schemas_exports.string(), schemas_exports.string()).optional()
58633
- }).extend(WithDocsSchema);
58658
+ }).extend(WithDocsSchema).extend(WithPlaygroundDocsSchema);
58634
58659
  }
58635
58660
  });
58636
58661
 
@@ -58714,6 +58739,7 @@ var init_types22 = __esm({
58714
58739
  init_TokenBearerAuthSchema2();
58715
58740
  init_WithAuthSchema2();
58716
58741
  init_WithEnvironmentVariable2();
58742
+ init_WithPlaygroundDocsSchema2();
58717
58743
  }
58718
58744
  });
58719
58745
 
@@ -58750,7 +58776,8 @@ __export(auth_exports2, {
58750
58776
  RedirectUriWithBackupPortsSchema: () => RedirectUriWithBackupPortsSchema,
58751
58777
  TokenBearerAuthSchema: () => TokenBearerAuthSchema,
58752
58778
  WithAuthSchema: () => WithAuthSchema,
58753
- WithEnvironmentVariable: () => WithEnvironmentVariable
58779
+ WithEnvironmentVariable: () => WithEnvironmentVariable,
58780
+ WithPlaygroundDocsSchema: () => WithPlaygroundDocsSchema
58754
58781
  });
58755
58782
  var init_auth2 = __esm({
58756
58783
  "../fern-definition/schema/lib/schemas/serialization/resources/auth/index.js"() {
@@ -62025,6 +62052,7 @@ __export(serialization_exports, {
62025
62052
  WithHeadersSchema: () => WithHeadersSchema,
62026
62053
  WithMethodName: () => WithMethodName,
62027
62054
  WithName: () => WithName,
62055
+ WithPlaygroundDocsSchema: () => WithPlaygroundDocsSchema,
62028
62056
  WithValidation: () => WithValidation,
62029
62057
  auth: () => auth_exports2,
62030
62058
  availability: () => availability_exports2,
@@ -73637,7 +73665,8 @@ var init_BaseAuthScheme2 = __esm({
73637
73665
  init_WithDocs3();
73638
73666
  init_AuthSchemeKey4();
73639
73667
  BaseAuthScheme = schemas_exports3.objectWithoutOptionalProperties({
73640
- key: AuthSchemeKey2
73668
+ key: AuthSchemeKey2,
73669
+ playgroundDocs: schemas_exports3.string().optional()
73641
73670
  }).extend(WithDocs);
73642
73671
  }
73643
73672
  });
@@ -214261,7 +214290,7 @@ var require_utc = __commonJS({
214261
214290
  }
214262
214291
  });
214263
214292
 
214264
- // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.102-07ddc01b9b_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
214293
+ // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.122-10cd6e7ad7_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
214265
214294
  function assertNever3(x4) {
214266
214295
  throw new Error("Unexpected value: " + JSON.stringify(x4));
214267
214296
  }
@@ -214555,16 +214584,16 @@ function selectDefaultValue(shape, defaults3) {
214555
214584
  return void 0;
214556
214585
  }
214557
214586
  }
214558
- function unwrapObjectType(object33, types4, parentVisitedTypeIds) {
214559
- const cached2 = UnwrapObjectTypeCache.get(object33);
214587
+ function unwrapObjectType(object35, types4, parentVisitedTypeIds) {
214588
+ const cached2 = UnwrapObjectTypeCache.get(object35);
214560
214589
  if (cached2 != null) {
214561
214590
  return cached2;
214562
214591
  }
214563
- const directProperties = object33.properties;
214564
- const extraProperties = object33.extraProperties;
214592
+ const directProperties = object35.properties;
214593
+ const extraProperties = object35.extraProperties;
214565
214594
  const descriptions = [];
214566
214595
  const visitedTypeIds = /* @__PURE__ */ new Set();
214567
- const extendedProperties = object33.extends.flatMap((typeId) => {
214596
+ const extendedProperties = object35.extends.flatMap((typeId) => {
214568
214597
  if (parentVisitedTypeIds?.has(typeId)) {
214569
214598
  console.error(`Circular reference detected. Cannot extend type=${typeId}`);
214570
214599
  return [];
@@ -214611,7 +214640,16 @@ function unwrapObjectType(object33, types4, parentVisitedTypeIds) {
214611
214640
  };
214612
214641
  });
214613
214642
  });
214614
- if (extendedProperties.length === 0) {
214643
+ const propertyKeys = new Set(object35.properties.map((property24) => property24.key));
214644
+ const seenExtendedKeys = /* @__PURE__ */ new Set();
214645
+ const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
214646
+ if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
214647
+ return false;
214648
+ }
214649
+ seenExtendedKeys.add(extendedProperty.key);
214650
+ return true;
214651
+ });
214652
+ if (filteredExtendedProperties.length === 0) {
214615
214653
  const properties22 = sortBy(
214616
214654
  [...directProperties],
214617
214655
  [
@@ -214625,18 +214663,9 @@ function unwrapObjectType(object33, types4, parentVisitedTypeIds) {
214625
214663
  extraProperties,
214626
214664
  visitedTypeIds
214627
214665
  };
214628
- UnwrapObjectTypeCache.set(object33, toRet2);
214666
+ UnwrapObjectTypeCache.set(object35, toRet2);
214629
214667
  return toRet2;
214630
214668
  }
214631
- const propertyKeys = new Set(object33.properties.map((property24) => property24.key));
214632
- const seenExtendedKeys = /* @__PURE__ */ new Set();
214633
- const filteredExtendedProperties = extendedProperties.filter((extendedProperty) => {
214634
- if (propertyKeys.has(extendedProperty.key) || seenExtendedKeys.has(extendedProperty.key)) {
214635
- return false;
214636
- }
214637
- seenExtendedKeys.add(extendedProperty.key);
214638
- return true;
214639
- });
214640
214669
  const properties7 = sortBy(
214641
214670
  [...directProperties, ...filteredExtendedProperties],
214642
214671
  [
@@ -214646,7 +214675,7 @@ function unwrapObjectType(object33, types4, parentVisitedTypeIds) {
214646
214675
  ]
214647
214676
  );
214648
214677
  const toRet = { properties: properties7, descriptions, extraProperties, visitedTypeIds };
214649
- UnwrapObjectTypeCache.set(object33, toRet);
214678
+ UnwrapObjectTypeCache.set(object35, toRet);
214650
214679
  return toRet;
214651
214680
  }
214652
214681
  function unwrapDiscriminatedUnionVariant(union122, variant, types4) {
@@ -215017,6 +215046,121 @@ function collectTypeDefinitionTreeForObjectProperty(property24, types4, rootPath
215017
215046
  ])
215018
215047
  ];
215019
215048
  }
215049
+ function shapeReferences(shape, typeIds) {
215050
+ let found = false;
215051
+ ApiTypeIdVisitor.visitTypeShape(shape, (typeId) => {
215052
+ if (typeIds.has(typeId)) {
215053
+ found = true;
215054
+ }
215055
+ });
215056
+ return found;
215057
+ }
215058
+ function definitionReferences(definition3, typeIds) {
215059
+ return shapeReferences(definition3.shape, typeIds);
215060
+ }
215061
+ function trimTypeDefinitionToReferences(definition3, typeIds) {
215062
+ if (definition3.shape.type !== "object") {
215063
+ return definition3;
215064
+ }
215065
+ const properties7 = definition3.shape.properties.filter(
215066
+ (property24) => shapeReferences(property24.valueShape, typeIds) || (property24.arguments?.some((argument) => shapeReferences(argument.type, typeIds)) ?? false)
215067
+ );
215068
+ return {
215069
+ ...definition3,
215070
+ shape: {
215071
+ ...definition3.shape,
215072
+ properties: properties7,
215073
+ extraProperties: void 0
215074
+ }
215075
+ };
215076
+ }
215077
+ function trimGraphQlOperationToReferences(operation, typeIds) {
215078
+ const args = (operation.arguments ?? []).filter((argument) => shapeReferences(argument.type, typeIds));
215079
+ const isReturnType = shapeReferences(operation.returnType, typeIds);
215080
+ if (args.length === 0 && !isReturnType) {
215081
+ return void 0;
215082
+ }
215083
+ return {
215084
+ ...operation,
215085
+ arguments: args.length > 0 ? args : void 0,
215086
+ examples: void 0,
215087
+ snippets: void 0
215088
+ };
215089
+ }
215090
+ function collectReferencingTypeIds(types4, typeIds) {
215091
+ const referencing = [];
215092
+ for (const [rawId, definition3] of Object.entries(types4)) {
215093
+ const candidateId = rawId;
215094
+ if (typeIds.has(candidateId)) {
215095
+ continue;
215096
+ }
215097
+ if (definitionReferences(definition3, typeIds)) {
215098
+ referencing.push(candidateId);
215099
+ }
215100
+ }
215101
+ return referencing;
215102
+ }
215103
+ function collectGraphqlTypeReferrers(api2, typeId) {
215104
+ const target = /* @__PURE__ */ new Set([typeId]);
215105
+ const referrers = [];
215106
+ for (const [rawId, definition3] of Object.entries(api2.types)) {
215107
+ const candidateId = rawId;
215108
+ if (candidateId === typeId) {
215109
+ continue;
215110
+ }
215111
+ const fields = [];
215112
+ const fieldArguments = [];
215113
+ if (definition3.shape.type === "object") {
215114
+ for (const property24 of definition3.shape.properties) {
215115
+ if (shapeReferences(property24.valueShape, target)) {
215116
+ fields.push(property24.key);
215117
+ }
215118
+ for (const argument of property24.arguments ?? []) {
215119
+ if (shapeReferences(argument.type, target)) {
215120
+ fieldArguments.push({ field: property24.key, argument: argument.name });
215121
+ }
215122
+ }
215123
+ }
215124
+ if (fields.length === 0 && fieldArguments.length === 0) {
215125
+ continue;
215126
+ }
215127
+ } else if (!definitionReferences(definition3, target)) {
215128
+ continue;
215129
+ }
215130
+ referrers.push({
215131
+ type: "type",
215132
+ typeId: candidateId,
215133
+ name: definition3.displayName ?? definition3.name ?? candidateId,
215134
+ fields,
215135
+ fieldArguments,
215136
+ isVariant: fields.length === 0 && fieldArguments.length === 0
215137
+ });
215138
+ }
215139
+ for (const operation of Object.values(api2.graphqlOperations)) {
215140
+ const args = (operation.arguments ?? []).filter((argument) => shapeReferences(argument.type, target)).map((argument) => argument.name);
215141
+ const isReturnType = shapeReferences(operation.returnType, target);
215142
+ if (args.length === 0 && !isReturnType) {
215143
+ continue;
215144
+ }
215145
+ referrers.push({
215146
+ type: "operation",
215147
+ operationId: operation.id,
215148
+ name: operation.displayName ?? operation.name,
215149
+ operationType: operation.operationType,
215150
+ arguments: args,
215151
+ isReturnType
215152
+ });
215153
+ }
215154
+ return referrers;
215155
+ }
215156
+ function getImplementorTypeIds(types4, typeId) {
215157
+ return Object.entries(types4).filter(
215158
+ ([candidateId, candidate]) => candidateId !== typeId && candidate.shape.type === "object" && candidate.shape.extends.includes(typeId)
215159
+ ).sort(([, a3], [, b5]) => displayNameOf(a3).localeCompare(displayNameOf(b5))).map(([candidateId]) => TypeId3(candidateId));
215160
+ }
215161
+ function displayNameOf(type7) {
215162
+ return type7.displayName ?? type7.name;
215163
+ }
215020
215164
  function prune(api2, ...nodes) {
215021
215165
  return ApiDefinitionPruner.from(api2).prune(...nodes);
215022
215166
  }
@@ -215266,6 +215410,34 @@ function createGraphqlContext(node4, apiDefinition) {
215266
215410
  types: api2.types
215267
215411
  };
215268
215412
  }
215413
+ function createGraphqlTypeContext(node4, apiDefinition) {
215414
+ if (!node4) {
215415
+ console.warn("[createGraphqlTypeContext] node is undefined");
215416
+ return void 0;
215417
+ }
215418
+ if (apiDefinition == null) {
215419
+ console.warn(
215420
+ `[createGraphqlTypeContext] apiDefinition is undefined for node id=${node4.id}, typeId=${node4.typeId}`
215421
+ );
215422
+ return void 0;
215423
+ }
215424
+ const api2 = prune(apiDefinition, node4);
215425
+ const type7 = api2.types[node4.typeId];
215426
+ if (!type7) {
215427
+ const availableTypeIds = Object.keys(api2.types);
215428
+ console.warn(
215429
+ `[createGraphqlTypeContext] type not found after pruning. typeId=${node4.typeId}, apiDefinitionId=${node4.apiDefinitionId}, availableTypeIds=[${availableTypeIds.join(", ")}]`
215430
+ );
215431
+ return void 0;
215432
+ }
215433
+ return {
215434
+ node: node4,
215435
+ type: type7,
215436
+ types: api2.types,
215437
+ implementors: getImplementorTypeIds(api2.types, node4.typeId),
215438
+ referencedBy: collectGraphqlTypeReferrers(api2, node4.typeId)
215439
+ };
215440
+ }
215269
215441
  function toColonEndpointPathLiteral(pathParts) {
215270
215442
  return EndpointPathLiteral(
215271
215443
  pathParts.map((part) => part.type === "literal" ? part.value : `:${part.value}`).join("")
@@ -215831,8 +216003,8 @@ function sortKeysByShape(obj, shape, types4) {
215831
216003
  set: ({ itemShape }) => Array.isArray(obj) ? obj.map((o3) => sortKeysByShape(o3, itemShape, types4)) : obj,
215832
216004
  map: ({ valueShape }) => isPlainObject_default2(obj) ? mapValues3(obj, (value2) => sortKeysByShape(value2, valueShape, types4)) : obj,
215833
216005
  unknown: () => obj,
215834
- object: (object33) => {
215835
- const objectProperties = unwrapObjectType(object33, types4).properties;
216006
+ object: (object35) => {
216007
+ const objectProperties = unwrapObjectType(object35, types4).properties;
215836
216008
  return isPlainObject_default2(obj) ? mapValues3(
215837
216009
  sortKeysBy(
215838
216010
  obj,
@@ -216288,6 +216460,42 @@ function generateGraphQlSnippet(context3) {
216288
216460
  snippetCache.set(operation, result);
216289
216461
  return result;
216290
216462
  }
216463
+ function generateGraphQlTypeSdl({
216464
+ name: name2,
216465
+ category,
216466
+ type: type7,
216467
+ types: types4
216468
+ }) {
216469
+ const keyword = SDL_KEYWORD[category];
216470
+ const shape = type7.shape;
216471
+ if (category === "scalar") {
216472
+ return `scalar ${name2}`;
216473
+ }
216474
+ if (category === "union") {
216475
+ const members = shape.type === "undiscriminatedUnion" ? shape.variants.map((variant) => typeShapeToGraphQlType(variant.shape, types4, false)) : shape.type === "discriminatedUnion" ? shape.variants.map((variant) => variant.displayName ?? variant.discriminantValue) : [];
216476
+ return members.length > 0 ? `union ${name2} = ${members.join(" | ")}` : `union ${name2}`;
216477
+ }
216478
+ if (shape.type === "enum") {
216479
+ const values2 = shape.values.map((value2) => ` ${value2.value}`);
216480
+ return `enum ${name2} {
216481
+ ${values2.join("\n")}
216482
+ }`;
216483
+ }
216484
+ if (shape.type === "object") {
216485
+ const implemented = shape.extends.map((typeId) => types4[typeId]).filter((implementedType) => implementedType != null).map((implementedType) => implementedType.displayName ?? unnamespacedName(implementedType.name));
216486
+ const heading4 = implemented.length > 0 ? `${keyword} ${name2} implements ${implemented.join(" & ")}` : `${keyword} ${name2}`;
216487
+ const fields = shape.properties.map((property24) => ` ${objectPropertyToSdlField(property24, types4)}`);
216488
+ return fields.length > 0 ? `${heading4} {
216489
+ ${fields.join("\n")}
216490
+ }` : heading4;
216491
+ }
216492
+ return `${keyword} ${name2}`;
216493
+ }
216494
+ function objectPropertyToSdlField(property24, types4) {
216495
+ const args = property24.arguments ?? [];
216496
+ const argList = args.length > 0 ? `(${args.map((arg) => `${arg.name}: ${typeShapeToGraphQlType(arg.type, types4)}`).join(", ")})` : "";
216497
+ return `${property24.key}${argList}: ${typeShapeToGraphQlType(property24.valueShape, types4)}`;
216498
+ }
216291
216499
  function getOperationKeyword(operationType) {
216292
216500
  switch (operationType) {
216293
216501
  case "QUERY":
@@ -216921,12 +217129,43 @@ function buildSnippetAuth(authScheme) {
216921
217129
  value: "YOUR_API_KEY_HERE"
216922
217130
  };
216923
217131
  case "oAuth":
217132
+ return buildOAuthSnippetAuth();
217133
+ default:
217134
+ return void 0;
217135
+ }
217136
+ }
217137
+ function buildOAuthSnippetAuth() {
217138
+ return {
217139
+ type: "oauth",
217140
+ clientId: "YOUR_CLIENT_ID",
217141
+ clientSecret: "YOUR_CLIENT_SECRET"
217142
+ };
217143
+ }
217144
+ function alignAuthWithSdk(auth8, sdkAuthType) {
217145
+ if (sdkAuthType == null || auth8?.type === sdkAuthType) {
217146
+ return auth8;
217147
+ }
217148
+ switch (sdkAuthType) {
217149
+ case "bearer":
216924
217150
  return {
216925
217151
  type: "bearer",
216926
217152
  token: "YOUR_TOKEN_HERE"
216927
217153
  };
217154
+ case "basic":
217155
+ return {
217156
+ type: "basic",
217157
+ username: "YOUR_USERNAME_HERE",
217158
+ password: "YOUR_PASSWORD_HERE"
217159
+ };
217160
+ case "header":
217161
+ return {
217162
+ type: "header",
217163
+ value: "YOUR_API_KEY_HERE"
217164
+ };
217165
+ case "oauth":
217166
+ return buildOAuthSnippetAuth();
216928
217167
  default:
216929
- return void 0;
217168
+ return auth8;
216930
217169
  }
216931
217170
  }
216932
217171
  function buildSdkSnippetRequest(apiDefinition, endpoint3, example) {
@@ -216959,6 +217198,13 @@ function buildSdkSnippetRequest(apiDefinition, endpoint3, example) {
216959
217198
  method: endpoint3.method
216960
217199
  };
216961
217200
  }
217201
+ function logCriticalErrors(language, result) {
217202
+ for (const error50 of result?.errors ?? []) {
217203
+ if (error50.severity === "CRITICAL") {
217204
+ console.error(`[sdk-snippets] error generating ${language} snippet:`, error50.message);
217205
+ }
217206
+ }
217207
+ }
216962
217208
  function generateSdkSnippets(apiDefinition, endpoint3, example, generators) {
216963
217209
  if (endpoint3.method === "HEAD") {
216964
217210
  return [];
@@ -216970,7 +217216,9 @@ function generateSdkSnippets(apiDefinition, endpoint3, example, generators) {
216970
217216
  continue;
216971
217217
  }
216972
217218
  try {
216973
- const result = generator.generateSync(request7);
217219
+ const auth8 = alignAuthWithSdk(request7.auth, generator.getAuthType?.());
217220
+ const result = generator.generateSync({ ...request7, auth: auth8 });
217221
+ logCriticalErrors(language, result);
216974
217222
  if (result?.snippet) {
216975
217223
  snippets.push({
216976
217224
  name: void 0,
@@ -216982,7 +217230,7 @@ function generateSdkSnippets(apiDefinition, endpoint3, example, generators) {
216982
217230
  });
216983
217231
  }
216984
217232
  } catch (error50) {
216985
- console.error(`Error generating ${language} snippet:`, error50);
217233
+ console.error(`[sdk-snippets] error generating ${language} snippet:`, error50);
216986
217234
  }
216987
217235
  }
216988
217236
  return snippets;
@@ -216997,7 +217245,9 @@ function generateSdkSnippetForLanguage(apiDefinition, endpoint3, example, genera
216997
217245
  }
216998
217246
  const request7 = buildSdkSnippetRequest(apiDefinition, endpoint3, example);
216999
217247
  try {
217000
- const result = generator.generateSync(request7);
217248
+ const auth8 = alignAuthWithSdk(request7.auth, generator.getAuthType?.());
217249
+ const result = generator.generateSync({ ...request7, auth: auth8 });
217250
+ logCriticalErrors(language, result);
217001
217251
  if (result?.snippet) {
217002
217252
  return {
217003
217253
  name: void 0,
@@ -217009,30 +217259,10 @@ function generateSdkSnippetForLanguage(apiDefinition, endpoint3, example, genera
217009
217259
  };
217010
217260
  }
217011
217261
  } catch (error50) {
217012
- console.error(`Error generating ${language} snippet:`, error50);
217262
+ console.error(`[sdk-snippets] error generating ${language} snippet:`, error50);
217013
217263
  }
217014
217264
  return void 0;
217015
217265
  }
217016
- function collectReferencingTypeIdsByTypeId(api2) {
217017
- const byTypeId = /* @__PURE__ */ new Map();
217018
- for (const [rawId, definition3] of Object.entries(api2.types)) {
217019
- const from4 = rawId;
217020
- const seen = /* @__PURE__ */ new Set();
217021
- ApiTypeIdVisitor.visitTypeDefinition(definition3, (to2) => {
217022
- if (to2 === from4 || seen.has(to2) || api2.types[to2] == null) {
217023
- return;
217024
- }
217025
- seen.add(to2);
217026
- const existing = byTypeId.get(to2);
217027
- if (existing == null) {
217028
- byTypeId.set(to2, [from4]);
217029
- } else {
217030
- existing.push(from4);
217031
- }
217032
- });
217033
- }
217034
- return byTypeId;
217035
- }
217036
217266
  function createApiClient(options2) {
217037
217267
  const latestLink = new OpenAPILink(apiLatestContract, {
217038
217268
  url: `${options2.baseUrl}/registry/api/latest`,
@@ -217397,6 +217627,17 @@ function createGitClient(options2) {
217397
217627
  });
217398
217628
  return createORPCClient(link4);
217399
217629
  }
217630
+ function createMcpHostingClient(options2) {
217631
+ const link4 = new OpenAPILink(mcpHostingContract, {
217632
+ url: `${options2.baseUrl}/mcp-hosting`,
217633
+ headers: () => ({
217634
+ Authorization: `Bearer ${options2.token}`,
217635
+ ...options2.headers
217636
+ }),
217637
+ ...options2.fetch != null ? { fetch: options2.fetch } : {}
217638
+ });
217639
+ return createORPCClient(link4);
217640
+ }
217400
217641
  function createPdfExportClient(options2) {
217401
217642
  const link4 = new OpenAPILink(pdfExportContract, {
217402
217643
  url: `${options2.baseUrl}/pdf-export`,
@@ -217495,6 +217736,7 @@ function createFdrORPCClient(options2) {
217495
217736
  versions: createGeneratorVersionsClient(normalizedOptions)
217496
217737
  },
217497
217738
  git: createGitClient(normalizedOptions),
217739
+ mcpHosting: createMcpHostingClient(normalizedOptions),
217498
217740
  slugs: createSlugsClient(normalizedOptions),
217499
217741
  pdfExport: createPdfExportClient(normalizedOptions),
217500
217742
  sdks: createSdksClient(normalizedOptions),
@@ -217771,9 +218013,9 @@ function generateHttpResponseBodyExample(type7, resolveTypeById) {
217771
218013
  }
217772
218014
  }
217773
218015
  }
217774
- function generateExampleObject(object33, resolveTypeById, ignoreOptionals, visited, depth) {
218016
+ function generateExampleObject(object35, resolveTypeById, ignoreOptionals, visited, depth) {
217775
218017
  const example = {};
217776
- for (const property24 of getAllObjectProperties(object33, resolveTypeById)) {
218018
+ for (const property24 of getAllObjectProperties(object35, resolveTypeById)) {
217777
218019
  const value2 = generateExampleFromTypeReference(
217778
218020
  property24.valueType,
217779
218021
  resolveTypeById,
@@ -217957,10 +218199,10 @@ function generateExamplePrimitive(reference4) {
217957
218199
  return reference4.name;
217958
218200
  }
217959
218201
  }
217960
- function getAllObjectProperties(object33, resolveTypeById) {
218202
+ function getAllObjectProperties(object35, resolveTypeById) {
217961
218203
  return [
217962
- ...object33.properties,
217963
- ...object33.extends.flatMap((typeId) => {
218204
+ ...object35.properties,
218205
+ ...object35.extends.flatMap((typeId) => {
217964
218206
  let type7 = resolveTypeById(typeId);
217965
218207
  if (type7 == null) {
217966
218208
  return [];
@@ -220358,17 +220600,26 @@ function withCanonicalLookup(map15) {
220358
220600
  map15.has = (key2) => originalHas(key2) || originalHas(canonicalSlugKey(key2));
220359
220601
  return map15;
220360
220602
  }
220361
- function graphQlTypeKey(apiDefinitionId, typeId, versionId) {
220362
- return `${apiDefinitionId}:${versionId ?? ""}:${typeId}`;
220603
+ function graphQlTypeKey(apiDefinitionId, typeId, scope = {}) {
220604
+ return [apiDefinitionId, scope.productId ?? "", scope.variantId ?? "", scope.versionId ?? "", typeId].join(":");
220363
220605
  }
220364
- function versionIdOf(parents) {
220365
- for (let i5 = parents.length - 1; i5 >= 0; i5--) {
220366
- const parent = parents[i5];
220367
- if (parent?.type === "version") {
220368
- return parent.versionId;
220606
+ function graphQlOperationKey(apiDefinitionId, operationId, scope = {}) {
220607
+ return [apiDefinitionId, scope.productId ?? "", scope.variantId ?? "", scope.versionId ?? "", operationId].join(
220608
+ ":"
220609
+ );
220610
+ }
220611
+ function scopeOf(parents) {
220612
+ const scope = {};
220613
+ for (const parent of parents) {
220614
+ if (parent.type === "product") {
220615
+ scope.productId = parent.productId;
220616
+ } else if (parent.type === "variant") {
220617
+ scope.variantId = parent.variantId;
220618
+ } else if (parent.type === "version") {
220619
+ scope.versionId = parent.versionId;
220369
220620
  }
220370
220621
  }
220371
- return void 0;
220622
+ return scope;
220372
220623
  }
220373
220624
  function isDeprecatedVersionNode(node4) {
220374
220625
  return node4.type === "version" && node4.availability === "Deprecated";
@@ -220697,58 +220948,6 @@ function findFirstPageInNode(node4) {
220697
220948
  }
220698
220949
  return void 0;
220699
220950
  }
220700
- function getApiReferenceId(node4) {
220701
- if (node4 == null) {
220702
- return void 0;
220703
- }
220704
- return visitDiscriminatedUnion_default(node4)._visit({
220705
- root: RETURN_UNDEFINED3,
220706
- versioned: RETURN_UNDEFINED3,
220707
- varianted: RETURN_UNDEFINED3,
220708
- tabbed: RETURN_UNDEFINED3,
220709
- sidebarRoot: RETURN_UNDEFINED3,
220710
- sidebarGroup: RETURN_UNDEFINED3,
220711
- version: RETURN_UNDEFINED3,
220712
- variant: RETURN_UNDEFINED3,
220713
- tab: RETURN_UNDEFINED3,
220714
- link: RETURN_UNDEFINED3,
220715
- page: RETURN_UNDEFINED3,
220716
- section: RETURN_UNDEFINED3,
220717
- changelog: RETURN_UNDEFINED3,
220718
- changelogYear: RETURN_UNDEFINED3,
220719
- changelogMonth: RETURN_UNDEFINED3,
220720
- changelogEntry: RETURN_UNDEFINED3,
220721
- product: RETURN_UNDEFINED3,
220722
- productLink: RETURN_UNDEFINED3,
220723
- productgroup: RETURN_UNDEFINED3,
220724
- // api nodes
220725
- apiReference: RETURN_API_DEFINITION_ID,
220726
- endpoint: RETURN_API_DEFINITION_ID,
220727
- endpointPair: (node22) => node22.nonStream.apiDefinitionId,
220728
- webSocket: RETURN_API_DEFINITION_ID,
220729
- webhook: RETURN_API_DEFINITION_ID,
220730
- grpc: RETURN_API_DEFINITION_ID,
220731
- graphql: RETURN_API_DEFINITION_ID,
220732
- graphqlType: RETURN_API_DEFINITION_ID,
220733
- apiPackage: RETURN_API_DEFINITION_ID,
220734
- unversioned: RETURN_UNDEFINED3,
220735
- landingPage: RETURN_UNDEFINED3
220736
- });
220737
- }
220738
- function stripSyntheticSegments(section) {
220739
- return section.split("/").filter((part) => !SYNTHETIC_SEGMENT_RE.test(part)).join("/");
220740
- }
220741
- function toApis(docs2) {
220742
- return mapValues3(
220743
- docs2.definition.apis,
220744
- (api2) => api_definition_exports.ApiDefinitionV1ToLatest.from(
220745
- api2
220746
- ).migrate()
220747
- );
220748
- }
220749
- function toPages(docs2) {
220750
- return mapValues3(docs2.definition.pages, (page) => page?.markdown);
220751
- }
220752
220951
  function followRedirect2(nodeToFollow) {
220753
220952
  if (nodeToFollow == null) {
220754
220953
  return void 0;
@@ -220810,6 +221009,58 @@ function rank(node4) {
220810
221009
  function defaultFirst(a3, b5) {
220811
221010
  return rank(b5) - rank(a3);
220812
221011
  }
221012
+ function getApiReferenceId(node4) {
221013
+ if (node4 == null) {
221014
+ return void 0;
221015
+ }
221016
+ return visitDiscriminatedUnion_default(node4)._visit({
221017
+ root: RETURN_UNDEFINED3,
221018
+ versioned: RETURN_UNDEFINED3,
221019
+ varianted: RETURN_UNDEFINED3,
221020
+ tabbed: RETURN_UNDEFINED3,
221021
+ sidebarRoot: RETURN_UNDEFINED3,
221022
+ sidebarGroup: RETURN_UNDEFINED3,
221023
+ version: RETURN_UNDEFINED3,
221024
+ variant: RETURN_UNDEFINED3,
221025
+ tab: RETURN_UNDEFINED3,
221026
+ link: RETURN_UNDEFINED3,
221027
+ page: RETURN_UNDEFINED3,
221028
+ section: RETURN_UNDEFINED3,
221029
+ changelog: RETURN_UNDEFINED3,
221030
+ changelogYear: RETURN_UNDEFINED3,
221031
+ changelogMonth: RETURN_UNDEFINED3,
221032
+ changelogEntry: RETURN_UNDEFINED3,
221033
+ product: RETURN_UNDEFINED3,
221034
+ productLink: RETURN_UNDEFINED3,
221035
+ productgroup: RETURN_UNDEFINED3,
221036
+ // api nodes
221037
+ apiReference: RETURN_API_DEFINITION_ID,
221038
+ endpoint: RETURN_API_DEFINITION_ID,
221039
+ endpointPair: (node22) => node22.nonStream.apiDefinitionId,
221040
+ webSocket: RETURN_API_DEFINITION_ID,
221041
+ webhook: RETURN_API_DEFINITION_ID,
221042
+ grpc: RETURN_API_DEFINITION_ID,
221043
+ graphql: RETURN_API_DEFINITION_ID,
221044
+ graphqlType: RETURN_API_DEFINITION_ID,
221045
+ apiPackage: RETURN_API_DEFINITION_ID,
221046
+ unversioned: RETURN_UNDEFINED3,
221047
+ landingPage: RETURN_UNDEFINED3
221048
+ });
221049
+ }
221050
+ function stripSyntheticSegments(section) {
221051
+ return section.split("/").filter((part) => !SYNTHETIC_SEGMENT_RE.test(part)).join("/");
221052
+ }
221053
+ function toApis(docs2) {
221054
+ return mapValues3(
221055
+ docs2.definition.apis,
221056
+ (api2) => api_definition_exports.ApiDefinitionV1ToLatest.from(
221057
+ api2
221058
+ ).migrate()
221059
+ );
221060
+ }
221061
+ function toPages(docs2) {
221062
+ return mapValues3(docs2.definition.pages, (page) => page?.markdown);
221063
+ }
220813
221064
  function mutableUpdatePointsTo(input3) {
220814
221065
  const collector = NodeCollector.collect(input3);
220815
221066
  const slugMap = collector.getSlugMapWithParents();
@@ -220980,9 +221231,9 @@ function mutableDeleteChild(parent, node4) {
220980
221231
  return "should-delete-parent";
220981
221232
  }
220982
221233
  }
220983
- var import_ts_essentials, import_qs, import_ts_essentials2, import_ts_essentials3, import_url_join, import_qs2, import_fast_deep_equal, import_ts_essentials4, import_url_join2, import_ts_essentials5, import_ts_essentials6, import_ts_essentials7, import_url_join3, import_url_join4, import_dayjs, import_utc, import_url_join5, import_ts_essentials8, import_ts_essentials9, import_ts_essentials10, import_ts_essentials11, import_ts_essentials12, __defProp4, __export3, api_definition_exports, LOOP_TOLERANCE, LARGE_LOOP_TOLERANCE, assertNever_default, EMPTY_ARRAY2, EMPTY_OBJECT2, identity_default2, isPlainObject_default2, conjunctions, articles, prepositions, lowerCase, specials, word, regex3, convertToRegExp, src_default, SPECIAL_TOKENS2, titleCase_default, visitDiscriminatedUnion_default, OrgIdSchema, ApiIdSchema, ApiDefinitionIdSchema, HttpMethodSchema3, HttpMethod7, UrlSchema, EndpointPathLiteralSchema, EndpointIdentifierSchema, SdkRequestSchema, DocsConfigIdSchema, GrpcIdSchema, PageIdSchema, RoleIdSchema, TokenIdSchema, VersionIdSchema, LinkTarget, GrpcMethod, Availability7, SupportedLanguage, HttpSnippetLanguage4, SnippetsByEndpointMethodSchema, SdkSchema, TypeIdSchema, EndpointIdSchema, WebSocketIdSchema, WebhookIdSchema, GraphQlOperationIdSchema, GraphQlTypeCategorySchema, EnvironmentIdSchema, PropertyKeySchema, AuthSchemeIdSchema, SubpackageIdSchema, WebSocketMessageIdSchema, FileIdSchema, MultipleAuthTypeSchema, GrpcMethodSchema, AvailabilitySchema3, WebSocketMessageOriginSchema, WebhookHttpMethodSchema, WithDescriptionSchema, WithAvailabilitySchema, EnvironmentSchema3, RestProtocolSchema, OpenRpcProtocolSchema, GrpcProtocolSchema, ProtocolSchema, ObjectPropertyAccessSchema, TypeReferenceIdDefaultSchema, _numberNullish, _numberIntNullish, coercedNumberNullish, coercedNumberIntNullish, IntegerTypeSchema, DoubleTypeSchema, StringTypeSchema, LongTypeSchema, _booleanNullish, BooleanTypeSchema, DatetimeTypeSchema, UuidTypeSchema, Base64TypeSchema, DateTypeSchema, BigIntegerTypeSchema, UintTypeSchema, Uint64TypeSchema, ScalarTypeSchema, PrimitiveTypeSchema, LiteralTypeSchema, TypeReferenceSchema2, GraphQlArgumentSchema, ObjectPropertySchema2, ObjectTypeSchema, EnumValueSchema2, EnumTypeSchema, DiscriminatedUnionVariantSchema, DiscriminatedUnionTypeSchema, ContentTypeSchema, FilePropertySingleSchema, FilePropertyArraySchema, FormDataFilePropertySchema, FormDataBodyPropertySchema, FormDataPropertySchema, FormDataRequestSchema, EndpointPathPartSchema, PathParameterSchema, EndpointPathSchema, QueryParameterSchema, HeaderSchema, JsonBodyShapeSchema, FileDownloadResponseBodyShapeSchema, StreamResponseV2Schema, StreamConditionSchema, FilenameWithDataSchema, FormValueSchema, BytesValueSchema, ExampleEndpointRequestSchema, ExampleServerSentEventSchema, ExampleEndpointResponseSchema, ErrorDeclarationSchema2, ExampleErrorResponseSchema, ErrorExampleSchema, GraphQlOperationTypeSchema, GraphQlExampleSchema, CodeSnippetSchema, GraphQlOperationSchema, WebhookPayloadShapeSchema, WebhookPayloadSchema2, ExampleWebhookPayloadSchema, WebSocketMessageBodyShapeSchema, WebSocketMessageSchema, ExampleWebSocketMessageSchema, ExampleWebSocketSessionSchema, ApiNavigationConfigItemSchema, ApiNavigationConfigRootSchema, BearerAuthSchema, BasicAuthSchema, HeaderAuthSchema, OAuthClientCredentialsReferencedEndpointSchema, OAuthClientCredentialsSchema, OAuthSchema, ApiAuthSchema3, JqStringSchema, RegisterLanguageSchema, RegisterUndiscriminatedUnionVariantSchema, RegisterUndiscriminatedUnionTypeSchema, RegisterTypeShapeSchema, RegisterTypeDefinitionSchema, RegisterBytesRequestSchema, RegisterJsonRequestBodySchema, RegisterHttpRequestBodyShapeSchema, RegisterHttpRequestSchema, RegisterHttpRequestsV2Schema, RegisterCustomCodeSampleSchema, RegisterExampleEndpointCallSchema, RegisterNonStreamResponseSchema, RegisterStreamResponseSchema, RegisterStreamConditionResponseSchema, RegisterHttpResponseBodyShapeSchema, RegisterHttpResponseSchema, RegisterHttpResponsesV2Schema, RegisterErrorDeclarationV2Schema, RegisterEndpointDefinitionSchema, RegisterWebhookDefinitionSchema, RegisterWebSocketChannelSchema, SourceIdSchema, SourceSchema2, SourceUploadSchema, DynamicIRSchema, DynamicIRUploadSchema, TypescriptPackageSchema, PythonPackageSchema, GoModuleSchema, JavaCoordinateSchema, RubyGemSchema, NugetPackageSchema, ComposerPackageSchema, SwiftPackageSchema, CratesPackageSchema, SnippetsConfigSchema, RegisterApiDefinitionPackageSchema, RegisterApiDefinitionSubpackageSchema, RegisterApiDefinitionSchema, RegisterApiDefinitionResponseSchema, SnippetInfoSchema, SdkDynamicIrDownloadSchema, GetSdkDynamicIrUploadUrlsResponseSchema, CheckSdkDynamicIrExistsResponseSchema, EndpointExampleGenerationErrorBodySchema, PathPartSchema, WithNamespaceSchema, LatestAuthSchemeSchema, LatestObjectPropertyAccessSchema, LatestTypeReferenceIdDefaultSchema, LatestPrimitiveTypeSchema, LatestLiteralTypeSchema, LatestUnknownTypeSchema, LatestEnumValueSchema, LatestEnumTypeSchema, LatestObjectPropertySchema, LatestParameterPropertySchema, LatestObjectTypeSchema, LatestUndiscriminatedUnionVariantSchema, LatestUndiscriminatedUnionTypeSchema, LatestDiscriminatedUnionVariantSchema, LatestDiscriminatedUnionTypeSchema, LatestTypeShapeSchema, LatestTypeReferenceSchema, LatestTypeDefinitionSchema, LatestContentTypeSchema, LatestBytesRequestSchema, LatestFormDataPropertySchema, LatestFormDataRequestSchema, LatestNullableTypeSchema, LatestOptionalTypeSchema, LatestListTypeSchema, LatestSetTypeSchema, LatestMapTypeSchema, LatestLanguageSchema, LatestExampleEndpointRequestSchema, LatestExampleEndpointResponseSchema, LatestExampleErrorResponseSchema, LatestHttpRequestBodyShapeSchema, LatestHttpRequestSchema, LatestFileDownloadResponseBodyShapeSchema, LatestStreamResponseSchema, LatestHttpResponseBodyShapeSchema, LatestHttpResponseSchema, LatestErrorExampleSchema, LatestErrorResponseSchema, LatestCodeSnippetSchema, LatestExampleEndpointCallSchema, LatestEndpointDefinitionSchema, LatestGraphQlOperationTypeSchema, LatestGraphQlArgumentSchema, LatestGraphQlExampleSchema, LatestGraphQlOperationSchema, LatestWebhookPayloadShapeSchema, LatestWebhookPayloadSchema, LatestExampleWebhookPayloadSchema, LatestWebhookDefinitionSchema, LatestWebSocketMessageSchema, LatestExampleWebSocketMessageSchema, LatestExampleWebSocketSessionSchema, LatestWebSocketChannelSchema, LatestSubpackageMetadataSchema, LatestApiDefinitionSchema, ApiDefinitionSchema2, AvailabilityOrder, UnwrapReferenceCache, UnwrapObjectTypeCache, ApiTypeIdVisitor, ApiDefinitionPruner, ROOT_PACKAGE_ID, MULTIPART_FILENAME_PLACEHOLDER, STATUS_CODE_MESSAGES, STATUS_CODE_MESSAGES_METHOD_OVERRIDES, AUTH_SCHEME_ID, DEFAULT_TYPE_REFERENCE, DEFAULT_TYPE_SHAPE, DEFAULT_WEBHOOK_PAYLOAD_SHAPE, DEFAULT_WEBHOOK_PAYLOAD, DEFAULT_GRAPHQL_ARGUMENT, ApiDefinitionV1ToLatest, HTTP_SNIPPET_CLIENTS, snippetCache, DEFAULT_MAX_DEPTH, IMPORT_PREFIXES, PHP_AUTOLOAD_INSERT, HttpSnippetConverter, SDK_SNIPPET_LANGUAGES, Transformer, ReadUndiscriminatedUnionVariantSchema, ReadUndiscriminatedUnionTypeSchema, ReadTypeShapeSchema, ReadTypeDefinitionSchema, ReadBytesRequestSchema, ReadHttpRequestBodyShapeSchema, ReadHttpRequestSchema, ReadHttpRequestsV2Schema, ReadSupportedLanguageSchema, ReadLanguageSchema, ReadCustomCodeSampleSchema, ReadPythonSnippetSchema, ReadTypescriptSnippetSchema, ReadGoSnippetSchema, ReadRubySnippetSchema, ReadCsharpSnippetSchema, ReadCodeExamplesSchema, ReadExampleEndpointCallSchema, ReadNonStreamResponseSchema, ReadStreamResponseSchema, ReadStreamConditionResponseSchema, ReadHttpResponseBodyShapeSchema, ReadHttpResponseSchema, ReadHttpResponsesV2Schema, ReadErrorDeclarationV2Schema, ReadEndpointDefinitionSchema, ReadWebhookDefinitionSchema, ReadWebSocketChannelSchema, ReadApiDefinitionPackageSchema, ReadApiDefinitionSubpackageSchema, ReadApiDefinitionSchema, apiLatestContract, apiReadContract, apiRegisterContract, DocsDeploymentStatusSchema, DocsSiteSchema, DocsDeploymentSchema, RegisterDocsSiteInputSchema, GetPostmanCollectionIdInputSchema, GetDocsStatusInputSchema, SetDocsStatusInputSchema, CreateDeploymentInputSchema, UpdateDeploymentStatusInputSchema, GetDocsDeploymentsInputSchema, UnlockDeployInputSchema, GetDocsStatusResponseSchema, GetDocsDeploymentsResponseSchema, CreateDeploymentResponseSchema, UpdateDeploymentStatusResponseSchema, GetPostmanCollectionIdResponseSchema, UnlockDeployResponseSchema, GetDocsSitesByCollectionIdInputSchema, FindSiteByOrgAndCollectionInputSchema, FindSiteByOrgAndCollectionResponseSchema, RecordPostmanNotificationInputSchema, RecordPostmanNotificationResponseSchema, GetUnnotifiedPostmanSitesResponseSchema, GetDocsSitesByCollectionIdResponseSchema, DeleteDocsSiteByServiceInputSchema, DeleteDocsSiteByServiceResponseSchema, SetEditorRepoUrlInputSchema, docsDeploymentContract, DocsSiteUrlSchema, DashboardDocsSiteSchema, GetDocsSitesForOrgInputSchema, GetDocsSitesForOrgResponseSchema, IsDocsSiteInOrgInputSchema, IsDocsSiteInOrgResponseSchema, DeleteAllDocsSitesForOrgInputSchema, DeleteAllDocsSitesForOrgResponseSchema, dashboardContract, DashboardAnalyticsCommonInputSchema, DashboardFeedbackInputSchema, DashboardListOrgMembersInputSchema, DashboardGetSiteConfigInputSchema, AuthorizeDocsEditResponseSchema, AnalyticsMetricSchema, AnalyticsDimensionSchema, AnalyticsGranularitySchema, AnalyticsFilterFieldSchema, AnalyticsFilterOpSchema, AnalyticsFilterSchema, AnalyticsOrderBySchema, AnalyticsDateRangeSchema, QueryAnalyticsInputSchema, ResolvedDateRangeSchema, AnalyticsSourceSchema, LlmBotTrafficResponseSchema, RecentFeedbackResponseSchema, QueryAnalyticsResponseSchema, OrgMembersResponseSchema, SiteGitRepositorySchema, SiteConfigResponseSchema, SitePasswordProtectionSchema, SiteSettingsResponseSchema, dashboardAgentContract, FileIdSchema2, PageIdSchema2, UrlSchema2, VersionIdSchema2, ApiDefinitionIdSchema2, EndpointIdSchema2, WebSocketIdSchema2, WebhookIdSchema2, RoleIdSchema2, SubpackageIdSchema2, LinkTargetSchema, AvailabilitySchema22, RgbaColorSchema, FileIdOrUrlSchema, LanguageSchema, Bcp47LocaleSchema, DocsTranslationsConfigSchema, ProgrammingLanguageSchema, AnnouncementConfigSchema, SegmentConfigSchema, FullStoryAnalyticsConfigSchema, IntercomConfigSchema, PostHogConfigSchema, GTMConfigSchema, GoogleAnalytics4ConfigSchema, AmplitudeConfigSchema, MixpanelConfigSchema, HotJarConfigSchema, KoalaConfigSchema, LogRocketConfigSchema, PirschConfigSchema, PlausibleConfigSchema, FathomConfigSchema, ClearBitConfigSchema, HeapConfigSchema, AnalyticsConfigSchema, SearchbarPlacementSchema, TabsPlacementSchema, SwitcherPlacementSchema, ContentAlignmentSchema, HeaderPositionSchema, PageWidthSizeConfigSchema, SizeConfigSchema, TabsAlignmentSchema, ChangelogLayoutSchema, ApiReferenceLayoutSchema, DocsLayoutConfigSchema, FooterNavConfigSchema, DocsSidebarConfigSchema, DocsBodyConfigSchema, DocsTabsStyleSchema, DocsTabsObjectConfigSchema, DocsTabsConfigSchema, DocsPageActionsConfigSchema, LanguageSwitcherConfigSchema, ProductSwitcherConfigSchema, DocsThemeConfigSchema, HttpSnippetLanguageSchema, HttpSnippetsConfigSchema, SearchSettingsConfigSchema, DocsSettingsConfigSchema, TwitterCardSettingSchema, MetadataConfigSchema, RedirectConfigSchema, WithPermissionsSchema, NavbarLinkMetadataSchema, NavbarGithubMetadataSchema, NavbarLinkDropdownMetadataSchema, NavbarLinkSchema, FooterLinkSchema, CssConfigSchema, JsScriptStrategySchema, JsRemoteConfigSchema, JsFileConfigSchema, JsConfigSchema, IntegrationsConfigSchema, FontStyleSchema, FontDisplaySchema, CustomFontConfigVariantSchema, CustomFontConfigSchema, FontConfigV2Schema, DocsTypographyConfigV2Schema, ThemedFileIdSchema, ColorsConfigSchema, ColorUnthemedConfigSchema, ColorThemedConfigSchema, ColorConfigSchema, ColorsConfigV2Schema, FontConfigSchema, DocsTypographyConfigSchema, EditThisPageLaunchSchema, AIChatLocationSchema, AIChatWebsiteDatasourceSchema, AIChatDatasourceSchema, AIModelSchema, AIChatConfigSchema, PageDescriptionSourceSchema, AgentsConfigSchema, PageActionOptionSchema, CustomPageActionSchema, SkillSchema, SkillsConfigSchema, PageActionOptionsSchema, PageActionsConfigSchema, HeightSchema, PageContentSchema, NavigationNodeMetadataSchema, PageMetadataSchema, LinkMetadataSchema, NavigationTabLinkSchema, ChangelogItemSchema, ChangelogSectionSchema, ChangelogSectionV3Schema, ApiSectionV2Schema, GitHubRepoSchema, NpmPackageSchema, MavenPackageSchema, PypiPackageSchema, PublishedSdkSchema, PublishedPostmanCollectionSchema, ApiArtifactsSchema, ApiNavigationConfigItemSchema2, ApiNavigationConfigRootSchema2, DocsConfigIdSchema2, UrlFileSchema, ImageFileSchema, FileSchema2, BackgroundSchema, ThemeConfigSchema, DarkAndLightModeConfigSchema, ColorsConfigV3Schema, ApiNavigationConfigItemSchema3, ApiNavigationConfigRootSchema3, ApiSectionSchema, DocsSectionSchema, NavigationItemSchema, NavigationTabGroupSchema, NavigationTabSchema, UnversionedTabbedNavigationConfigSchema, UnversionedUntabbedNavigationConfigSchema, UnversionedNavigationConfigSchema, VersionedNavigationConfigDataSchema, VersionedNavigationConfigSchema, NavigationConfigSchema, DocsConfigSchema, DocsDefinitionSchema, BaseUrlSchema, LoadDocsForUrlResponseSchema, GetDocsForDomainLegacyInputSchema, GetDocsForDomainInputSchema, docsV1ReadContract, MAX_DOXYFILE_CONTENT_LENGTH, SETTING_LINE_RE, AT_DIRECTIVE_RE, BOOL_RE, FILE_PATTERN_RE, PREDEFINED_RE, ALIAS_DEF_RE, DOXYFILE_ALLOWED_KEYS, ALLOWED_HOSTNAMES, GithubUrlSchema, SafeBranchSchema, SafePackagePathSchema, LibraryDocsBaseConfigSchema, PythonLibraryDocsConfigSchema, SafeDoxyfileContentSchema, CppLibraryDocsConfigSchema, StartLibraryDocsGenerationInputSchema, StartLibraryDocsGenerationResponseSchema, GetLibraryDocsStatusInputSchema, LibraryDocsResultSchema, LibraryDocsGenerationStatusSchema, libraryDocsContract, GetOrganizationForUrlInputSchema, organizationContract, contract_exports, GetDocsUrlMetadataInputSchema, GetDocsUrlMetadataResponseSchema, GetDocsForUrlInputSchema, GetPrivateDocsForUrlInputSchema, ListAllDocsUrlsInputSchema, GetDocsConfigByIdInputSchema, GetSiteMetricsInputSchema, SiteMetricsSchema, DocsDefinitionField, GetDocsConfigByIdResponseSchema, DocsDomainItemSchema, ListAllDocsUrlsResponseSchema, getDocsForUrl, docsV2ReadContract, contract_exports2, OrgIdSchema2, FilePathSchema, DocsRegistrationIdSchema, HeightSchema2, FileS3UploadUrlSchema, StartDocsRegisterResponseSchema, PageContentSchema2, NavigationNodeMetadataSchema2, PageMetadataSchema2, LinkMetadataSchema2, ChangelogItemSchema2, ChangelogSectionSchema2, ChangelogSectionV2Schema, ChangelogSectionV3Schema2, NavigationTabLinkSchema2, ApiNavigationConfigItemSchema4, ApiNavigationConfigSubpackageSchema, ApiNavigationConfigRootSchema4, ApiSectionSchema2, ApiSectionV2Schema2, DocsSectionSchema2, NavigationItemSchema2, NavigationTabGroupSchema2, NavigationTabSchema2, NavigationTabV2Schema, UnversionedTabbedNavigationConfigSchema2, UnversionedUntabbedNavigationConfigSchema2, UnversionedNavigationConfigSchema2, VersionedNavigationConfigDataSchema2, VersionedNavigationConfigSchema2, NavigationConfigSchema2, ThemeConfigSchema2, DarkAndLightModeConfigSchema2, ColorsConfigV3Schema2, DocsConfigSchema2, DocsDefinitionSchema2, NpmPackageSchema2, MavenPackageSchema2, PypiPackageSchema2, PublishedSdkSchema2, PublishedPostmanCollectionSchema2, ApiArtifactsSchema2, InvalidCustomDomainErrorBodySchema, OverlappingCustomDomainsSchema, FilePathSchema2, FilePathInputSchema, ImageFilePathSchema, AuthConfigSchema, StartDocsRegisterV2InputSchema, StartDocsRegisterV2ResponseSchema, StartDocsPreviewRegisterInputSchema, StartDocsPreviewRegisterResponseSchema, FinishDocsRegisterV2InputSchema, TransferOwnershipInputSchema, SetIsArchivedInputSchema, SetDocsUrlMetadataInputSchema, AlgoliaDomainInputSchema, ListAlgoliaPreviewWhitelistResponseSchema, DeleteDocsSiteInputSchema, RemoveCustomDomainAliasInputSchema, Bcp47LocaleSchema2, RegisterTranslationInputSchema, RegisterTranslationResponseSchema, docsV2WriteContract, InvalidateCachedDocsInputSchema, docsCacheContract, MissingContentSchema, RegisterResponseSchema, FinishResponseSchema, ArchiveSiteInputSchema, ArchiveSiteResponseSchema, BlobRefSchema, PageBlobRefSchema, FileManifestEntrySchema, ImageRefSchema, PathOrUrlSchema, RgbaSchema, BackgroundColorSchema, ACCENT_SCALE_KEYS, accentScaleShape, LedgerThemeConfigSchema, LedgerColorsConfigSchema, LedgerFontVariantSchema, LedgerFontConfigSchema, LedgerTypographySchema, LedgerJsFileSchema, LedgerJsConfigSchema, LedgerMetadataConfigSchema, NavbarLinksFieldSchema, FooterLinksFieldSchema, LayoutFieldSchema, ThemeFieldSchema, SettingsFieldSchema, AnalyticsFieldSchema, AIChatFieldSchema, PageActionsFieldSchema, LedgerAgentsConfigSchema, LedgerConfigSchema, MetadataStringArraySchema, FeatureFlagMetadataSchema, LinkTargetSchema2, CollapsedSchema, PlaygroundSettingsSchema, LedgerAvailabilitySchema, LedgerArtifactTypeSchema, LedgerMetadataBaseSchema, NodeMetadataFields, ApiNodeMetadataFields, LedgerSegmentDetailMetadataObjectSchema, LedgerSegmentDetailMetadataSchema, LedgerSegmentMetadataObjectSchema, LedgerSegmentMetadataSchema, LedgerMarkdownMetadataSchema, LedgerRestMetadataSchema, LedgerWebSocketMetadataSchema, LedgerWebhookMetadataSchema, LedgerGrpcMetadataSchema, LedgerGraphQlMetadataSchema, LedgerGraphQlTypeMetadataSchema, LedgerChangelogEntryMetadataSchema, LedgerLinkMetadataSchema, LedgerFileArtifactMetadataSchema, LedgerStructuralRedirectKindSchema, LedgerRedirectKindSchema, LedgerRedirectMetadataSchema, LedgerArtifactMetadataSchema, LEDGER_ARTIFACT_METADATA_SCHEMAS, NavRouteBaseSchema, LedgerNavRouteSchema, DocsPublishGitInputSchema, DocsContentFieldsSchema, LocaleEntrySchemaInternal, LocaleEntrySchema, DocsPublishInputSchemaInternal, DocsPublishInputSchema, LedgerPreviewRegisterInputSchemaInternal, LedgerPreviewRegisterInputSchema, LedgerPreviewRegisterResponseSchema, docsLedgerContract, CurrentVersionInputSchema, CurrentPreviewInputSchema, CurrentVersionResponseSchema, ContentRefSchema, SegmentDetailSchema, SegmentSchema, VersionMetadataInputSchema, VersionMetadataResponseSchema, PageContentInputSchema, PageContentResponseSchema, BatchPageContentInputSchema, BatchPageContentItemSchema, BatchPageContentResponseSchema, NavInputSchema, NavResponseSchema, RouteContextInputSchema, RouteContextResponseBaseSchema, RouteContextResponseSchema, TopLevelNavigationInputSchema, TopLevelNavigationResponseSchema, VersionSwitchTargetsInputSchema, VersionSwitchTargetSchema, VersionSwitchTargetsResponseSchema, ApiDefinitionInputSchema, ApiDefinitionResponseSchema, PrunedApiDefinitionInputSchema, PrunedApiDefinitionResponseSchema, FileArtifactInputSchema, FileArtifactResponseSchema, PresignedFileDownloadInputSchema, PresignedFileDownloadResponseSchema, FileMetadataInputSchema, FileMetadataResponseSchema, docsLedgerReadContract, GetSnapshotInputSchema, SetSnapshotInputSchema, GetDocumentsForBranchesInputSchema, EditorDocumentSchema, GetSnapshotResponseSchema, GetDocumentsForBranchesResponseSchema, editorSnapshotContract, GeneratorLanguageSchema, ScriptSchema, GeneratorScriptsSchema, GeneratorTypeSchema, ChangelogEntryTypeSchema, ChangelogEntrySchema, YankSchema, ReleaseTypeSchema, VersionRangeSchema, GeneratorSchema, GeneratorOutputSchema2, GetGeneratorByImageInputSchema, GetGeneratorInputSchema, GeneratorReleaseSchema, GeneratorReleaseRequestSchema, GetLatestGeneratorReleaseInputSchema, GetGeneratorChangelogInputSchema, ChangelogResponseSchema, GetChangelogResponseSchema, GetGeneratorReleaseInputSchema, ListGeneratorReleasesInputSchema, ListGeneratorReleasesResponseSchema, CliReleaseSchema, GetLatestCliReleaseInputSchema, GetCliChangelogInputSchema, GetMinCliForIrInputSchema, UpsertCliReleaseInputSchema, GetCliReleaseInputSchema, ListCliReleasesInputSchema, ListCliReleasesResponseSchema, generatorsContract, generatorVersionsContract, generatorCliContract, CheckRunSchema, GithubRepositoryIdSchema, RepositoryIdSchema, BaseRepositorySchema, SdkRepositorySchema, FernConfigRepositorySchema, FernRepositorySchema, GithubUserSchema, GithubTeamSchema, PullRequestReviewerSchema, PullRequestStateSchema, PullRequestSchema, ListRepositoriesResponseSchema, ListPullRequestsResponseSchema, GetRepositoryInputSchema, ListRepositoriesInputSchema, DeleteRepositoryInputSchema, GetPullRequestInputSchema, ListPullRequestsInputSchema, DeletePullRequestInputSchema, gitContract, PdfExportScopeSchema, PdfExportOptionsV1Schema, PdfExportOptionsSchema, PdfExportTaskStatusSchema, PdfExportTaskSchema, ListPdfExportTasksResponseSchema, PdfExportDownloadResponseSchema, CreatePdfExportTaskInputSchema, ListPdfExportTasksInputSchema, GetPdfExportTaskInputSchema, UpdatePdfExportTaskInputSchema, GetPdfExportDownloadUrlInputSchema, CleanupPdfExportsResponseSchema, pdfExportContract, LanguageEnumSchema, VersionBumpEnumSchema, ComputeSemanticVersionInputSchema, ComputeSemanticVersionOutputSchema, sdksContract, SlugsInputSchema, SlugEntrySchema, MarkdownEntrySchema, GetSlugEntriesResponseSchema, GetMarkdownEntriesResponseSchema, slugsContract, contract_exports3, TypeScriptSdkSchema, PythonSdkSchema, GoSdkSchema, RubySdkSchema, JavaSdkSchema, CsharpSdkSchema, BaseSnippetCreateSchema, SdkSnippetsCreateSchema, snippetsFactoryContract, ParameterPayloadSchema, AuthPayloadSchema, CustomSnippetPayloadSchema, snippetsContract, SnippetRegistryEntrySchema, RegisterInputSchema, RegisterBatchInputSchema, GetInputSchema, EndpointSnippetTemplateSchema, templatesContract, GenerateTokenInputSchema, RevokeTokenInputSchema, GenerateTokenOutputSchema, tokensContract, FdrClient, APIV1Db_exports, EndpointSnippetTemplatesSchema, DbHttpRequestSchema, DbHttpRequestsV2Schema, DbEndpointDefinitionSchema, DbApiDefinitionPackageSchema, DbApiDefinitionSubpackageSchema, DbApiDefinitionSchema, DbEndpointWithContextSchema, APIV1Read_exports, WebSocketMessageOrigin3, APIV1Write_exports, DocsV1Db_exports, BackgroundSchema2, ThemeConfigSchema3, DarkAndLightModeConfigSchema3, ColorsConfigV3Schema3, DbFileInfoSchema, DbImageFileInfoSchema, DbFileInfoV2Schema, NavigationTabGroupSchema3, NavigationTabSchema3, NavigationTabV2Schema2, ApiSectionSchema3, DocsSectionSchema3, NavigationItemSchema3, UnversionedTabbedNavigationConfigSchema3, UnversionedUntabbedNavigationConfigSchema3, UnversionedNavigationConfigSchema3, VersionedNavigationConfigDataSchema3, VersionedNavigationConfigSchema3, NavigationConfigSchema3, DocsDbConfigSchema, DocsDefinitionDbV1Schema, DocsDefinitionDbV2Schema, DocsDefinitionDbV3Schema, DocsDefinitionDbSchema, DocsV1Read_exports, DocsV1Write_exports, FdrAPI_exports, latest_exports2, v1_exports, NavigationV1Availability, ApiLatestWithSubs_exports, ApiLatestEndpoint_exports, ApiLatestWebhook_exports, ApiLatestWebsocket_exports, DocsLatest_exports, StringOrStringListSchema, TwitterCardSettingSchema2, JsonLdBreadcrumbListElementSchema, JsonLdBreadcrumbListSchema, WithJsonLdBreadcrumbsSchema, WithMetadataConfigSchema, LayoutSchema, LogoConfigurationSchema, LogoSchema, BreadcrumbItemSchema, FrontmatterSchema, ResolvedMdxSchema, DocsV1Commons_exports, libraryDocs_exports, PythonClassKind, PythonParameterKind, Sdks_exports, docs, api, libraryDocs, sdks, navigation, MAX_OPTIONAL_EXAMPLES_FOR_QUERY_PARAMS, ApiDefinitionTransformationContext, DEFAULT_DARK_MODE_ACCENT_PRIMARY, DEFAULT_LIGHT_MODE_ACCENT_PRIMARY, SDKSnippetHolder, EMPTY_DARK_THEME, EMPTY_LIGHT_THEME, docs_exports3, EMPTY_FRONTMATTER, navigation_exports, RETURN_PAGEID, RETURN_OVERVIEW_PAGEID, RETURN_UNDEFINED, SKIP, STOP, ApiDefinitionHolder, ApiTypeIdVisitor2, ApiDefinitionPruner2, v1_exports2, ChangelogNavigationConverter, NodeIdGenerator, SlugGenerator, ApiReferenceNavigationConverter, NavigationConfigConverter, RETURN_PAGEID2, RETURN_OVERVIEW_PAGEID2, RETURN_UNDEFINED2, NodeCollectorInstances, NodeCollector, MAX_CHANGELOG_ENTRIES_MINIMUM, CHANGELOG_RECENCY_MONTHS, migrators_exports, FernNavigationV1ToLatest, utils_exports2, isHeaderTab, RETURN_UNDEFINED3, RETURN_API_DEFINITION_ID, SKIP_URL_SLUG_PREFIX, SYNTHETIC_SEGMENT_RE, Pruner;
221234
+ var import_ts_essentials, import_qs, import_ts_essentials2, import_ts_essentials3, import_url_join, import_qs2, import_fast_deep_equal, import_ts_essentials4, import_url_join2, import_ts_essentials5, import_ts_essentials6, import_ts_essentials7, import_url_join3, import_url_join4, import_dayjs, import_utc, import_url_join5, import_ts_essentials8, import_ts_essentials9, import_ts_essentials10, import_ts_essentials11, import_ts_essentials12, __defProp4, __export3, api_definition_exports, LOOP_TOLERANCE, LARGE_LOOP_TOLERANCE, assertNever_default, EMPTY_ARRAY2, EMPTY_OBJECT2, identity_default2, isPlainObject_default2, conjunctions, articles, prepositions, lowerCase, specials, word, regex3, convertToRegExp, src_default, SPECIAL_TOKENS2, titleCase_default, visitDiscriminatedUnion_default, OrgIdSchema, ApiIdSchema, ApiDefinitionIdSchema, HttpMethodSchema3, HttpMethod7, UrlSchema, EndpointPathLiteralSchema, EndpointIdentifierSchema, SdkRequestSchema, DocsConfigIdSchema, GrpcIdSchema, PageIdSchema, RoleIdSchema, TokenIdSchema, VersionIdSchema, LinkTarget, GrpcMethod, Availability7, SupportedLanguage, HttpSnippetLanguage4, SnippetsByEndpointMethodSchema, SdkSchema, TypeIdSchema, EndpointIdSchema, WebSocketIdSchema, WebhookIdSchema, GraphQlOperationIdSchema, GraphQlTypeCategorySchema, EnvironmentIdSchema, PropertyKeySchema, AuthSchemeIdSchema, SubpackageIdSchema, WebSocketMessageIdSchema, FileIdSchema, MultipleAuthTypeSchema, GrpcMethodSchema, AvailabilitySchema3, WebSocketMessageOriginSchema, WebhookHttpMethodSchema, WithDescriptionSchema, WithAvailabilitySchema, EnvironmentSchema3, RestProtocolSchema, OpenRpcProtocolSchema, GrpcProtocolSchema, ProtocolSchema, ObjectPropertyAccessSchema, TypeReferenceIdDefaultSchema, _numberNullish, _numberIntNullish, coercedNumberNullish, coercedNumberIntNullish, IntegerTypeSchema, DoubleTypeSchema, StringTypeSchema, LongTypeSchema, _booleanNullish, BooleanTypeSchema, DatetimeTypeSchema, UuidTypeSchema, Base64TypeSchema, DateTypeSchema, BigIntegerTypeSchema, UintTypeSchema, Uint64TypeSchema, ScalarTypeSchema, PrimitiveTypeSchema, LiteralTypeSchema, TypeReferenceSchema2, GraphQlArgumentSchema, ObjectPropertySchema2, ObjectTypeSchema, EnumValueSchema2, EnumTypeSchema, DiscriminatedUnionVariantSchema, DiscriminatedUnionTypeSchema, ContentTypeSchema, FilePropertySingleSchema, FilePropertyArraySchema, FormDataFilePropertySchema, FormDataBodyPropertySchema, FormDataPropertySchema, FormDataRequestSchema, EndpointPathPartSchema, PathParameterSchema, EndpointPathSchema, QueryParameterSchema, HeaderSchema, JsonBodyShapeSchema, FileDownloadResponseBodyShapeSchema, StreamResponseV2Schema, StreamConditionSchema, FilenameWithDataSchema, FormValueSchema, BytesValueSchema, ExampleEndpointRequestSchema, ExampleServerSentEventSchema, ExampleEndpointResponseSchema, ErrorDeclarationSchema2, ExampleErrorResponseSchema, ErrorExampleSchema, GraphQlOperationTypeSchema, GraphQlExampleSchema, CodeSnippetSchema, GraphQlOperationSchema, WebhookPayloadShapeSchema, WebhookPayloadSchema2, ExampleWebhookPayloadSchema, WebSocketMessageBodyShapeSchema, WebSocketMessageSchema, ExampleWebSocketMessageSchema, ExampleWebSocketSessionSchema, ApiNavigationConfigItemSchema, ApiNavigationConfigRootSchema, PlaygroundDescriptionSchema, BearerAuthSchema, BasicAuthSchema, HeaderAuthSchema, OAuthClientCredentialsReferencedEndpointSchema, OAuthClientCredentialsSchema, OAuthSchema, ApiAuthSchema3, JqStringSchema, RegisterLanguageSchema, RegisterUndiscriminatedUnionVariantSchema, RegisterUndiscriminatedUnionTypeSchema, RegisterTypeShapeSchema, RegisterTypeDefinitionSchema, RegisterBytesRequestSchema, RegisterJsonRequestBodySchema, RegisterHttpRequestBodyShapeSchema, RegisterHttpRequestSchema, RegisterHttpRequestsV2Schema, RegisterCustomCodeSampleSchema, RegisterExampleEndpointCallSchema, RegisterNonStreamResponseSchema, RegisterStreamResponseSchema, RegisterStreamConditionResponseSchema, RegisterHttpResponseBodyShapeSchema, RegisterHttpResponseSchema, RegisterHttpResponsesV2Schema, RegisterErrorDeclarationV2Schema, RegisterEndpointDefinitionSchema, RegisterWebhookDefinitionSchema, RegisterWebSocketChannelSchema, SourceIdSchema, SourceSchema2, SourceUploadSchema, DynamicIRSchema, DynamicIRUploadSchema, TypescriptPackageSchema, PythonPackageSchema, GoModuleSchema, JavaCoordinateSchema, RubyGemSchema, NugetPackageSchema, ComposerPackageSchema, SwiftPackageSchema, CratesPackageSchema, SnippetsConfigSchema, RegisterApiDefinitionPackageSchema, RegisterApiDefinitionSubpackageSchema, RegisterApiDefinitionSchema, RegisterApiDefinitionResponseSchema, SnippetInfoSchema, SdkDynamicIrDownloadSchema, GetSdkDynamicIrUploadUrlsResponseSchema, CheckSdkDynamicIrExistsResponseSchema, EndpointExampleGenerationErrorBodySchema, PathPartSchema, WithNamespaceSchema, LatestAuthSchemeSchema, LatestObjectPropertyAccessSchema, LatestTypeReferenceIdDefaultSchema, LatestPrimitiveTypeSchema, LatestLiteralTypeSchema, LatestUnknownTypeSchema, LatestEnumValueSchema, LatestEnumTypeSchema, LatestObjectPropertySchema, LatestParameterPropertySchema, LatestObjectTypeSchema, LatestUndiscriminatedUnionVariantSchema, LatestUndiscriminatedUnionTypeSchema, LatestDiscriminatedUnionVariantSchema, LatestDiscriminatedUnionTypeSchema, LatestTypeShapeSchema, LatestTypeReferenceSchema, LatestTypeDefinitionSchema, LatestContentTypeSchema, LatestBytesRequestSchema, LatestFormDataPropertySchema, LatestFormDataRequestSchema, LatestNullableTypeSchema, LatestOptionalTypeSchema, LatestListTypeSchema, LatestSetTypeSchema, LatestMapTypeSchema, LatestLanguageSchema, LatestExampleEndpointRequestSchema, LatestExampleEndpointResponseSchema, LatestExampleErrorResponseSchema, LatestHttpRequestBodyShapeSchema, LatestHttpRequestSchema, LatestFileDownloadResponseBodyShapeSchema, LatestStreamResponseSchema, LatestHttpResponseBodyShapeSchema, LatestHttpResponseSchema, LatestErrorExampleSchema, LatestErrorResponseSchema, LatestCodeSnippetSchema, LatestExampleEndpointCallSchema, LatestEndpointDefinitionSchema, LatestGraphQlOperationTypeSchema, LatestGraphQlArgumentSchema, LatestGraphQlExampleSchema, LatestGraphQlOperationSchema, LatestWebhookPayloadShapeSchema, LatestWebhookPayloadSchema, LatestExampleWebhookPayloadSchema, LatestWebhookDefinitionSchema, LatestWebSocketMessageSchema, LatestExampleWebSocketMessageSchema, LatestExampleWebSocketSessionSchema, LatestWebSocketChannelSchema, LatestSubpackageMetadataSchema, LatestApiDefinitionSchema, ApiDefinitionSchema2, AvailabilityOrder, UnwrapReferenceCache, UnwrapObjectTypeCache, ApiTypeIdVisitor, ApiDefinitionPruner, ROOT_PACKAGE_ID, MULTIPART_FILENAME_PLACEHOLDER, STATUS_CODE_MESSAGES, STATUS_CODE_MESSAGES_METHOD_OVERRIDES, AUTH_SCHEME_ID, DEFAULT_TYPE_REFERENCE, DEFAULT_TYPE_SHAPE, DEFAULT_WEBHOOK_PAYLOAD_SHAPE, DEFAULT_WEBHOOK_PAYLOAD, DEFAULT_GRAPHQL_ARGUMENT, ApiDefinitionV1ToLatest, HTTP_SNIPPET_CLIENTS, snippetCache, SDL_KEYWORD, DEFAULT_MAX_DEPTH, IMPORT_PREFIXES, PHP_AUTOLOAD_INSERT, HttpSnippetConverter, SDK_SNIPPET_LANGUAGES, Transformer, ReadUndiscriminatedUnionVariantSchema, ReadUndiscriminatedUnionTypeSchema, ReadTypeShapeSchema, ReadTypeDefinitionSchema, ReadBytesRequestSchema, ReadHttpRequestBodyShapeSchema, ReadHttpRequestSchema, ReadHttpRequestsV2Schema, ReadSupportedLanguageSchema, ReadLanguageSchema, ReadCustomCodeSampleSchema, ReadPythonSnippetSchema, ReadTypescriptSnippetSchema, ReadGoSnippetSchema, ReadRubySnippetSchema, ReadCsharpSnippetSchema, ReadCodeExamplesSchema, ReadExampleEndpointCallSchema, ReadNonStreamResponseSchema, ReadStreamResponseSchema, ReadStreamConditionResponseSchema, ReadHttpResponseBodyShapeSchema, ReadHttpResponseSchema, ReadHttpResponsesV2Schema, ReadErrorDeclarationV2Schema, ReadEndpointDefinitionSchema, ReadWebhookDefinitionSchema, ReadWebSocketChannelSchema, ReadApiDefinitionPackageSchema, ReadApiDefinitionSubpackageSchema, ReadApiDefinitionSchema, apiLatestContract, apiReadContract, apiRegisterContract, DocsDeploymentStatusSchema, DocsSiteSchema, DocsDeploymentSchema, RegisterDocsSiteInputSchema, GetPostmanCollectionIdInputSchema, GetDocsStatusInputSchema, SetDocsStatusInputSchema, CreateDeploymentInputSchema, UpdateDeploymentStatusInputSchema, GetDocsDeploymentsInputSchema, UnlockDeployInputSchema, GetDocsStatusResponseSchema, GetDocsDeploymentsResponseSchema, CreateDeploymentResponseSchema, UpdateDeploymentStatusResponseSchema, GetPostmanCollectionIdResponseSchema, UnlockDeployResponseSchema, GetDocsSitesByCollectionIdInputSchema, FindSiteByOrgAndCollectionInputSchema, FindSiteByOrgAndCollectionResponseSchema, RecordPostmanNotificationInputSchema, RecordPostmanNotificationResponseSchema, GetUnnotifiedPostmanSitesResponseSchema, GetDocsSitesByCollectionIdResponseSchema, DeleteDocsSiteByServiceInputSchema, DeleteDocsSiteByServiceResponseSchema, SetEditorRepoUrlInputSchema, docsDeploymentContract, DocsSiteUrlSchema, DashboardDocsSiteSchema, GetDocsSitesForOrgInputSchema, GetDocsSitesForOrgResponseSchema, IsDocsSiteInOrgInputSchema, IsDocsSiteInOrgResponseSchema, DeleteAllDocsSitesForOrgInputSchema, DeleteAllDocsSitesForOrgResponseSchema, dashboardContract, DashboardAnalyticsCommonInputSchema, DashboardFeedbackInputSchema, DashboardListOrgMembersInputSchema, DashboardGetSiteConfigInputSchema, AuthorizeDocsEditResponseSchema, AnalyticsMetricSchema, AnalyticsDimensionSchema, AnalyticsGranularitySchema, AnalyticsFilterFieldSchema, AnalyticsFilterOpSchema, AnalyticsFilterSchema, AnalyticsOrderBySchema, AnalyticsDateRangeSchema, QueryAnalyticsInputSchema, ResolvedDateRangeSchema, AnalyticsSourceSchema, StaticContentGroupBySchema, StaticContentTrafficInputSchema, StaticContentTrafficResponseSchema, RecentFeedbackResponseSchema, QueryAnalyticsResponseSchema, OrgMembersResponseSchema, SiteGitRepositorySchema, SiteConfigResponseSchema, SitePasswordProtectionSchema, SiteSettingsResponseSchema, ListDocsPagesInputSchema, DocsPageSummarySchema, ListDocsPagesResponseSchema, GetDocsPageInputSchema, DocsPageContentSchema, GetDocsPageResponseSchema, dashboardAgentContract, FileIdSchema2, PageIdSchema2, UrlSchema2, VersionIdSchema2, ApiDefinitionIdSchema2, EndpointIdSchema2, WebSocketIdSchema2, WebhookIdSchema2, RoleIdSchema2, SubpackageIdSchema2, LinkTargetSchema, AvailabilitySchema22, RgbaColorSchema, FileIdOrUrlSchema, LanguageSchema, Bcp47LocaleSchema, DocsTranslationsConfigSchema, ProgrammingLanguageSchema, AnnouncementConfigSchema, SegmentConfigSchema, FullStoryAnalyticsConfigSchema, IntercomConfigSchema, PostHogConfigSchema, GTMConfigSchema, GoogleAnalytics4ConfigSchema, AmplitudeConfigSchema, MixpanelConfigSchema, HotJarConfigSchema, KoalaConfigSchema, LogRocketConfigSchema, PirschConfigSchema, PlausibleConfigSchema, FathomConfigSchema, ClearBitConfigSchema, HeapConfigSchema, AnalyticsConfigSchema, SearchbarPlacementSchema, TabsPlacementSchema, SwitcherPlacementSchema, ContentAlignmentSchema, HeaderPositionSchema, PageWidthSizeConfigSchema, SizeConfigSchema, TabsAlignmentSchema, ChangelogLayoutSchema, ApiReferenceLayoutSchema, DocsLayoutConfigSchema, FooterNavConfigSchema, DocsSidebarConfigSchema, DocsBodyConfigSchema, DocsTabsStyleSchema, DocsTabsObjectConfigSchema, DocsTabsConfigSchema, DocsPageActionsConfigSchema, LanguageSwitcherConfigSchema, ProductSwitcherConfigSchema, DocsThemeConfigSchema, HttpSnippetLanguageSchema, HttpSnippetsConfigSchema, SearchSettingsConfigSchema, DocsSettingsConfigSchema, TwitterCardSettingSchema, MetadataConfigSchema, RedirectConfigSchema, WithPermissionsSchema, NavbarLinkMetadataSchema, NavbarGithubMetadataSchema, NavbarLinkDropdownMetadataSchema, NavbarLinkSchema, FooterLinkSchema, CssConfigSchema, JsScriptStrategySchema, JsRemoteConfigSchema, JsFileConfigSchema, JsConfigSchema, IntegrationsConfigSchema, FontStyleSchema, FontDisplaySchema, CustomFontConfigVariantSchema, CustomFontConfigSchema, FontConfigV2Schema, DocsTypographyConfigV2Schema, ThemedFileIdSchema, ColorsConfigSchema, ColorUnthemedConfigSchema, ColorThemedConfigSchema, ColorConfigSchema, ColorsConfigV2Schema, FontConfigSchema, DocsTypographyConfigSchema, EditThisPageLaunchSchema, AIChatLocationSchema, AIChatWebsiteDatasourceSchema, AIChatDatasourceSchema, AIModelSchema, AIChatConfigSchema, PageDescriptionSourceSchema, AgentsConfigSchema, PageActionOptionSchema, CustomPageActionSchema, SkillSchema, SkillsConfigSchema, PageActionOptionsSchema, PageActionsConfigSchema, HeightSchema, PageContentSchema, NavigationNodeMetadataSchema, PageMetadataSchema, LinkMetadataSchema, NavigationTabLinkSchema, ChangelogItemSchema, ChangelogSectionSchema, ChangelogSectionV3Schema, ApiSectionV2Schema, GitHubRepoSchema, NpmPackageSchema, MavenPackageSchema, PypiPackageSchema, PublishedSdkSchema, PublishedPostmanCollectionSchema, ApiArtifactsSchema, ApiNavigationConfigItemSchema2, ApiNavigationConfigRootSchema2, DocsConfigIdSchema2, UrlFileSchema, ImageFileSchema, FileSchema2, BackgroundSchema, ThemeConfigSchema, DarkAndLightModeConfigSchema, ColorsConfigV3Schema, ApiNavigationConfigItemSchema3, ApiNavigationConfigRootSchema3, ApiSectionSchema, DocsSectionSchema, NavigationItemSchema, NavigationTabGroupSchema, NavigationTabSchema, UnversionedTabbedNavigationConfigSchema, UnversionedUntabbedNavigationConfigSchema, UnversionedNavigationConfigSchema, VersionedNavigationConfigDataSchema, VersionedNavigationConfigSchema, NavigationConfigSchema, DocsConfigSchema, DocsDefinitionSchema, BaseUrlSchema, LoadDocsForUrlResponseSchema, GetDocsForDomainLegacyInputSchema, GetDocsForDomainInputSchema, docsV1ReadContract, MAX_DOXYFILE_CONTENT_LENGTH, SETTING_LINE_RE, AT_DIRECTIVE_RE, BOOL_RE, FILE_PATTERN_RE, PREDEFINED_RE, ALIAS_DEF_RE, DOXYFILE_ALLOWED_KEYS, ALLOWED_HOSTNAMES, GithubUrlSchema, SafeBranchSchema, SafePackagePathSchema, LibraryDocsBaseConfigSchema, PythonLibraryDocsConfigSchema, SafeDoxyfileContentSchema, CppLibraryDocsConfigSchema, StartLibraryDocsGenerationInputSchema, StartLibraryDocsGenerationResponseSchema, GetLibraryDocsStatusInputSchema, LibraryDocsResultSchema, LibraryDocsGenerationStatusSchema, libraryDocsContract, GetOrganizationForUrlInputSchema, organizationContract, contract_exports, GetDocsUrlMetadataInputSchema, GetDocsUrlMetadataResponseSchema, GetDocsForUrlInputSchema, GetPrivateDocsForUrlInputSchema, ListAllDocsUrlsInputSchema, GetDocsConfigByIdInputSchema, GetSiteMetricsInputSchema, SiteMetricsSchema, DocsDefinitionField, GetDocsConfigByIdResponseSchema, DocsDomainItemSchema, ListAllDocsUrlsResponseSchema, getDocsForUrl, docsV2ReadContract, contract_exports2, OrgIdSchema2, FilePathSchema, DocsRegistrationIdSchema, HeightSchema2, FileS3UploadUrlSchema, StartDocsRegisterResponseSchema, PageContentSchema2, NavigationNodeMetadataSchema2, PageMetadataSchema2, LinkMetadataSchema2, ChangelogItemSchema2, ChangelogSectionSchema2, ChangelogSectionV2Schema, ChangelogSectionV3Schema2, NavigationTabLinkSchema2, ApiNavigationConfigItemSchema4, ApiNavigationConfigSubpackageSchema, ApiNavigationConfigRootSchema4, ApiSectionSchema2, ApiSectionV2Schema2, DocsSectionSchema2, NavigationItemSchema2, NavigationTabGroupSchema2, NavigationTabSchema2, NavigationTabV2Schema, UnversionedTabbedNavigationConfigSchema2, UnversionedUntabbedNavigationConfigSchema2, UnversionedNavigationConfigSchema2, VersionedNavigationConfigDataSchema2, VersionedNavigationConfigSchema2, NavigationConfigSchema2, ThemeConfigSchema2, DarkAndLightModeConfigSchema2, ColorsConfigV3Schema2, DocsConfigSchema2, DocsDefinitionSchema2, NpmPackageSchema2, MavenPackageSchema2, PypiPackageSchema2, PublishedSdkSchema2, PublishedPostmanCollectionSchema2, ApiArtifactsSchema2, InvalidCustomDomainErrorBodySchema, OverlappingCustomDomainsSchema, FilePathSchema2, FilePathInputSchema, ImageFilePathSchema, AuthConfigSchema, StartDocsRegisterV2InputSchema, StartDocsRegisterV2ResponseSchema, StartDocsPreviewRegisterInputSchema, StartDocsPreviewRegisterResponseSchema, FinishDocsRegisterV2InputSchema, TransferOwnershipInputSchema, SetIsArchivedInputSchema, SetDocsUrlMetadataInputSchema, AlgoliaDomainInputSchema, ListAlgoliaPreviewWhitelistResponseSchema, DeleteDocsSiteInputSchema, RemoveCustomDomainAliasInputSchema, Bcp47LocaleSchema2, RegisterTranslationInputSchema, RegisterTranslationResponseSchema, docsV2WriteContract, InvalidateCachedDocsInputSchema, docsCacheContract, MissingContentSchema, RegisterResponseSchema, FinishResponseSchema, ArchiveSiteInputSchema, ArchiveSiteResponseSchema, MigrateV2SiteInputSchema, StartStaticBuildInputSchema, StartStaticBuildResponseSchema, ResolveStaticServingHostInputSchema, ResolveStaticServingHostResponseSchema, MigrateV2SiteSkipReasonSchema, MigrateV2SiteResponseSchema, BlobRefSchema, PageBlobRefSchema, FileManifestEntrySchema, ImageRefSchema, PathOrUrlSchema, RgbaSchema, BackgroundColorSchema, ACCENT_SCALE_KEYS, accentScaleShape, LedgerThemeConfigSchema, LedgerColorsConfigSchema, LedgerFontVariantSchema, LedgerFontConfigSchema, LedgerTypographySchema, LedgerJsFileSchema, LedgerJsConfigSchema, LedgerMetadataConfigSchema, NavbarLinksFieldSchema, FooterLinksFieldSchema, LayoutFieldSchema, ThemeFieldSchema, SettingsFieldSchema, AnalyticsFieldSchema, AIChatFieldSchema, PageActionsFieldSchema, LedgerAgentsConfigSchema, LedgerConfigSchema, MetadataStringArraySchema, FeatureFlagMetadataSchema, LinkTargetSchema2, CollapsedSchema, PlaygroundSettingsSchema, LedgerAvailabilitySchema, LedgerArtifactTypeSchema, LedgerMetadataBaseSchema, NodeMetadataFields, ApiNodeMetadataFields, LedgerSegmentDetailMetadataObjectSchema, LedgerSegmentDetailMetadataSchema, LedgerSegmentMetadataObjectSchema, LedgerSegmentMetadataSchema, LedgerMarkdownMetadataSchema, LedgerRestMetadataSchema, LedgerWebSocketMetadataSchema, LedgerWebhookMetadataSchema, LedgerGrpcMetadataSchema, LedgerGraphQlMetadataSchema, LedgerGraphQlTypeMetadataSchema, LedgerChangelogEntryMetadataSchema, LedgerLinkMetadataSchema, LedgerFileArtifactMetadataSchema, LedgerStructuralRedirectKindSchema, LedgerRedirectKindSchema, LedgerRedirectMetadataSchema, LedgerArtifactMetadataSchema, LEDGER_ARTIFACT_METADATA_SCHEMAS, NavRouteBaseSchema, LedgerNavRouteSchema, DocsPublishGitInputSchema, DocsContentFieldsSchema, LocaleEntrySchemaInternal, LocaleEntrySchema, DocsPublishInputSchemaInternal, DocsPublishInputSchema, LedgerPreviewRegisterInputSchemaInternal, LedgerPreviewRegisterInputSchema, LedgerPreviewRegisterResponseSchema, docsLedgerContract, CurrentVersionInputSchema, CurrentPreviewInputSchema, CurrentVersionResponseSchema, ContentRefSchema, SegmentDetailSchema, SegmentSchema, VersionMetadataInputSchema, VersionMetadataResponseSchema, PageContentInputSchema, PageContentResponseSchema, BatchPageContentInputSchema, BatchPageContentItemSchema, BatchPageContentResponseSchema, NavInputSchema, NavResponseSchema, RouteContextInputSchema, RouteContextResponseBaseSchema, RouteContextResponseSchema, TopLevelNavigationInputSchema, TopLevelNavigationResponseSchema, VersionSwitchTargetsInputSchema, VersionSwitchTargetSchema, VersionSwitchTargetsResponseSchema, ApiDefinitionInputSchema, ApiDefinitionResponseSchema, PrunedApiDefinitionInputSchema, PrunedApiDefinitionResponseSchema, FileArtifactInputSchema, FileArtifactResponseSchema, PresignedFileDownloadInputSchema, PresignedFileDownloadResponseSchema, FileMetadataInputSchema, FileMetadataResponseSchema, docsLedgerReadContract, GetSnapshotInputSchema, SetSnapshotInputSchema, GetDocumentsForBranchesInputSchema, EditorDocumentSchema, GetSnapshotResponseSchema, GetDocumentsForBranchesResponseSchema, editorSnapshotContract, GeneratorLanguageSchema, ScriptSchema, GeneratorScriptsSchema, GeneratorTypeSchema, ChangelogEntryTypeSchema, ChangelogEntrySchema, YankSchema, ReleaseTypeSchema, VersionRangeSchema, GeneratorSchema, GeneratorOutputSchema2, GetGeneratorByImageInputSchema, GetGeneratorInputSchema, GeneratorReleaseSchema, GeneratorReleaseRequestSchema, GetLatestGeneratorReleaseInputSchema, GetGeneratorChangelogInputSchema, ChangelogResponseSchema, GetChangelogResponseSchema, GetGeneratorReleaseInputSchema, ListGeneratorReleasesInputSchema, ListGeneratorReleasesResponseSchema, CliReleaseSchema, GetLatestCliReleaseInputSchema, GetCliChangelogInputSchema, GetMinCliForIrInputSchema, UpsertCliReleaseInputSchema, GetCliReleaseInputSchema, ListCliReleasesInputSchema, ListCliReleasesResponseSchema, generatorsContract, generatorVersionsContract, generatorCliContract, CheckRunSchema, GithubRepositoryIdSchema, RepositoryIdSchema, BaseRepositorySchema, SdkRepositorySchema, FernConfigRepositorySchema, FernRepositorySchema, GithubUserSchema, GithubTeamSchema, PullRequestReviewerSchema, PullRequestStateSchema, PullRequestSchema, ListRepositoriesResponseSchema, ListPullRequestsResponseSchema, GetRepositoryInputSchema, ListRepositoriesInputSchema, DeleteRepositoryInputSchema, GetPullRequestInputSchema, ListPullRequestsInputSchema, DeletePullRequestInputSchema, gitContract, McpAuthSchemeSchema, HttpUrlSchema, McpMetadataSchema, DeploymentConfigSchema, McpPathSegmentSchema, McpDeploymentStatusSchema, McpModuleSchema, McpGitInputSchema, DeployMcpServerInputSchema, GetMcpServerInputSchema, ListMcpServersInputSchema, ListMcpDeploymentsInputSchema, DeleteMcpServerInputSchema, McpDeploymentSummarySchema, McpServerSchema, ListMcpServersResponseSchema, ListMcpDeploymentsResponseSchema, mcpHostingContract, PdfExportScopeSchema, PdfExportOptionsV1Schema, PdfExportOptionsSchema, PdfExportTaskStatusSchema, PdfExportTaskSchema, ListPdfExportTasksResponseSchema, PdfExportDownloadResponseSchema, CreatePdfExportTaskInputSchema, ListPdfExportTasksInputSchema, GetPdfExportTaskInputSchema, UpdatePdfExportTaskInputSchema, GetPdfExportDownloadUrlInputSchema, CleanupPdfExportsResponseSchema, pdfExportContract, LanguageEnumSchema, VersionBumpEnumSchema, ComputeSemanticVersionInputSchema, ComputeSemanticVersionOutputSchema, sdksContract, SlugsInputSchema, SlugEntrySchema, MarkdownEntrySchema, GetSlugEntriesResponseSchema, GetMarkdownEntriesResponseSchema, slugsContract, contract_exports3, TypeScriptSdkSchema, PythonSdkSchema, GoSdkSchema, RubySdkSchema, JavaSdkSchema, CsharpSdkSchema, BaseSnippetCreateSchema, SdkSnippetsCreateSchema, snippetsFactoryContract, ParameterPayloadSchema, AuthPayloadSchema, CustomSnippetPayloadSchema, snippetsContract, SnippetRegistryEntrySchema, RegisterInputSchema, RegisterBatchInputSchema, GetInputSchema, EndpointSnippetTemplateSchema, templatesContract, GenerateTokenInputSchema, RevokeTokenInputSchema, GenerateTokenOutputSchema, tokensContract, FdrClient, APIV1Db_exports, EndpointSnippetTemplatesSchema, DbHttpRequestSchema, DbHttpRequestsV2Schema, DbEndpointDefinitionSchema, DbApiDefinitionPackageSchema, DbApiDefinitionSubpackageSchema, DbApiDefinitionSchema, DbEndpointWithContextSchema, APIV1Read_exports, WebSocketMessageOrigin3, APIV1Write_exports, DocsV1Db_exports, BackgroundSchema2, ThemeConfigSchema3, DarkAndLightModeConfigSchema3, ColorsConfigV3Schema3, DbFileInfoSchema, DbImageFileInfoSchema, DbFileInfoV2Schema, NavigationTabGroupSchema3, NavigationTabSchema3, NavigationTabV2Schema2, ApiSectionSchema3, DocsSectionSchema3, NavigationItemSchema3, UnversionedTabbedNavigationConfigSchema3, UnversionedUntabbedNavigationConfigSchema3, UnversionedNavigationConfigSchema3, VersionedNavigationConfigDataSchema3, VersionedNavigationConfigSchema3, NavigationConfigSchema3, DocsDbConfigSchema, DocsDefinitionDbV1Schema, DocsDefinitionDbV2Schema, DocsDefinitionDbV3Schema, DocsDefinitionDbSchema, DocsV1Read_exports, DocsV1Write_exports, FdrAPI_exports, latest_exports2, v1_exports, NavigationV1Availability, ApiLatestWithSubs_exports, ApiLatestEndpoint_exports, ApiLatestWebhook_exports, ApiLatestWebsocket_exports, DocsLatest_exports, StringOrStringListSchema, TwitterCardSettingSchema2, JsonLdBreadcrumbListElementSchema, JsonLdBreadcrumbListSchema, WithJsonLdBreadcrumbsSchema, WithMetadataConfigSchema, LayoutSchema, LogoConfigurationSchema, LogoSchema, BreadcrumbItemSchema, FrontmatterSchema, ResolvedMdxSchema, DocsV1Commons_exports, libraryDocs_exports, PythonClassKind, PythonParameterKind, Sdks_exports, docs, api, libraryDocs, sdks, navigation, MAX_OPTIONAL_EXAMPLES_FOR_QUERY_PARAMS, ApiDefinitionTransformationContext, DEFAULT_DARK_MODE_ACCENT_PRIMARY, DEFAULT_LIGHT_MODE_ACCENT_PRIMARY, SDKSnippetHolder, EMPTY_DARK_THEME, EMPTY_LIGHT_THEME, docs_exports3, EMPTY_FRONTMATTER, navigation_exports, RETURN_PAGEID, RETURN_OVERVIEW_PAGEID, RETURN_UNDEFINED, SKIP, STOP, ApiDefinitionHolder, ApiTypeIdVisitor2, ApiDefinitionPruner2, v1_exports2, ChangelogNavigationConverter, NodeIdGenerator, SlugGenerator, ApiReferenceNavigationConverter, NavigationConfigConverter, RETURN_PAGEID2, RETURN_OVERVIEW_PAGEID2, RETURN_UNDEFINED2, NodeCollectorInstances, NodeCollector, MAX_CHANGELOG_ENTRIES_MINIMUM, CHANGELOG_RECENCY_MONTHS, migrators_exports, FernNavigationV1ToLatest, utils_exports2, isHeaderTab, RETURN_UNDEFINED3, RETURN_API_DEFINITION_ID, SKIP_URL_SLUG_PREFIX, SYNTHETIC_SEGMENT_RE, Pruner;
220984
221235
  var init_js = __esm({
220985
- "../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.102-07ddc01b9b_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs"() {
221236
+ "../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.122-10cd6e7ad7_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs"() {
220986
221237
  "use strict";
220987
221238
  init_array();
220988
221239
  init_zod2();
@@ -221071,6 +221322,11 @@ var init_js = __esm({
221071
221322
  init_fetch3();
221072
221323
  init_dist7();
221073
221324
  init_zod2();
221325
+ init_zod2();
221326
+ init_dist5();
221327
+ init_fetch3();
221328
+ init_dist7();
221329
+ init_zod2();
221074
221330
  init_dist5();
221075
221331
  init_fetch3();
221076
221332
  init_dist7();
@@ -221120,9 +221376,9 @@ var init_js = __esm({
221120
221376
  init_string6();
221121
221377
  import_ts_essentials10 = __toESM(require_dist8(), 1);
221122
221378
  init_string6();
221379
+ import_ts_essentials11 = __toESM(require_dist8(), 1);
221123
221380
  init_object11();
221124
221381
  init_object11();
221125
- import_ts_essentials11 = __toESM(require_dist8(), 1);
221126
221382
  init_string6();
221127
221383
  import_ts_essentials12 = __toESM(require_dist8(), 1);
221128
221384
  __defProp4 = Object.defineProperty;
@@ -221286,24 +221542,28 @@ var init_js = __esm({
221286
221542
  buildRequestUrl: () => buildRequestUrl,
221287
221543
  buildSdkSnippetRequest: () => buildSdkSnippetRequest,
221288
221544
  cleanLanguage: () => cleanLanguage,
221545
+ collectGraphqlTypeReferrers: () => collectGraphqlTypeReferrers,
221289
221546
  collectReferencedTypeIds: () => collectReferencedTypeIds,
221290
- collectReferencingTypeIdsByTypeId: () => collectReferencingTypeIdsByTypeId,
221547
+ collectReferencingTypeIds: () => collectReferencingTypeIds,
221291
221548
  collectTypeDefinitionTree: () => collectTypeDefinitionTree,
221292
221549
  collectTypeDefinitionTreeForObjectProperty: () => collectTypeDefinitionTreeForObjectProperty,
221293
221550
  convertToCurl: () => convertToCurl,
221294
221551
  createEndpointContext: () => createEndpointContext,
221295
221552
  createGraphqlContext: () => createGraphqlContext,
221553
+ createGraphqlTypeContext: () => createGraphqlTypeContext,
221296
221554
  createGrpcContext: () => createGrpcContext,
221297
221555
  createWebSocketContext: () => createWebSocketContext,
221298
221556
  createWebhookContext: () => createWebhookContext,
221299
221557
  filterReferencedTypes: () => filterReferencedTypes,
221300
221558
  generateCurlSnippet: () => generateCurlSnippet,
221301
221559
  generateGraphQlSnippet: () => generateGraphQlSnippet,
221560
+ generateGraphQlTypeSdl: () => generateGraphQlTypeSdl,
221302
221561
  generateHttpSnippets: () => generateHttpSnippets,
221303
221562
  generateSdkSnippetForLanguage: () => generateSdkSnippetForLanguage,
221304
221563
  generateSdkSnippets: () => generateSdkSnippets,
221305
221564
  getGraphqlOperationIds: () => getGraphqlOperationIds,
221306
221565
  getHarRequest: () => getHarRequest,
221566
+ getImplementorTypeIds: () => getImplementorTypeIds,
221307
221567
  getMessageForStatus: () => getMessageForStatus,
221308
221568
  joiner: () => joiner,
221309
221569
  preprocessQueryParameters: () => preprocessQueryParameters,
@@ -221314,6 +221574,8 @@ var init_js = __esm({
221314
221574
  toColonEndpointPathLiteral: () => toColonEndpointPathLiteral,
221315
221575
  toCurlyBraceEndpointPathLiteral: () => toCurlyBraceEndpointPathLiteral,
221316
221576
  toSnippetHttpRequest: () => toSnippetHttpRequest,
221577
+ trimGraphQlOperationToReferences: () => trimGraphQlOperationToReferences,
221578
+ trimTypeDefinitionToReferences: () => trimTypeDefinitionToReferences,
221317
221579
  unwrapDiscriminatedUnionVariant: () => unwrapDiscriminatedUnionVariant,
221318
221580
  unwrapObjectType: () => unwrapObjectType,
221319
221581
  unwrapReference: () => unwrapReference,
@@ -221481,8 +221743,8 @@ var init_js = __esm({
221481
221743
  regex3 = new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${word}))|(${word}))(${word}*[\u2019']*${word}*)`, "g");
221482
221744
  convertToRegExp = (specials2) => specials2.map((s5) => [new RegExp(`\\b${s5}\\b`, "gi"), s5]);
221483
221745
  src_default = (str2, options2 = {}) => {
221484
- str2 = str2.toLowerCase().replace(regex3, (m3, lead = "", forced, lower, rest, offset2, string34) => {
221485
- const isLastWord = m3.length + offset2 >= string34.length;
221746
+ str2 = str2.toLowerCase().replace(regex3, (m3, lead = "", forced, lower, rest, offset2, string36) => {
221747
+ const isLastWord = m3.length + offset2 >= string36.length;
221486
221748
  const parsedMatch = parseMatch(m3);
221487
221749
  if (!parsedMatch) {
221488
221750
  return m3;
@@ -222456,24 +222718,29 @@ var init_js = __esm({
222456
222718
  ApiNavigationConfigRootSchema = objectType({
222457
222719
  items: arrayType(ApiNavigationConfigItemSchema)
222458
222720
  });
222721
+ PlaygroundDescriptionSchema = stringType().nullish();
222459
222722
  BearerAuthSchema = objectType({
222460
222723
  description: stringType().nullish(),
222724
+ playgroundDescription: PlaygroundDescriptionSchema,
222461
222725
  tokenName: stringType().nullish()
222462
222726
  });
222463
222727
  BasicAuthSchema = objectType({
222464
222728
  description: stringType().nullish(),
222729
+ playgroundDescription: PlaygroundDescriptionSchema,
222465
222730
  usernameName: stringType().nullish(),
222466
222731
  passwordName: stringType().nullish(),
222467
222732
  passwordAlwaysEmpty: booleanType().nullish()
222468
222733
  });
222469
222734
  HeaderAuthSchema = objectType({
222470
222735
  description: stringType().nullish(),
222736
+ playgroundDescription: PlaygroundDescriptionSchema,
222471
222737
  nameOverride: stringType().nullish(),
222472
222738
  headerWireValue: stringType(),
222473
222739
  prefix: stringType().nullish()
222474
222740
  });
222475
222741
  OAuthClientCredentialsReferencedEndpointSchema = objectType({
222476
222742
  description: stringType().nullish(),
222743
+ playgroundDescription: PlaygroundDescriptionSchema,
222477
222744
  endpointId: EndpointIdSchema,
222478
222745
  accessTokenLocator: stringType(),
222479
222746
  headerName: stringType().nullish(),
@@ -223479,6 +223746,7 @@ var init_js = __esm({
223479
223746
  const namespaces = /* @__PURE__ */ new Set();
223480
223747
  const authSchemes = /* @__PURE__ */ new Set();
223481
223748
  const seedTypeIds = /* @__PURE__ */ new Set();
223749
+ const graphqlTypePageIds = /* @__PURE__ */ new Set();
223482
223750
  for (const node4 of nodes) {
223483
223751
  if (node4.type === "endpoint") {
223484
223752
  const found = this.api.endpoints[node4.endpointId];
@@ -223519,10 +223787,17 @@ var init_js = __esm({
223519
223787
  const found = this.api.types[node4.typeId];
223520
223788
  if (found) {
223521
223789
  seedTypeIds.add(node4.typeId);
223790
+ graphqlTypePageIds.add(node4.typeId);
223791
+ for (const implementorId of this.getImplementorTypeIds(node4.typeId)) {
223792
+ seedTypeIds.add(implementorId);
223793
+ }
223522
223794
  }
223523
223795
  }
223524
223796
  }
223525
223797
  toRet.types = this.pruneTypes(toRet, seedTypeIds);
223798
+ if (graphqlTypePageIds.size > 0) {
223799
+ this.addBackReferences(toRet, graphqlTypePageIds);
223800
+ }
223526
223801
  namespaces.forEach((subpackageId) => {
223527
223802
  const subpackage = this.api.subpackages[subpackageId];
223528
223803
  if (subpackage) {
@@ -223537,6 +223812,36 @@ var init_js = __esm({
223537
223812
  });
223538
223813
  return toRet;
223539
223814
  }
223815
+ /**
223816
+ * Add what *references* the type a page documents. The closure above walks references
223817
+ * forward, so "what incorporates this type" is absent from a type page's payload unless it
223818
+ * is seeded here; the referring entries are trimmed to the referencing fields and
223819
+ * arguments only, and are deliberately added after `pruneTypes` so their own closures are
223820
+ * not pulled in with them.
223821
+ */
223822
+ addBackReferences(toRet, pageTypeIds) {
223823
+ for (const referencingId of collectReferencingTypeIds(this.api.types, pageTypeIds)) {
223824
+ if (toRet.types[referencingId] != null) {
223825
+ continue;
223826
+ }
223827
+ const definition3 = this.api.types[referencingId];
223828
+ if (definition3 != null) {
223829
+ toRet.types[referencingId] = trimTypeDefinitionToReferences(definition3, pageTypeIds);
223830
+ }
223831
+ }
223832
+ for (const [operationId, operation] of Object.entries(this.api.graphqlOperations)) {
223833
+ if (toRet.graphqlOperations[operationId] != null) {
223834
+ continue;
223835
+ }
223836
+ const trimmed2 = trimGraphQlOperationToReferences(operation, pageTypeIds);
223837
+ if (trimmed2 != null) {
223838
+ toRet.graphqlOperations[operationId] = trimmed2;
223839
+ }
223840
+ }
223841
+ }
223842
+ getImplementorTypeIds(typeId) {
223843
+ return getImplementorTypeIds(this.api.types, typeId);
223844
+ }
223540
223845
  pruneTypes(partiallyPrunedApi, seedTypeIds = /* @__PURE__ */ new Set()) {
223541
223846
  let typeIds = new Set(seedTypeIds);
223542
223847
  partiallyPrunedApi.globalHeaders?.forEach((header) => {
@@ -224533,6 +224838,14 @@ var init_js = __esm({
224533
224838
  { targetId: "swift", clientId: "nsurlsession" }
224534
224839
  ];
224535
224840
  snippetCache = /* @__PURE__ */ new WeakMap();
224841
+ SDL_KEYWORD = {
224842
+ object: "type",
224843
+ input: "input",
224844
+ interface: "interface",
224845
+ enum: "enum",
224846
+ union: "union",
224847
+ scalar: "scalar"
224848
+ };
224536
224849
  DEFAULT_MAX_DEPTH = 2;
224537
224850
  IMPORT_PREFIXES = {
224538
224851
  csharp: "using RestSharp;\n\n",
@@ -225561,12 +225874,19 @@ var init_js = __esm({
225561
225874
  endDate: stringType()
225562
225875
  });
225563
225876
  AnalyticsSourceSchema = enumType(["cache", "live"]);
225564
- LlmBotTrafficResponseSchema = objectType({
225877
+ StaticContentGroupBySchema = enumType(["file", "provider"]);
225878
+ StaticContentTrafficInputSchema = DashboardAnalyticsCommonInputSchema.extend({
225879
+ groupBy: StaticContentGroupBySchema.optional()
225880
+ });
225881
+ StaticContentTrafficResponseSchema = objectType({
225565
225882
  resolvedDateRange: ResolvedDateRangeSchema,
225566
- providers: arrayType(
225883
+ groupBy: StaticContentGroupBySchema,
225884
+ rows: arrayType(
225567
225885
  objectType({
225568
- provider: stringType(),
225569
- count: numberType()
225886
+ key: stringType(),
225887
+ requests: numberType(),
225888
+ agentViews: numberType().optional(),
225889
+ humanViews: numberType().optional()
225570
225890
  })
225571
225891
  ),
225572
225892
  source: AnalyticsSourceSchema
@@ -225670,14 +225990,61 @@ var init_js = __esm({
225670
225990
  searchBehavior: enumType(["hierarchical", "unified"]).nullable(),
225671
225991
  passwordProtection: SitePasswordProtectionSchema
225672
225992
  });
225993
+ ListDocsPagesInputSchema = objectType({
225994
+ orgId: stringType(),
225995
+ domain: stringType().min(1),
225996
+ basepath: stringType().optional(),
225997
+ prefix: stringType().optional(),
225998
+ contains: stringType().optional(),
225999
+ limit: numberType().int().min(1).max(200).optional(),
226000
+ offset: numberType().int().min(0).optional()
226001
+ });
226002
+ DocsPageSummarySchema = objectType({
226003
+ /** Full published slug, without a leading slash (e.g. `protect/api-reference/jobs/get-status`). */
226004
+ slug: stringType(),
226005
+ url: stringType(),
226006
+ title: stringType(),
226007
+ /** Artifact type backing the page, e.g. `markdown`, `rest`, `webhook`, `changelog`. */
226008
+ nodeType: stringType()
226009
+ });
226010
+ ListDocsPagesResponseSchema = objectType({
226011
+ pages: arrayType(DocsPageSummarySchema),
226012
+ /** Pages matching the filters across the whole site, not just this page of results. */
226013
+ totalMatched: numberType(),
226014
+ /** Every page on the site, so a caller can tell a narrow filter from a small site. */
226015
+ totalPages: numberType(),
226016
+ /** Pass back as `offset` for the next page. Null when this is the last one. */
226017
+ nextOffset: numberType().nullable()
226018
+ });
226019
+ GetDocsPageInputSchema = objectType({
226020
+ orgId: stringType(),
226021
+ domain: stringType().min(1),
226022
+ basepath: stringType().optional(),
226023
+ /** Published slug or pathname; a leading slash is accepted. */
226024
+ slug: stringType().min(1)
226025
+ });
226026
+ DocsPageContentSchema = DocsPageSummarySchema.extend({
226027
+ /**
226028
+ * The page's source markdown. Null for pages generated from an API definition
226029
+ * (endpoints, websockets, webhooks), which have no markdown of their own.
226030
+ */
226031
+ markdown: stringType().nullable()
226032
+ });
226033
+ GetDocsPageResponseSchema = objectType({
226034
+ page: DocsPageContentSchema.nullable(),
226035
+ /** Slugs closest to the requested one, when it matched no page. */
226036
+ suggestions: arrayType(stringType())
226037
+ });
225673
226038
  dashboardAgentContract = {
225674
- getLlmBotTraffic: oc.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema).output(LlmBotTrafficResponseSchema),
226039
+ getStaticContentTraffic: oc.route({ method: "POST", path: "/get-static-content-traffic" }).input(StaticContentTrafficInputSchema).output(StaticContentTrafficResponseSchema),
225675
226040
  getRecentFeedback: oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
225676
226041
  queryAnalytics: oc.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
225677
226042
  listOrgMembers: oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
225678
226043
  getSiteConfig: oc.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
225679
226044
  authorizeDocsEdit: oc.route({ method: "POST", path: "/authorize-docs-edit" }).input(DashboardGetSiteConfigInputSchema).output(AuthorizeDocsEditResponseSchema),
225680
- getSiteSettings: oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema)
226045
+ getSiteSettings: oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema),
226046
+ listDocsPages: oc.route({ method: "POST", path: "/list-docs-pages" }).input(ListDocsPagesInputSchema).output(ListDocsPagesResponseSchema),
226047
+ getDocsPage: oc.route({ method: "POST", path: "/get-docs-page" }).input(GetDocsPageInputSchema).output(GetDocsPageResponseSchema)
225681
226048
  };
225682
226049
  FileIdSchema2 = stringType();
225683
226050
  PageIdSchema2 = stringType();
@@ -227150,6 +227517,80 @@ var init_js = __esm({
227150
227517
  ArchiveSiteResponseSchema = objectType({
227151
227518
  status: enumType(["archived", "already_archived", "not_found"])
227152
227519
  });
227520
+ MigrateV2SiteInputSchema = objectType({
227521
+ domain: stringType().min(1),
227522
+ /** "" for a root site, otherwise a leading-slash basepath. */
227523
+ basepath: stringType().default(""),
227524
+ /** Report what would convert without writing anything. */
227525
+ dryRun: booleanType().default(false),
227526
+ /** Convert again after a manual rollback left the row on a superseded ledger deployment. */
227527
+ allowRemigration: booleanType().default(false)
227528
+ });
227529
+ StartStaticBuildInputSchema = objectType({
227530
+ domain: stringType().min(1),
227531
+ /** "" for a root site, otherwise a leading-slash basepath. */
227532
+ basepath: stringType().default("")
227533
+ });
227534
+ StartStaticBuildResponseSchema = objectType({
227535
+ /** Mirrors the dispatcher's own outcomes, plus the sites it can't resolve. */
227536
+ status: enumType(["created", "already-running", "host-not-enabled", "disabled", "not-published"]),
227537
+ domain: stringType(),
227538
+ basepath: stringType(),
227539
+ /** The deployment being built, absent when the site has never published. */
227540
+ deploymentId: stringType().optional(),
227541
+ jobName: stringType().optional(),
227542
+ /** The host the build is exported to and served from, which may not be `domain`. */
227543
+ host: stringType().optional()
227544
+ });
227545
+ ResolveStaticServingHostInputSchema = objectType({
227546
+ domain: stringType().min(1),
227547
+ /** "" for a root site, otherwise a leading-slash basepath. */
227548
+ basepath: stringType().default("")
227549
+ });
227550
+ ResolveStaticServingHostResponseSchema = objectType({
227551
+ domain: stringType(),
227552
+ basepath: stringType(),
227553
+ /**
227554
+ * The hostname the static build is exported to and served from — always a
227555
+ * hostname Fern owns for a published site, even one on a customer's domain.
227556
+ */
227557
+ servingHost: stringType(),
227558
+ /** False when nothing routes to the serving host, so cutting over would serve nothing. */
227559
+ routable: booleanType(),
227560
+ /**
227561
+ * The deployment the serving host was derived from; absent when the site
227562
+ * has never published, in which case only its own hostname was available.
227563
+ */
227564
+ deploymentId: stringType().optional()
227565
+ });
227566
+ MigrateV2SiteSkipReasonSchema = enumType([
227567
+ "not-registered",
227568
+ "preview",
227569
+ "already-ledger",
227570
+ "has-translations",
227571
+ "no-navigation"
227572
+ ]);
227573
+ MigrateV2SiteResponseSchema = discriminatedUnionType("outcome", [
227574
+ objectType({
227575
+ outcome: literalType("skipped"),
227576
+ domain: stringType(),
227577
+ basepath: stringType(),
227578
+ reason: MigrateV2SiteSkipReasonSchema
227579
+ }),
227580
+ objectType({
227581
+ outcome: literalType("convertible"),
227582
+ domain: stringType(),
227583
+ basepath: stringType(),
227584
+ pageCount: numberType(),
227585
+ fileCount: numberType()
227586
+ }),
227587
+ objectType({
227588
+ outcome: literalType("migrated"),
227589
+ domain: stringType(),
227590
+ basepath: stringType(),
227591
+ deploymentId: stringType()
227592
+ })
227593
+ ]);
227153
227594
  BlobRefSchema = objectType({
227154
227595
  hash: stringType(),
227155
227596
  contentType: stringType(),
@@ -227532,24 +227973,7 @@ var init_js = __esm({
227532
227973
  LedgerGraphQlTypeMetadataSchema = LedgerMetadataBaseSchema.extend({
227533
227974
  ...ApiNodeMetadataFields,
227534
227975
  typeId: stringType(),
227535
- typeCategory: GraphQlTypeCategorySchema,
227536
- /**
227537
- * Ids of the types that reference this one directly, for the "referenced by"
227538
- * section of a type page.
227539
- *
227540
- * Computed at publish, because it cannot be derived on the read side: a type
227541
- * page's pruned definition contains what the type reaches, not what reaches
227542
- * it, and the navigation tree carries no field-level type references.
227543
- *
227544
- * Types rather than operations: where a schema namespaces its operations
227545
- * behind hub types, almost no operation names a leaf type directly, so an
227546
- * operation-keyed list is empty for most types. The type graph has the edge
227547
- * that exists, and it is small -- single digits for the large majority.
227548
- *
227549
- * Optional: absent on artifacts written before this field existed, and
227550
- * omitted entirely when nothing references the type.
227551
- */
227552
- referencedByTypeIds: arrayType(stringType()).optional()
227976
+ typeCategory: GraphQlTypeCategorySchema
227553
227977
  });
227554
227978
  LedgerChangelogEntryMetadataSchema = LedgerMetadataBaseSchema.extend({
227555
227979
  ...NodeMetadataFields,
@@ -227768,7 +228192,10 @@ var init_js = __esm({
227768
228192
  register: oc.route({ method: "POST", path: "/register" }).input(DocsPublishInputSchema).output(RegisterResponseSchema),
227769
228193
  previewRegister: oc.route({ method: "POST", path: "/preview/init" }).input(LedgerPreviewRegisterInputSchema).output(LedgerPreviewRegisterResponseSchema),
227770
228194
  finish: oc.route({ method: "POST", path: "/register/finish" }).input(DocsPublishInputSchema).output(FinishResponseSchema),
227771
- archiveSite: oc.route({ method: "POST", path: "/archive" }).input(ArchiveSiteInputSchema).output(ArchiveSiteResponseSchema)
228195
+ archiveSite: oc.route({ method: "POST", path: "/archive" }).input(ArchiveSiteInputSchema).output(ArchiveSiteResponseSchema),
228196
+ migrateV2Site: oc.route({ method: "POST", path: "/migrate-v2" }).input(MigrateV2SiteInputSchema).output(MigrateV2SiteResponseSchema),
228197
+ startStaticBuild: oc.route({ method: "POST", path: "/static-build" }).input(StartStaticBuildInputSchema).output(StartStaticBuildResponseSchema),
228198
+ resolveStaticServingHost: oc.route({ method: "POST", path: "/static-build/serving-host" }).input(ResolveStaticServingHostInputSchema).output(ResolveStaticServingHostResponseSchema)
227772
228199
  };
227773
228200
  CurrentVersionInputSchema = objectType({
227774
228201
  domain: stringType(),
@@ -228392,6 +228819,154 @@ var init_js = __esm({
228392
228819
  path: "/pull-request/{repositoryOwner}/{repositoryName}/{pullRequestNumber}/delete"
228393
228820
  }).input(DeletePullRequestInputSchema)
228394
228821
  };
228822
+ McpAuthSchemeSchema = discriminatedUnionType("type", [
228823
+ objectType({ type: literalType("bearer") }).passthrough(),
228824
+ objectType({
228825
+ type: literalType("apiKey"),
228826
+ paramName: stringType().min(1),
228827
+ in: enumType(["header", "query", "cookie"])
228828
+ }).passthrough(),
228829
+ objectType({ type: literalType("basic") }).passthrough()
228830
+ ]);
228831
+ HttpUrlSchema = stringType().url().refine((value2) => /^https?:\/\//i.test(value2), {
228832
+ message: "must be an http(s) URL"
228833
+ });
228834
+ McpMetadataSchema = objectType({
228835
+ name: stringType().min(1),
228836
+ toolsets: recordType(stringType(), arrayType(stringType())),
228837
+ toolsetMetadata: arrayType(
228838
+ objectType({
228839
+ name: stringType(),
228840
+ title: stringType(),
228841
+ description: stringType(),
228842
+ toolCount: numberType().int().nonnegative()
228843
+ }).passthrough()
228844
+ ),
228845
+ auth: objectType({
228846
+ schemes: arrayType(McpAuthSchemeSchema),
228847
+ required: booleanType()
228848
+ }).passthrough(),
228849
+ skippedTools: arrayType(objectType({ name: stringType(), reason: stringType() }).passthrough()),
228850
+ environmentVariables: arrayType(
228851
+ objectType({
228852
+ name: stringType(),
228853
+ description: stringType(),
228854
+ required: booleanType()
228855
+ }).passthrough()
228856
+ ),
228857
+ baseUrl: HttpUrlSchema,
228858
+ followRedirects: booleanType(),
228859
+ maxRedirects: numberType().int().nonnegative(),
228860
+ allowedRedirectHosts: arrayType(stringType())
228861
+ }).passthrough();
228862
+ DeploymentConfigSchema = objectType({
228863
+ serverName: stringType().min(1),
228864
+ baseUrl: HttpUrlSchema,
228865
+ /**
228866
+ * Runtime rewrite of the upstream base URL. Part of the edge contract
228867
+ * (the outbound worker honors it) but not yet written by FDR.
228868
+ */
228869
+ baseUrlOverride: HttpUrlSchema.optional(),
228870
+ followRedirects: booleanType(),
228871
+ maxRedirects: numberType().int().nonnegative(),
228872
+ allowedRedirectHosts: arrayType(stringType()),
228873
+ authSchemes: arrayType(McpAuthSchemeSchema),
228874
+ authRequired: booleanType(),
228875
+ toolsets: recordType(stringType(), arrayType(stringType())),
228876
+ toolsetMetadata: McpMetadataSchema.shape.toolsetMetadata
228877
+ });
228878
+ McpPathSegmentSchema = stringType().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
228879
+ McpDeploymentStatusSchema = enumType(["PUBLISHING", "SUCCEEDED", "FAILED"]);
228880
+ McpModuleSchema = objectType({
228881
+ name: stringType().regex(/^[A-Za-z0-9._/-]+$/),
228882
+ hash: stringType().regex(/^[0-9a-f]{64}$/),
228883
+ contentType: stringType().min(1)
228884
+ }).strict();
228885
+ McpGitInputSchema = objectType({
228886
+ repoUrl: stringType(),
228887
+ branch: stringType(),
228888
+ commitSha: stringType().optional()
228889
+ }).strict();
228890
+ DeployMcpServerInputSchema = objectType({
228891
+ orgId: McpPathSegmentSchema,
228892
+ slug: McpPathSegmentSchema,
228893
+ mainModule: stringType().min(1),
228894
+ compatibilityDate: stringType().regex(/^\d{4}-\d{2}-\d{2}$/),
228895
+ compatibilityFlags: arrayType(stringType()),
228896
+ // Bounded so a single deploy request cannot fan out unbounded parallel
228897
+ // CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
228898
+ // 20 leaves room for wasm/sourcemap/chunk splitting.
228899
+ modules: arrayType(McpModuleSchema).min(1).max(20),
228900
+ metadata: McpMetadataSchema,
228901
+ // Everything else in this schema is bounded; keep the opaque config
228902
+ // blob bounded too so it cannot balloon the JSONB row.
228903
+ config: unknownType().optional().refine((value2) => value2 === void 0 || (JSON.stringify(value2)?.length ?? 0) <= 65536, {
228904
+ message: "config must be at most 64KB serialized"
228905
+ }),
228906
+ generatorName: stringType().min(1),
228907
+ generatorVersion: stringType().min(1),
228908
+ cliVersion: stringType().optional(),
228909
+ git: McpGitInputSchema.optional()
228910
+ }).strict().superRefine((input3, ctx) => {
228911
+ const names2 = /* @__PURE__ */ new Set();
228912
+ for (const module4 of input3.modules) {
228913
+ if (names2.has(module4.name)) {
228914
+ ctx.addIssue({
228915
+ code: ZodIssueCode2.custom,
228916
+ path: ["modules"],
228917
+ message: `duplicate module name: ${module4.name}`
228918
+ });
228919
+ }
228920
+ names2.add(module4.name);
228921
+ }
228922
+ if (!names2.has(input3.mainModule)) {
228923
+ ctx.addIssue({
228924
+ code: ZodIssueCode2.custom,
228925
+ path: ["mainModule"],
228926
+ message: `mainModule ${input3.mainModule} is not among the submitted modules`
228927
+ });
228928
+ }
228929
+ });
228930
+ GetMcpServerInputSchema = objectType({
228931
+ orgId: McpPathSegmentSchema,
228932
+ slug: McpPathSegmentSchema
228933
+ });
228934
+ ListMcpServersInputSchema = objectType({
228935
+ orgId: stringType()
228936
+ });
228937
+ ListMcpDeploymentsInputSchema = GetMcpServerInputSchema;
228938
+ DeleteMcpServerInputSchema = GetMcpServerInputSchema;
228939
+ McpDeploymentSummarySchema = objectType({
228940
+ id: stringType(),
228941
+ status: McpDeploymentStatusSchema,
228942
+ /** True when this deployment is the one the server currently serves. */
228943
+ isActive: booleanType(),
228944
+ generatorVersion: stringType(),
228945
+ createdAt: stringType(),
228946
+ createdBy: stringType().nullish(),
228947
+ error: objectType({ name: stringType(), message: stringType() }).nullish()
228948
+ });
228949
+ McpServerSchema = objectType({
228950
+ id: stringType(),
228951
+ orgId: stringType(),
228952
+ slug: stringType(),
228953
+ /** The server is serving iff this is set; it names the serving deployment. */
228954
+ activeDeploymentId: stringType().nullish(),
228955
+ /** Most recent publication attempt — how the last deploy went. */
228956
+ latestDeployment: McpDeploymentSummarySchema.nullish(),
228957
+ url: stringType().url(),
228958
+ createdAt: stringType(),
228959
+ updatedAt: stringType()
228960
+ });
228961
+ ListMcpServersResponseSchema = objectType({ servers: arrayType(McpServerSchema) });
228962
+ ListMcpDeploymentsResponseSchema = objectType({ deployments: arrayType(McpDeploymentSummarySchema) });
228963
+ mcpHostingContract = {
228964
+ deploy: oc.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema).output(McpServerSchema),
228965
+ getServer: oc.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema).output(McpServerSchema),
228966
+ listServers: oc.route({ method: "GET", path: "/servers" }).input(ListMcpServersInputSchema).output(ListMcpServersResponseSchema),
228967
+ listDeployments: oc.route({ method: "GET", path: "/servers/{slug}/deployments" }).input(ListMcpDeploymentsInputSchema).output(ListMcpDeploymentsResponseSchema),
228968
+ deleteServer: oc.route({ method: "DELETE", path: "/servers/{slug}" }).input(DeleteMcpServerInputSchema)
228969
+ };
228395
228970
  PdfExportScopeSchema = objectType({
228396
228971
  pageSlugs: arrayType(stringType())
228397
228972
  });
@@ -230599,7 +231174,13 @@ var init_js = __esm({
230599
231174
  excerpt: stringType().optional(),
230600
231175
  "canonical-url": stringType().optional(),
230601
231176
  tags: StringOrStringListSchema.optional(),
230602
- "last-updated": stringType().optional()
231177
+ "last-updated": stringType().optional(),
231178
+ /**
231179
+ * Arbitrary author-defined metadata that is copied onto this page's search
231180
+ * records, so it can be faceted and filtered on by full path
231181
+ * (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
231182
+ */
231183
+ "search-metadata": recordType(unknownType()).optional()
230603
231184
  })
230604
231185
  );
230605
231186
  ResolvedMdxSchema = objectType({
@@ -233033,6 +233614,8 @@ var init_js = __esm({
233033
233614
  slugToNode = /* @__PURE__ */ new Map();
233034
233615
  /** Keyed by {@link graphQlTypeKey} -- `typeId` alone is only unique within one API definition. */
233035
233616
  typeIdToGraphQlTypeNode = /* @__PURE__ */ new Map();
233617
+ /** Keyed by {@link graphQlOperationKey}. A namespace-group node is recorded under every id it covers. */
233618
+ operationIdToGraphQlNode = /* @__PURE__ */ new Map();
233036
233619
  orphanedNodes = [];
233037
233620
  static collect(rootNode) {
233038
233621
  if (rootNode == null) {
@@ -233103,12 +233686,22 @@ var init_js = __esm({
233103
233686
  this.nodesInOrder.push(node4);
233104
233687
  }
233105
233688
  if (node4.type === "graphqlType") {
233106
- const key2 = graphQlTypeKey(node4.apiDefinitionId, node4.typeId, versionIdOf(parents));
233689
+ const key2 = graphQlTypeKey(node4.apiDefinitionId, node4.typeId, scopeOf(parents));
233107
233690
  const existingTypeNode = this.typeIdToGraphQlTypeNode.get(key2);
233108
233691
  if (existingTypeNode == null || existingTypeNode.hidden === true && node4.hidden !== true) {
233109
233692
  this.typeIdToGraphQlTypeNode.set(key2, node4);
233110
233693
  }
233111
233694
  }
233695
+ if (node4.type === "graphql") {
233696
+ const scope = scopeOf(parents);
233697
+ for (const operationId of getGraphqlOperationIds(node4)) {
233698
+ const key2 = graphQlOperationKey(node4.apiDefinitionId, operationId, scope);
233699
+ const existing2 = this.operationIdToGraphQlNode.get(key2);
233700
+ if (existing2 == null || existing2.hidden === true && node4.hidden !== true) {
233701
+ this.operationIdToGraphQlNode.set(key2, node4);
233702
+ }
233703
+ }
233704
+ }
233112
233705
  if (node4.type === "sidebarRoot") {
233113
233706
  this.#last = void 0;
233114
233707
  this.#lastNeighboringNode = void 0;
@@ -233156,20 +233749,37 @@ var init_js = __esm({
233156
233749
  return this.typeIdToGraphQlTypeNode;
233157
233750
  });
233158
233751
  /**
233159
- * The type node documenting `typeId` within `apiDefinitionId` and `versionId`,
233160
- * if one exists. Pass the version the caller is rendering in; undefined on an
233161
- * unversioned site.
233752
+ * The type node documenting `typeId`, as seen from the node doing the asking.
233162
233753
  *
233163
- * There is deliberately no cross-version fallback: sending a reader in one
233164
- * version to another version's type page is worse than not linking at all,
233165
- * since the type may differ between versions.
233754
+ * `fromNodeId` is the node that wants to link -- an operation page, typically. Its product,
233755
+ * variant and version are read from the tree, so a caller never has to know which of those
233756
+ * dimensions a given site uses, and a new dimension does not change this signature.
233757
+ *
233758
+ * There is deliberately no fallback to another scope: sending a reader in one version or
233759
+ * product to another's type page is worse than not linking, since the type may differ.
233760
+ */
233761
+ getGraphQlTypeNodeFor = (fromNodeId, apiDefinitionId, typeId) => {
233762
+ const parents = this.idToNodeParents.get(fromNodeId) ?? [];
233763
+ return this.typeIdToGraphQlTypeNode.get(graphQlTypeKey(apiDefinitionId, typeId, scopeOf(parents)));
233764
+ };
233765
+ /**
233766
+ * The operation page for `operationId`, as seen from the node doing the asking.
233767
+ *
233768
+ * Mirrors {@link getGraphQlTypeNodeFor}, for the operation half of a type page's "referenced
233769
+ * by" list: a type page names the queries and mutations that take or return it, and those
233770
+ * names have to become links. Resolves ids covered by a namespace-group node too.
233166
233771
  */
233167
- getGraphQlTypeNode = (apiDefinitionId, typeId, versionId) => {
233168
- return this.typeIdToGraphQlTypeNode.get(graphQlTypeKey(apiDefinitionId, typeId, versionId));
233772
+ getGraphQlOperationNodeFor = (fromNodeId, apiDefinitionId, operationId) => {
233773
+ const parents = this.idToNodeParents.get(fromNodeId) ?? [];
233774
+ return this.operationIdToGraphQlNode.get(graphQlOperationKey(apiDefinitionId, operationId, scopeOf(parents)));
233169
233775
  };
233170
- /** Slug of the page documenting `typeId`, if one exists. See {@link getGraphQlTypeNode}. */
233171
- getGraphQlTypeSlug = (apiDefinitionId, typeId, versionId) => {
233172
- return this.getGraphQlTypeNode(apiDefinitionId, typeId, versionId)?.slug;
233776
+ /** Slug of the page documenting `operationId`. See {@link getGraphQlOperationNodeFor}. */
233777
+ getGraphQlOperationSlugFor = (fromNodeId, apiDefinitionId, operationId) => {
233778
+ return this.getGraphQlOperationNodeFor(fromNodeId, apiDefinitionId, operationId)?.slug;
233779
+ };
233780
+ /** Slug of the page documenting `typeId`. See {@link getGraphQlTypeNodeFor}. */
233781
+ getGraphQlTypeSlugFor = (fromNodeId, apiDefinitionId, typeId) => {
233782
+ return this.getGraphQlTypeNodeFor(fromNodeId, apiDefinitionId, typeId)?.slug;
233173
233783
  };
233174
233784
  get defaultVersionNode() {
233175
233785
  return this.defaultVersion;
@@ -234256,6 +234866,8 @@ var init_js = __esm({
234256
234866
  collectPageIds: () => collectPageIds,
234257
234867
  createBreadcrumb: () => createBreadcrumb,
234258
234868
  findNode: () => findNode,
234869
+ followRedirect: () => followRedirect2,
234870
+ followRedirects: () => followRedirects2,
234259
234871
  getApiReferenceId: () => getApiReferenceId,
234260
234872
  getEnclosingTabbedNode: () => getEnclosingTabbedNode,
234261
234873
  getNoIndexFromFrontmatter: () => getNoIndexFromFrontmatter,
@@ -266347,10 +266959,12 @@ function convertSchemeReference({ reference: reference4, authSchemeDeclarations,
266347
266959
  throw new Error("Unknown auth scheme: " + reference5);
266348
266960
  }
266349
266961
  const effectiveDocs = docs2 ?? (typeof declaration === "object" ? declaration.docs : void 0);
266962
+ const playgroundDocs = typeof declaration === "object" ? declaration["playground-docs"] : void 0;
266350
266963
  return visitRawAuthSchemeDeclaration(declaration, {
266351
266964
  header: (rawHeader) => AuthScheme.header({
266352
266965
  key: reference5,
266353
266966
  docs: effectiveDocs,
266967
+ playgroundDocs,
266354
266968
  name: casingsGenerator.generateNameAndWireValue({
266355
266969
  name: rawHeader.name ?? reference5,
266356
266970
  wireValue: rawHeader.header
@@ -266367,12 +266981,14 @@ function convertSchemeReference({ reference: reference4, authSchemeDeclarations,
266367
266981
  key: reference5,
266368
266982
  casingsGenerator,
266369
266983
  docs: effectiveDocs,
266984
+ playgroundDocs,
266370
266985
  rawScheme
266371
266986
  }),
266372
266987
  tokenBearer: (rawScheme) => generateBearerAuth({
266373
266988
  key: reference5,
266374
266989
  casingsGenerator,
266375
266990
  docs: effectiveDocs,
266991
+ playgroundDocs,
266376
266992
  rawScheme
266377
266993
  }),
266378
266994
  inferredBearer(authScheme) {
@@ -266380,6 +266996,7 @@ function convertSchemeReference({ reference: reference4, authSchemeDeclarations,
266380
266996
  key: reference5,
266381
266997
  casingsGenerator,
266382
266998
  docs: effectiveDocs,
266999
+ playgroundDocs,
266383
267000
  rawScheme: void 0
266384
267001
  });
266385
267002
  },
@@ -266387,6 +267004,7 @@ function convertSchemeReference({ reference: reference4, authSchemeDeclarations,
266387
267004
  key: reference5,
266388
267005
  casingsGenerator,
266389
267006
  docs: effectiveDocs,
267007
+ playgroundDocs,
266390
267008
  rawScheme: void 0
266391
267009
  })
266392
267010
  });
@@ -266399,6 +267017,7 @@ function convertSchemeReference({ reference: reference4, authSchemeDeclarations,
266399
267017
  key: scheme,
266400
267018
  casingsGenerator,
266401
267019
  docs: void 0,
267020
+ playgroundDocs: void 0,
266402
267021
  rawScheme: void 0
266403
267022
  });
266404
267023
  case "basic":
@@ -266406,25 +267025,28 @@ function convertSchemeReference({ reference: reference4, authSchemeDeclarations,
266406
267025
  key: scheme,
266407
267026
  casingsGenerator,
266408
267027
  docs: void 0,
267028
+ playgroundDocs: void 0,
266409
267029
  rawScheme: void 0
266410
267030
  });
266411
267031
  default:
266412
267032
  return convertNamedAuthSchemeReference(scheme, typeof reference4 !== "string" ? reference4.docs : void 0);
266413
267033
  }
266414
267034
  }
266415
- function generateBearerAuth({ key: key2, casingsGenerator, docs: docs2, rawScheme }) {
267035
+ function generateBearerAuth({ key: key2, casingsGenerator, docs: docs2, playgroundDocs, rawScheme }) {
266416
267036
  return AuthScheme.bearer({
266417
267037
  key: key2,
266418
267038
  docs: docs2,
267039
+ playgroundDocs,
266419
267040
  token: casingsGenerator.generateName(rawScheme?.token?.name ?? "token"),
266420
267041
  tokenEnvVar: rawScheme?.token?.env,
266421
267042
  tokenPlaceholder: rawScheme?.token?.placeholder
266422
267043
  });
266423
267044
  }
266424
- function generateBasicAuth({ key: key2, casingsGenerator, docs: docs2, rawScheme }) {
267045
+ function generateBasicAuth({ key: key2, casingsGenerator, docs: docs2, playgroundDocs, rawScheme }) {
266425
267046
  return AuthScheme.basic({
266426
267047
  key: key2,
266427
267048
  docs: docs2,
267049
+ playgroundDocs,
266428
267050
  username: casingsGenerator.generateName(rawScheme?.username?.name ?? "username"),
266429
267051
  usernameEnvVar: rawScheme?.username?.env,
266430
267052
  usernameOmit: rawScheme?.username?.omit,
@@ -278777,10 +279399,12 @@ function convertSchemeReference2({ reference: reference4, authSchemeDeclarations
278777
279399
  if (declaration == null) {
278778
279400
  throw new CliError({ message: "Unknown auth scheme: " + reference5, code: CliError.Code.ReferenceError });
278779
279401
  }
279402
+ const playgroundDocs = typeof declaration === "object" ? declaration["playground-docs"] : void 0;
278780
279403
  return visitRawAuthSchemeDeclaration(declaration, {
278781
279404
  header: (rawHeader) => AuthScheme.header({
278782
279405
  key: reference5,
278783
279406
  docs: docs2,
279407
+ playgroundDocs,
278784
279408
  name: file4.casingsGenerator.generateNameAndWireValue({
278785
279409
  name: rawHeader.name ?? reference5,
278786
279410
  wireValue: rawHeader.header
@@ -278794,18 +279418,21 @@ function convertSchemeReference2({ reference: reference4, authSchemeDeclarations
278794
279418
  key: reference5,
278795
279419
  file: file4,
278796
279420
  docs: docs2,
279421
+ playgroundDocs,
278797
279422
  rawScheme
278798
279423
  }),
278799
279424
  tokenBearer: (rawScheme) => generateBearerAuth2({
278800
279425
  key: reference5,
278801
279426
  file: file4,
278802
279427
  docs: docs2,
279428
+ playgroundDocs,
278803
279429
  rawScheme
278804
279430
  }),
278805
279431
  inferredBearer: (rawScheme) => generateInferredAuth({
278806
279432
  key: reference5,
278807
279433
  file: file4,
278808
279434
  docs: docs2,
279435
+ playgroundDocs,
278809
279436
  rawScheme,
278810
279437
  propertyResolver,
278811
279438
  endpointResolver
@@ -278814,6 +279441,7 @@ function convertSchemeReference2({ reference: reference4, authSchemeDeclarations
278814
279441
  key: reference5,
278815
279442
  file: file4,
278816
279443
  docs: docs2,
279444
+ playgroundDocs,
278817
279445
  rawScheme,
278818
279446
  propertyResolver,
278819
279447
  endpointResolver,
@@ -278828,6 +279456,7 @@ function convertSchemeReference2({ reference: reference4, authSchemeDeclarations
278828
279456
  key: scheme,
278829
279457
  file: file4,
278830
279458
  docs: void 0,
279459
+ playgroundDocs: void 0,
278831
279460
  rawScheme: void 0
278832
279461
  });
278833
279462
  case "basic":
@@ -278835,6 +279464,7 @@ function convertSchemeReference2({ reference: reference4, authSchemeDeclarations
278835
279464
  key: scheme,
278836
279465
  file: file4,
278837
279466
  docs: void 0,
279467
+ playgroundDocs: void 0,
278838
279468
  rawScheme: void 0
278839
279469
  });
278840
279470
  case "oauth":
@@ -278842,6 +279472,7 @@ function convertSchemeReference2({ reference: reference4, authSchemeDeclarations
278842
279472
  key: scheme,
278843
279473
  file: file4,
278844
279474
  docs: void 0,
279475
+ playgroundDocs: void 0,
278845
279476
  rawScheme: void 0,
278846
279477
  propertyResolver,
278847
279478
  endpointResolver,
@@ -278851,19 +279482,21 @@ function convertSchemeReference2({ reference: reference4, authSchemeDeclarations
278851
279482
  return convertNamedAuthSchemeReference(scheme, typeof reference4 !== "string" ? reference4.docs : void 0);
278852
279483
  }
278853
279484
  }
278854
- function generateBearerAuth2({ key: key2, file: file4, docs: docs2, rawScheme }) {
279485
+ function generateBearerAuth2({ key: key2, file: file4, docs: docs2, playgroundDocs, rawScheme }) {
278855
279486
  return AuthScheme.bearer({
278856
279487
  key: key2,
278857
279488
  docs: docs2,
279489
+ playgroundDocs,
278858
279490
  token: file4.casingsGenerator.generateName(rawScheme?.token?.name ?? "token"),
278859
279491
  tokenEnvVar: rawScheme?.token?.env,
278860
279492
  tokenPlaceholder: rawScheme?.token?.placeholder
278861
279493
  });
278862
279494
  }
278863
- function generateBasicAuth2({ key: key2, file: file4, docs: docs2, rawScheme }) {
279495
+ function generateBasicAuth2({ key: key2, file: file4, docs: docs2, playgroundDocs, rawScheme }) {
278864
279496
  return AuthScheme.basic({
278865
279497
  key: key2,
278866
279498
  docs: docs2,
279499
+ playgroundDocs,
278867
279500
  username: file4.casingsGenerator.generateName(rawScheme?.username?.name ?? "username"),
278868
279501
  usernameEnvVar: rawScheme?.username?.env,
278869
279502
  usernameOmit: rawScheme?.username?.omit,
@@ -278874,12 +279507,13 @@ function generateBasicAuth2({ key: key2, file: file4, docs: docs2, rawScheme })
278874
279507
  passwordPlaceholder: rawScheme?.password?.placeholder
278875
279508
  });
278876
279509
  }
278877
- function generateOAuth({ key: key2, file: file4, docs: docs2, rawScheme, propertyResolver, endpointResolver, typeResolver }) {
279510
+ function generateOAuth({ key: key2, file: file4, docs: docs2, playgroundDocs, rawScheme, propertyResolver, endpointResolver, typeResolver }) {
278878
279511
  switch (rawScheme?.type) {
278879
279512
  case "client-credentials":
278880
279513
  return AuthScheme.oauth({
278881
279514
  key: key2,
278882
279515
  docs: docs2,
279516
+ playgroundDocs,
278883
279517
  configuration: OAuthConfiguration.clientCredentials(convertOAuthClientCredentials({
278884
279518
  propertyResolver,
278885
279519
  endpointResolver,
@@ -278894,6 +279528,7 @@ function generateOAuth({ key: key2, file: file4, docs: docs2, rawScheme, propert
278894
279528
  return AuthScheme.oauth({
278895
279529
  key: key2,
278896
279530
  docs: docs2,
279531
+ playgroundDocs,
278897
279532
  configuration: OAuthConfiguration.authorizationCode({
278898
279533
  clientId: getPublicClientId(rawScheme),
278899
279534
  authorizationUrl: requireOAuthField(rawScheme, "authorization-url"),
@@ -278916,6 +279551,7 @@ function generateOAuth({ key: key2, file: file4, docs: docs2, rawScheme, propert
278916
279551
  return AuthScheme.oauth({
278917
279552
  key: key2,
278918
279553
  docs: docs2,
279554
+ playgroundDocs,
278919
279555
  configuration: OAuthConfiguration.deviceCode({
278920
279556
  clientId: getPublicClientId(rawScheme),
278921
279557
  deviceAuthorizationUrl: requireOAuthField(rawScheme, "device-authorization-url"),
@@ -278965,10 +279601,11 @@ function requireOAuthField(rawScheme, field5) {
278965
279601
  }
278966
279602
  return value2;
278967
279603
  }
278968
- function generateInferredAuth({ key: key2, file: file4, docs: docs2, rawScheme, propertyResolver, endpointResolver }) {
279604
+ function generateInferredAuth({ key: key2, file: file4, docs: docs2, playgroundDocs, rawScheme, propertyResolver, endpointResolver }) {
278969
279605
  return AuthScheme.inferred({
278970
279606
  key: key2,
278971
279607
  docs: docs2,
279608
+ playgroundDocs,
278972
279609
  tokenEndpoint: getInferredTokenEndpoint({
278973
279610
  file: file4,
278974
279611
  rawScheme,
@@ -325355,6 +325992,17 @@ var init_api_yml_schema = __esm({
325355
325992
  }
325356
325993
  ]
325357
325994
  },
325995
+ "playground-docs": {
325996
+ oneOf: [
325997
+ {
325998
+ type: "string"
325999
+ },
326000
+ {
326001
+ type: "null"
326002
+ }
326003
+ ],
326004
+ description: "Documentation rendered below this scheme's input in the API playground, instead of `docs`.\nSupports a markdown subset: `[label](url)` links (absolute or relative), bare URLs,\n`inline code`, and blank-line-separated paragraphs. Other markdown (bold, lists, headings)\nis rendered as plain text."
326005
+ },
325358
326006
  scheme: {
325359
326007
  const: "oauth"
325360
326008
  },
@@ -325634,6 +326282,17 @@ var init_api_yml_schema = __esm({
325634
326282
  }
325635
326283
  ]
325636
326284
  },
326285
+ "playground-docs": {
326286
+ oneOf: [
326287
+ {
326288
+ type: "string"
326289
+ },
326290
+ {
326291
+ type: "null"
326292
+ }
326293
+ ],
326294
+ description: "Documentation rendered below this scheme's input in the API playground, instead of `docs`.\nSupports a markdown subset: `[label](url)` links (absolute or relative), bare URLs,\n`inline code`, and blank-line-separated paragraphs. Other markdown (bold, lists, headings)\nis rendered as plain text."
326295
+ },
325637
326296
  header: {
325638
326297
  type: "string"
325639
326298
  },
@@ -325736,6 +326395,17 @@ var init_api_yml_schema = __esm({
325736
326395
  }
325737
326396
  ]
325738
326397
  },
326398
+ "playground-docs": {
326399
+ oneOf: [
326400
+ {
326401
+ type: "string"
326402
+ },
326403
+ {
326404
+ type: "null"
326405
+ }
326406
+ ],
326407
+ description: "Documentation rendered below this scheme's input in the API playground, instead of `docs`.\nSupports a markdown subset: `[label](url)` links (absolute or relative), bare URLs,\n`inline code`, and blank-line-separated paragraphs. Other markdown (bold, lists, headings)\nis rendered as plain text."
326408
+ },
325739
326409
  scheme: {
325740
326410
  const: "basic"
325741
326411
  },
@@ -325778,6 +326448,17 @@ var init_api_yml_schema = __esm({
325778
326448
  }
325779
326449
  ]
325780
326450
  },
326451
+ "playground-docs": {
326452
+ oneOf: [
326453
+ {
326454
+ type: "string"
326455
+ },
326456
+ {
326457
+ type: "null"
326458
+ }
326459
+ ],
326460
+ description: "Documentation rendered below this scheme's input in the API playground, instead of `docs`.\nSupports a markdown subset: `[label](url)` links (absolute or relative), bare URLs,\n`inline code`, and blank-line-separated paragraphs. Other markdown (bold, lists, headings)\nis rendered as plain text."
326461
+ },
325781
326462
  scheme: {
325782
326463
  const: "bearer"
325783
326464
  },
@@ -325888,6 +326569,17 @@ var init_api_yml_schema = __esm({
325888
326569
  }
325889
326570
  ]
325890
326571
  },
326572
+ "playground-docs": {
326573
+ oneOf: [
326574
+ {
326575
+ type: "string"
326576
+ },
326577
+ {
326578
+ type: "null"
326579
+ }
326580
+ ],
326581
+ description: "Documentation rendered below this scheme's input in the API playground, instead of `docs`.\nSupports a markdown subset: `[label](url)` links (absolute or relative), bare URLs,\n`inline code`, and blank-line-separated paragraphs. Other markdown (bold, lists, headings)\nis rendered as plain text."
326582
+ },
325891
326583
  scheme: {
325892
326584
  const: "bearer"
325893
326585
  },
@@ -343508,7 +344200,7 @@ var require_dist9 = __commonJS({
343508
344200
  doc.contents = value2;
343509
344201
  return String(doc);
343510
344202
  }
343511
- var YAML14 = {
344203
+ var YAML15 = {
343512
344204
  createNode,
343513
344205
  defaultOptions: Document$1.defaultOptions,
343514
344206
  Document: Document3,
@@ -343519,7 +344211,7 @@ var require_dist9 = __commonJS({
343519
344211
  scalarOptions: Document$1.scalarOptions,
343520
344212
  stringify: stringify5
343521
344213
  };
343522
- exports2.YAML = YAML14;
344214
+ exports2.YAML = YAML15;
343523
344215
  }
343524
344216
  });
343525
344217
 
@@ -355572,7 +356264,8 @@ var init_AsyncAPIConverter = __esm({
355572
356264
  token: this.context.casingsGenerator.generateName("token"),
355573
356265
  tokenEnvVar: void 0,
355574
356266
  tokenPlaceholder: void 0,
355575
- docs: securityScheme.description
356267
+ docs: securityScheme.description,
356268
+ playgroundDocs: void 0
355576
356269
  });
355577
356270
  }
355578
356271
  if (securityScheme.scheme?.toLowerCase() === "basic") {
@@ -355586,7 +356279,8 @@ var init_AsyncAPIConverter = __esm({
355586
356279
  passwordOmit: false,
355587
356280
  usernamePlaceholder: void 0,
355588
356281
  passwordPlaceholder: void 0,
355589
- docs: securityScheme.description
356282
+ docs: securityScheme.description,
356283
+ playgroundDocs: void 0
355590
356284
  });
355591
356285
  }
355592
356286
  break;
@@ -355603,7 +356297,8 @@ var init_AsyncAPIConverter = __esm({
355603
356297
  prefix: void 0,
355604
356298
  headerEnvVar: void 0,
355605
356299
  headerPlaceholder: void 0,
355606
- docs: securityScheme.description
356300
+ docs: securityScheme.description,
356301
+ playgroundDocs: void 0
355607
356302
  });
355608
356303
  }
355609
356304
  break;
@@ -355614,7 +356309,8 @@ var init_AsyncAPIConverter = __esm({
355614
356309
  token: this.context.casingsGenerator.generateName("token"),
355615
356310
  tokenEnvVar: void 0,
355616
356311
  tokenPlaceholder: void 0,
355617
- docs: securityScheme.description
356312
+ docs: securityScheme.description,
356313
+ playgroundDocs: void 0
355618
356314
  });
355619
356315
  }
355620
356316
  }
@@ -359854,6 +360550,7 @@ var init_SecuritySchemeConverter = __esm({
359854
360550
  return value2;
359855
360551
  }
359856
360552
  convert() {
360553
+ const playgroundDocs = this.getExtension("x-fern-playground-description");
359857
360554
  switch (this.securityScheme.type) {
359858
360555
  case "http": {
359859
360556
  if (this.securityScheme.scheme?.toLowerCase() === "bearer") {
@@ -359866,7 +360563,8 @@ var init_SecuritySchemeConverter = __esm({
359866
360563
  token: this.context.casingsGenerator.generateName(tokenName),
359867
360564
  tokenEnvVar,
359868
360565
  tokenPlaceholder,
359869
- docs: this.securityScheme.description
360566
+ docs: this.securityScheme.description,
360567
+ playgroundDocs
359870
360568
  });
359871
360569
  }
359872
360570
  if (this.securityScheme.scheme?.toLowerCase() === "basic") {
@@ -359887,7 +360585,8 @@ var init_SecuritySchemeConverter = __esm({
359887
360585
  passwordOmit: false,
359888
360586
  usernamePlaceholder,
359889
360587
  passwordPlaceholder,
359890
- docs: this.securityScheme.description
360588
+ docs: this.securityScheme.description,
360589
+ playgroundDocs
359891
360590
  });
359892
360591
  }
359893
360592
  break;
@@ -359909,7 +360608,8 @@ var init_SecuritySchemeConverter = __esm({
359909
360608
  prefix: prefix2,
359910
360609
  headerEnvVar,
359911
360610
  headerPlaceholder,
359912
- docs: this.securityScheme.description
360611
+ docs: this.securityScheme.description,
360612
+ playgroundDocs
359913
360613
  });
359914
360614
  }
359915
360615
  break;
@@ -359920,7 +360620,8 @@ var init_SecuritySchemeConverter = __esm({
359920
360620
  token: this.context.casingsGenerator.generateName("token"),
359921
360621
  tokenEnvVar: void 0,
359922
360622
  tokenPlaceholder: void 0,
359923
- docs: this.securityScheme.description
360623
+ docs: this.securityScheme.description,
360624
+ playgroundDocs
359924
360625
  });
359925
360626
  }
359926
360627
  }
@@ -360524,6 +361225,7 @@ function resolveOAuthScheme({ ir: ir3, key: key2, oauthScheme }) {
360524
361225
  return AuthScheme.oauth({
360525
361226
  key: key2,
360526
361227
  docs: oauthScheme.docs,
361228
+ playgroundDocs: oauthScheme["playground-docs"],
360527
361229
  configuration: OAuthConfiguration.clientCredentials({
360528
361230
  clientIdEnvVar: oauthScheme["client-id-env"],
360529
361231
  clientSecretEnvVar: oauthScheme["client-secret-env"],
@@ -472344,13 +473046,15 @@ function convertAuthScheme2({ scheme, playgroundConfig, context: context3 }) {
472344
473046
  passwordName: getOriginalName(scheme.password),
472345
473047
  usernameName: getOriginalName(scheme.username),
472346
473048
  description: scheme.docs,
473049
+ playgroundDescription: scheme.playgroundDocs,
472347
473050
  passwordAlwaysEmpty: scheme.passwordOmit
472348
473051
  };
472349
473052
  case "bearer":
472350
473053
  return {
472351
473054
  type: "bearerAuth",
472352
473055
  tokenName: getOriginalName(scheme.token),
472353
- description: scheme.docs
473056
+ description: scheme.docs,
473057
+ playgroundDescription: scheme.playgroundDocs
472354
473058
  };
472355
473059
  case "header":
472356
473060
  return {
@@ -472358,7 +473062,8 @@ function convertAuthScheme2({ scheme, playgroundConfig, context: context3 }) {
472358
473062
  headerWireValue: getWireValue(scheme.name),
472359
473063
  nameOverride: getOriginalName(getInnerName(scheme.name)),
472360
473064
  prefix: scheme.prefix,
472361
- description: scheme.docs
473065
+ description: scheme.docs,
473066
+ playgroundDescription: scheme.playgroundDocs
472362
473067
  };
472363
473068
  case "oauth": {
472364
473069
  const configuration2 = scheme.configuration;
@@ -472366,7 +473071,8 @@ function convertAuthScheme2({ scheme, playgroundConfig, context: context3 }) {
472366
473071
  return {
472367
473072
  type: "bearerAuth",
472368
473073
  tokenName: "token",
472369
- description: scheme.docs
473074
+ description: scheme.docs,
473075
+ playgroundDescription: scheme.playgroundDocs
472370
473076
  };
472371
473077
  }
472372
473078
  const tokenPath = configuration2.tokenEndpoint.responseProperties.accessToken.propertyPath?.map((p6) => getOriginalName(p6.name)).join(".") || "$.body.access_token";
@@ -472380,13 +473086,15 @@ function convertAuthScheme2({ scheme, playgroundConfig, context: context3 }) {
472380
473086
  accessTokenLocator: tokenPath,
472381
473087
  headerName: configuration2.tokenHeader,
472382
473088
  tokenPrefix: configuration2.tokenPrefix,
472383
- description: scheme.docs
473089
+ description: scheme.docs,
473090
+ playgroundDescription: scheme.playgroundDocs
472384
473091
  }
472385
473092
  }
472386
473093
  } : {
472387
473094
  type: "bearerAuth",
472388
473095
  tokenName: "token",
472389
- description: scheme.docs
473096
+ description: scheme.docs,
473097
+ playgroundDescription: scheme.playgroundDocs
472390
473098
  };
472391
473099
  }
472392
473100
  case "inferred": {
@@ -472401,7 +473109,8 @@ function convertAuthScheme2({ scheme, playgroundConfig, context: context3 }) {
472401
473109
  return {
472402
473110
  type: "bearerAuth",
472403
473111
  tokenName: getWireValue(authHeader.responseProperty.property.name),
472404
- description: scheme.docs
473112
+ description: scheme.docs,
473113
+ playgroundDescription: scheme.playgroundDocs
472405
473114
  };
472406
473115
  }
472407
473116
  const firstHeader = scheme.tokenEndpoint.authenticatedRequestHeaders[0];
@@ -472411,13 +473120,15 @@ function convertAuthScheme2({ scheme, playgroundConfig, context: context3 }) {
472411
473120
  headerWireValue: firstHeader.headerName,
472412
473121
  prefix: firstHeader.valuePrefix,
472413
473122
  nameOverride: void 0,
472414
- description: scheme.docs
473123
+ description: scheme.docs,
473124
+ playgroundDescription: scheme.playgroundDocs
472415
473125
  };
472416
473126
  }
472417
473127
  return {
472418
473128
  type: "bearerAuth",
472419
473129
  tokenName: "token",
472420
- description: scheme.docs
473130
+ description: scheme.docs,
473131
+ playgroundDescription: scheme.playgroundDocs
472421
473132
  };
472422
473133
  }
472423
473134
  default:
@@ -586933,7 +587644,7 @@ var require_dist24 = __commonJS({
586933
587644
  var import_node_fs35 = require("fs");
586934
587645
  var import_node_path44 = require("path");
586935
587646
  var import_minimatch9 = require_commonjs3();
586936
- var import_yaml18 = require_dist11();
587647
+ var import_yaml19 = require_dist11();
586937
587648
  var LOCKFILE_HEADER = "# DO NOT EDIT MANUALLY - Managed by Fern Replay\n";
586938
587649
  var LockfileNotFoundError = class extends Error {
586939
587650
  constructor(path124) {
@@ -586976,7 +587687,7 @@ var require_dist24 = __commonJS({
586976
587687
  }
586977
587688
  try {
586978
587689
  const content5 = (0, import_node_fs35.readFileSync)(this.lockfilePath, "utf-8");
586979
- this.lock = (0, import_yaml18.parse)(content5);
587690
+ this.lock = (0, import_yaml19.parse)(content5);
586980
587691
  return this.lock;
586981
587692
  } catch (error50) {
586982
587693
  if (error50 instanceof Error && "code" in error50 && error50.code === "ENOENT") {
@@ -587046,7 +587757,7 @@ var require_dist24 = __commonJS({
587046
587757
  if (!(0, import_node_fs35.existsSync)(dir)) {
587047
587758
  (0, import_node_fs35.mkdirSync)(dir, { recursive: true });
587048
587759
  }
587049
- const yaml3 = (0, import_yaml18.stringify)(this.lock, {
587760
+ const yaml3 = (0, import_yaml19.stringify)(this.lock, {
587050
587761
  lineWidth: 0,
587051
587762
  blockQuote: "literal"
587052
587763
  });
@@ -587150,7 +587861,7 @@ var require_dist24 = __commonJS({
587150
587861
  return {};
587151
587862
  }
587152
587863
  const content5 = (0, import_node_fs35.readFileSync)(this.customizationsPath, "utf-8");
587153
- return (0, import_yaml18.parse)(content5) ?? {};
587864
+ return (0, import_yaml19.parse)(content5) ?? {};
587154
587865
  }
587155
587866
  ensureLoaded() {
587156
587867
  if (!this.lock) {
@@ -609164,7 +609875,7 @@ var require_dist25 = __commonJS({
609164
609875
  }
609165
609876
  });
609166
609877
 
609167
- // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.102-07ddc01b9b_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/orpc-client.mjs
609878
+ // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.122-10cd6e7ad7_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/orpc-client.mjs
609168
609879
  var orpc_client_exports = {};
609169
609880
  __export(orpc_client_exports, {
609170
609881
  AlgoliaDomainInputSchema: () => AlgoliaDomainInputSchema2,
@@ -609249,8 +609960,10 @@ __export(orpc_client_exports, {
609249
609960
  DeleteDocsSiteByServiceInputSchema: () => DeleteDocsSiteByServiceInputSchema2,
609250
609961
  DeleteDocsSiteByServiceResponseSchema: () => DeleteDocsSiteByServiceResponseSchema2,
609251
609962
  DeleteDocsSiteInputSchema: () => DeleteDocsSiteInputSchema2,
609963
+ DeleteMcpServerInputSchema: () => DeleteMcpServerInputSchema2,
609252
609964
  DeletePullRequestInputSchema: () => DeletePullRequestInputSchema2,
609253
609965
  DeleteRepositoryInputSchema: () => DeleteRepositoryInputSchema2,
609966
+ DeployMcpServerInputSchema: () => DeployMcpServerInputSchema2,
609254
609967
  DiscriminatedUnionTypeSchema: () => DiscriminatedUnionTypeSchema2,
609255
609968
  DiscriminatedUnionVariantSchema: () => DiscriminatedUnionVariantSchema2,
609256
609969
  DocsConfigId: () => DocsConfigId3,
@@ -609260,6 +609973,8 @@ __export(orpc_client_exports, {
609260
609973
  DocsDeploymentSchema: () => DocsDeploymentSchema2,
609261
609974
  DocsDeploymentStatusSchema: () => DocsDeploymentStatusSchema2,
609262
609975
  DocsDomainItemSchema: () => DocsDomainItemSchema2,
609976
+ DocsPageContentSchema: () => DocsPageContentSchema2,
609977
+ DocsPageSummarySchema: () => DocsPageSummarySchema2,
609263
609978
  DocsPublishGitInputSchema: () => DocsPublishGitInputSchema2,
609264
609979
  DocsPublishInputSchema: () => DocsPublishInputSchema2,
609265
609980
  DocsReadConfigSchema: () => DocsConfigSchema3,
@@ -609345,6 +610060,8 @@ __export(orpc_client_exports, {
609345
610060
  GetDocsForDomainInputSchema: () => GetDocsForDomainInputSchema2,
609346
610061
  GetDocsForDomainLegacyInputSchema: () => GetDocsForDomainLegacyInputSchema2,
609347
610062
  GetDocsForUrlInputSchema: () => GetDocsForUrlInputSchema2,
610063
+ GetDocsPageInputSchema: () => GetDocsPageInputSchema2,
610064
+ GetDocsPageResponseSchema: () => GetDocsPageResponseSchema2,
609348
610065
  GetDocsSitesByCollectionIdInputSchema: () => GetDocsSitesByCollectionIdInputSchema2,
609349
610066
  GetDocsSitesByCollectionIdResponseSchema: () => GetDocsSitesByCollectionIdResponseSchema2,
609350
610067
  GetDocsSitesForOrgInputSchema: () => GetDocsSitesForOrgInputSchema2,
@@ -609364,6 +610081,7 @@ __export(orpc_client_exports, {
609364
610081
  GetLatestGeneratorReleaseInputSchema: () => GetLatestGeneratorReleaseInputSchema2,
609365
610082
  GetLibraryDocsStatusInputSchema: () => GetLibraryDocsStatusInputSchema2,
609366
610083
  GetMarkdownEntriesResponseSchema: () => GetMarkdownEntriesResponseSchema2,
610084
+ GetMcpServerInputSchema: () => GetMcpServerInputSchema2,
609367
610085
  GetMinCliForIrInputSchema: () => GetMinCliForIrInputSchema2,
609368
610086
  GetOrganizationForUrlInputSchema: () => GetOrganizationForUrlInputSchema2,
609369
610087
  GetPdfExportDownloadUrlInputSchema: () => GetPdfExportDownloadUrlInputSchema2,
@@ -609410,6 +610128,10 @@ __export(orpc_client_exports, {
609410
610128
  JavaCoordinateSchema: () => JavaCoordinateSchema2,
609411
610129
  JqStringSchema: () => JqStringSchema2,
609412
610130
  JsonBodyShapeSchema: () => JsonBodyShapeSchema2,
610131
+ KV_KEY_PREFIXES: () => KV_KEY_PREFIXES,
610132
+ KV_KEY_PREFIX_CONFIG: () => KV_KEY_PREFIX_CONFIG,
610133
+ KV_KEY_PREFIX_META: () => KV_KEY_PREFIX_META,
610134
+ KV_KEY_PREFIX_ORG: () => KV_KEY_PREFIX_ORG,
609413
610135
  LEDGER_ARTIFACT_METADATA_SCHEMAS: () => LEDGER_ARTIFACT_METADATA_SCHEMAS2,
609414
610136
  LEDGER_MANIFEST_SCHEMA_VERSION: () => LEDGER_MANIFEST_SCHEMA_VERSION,
609415
610137
  LEDGER_SHARD_SCHEMA_VERSION: () => LEDGER_SHARD_SCHEMA_VERSION,
@@ -609512,8 +610234,14 @@ __export(orpc_client_exports, {
609512
610234
  ListAllDocsUrlsResponseSchema: () => ListAllDocsUrlsResponseSchema2,
609513
610235
  ListCliReleasesInputSchema: () => ListCliReleasesInputSchema2,
609514
610236
  ListCliReleasesResponseSchema: () => ListCliReleasesResponseSchema2,
610237
+ ListDocsPagesInputSchema: () => ListDocsPagesInputSchema2,
610238
+ ListDocsPagesResponseSchema: () => ListDocsPagesResponseSchema2,
609515
610239
  ListGeneratorReleasesInputSchema: () => ListGeneratorReleasesInputSchema2,
609516
610240
  ListGeneratorReleasesResponseSchema: () => ListGeneratorReleasesResponseSchema2,
610241
+ ListMcpDeploymentsInputSchema: () => ListMcpDeploymentsInputSchema2,
610242
+ ListMcpDeploymentsResponseSchema: () => ListMcpDeploymentsResponseSchema2,
610243
+ ListMcpServersInputSchema: () => ListMcpServersInputSchema2,
610244
+ ListMcpServersResponseSchema: () => ListMcpServersResponseSchema2,
609517
610245
  ListPdfExportTasksInputSchema: () => ListPdfExportTasksInputSchema2,
609518
610246
  ListPdfExportTasksResponseSchema: () => ListPdfExportTasksResponseSchema2,
609519
610247
  ListPullRequestsInputSchema: () => ListPullRequestsInputSchema2,
@@ -609521,7 +610249,6 @@ __export(orpc_client_exports, {
609521
610249
  ListRepositoriesInputSchema: () => ListRepositoriesInputSchema2,
609522
610250
  ListRepositoriesResponseSchema: () => ListRepositoriesResponseSchema2,
609523
610251
  LiteralTypeSchema: () => LiteralTypeSchema2,
609524
- LlmBotTrafficResponseSchema: () => LlmBotTrafficResponseSchema2,
609525
610252
  LoadDocsForUrlResponseSchema: () => LoadDocsForUrlResponseSchema2,
609526
610253
  LocaleEntrySchema: () => LocaleEntrySchema2,
609527
610254
  LongTypeSchema: () => LongTypeSchema2,
@@ -609534,6 +610261,14 @@ __export(orpc_client_exports, {
609534
610261
  ManifestRouteSchema: () => ManifestRouteSchema,
609535
610262
  ManifestSegmentSchema: () => ManifestSegmentSchema,
609536
610263
  MarkdownEntrySchema: () => MarkdownEntrySchema2,
610264
+ McpAuthSchemeSchema: () => McpAuthSchemeSchema2,
610265
+ McpDeploymentStatusSchema: () => McpDeploymentStatusSchema2,
610266
+ McpDeploymentSummarySchema: () => McpDeploymentSummarySchema2,
610267
+ McpMetadataSchema: () => McpMetadataSchema2,
610268
+ McpServerSchema: () => McpServerSchema2,
610269
+ MigrateV2SiteInputSchema: () => MigrateV2SiteInputSchema2,
610270
+ MigrateV2SiteResponseSchema: () => MigrateV2SiteResponseSchema2,
610271
+ MigrateV2SiteSkipReasonSchema: () => MigrateV2SiteSkipReasonSchema2,
609537
610272
  MissingContentSchema: () => MissingContentSchema2,
609538
610273
  MultipleAuthTypeSchema: () => MultipleAuthTypeSchema2,
609539
610274
  NavInputSchema: () => NavInputSchema2,
@@ -609656,6 +610391,8 @@ __export(orpc_client_exports, {
609656
610391
  ReleaseTypeSchema: () => ReleaseTypeSchema2,
609657
610392
  RemoveCustomDomainAliasInputSchema: () => RemoveCustomDomainAliasInputSchema2,
609658
610393
  RepositoryIdSchema: () => RepositoryIdSchema2,
610394
+ ResolveStaticServingHostInputSchema: () => ResolveStaticServingHostInputSchema2,
610395
+ ResolveStaticServingHostResponseSchema: () => ResolveStaticServingHostResponseSchema2,
609659
610396
  ResolvedDateRangeSchema: () => ResolvedDateRangeSchema2,
609660
610397
  RestProtocolSchema: () => RestProtocolSchema2,
609661
610398
  RevokeTokenInputSchema: () => RevokeTokenInputSchema2,
@@ -609700,6 +610437,11 @@ __export(orpc_client_exports, {
609700
610437
  StartDocsRegisterV2ResponseSchema: () => StartDocsRegisterV2ResponseSchema2,
609701
610438
  StartLibraryDocsGenerationInputSchema: () => StartLibraryDocsGenerationInputSchema2,
609702
610439
  StartLibraryDocsGenerationResponseSchema: () => StartLibraryDocsGenerationResponseSchema2,
610440
+ StartStaticBuildInputSchema: () => StartStaticBuildInputSchema2,
610441
+ StartStaticBuildResponseSchema: () => StartStaticBuildResponseSchema2,
610442
+ StaticContentGroupBySchema: () => StaticContentGroupBySchema2,
610443
+ StaticContentTrafficInputSchema: () => StaticContentTrafficInputSchema2,
610444
+ StaticContentTrafficResponseSchema: () => StaticContentTrafficResponseSchema2,
609703
610445
  StreamConditionSchema: () => StreamConditionSchema2,
609704
610446
  StreamResponseV2Schema: () => StreamResponseV2Schema2,
609705
610447
  StringTypeSchema: () => StringTypeSchema2,
@@ -609780,6 +610522,7 @@ __export(orpc_client_exports, {
609780
610522
  createGeneratorsRootClient: () => createGeneratorsRootClient2,
609781
610523
  createGitClient: () => createGitClient2,
609782
610524
  createLibraryDocsClient: () => createLibraryDocsClient3,
610525
+ createMcpHostingClient: () => createMcpHostingClient2,
609783
610526
  createOrganizationClient: () => createOrganizationClient2,
609784
610527
  createPdfExportClient: () => createPdfExportClient2,
609785
610528
  createSdksClient: () => createSdksClient2,
@@ -609790,6 +610533,8 @@ __export(orpc_client_exports, {
609790
610533
  createTokensClient: () => createTokensClient2,
609791
610534
  dashboardAgentContract: () => dashboardAgentContract2,
609792
610535
  dashboardContract: () => dashboardContract2,
610536
+ deploymentConfigFromParsed: () => deploymentConfigFromParsed,
610537
+ deploymentMetaFromParsed: () => deploymentMetaFromParsed,
609793
610538
  docsCacheContract: () => docsCacheContract2,
609794
610539
  docsDeploymentContract: () => docsDeploymentContract2,
609795
610540
  docsLedgerContract: () => docsLedgerContract2,
@@ -609809,8 +610554,10 @@ __export(orpc_client_exports, {
609809
610554
  isFernFileRef: () => isFernFileRef,
609810
610555
  ledgerSegmentIdentity: () => ledgerSegmentIdentity,
609811
610556
  libraryDocsContract: () => libraryDocsContract2,
610557
+ mcpHostingContract: () => mcpHostingContract2,
609812
610558
  organizationContract: () => organizationContract2,
609813
610559
  pdfExportContract: () => pdfExportContract2,
610560
+ scriptNameFor: () => scriptNameFor,
609814
610561
  sdksContract: () => sdksContract2,
609815
610562
  selectLedgerSegmentsForLocale: () => selectLedgerSegmentsForLocale,
609816
610563
  slugsContract: () => slugsContract2,
@@ -610226,6 +610973,17 @@ function createGitClient2(options2) {
610226
610973
  });
610227
610974
  return createORPCClient(link4);
610228
610975
  }
610976
+ function createMcpHostingClient2(options2) {
610977
+ const link4 = new OpenAPILink(mcpHostingContract2, {
610978
+ url: `${options2.baseUrl}/mcp-hosting`,
610979
+ headers: () => ({
610980
+ Authorization: `Bearer ${options2.token}`,
610981
+ ...options2.headers
610982
+ }),
610983
+ ...options2.fetch != null ? { fetch: options2.fetch } : {}
610984
+ });
610985
+ return createORPCClient(link4);
610986
+ }
610229
610987
  function createPdfExportClient2(options2) {
610230
610988
  const link4 = new OpenAPILink(pdfExportContract2, {
610231
610989
  url: `${options2.baseUrl}/pdf-export`,
@@ -610324,6 +611082,7 @@ function createFdrORPCClient2(options2) {
610324
611082
  versions: createGeneratorVersionsClient2(normalizedOptions)
610325
611083
  },
610326
611084
  git: createGitClient2(normalizedOptions),
611085
+ mcpHosting: createMcpHostingClient2(normalizedOptions),
610327
611086
  slugs: createSlugsClient2(normalizedOptions),
610328
611087
  pdfExport: createPdfExportClient2(normalizedOptions),
610329
611088
  sdks: createSdksClient2(normalizedOptions),
@@ -610489,6 +611248,34 @@ function stableStringify(value2) {
610489
611248
  return val;
610490
611249
  });
610491
611250
  }
611251
+ function deploymentMetaFromParsed(parsed, deployedAt = /* @__PURE__ */ new Date()) {
611252
+ return {
611253
+ authSchemes: parsed.auth.schemes,
611254
+ toolCount: new Set(Object.values(parsed.toolsets).flat()).size,
611255
+ deployedAt: deployedAt.toISOString(),
611256
+ requirements: parsed.environmentVariables.map((v3) => ({
611257
+ label: v3.description,
611258
+ envVar: v3.name,
611259
+ type: v3.required ? "required" : "optional"
611260
+ }))
611261
+ };
611262
+ }
611263
+ function deploymentConfigFromParsed(parsed) {
611264
+ return {
611265
+ serverName: parsed.name,
611266
+ baseUrl: parsed.baseUrl,
611267
+ followRedirects: parsed.followRedirects,
611268
+ maxRedirects: parsed.maxRedirects,
611269
+ allowedRedirectHosts: parsed.allowedRedirectHosts,
611270
+ authSchemes: parsed.auth.schemes,
611271
+ authRequired: parsed.auth.required,
611272
+ toolsets: parsed.toolsets,
611273
+ toolsetMetadata: parsed.toolsetMetadata
611274
+ };
611275
+ }
611276
+ function scriptNameFor(input3) {
611277
+ return `${input3.orgId}--${input3.slug}`;
611278
+ }
610492
611279
  function isFernFileRef(value2) {
610493
611280
  if (typeof value2 !== "object" || value2 === null) {
610494
611281
  return false;
@@ -610500,9 +611287,9 @@ function isFernFileRef(value2) {
610500
611287
  const hash5 = value2[FERN_FILE_REF_KEY];
610501
611288
  return typeof hash5 === "string" && SHA256_RE.test(hash5);
610502
611289
  }
610503
- var OrgIdSchema3, ApiIdSchema2, ApiDefinitionIdSchema3, HttpMethodSchema4, HttpMethod46, UrlSchema3, EndpointPathLiteralSchema2, EndpointIdentifierSchema2, SdkRequestSchema2, DocsConfigIdSchema3, GrpcIdSchema2, PageIdSchema3, RoleIdSchema3, TokenIdSchema2, VersionIdSchema3, LinkTarget2, GrpcMethod2, Availability21, SupportedLanguage2, HttpSnippetLanguage5, SnippetsByEndpointMethodSchema2, SdkSchema2, TypeIdSchema2, EndpointIdSchema3, WebSocketIdSchema3, WebhookIdSchema3, GraphQlOperationIdSchema2, GraphQlTypeCategorySchema2, EnvironmentIdSchema2, PropertyKeySchema2, AuthSchemeIdSchema2, SubpackageIdSchema3, WebSocketMessageIdSchema2, FileIdSchema3, MultipleAuthTypeSchema2, GrpcMethodSchema2, AvailabilitySchema5, WebSocketMessageOriginSchema2, WebhookHttpMethodSchema2, WithDescriptionSchema2, WithAvailabilitySchema2, EnvironmentSchema5, RestProtocolSchema2, OpenRpcProtocolSchema2, GrpcProtocolSchema2, ProtocolSchema2, ObjectPropertyAccessSchema2, TypeReferenceIdDefaultSchema2, _numberNullish2, _numberIntNullish2, coercedNumberNullish2, coercedNumberIntNullish2, IntegerTypeSchema2, DoubleTypeSchema2, StringTypeSchema2, LongTypeSchema2, _booleanNullish2, BooleanTypeSchema2, DatetimeTypeSchema2, UuidTypeSchema2, Base64TypeSchema2, DateTypeSchema2, BigIntegerTypeSchema2, UintTypeSchema2, Uint64TypeSchema2, ScalarTypeSchema2, PrimitiveTypeSchema2, LiteralTypeSchema2, TypeReferenceSchema3, GraphQlArgumentSchema2, ObjectPropertySchema3, ObjectTypeSchema2, EnumValueSchema3, EnumTypeSchema2, DiscriminatedUnionVariantSchema2, DiscriminatedUnionTypeSchema2, ContentTypeSchema2, FilePropertySingleSchema2, FilePropertyArraySchema2, FormDataFilePropertySchema2, FormDataBodyPropertySchema2, FormDataPropertySchema2, FormDataRequestSchema2, EndpointPathPartSchema2, PathParameterSchema2, EndpointPathSchema2, QueryParameterSchema2, HeaderSchema3, JsonBodyShapeSchema2, FileDownloadResponseBodyShapeSchema2, StreamResponseV2Schema2, StreamConditionSchema2, FilenameWithDataSchema2, FormValueSchema2, BytesValueSchema2, ExampleEndpointRequestSchema2, ExampleServerSentEventSchema2, ExampleEndpointResponseSchema2, ErrorDeclarationSchema3, ExampleErrorResponseSchema2, ErrorExampleSchema2, GraphQlOperationTypeSchema2, GraphQlExampleSchema2, CodeSnippetSchema2, GraphQlOperationSchema2, WebhookPayloadShapeSchema2, WebhookPayloadSchema3, ExampleWebhookPayloadSchema2, WebSocketMessageBodyShapeSchema2, WebSocketMessageSchema2, ExampleWebSocketMessageSchema2, ExampleWebSocketSessionSchema2, ApiNavigationConfigItemSchema5, ApiNavigationConfigRootSchema5, BearerAuthSchema2, BasicAuthSchema2, HeaderAuthSchema2, OAuthClientCredentialsReferencedEndpointSchema2, OAuthClientCredentialsSchema2, OAuthSchema2, ApiAuthSchema4, JqStringSchema2, RegisterLanguageSchema2, RegisterUndiscriminatedUnionVariantSchema2, RegisterUndiscriminatedUnionTypeSchema2, RegisterTypeShapeSchema2, RegisterTypeDefinitionSchema2, RegisterBytesRequestSchema2, RegisterJsonRequestBodySchema2, RegisterHttpRequestBodyShapeSchema2, RegisterHttpRequestSchema2, RegisterHttpRequestsV2Schema2, RegisterCustomCodeSampleSchema2, RegisterExampleEndpointCallSchema2, RegisterNonStreamResponseSchema2, RegisterStreamResponseSchema2, RegisterStreamConditionResponseSchema2, RegisterHttpResponseBodyShapeSchema2, RegisterHttpResponseSchema2, RegisterHttpResponsesV2Schema2, RegisterErrorDeclarationV2Schema2, RegisterEndpointDefinitionSchema2, RegisterWebhookDefinitionSchema2, RegisterWebSocketChannelSchema2, SourceIdSchema2, SourceSchema3, SourceUploadSchema2, DynamicIRSchema2, DynamicIRUploadSchema2, TypescriptPackageSchema2, PythonPackageSchema2, GoModuleSchema2, JavaCoordinateSchema2, RubyGemSchema2, NugetPackageSchema2, ComposerPackageSchema2, SwiftPackageSchema2, CratesPackageSchema2, SnippetsConfigSchema2, RegisterApiDefinitionPackageSchema2, RegisterApiDefinitionSubpackageSchema2, RegisterApiDefinitionSchema2, RegisterApiDefinitionResponseSchema2, SnippetInfoSchema2, SdkDynamicIrDownloadSchema2, GetSdkDynamicIrUploadUrlsResponseSchema2, CheckSdkDynamicIrExistsResponseSchema2, EndpointExampleGenerationErrorBodySchema2, PathPartSchema2, WithNamespaceSchema2, LatestAuthSchemeSchema2, LatestObjectPropertyAccessSchema2, LatestTypeReferenceIdDefaultSchema2, LatestPrimitiveTypeSchema2, LatestLiteralTypeSchema2, LatestUnknownTypeSchema2, LatestEnumValueSchema2, LatestEnumTypeSchema2, LatestObjectPropertySchema2, LatestParameterPropertySchema2, LatestObjectTypeSchema2, LatestUndiscriminatedUnionVariantSchema2, LatestUndiscriminatedUnionTypeSchema2, LatestDiscriminatedUnionVariantSchema2, LatestDiscriminatedUnionTypeSchema2, LatestTypeShapeSchema2, LatestTypeReferenceSchema2, LatestTypeDefinitionSchema2, LatestContentTypeSchema2, LatestBytesRequestSchema2, LatestFormDataPropertySchema2, LatestFormDataRequestSchema2, LatestNullableTypeSchema2, LatestOptionalTypeSchema2, LatestListTypeSchema2, LatestSetTypeSchema2, LatestMapTypeSchema2, LatestLanguageSchema2, LatestExampleEndpointRequestSchema2, LatestExampleEndpointResponseSchema2, LatestExampleErrorResponseSchema2, LatestHttpRequestBodyShapeSchema2, LatestHttpRequestSchema2, LatestFileDownloadResponseBodyShapeSchema2, LatestStreamResponseSchema2, LatestHttpResponseBodyShapeSchema2, LatestHttpResponseSchema2, LatestErrorExampleSchema2, LatestErrorResponseSchema2, LatestCodeSnippetSchema2, LatestExampleEndpointCallSchema2, LatestEndpointDefinitionSchema2, LatestGraphQlOperationTypeSchema2, LatestGraphQlArgumentSchema2, LatestGraphQlExampleSchema2, LatestGraphQlOperationSchema2, LatestWebhookPayloadShapeSchema2, LatestWebhookPayloadSchema2, LatestExampleWebhookPayloadSchema2, LatestWebhookDefinitionSchema2, LatestWebSocketMessageSchema2, LatestExampleWebSocketMessageSchema2, LatestExampleWebSocketSessionSchema2, LatestWebSocketChannelSchema2, LatestSubpackageMetadataSchema2, LatestApiDefinitionSchema2, ApiDefinitionSchema4, ReadUndiscriminatedUnionVariantSchema2, ReadUndiscriminatedUnionTypeSchema2, ReadTypeShapeSchema2, ReadTypeDefinitionSchema2, ReadBytesRequestSchema2, ReadHttpRequestBodyShapeSchema2, ReadHttpRequestSchema2, ReadHttpRequestsV2Schema2, ReadSupportedLanguageSchema2, ReadLanguageSchema2, ReadCustomCodeSampleSchema2, ReadPythonSnippetSchema2, ReadTypescriptSnippetSchema2, ReadGoSnippetSchema2, ReadRubySnippetSchema2, ReadCsharpSnippetSchema2, ReadCodeExamplesSchema2, ReadExampleEndpointCallSchema2, ReadNonStreamResponseSchema2, ReadStreamResponseSchema2, ReadStreamConditionResponseSchema2, ReadHttpResponseBodyShapeSchema2, ReadHttpResponseSchema2, ReadHttpResponsesV2Schema2, ReadErrorDeclarationV2Schema2, ReadEndpointDefinitionSchema2, ReadWebhookDefinitionSchema2, ReadWebSocketChannelSchema2, ReadApiDefinitionPackageSchema2, ReadApiDefinitionSubpackageSchema2, ReadApiDefinitionSchema2, apiLatestContract2, apiReadContract2, apiRegisterContract2, EndpointSnippetTemplatesSchema2, DbHttpRequestSchema2, DbHttpRequestsV2Schema2, DbEndpointDefinitionSchema2, DbApiDefinitionPackageSchema2, DbApiDefinitionSubpackageSchema2, DbApiDefinitionSchema2, DbEndpointWithContextSchema2, DocsDeploymentStatusSchema2, DocsSiteSchema2, DocsDeploymentSchema2, RegisterDocsSiteInputSchema2, GetPostmanCollectionIdInputSchema2, GetDocsStatusInputSchema2, SetDocsStatusInputSchema2, CreateDeploymentInputSchema2, UpdateDeploymentStatusInputSchema2, GetDocsDeploymentsInputSchema2, UnlockDeployInputSchema2, GetDocsStatusResponseSchema2, GetDocsDeploymentsResponseSchema2, CreateDeploymentResponseSchema2, UpdateDeploymentStatusResponseSchema2, GetPostmanCollectionIdResponseSchema2, UnlockDeployResponseSchema2, GetDocsSitesByCollectionIdInputSchema2, FindSiteByOrgAndCollectionInputSchema2, FindSiteByOrgAndCollectionResponseSchema2, RecordPostmanNotificationInputSchema2, RecordPostmanNotificationResponseSchema2, GetUnnotifiedPostmanSitesResponseSchema2, GetDocsSitesByCollectionIdResponseSchema2, DeleteDocsSiteByServiceInputSchema2, DeleteDocsSiteByServiceResponseSchema2, SetEditorRepoUrlInputSchema2, docsDeploymentContract2, DocsSiteUrlSchema2, DashboardDocsSiteSchema2, GetDocsSitesForOrgInputSchema2, GetDocsSitesForOrgResponseSchema2, IsDocsSiteInOrgInputSchema2, IsDocsSiteInOrgResponseSchema2, DeleteAllDocsSitesForOrgInputSchema2, DeleteAllDocsSitesForOrgResponseSchema2, dashboardContract2, DashboardAnalyticsCommonInputSchema2, DashboardFeedbackInputSchema2, DashboardListOrgMembersInputSchema2, DashboardGetSiteConfigInputSchema2, AuthorizeDocsEditResponseSchema2, AnalyticsMetricSchema2, AnalyticsDimensionSchema2, AnalyticsGranularitySchema2, AnalyticsFilterFieldSchema2, AnalyticsFilterOpSchema2, AnalyticsFilterSchema2, AnalyticsOrderBySchema2, AnalyticsDateRangeSchema2, QueryAnalyticsInputSchema2, ResolvedDateRangeSchema2, AnalyticsSourceSchema2, LlmBotTrafficResponseSchema2, RecentFeedbackResponseSchema2, QueryAnalyticsResponseSchema2, OrgMembersResponseSchema2, SiteGitRepositorySchema2, SiteConfigResponseSchema2, SitePasswordProtectionSchema2, SiteSettingsResponseSchema2, dashboardAgentContract2, FileIdSchema22, PageIdSchema22, UrlSchema22, VersionIdSchema22, ApiDefinitionIdSchema22, EndpointIdSchema22, WebSocketIdSchema22, WebhookIdSchema22, RoleIdSchema22, SubpackageIdSchema22, LinkTargetSchema3, AvailabilitySchema23, RgbaColorSchema2, FileIdOrUrlSchema2, LanguageSchema2, Bcp47LocaleSchema3, DocsTranslationsConfigSchema2, ProgrammingLanguageSchema2, AnnouncementConfigSchema3, SegmentConfigSchema2, FullStoryAnalyticsConfigSchema2, IntercomConfigSchema3, PostHogConfigSchema2, GTMConfigSchema2, GoogleAnalytics4ConfigSchema2, AmplitudeConfigSchema2, MixpanelConfigSchema2, HotJarConfigSchema2, KoalaConfigSchema2, LogRocketConfigSchema2, PirschConfigSchema2, PlausibleConfigSchema2, FathomConfigSchema2, ClearBitConfigSchema2, HeapConfigSchema2, AnalyticsConfigSchema3, SearchbarPlacementSchema2, TabsPlacementSchema2, SwitcherPlacementSchema2, ContentAlignmentSchema2, HeaderPositionSchema2, PageWidthSizeConfigSchema2, SizeConfigSchema2, TabsAlignmentSchema2, ChangelogLayoutSchema2, ApiReferenceLayoutSchema2, DocsLayoutConfigSchema2, FooterNavConfigSchema2, DocsSidebarConfigSchema2, DocsBodyConfigSchema2, DocsTabsStyleSchema2, DocsTabsObjectConfigSchema2, DocsTabsConfigSchema2, DocsPageActionsConfigSchema2, LanguageSwitcherConfigSchema2, ProductSwitcherConfigSchema2, DocsThemeConfigSchema2, HttpSnippetLanguageSchema2, HttpSnippetsConfigSchema2, SearchSettingsConfigSchema2, DocsSettingsConfigSchema3, TwitterCardSettingSchema3, MetadataConfigSchema3, RedirectConfigSchema3, WithPermissionsSchema2, NavbarLinkMetadataSchema2, NavbarGithubMetadataSchema2, NavbarLinkDropdownMetadataSchema2, NavbarLinkSchema3, FooterLinkSchema2, CssConfigSchema3, JsScriptStrategySchema2, JsRemoteConfigSchema2, JsFileConfigSchema2, JsConfigSchema3, IntegrationsConfigSchema3, FontStyleSchema2, FontDisplaySchema2, CustomFontConfigVariantSchema2, CustomFontConfigSchema2, FontConfigV2Schema2, DocsTypographyConfigV2Schema2, ThemedFileIdSchema2, ColorsConfigSchema2, ColorUnthemedConfigSchema2, ColorThemedConfigSchema2, ColorConfigSchema2, ColorsConfigV2Schema2, FontConfigSchema2, DocsTypographyConfigSchema2, EditThisPageLaunchSchema2, AIChatLocationSchema2, AIChatWebsiteDatasourceSchema2, AIChatDatasourceSchema2, AIModelSchema2, AIChatConfigSchema2, PageDescriptionSourceSchema2, AgentsConfigSchema2, PageActionOptionSchema2, CustomPageActionSchema2, SkillSchema2, SkillsConfigSchema2, PageActionOptionsSchema2, PageActionsConfigSchema3, HeightSchema3, PageContentSchema3, NavigationNodeMetadataSchema3, PageMetadataSchema3, LinkMetadataSchema3, NavigationTabLinkSchema3, ChangelogItemSchema3, ChangelogSectionSchema3, ChangelogSectionV3Schema3, ApiSectionV2Schema3, GitHubRepoSchema2, NpmPackageSchema3, MavenPackageSchema3, PypiPackageSchema3, PublishedSdkSchema3, PublishedPostmanCollectionSchema3, ApiArtifactsSchema3, ApiNavigationConfigItemSchema22, ApiNavigationConfigRootSchema22, DocsConfigIdSchema22, UrlFileSchema2, ImageFileSchema2, FileSchema3, BackgroundSchema3, ThemeConfigSchema5, DarkAndLightModeConfigSchema4, ColorsConfigV3Schema4, ApiNavigationConfigRootSchema32, ApiSectionSchema4, DocsSectionSchema4, NavigationItemSchema4, NavigationTabGroupSchema4, NavigationTabSchema4, UnversionedTabbedNavigationConfigSchema4, UnversionedUntabbedNavigationConfigSchema4, UnversionedNavigationConfigSchema4, VersionedNavigationConfigDataSchema4, VersionedNavigationConfigSchema4, NavigationConfigSchema5, DocsConfigSchema3, DocsDefinitionSchema3, BaseUrlSchema2, LoadDocsForUrlResponseSchema2, GetDocsForDomainLegacyInputSchema2, GetDocsForDomainInputSchema2, docsV1ReadContract2, MAX_DOXYFILE_CONTENT_LENGTH2, SETTING_LINE_RE2, AT_DIRECTIVE_RE2, BOOL_RE2, FILE_PATTERN_RE2, PREDEFINED_RE2, ALIAS_DEF_RE2, DOXYFILE_ALLOWED_KEYS2, ALLOWED_HOSTNAMES2, GithubUrlSchema2, SafeBranchSchema2, SafePackagePathSchema2, LibraryDocsBaseConfigSchema2, PythonLibraryDocsConfigSchema2, SafeDoxyfileContentSchema2, CppLibraryDocsConfigSchema2, StartLibraryDocsGenerationInputSchema2, StartLibraryDocsGenerationResponseSchema2, GetLibraryDocsStatusInputSchema2, LibraryDocsResultSchema2, LibraryDocsGenerationStatusSchema2, libraryDocsContract2, GetOrganizationForUrlInputSchema2, organizationContract2, GetDocsUrlMetadataInputSchema2, GetDocsUrlMetadataResponseSchema2, GetDocsForUrlInputSchema2, GetPrivateDocsForUrlInputSchema2, ListAllDocsUrlsInputSchema2, GetDocsConfigByIdInputSchema2, GetSiteMetricsInputSchema2, SiteMetricsSchema2, DocsDefinitionField2, GetDocsConfigByIdResponseSchema2, DocsDomainItemSchema2, ListAllDocsUrlsResponseSchema2, getDocsForUrl2, docsV2ReadContract2, OrgIdSchema22, FilePathSchema3, DocsRegistrationIdSchema2, HeightSchema22, FileS3UploadUrlSchema2, StartDocsRegisterResponseSchema2, PageContentSchema22, NavigationNodeMetadataSchema22, PageMetadataSchema22, LinkMetadataSchema22, ChangelogItemSchema22, ChangelogSectionSchema22, ChangelogSectionV2Schema2, ChangelogSectionV3Schema22, NavigationTabLinkSchema22, ApiNavigationConfigItemSchema32, ApiNavigationConfigSubpackageSchema2, ApiNavigationConfigRootSchema42, ApiSectionSchema22, ApiSectionV2Schema22, DocsSectionSchema22, NavigationItemSchema22, NavigationTabGroupSchema22, NavigationTabSchema22, NavigationTabV2Schema3, UnversionedTabbedNavigationConfigSchema22, UnversionedUntabbedNavigationConfigSchema22, UnversionedNavigationConfigSchema22, VersionedNavigationConfigDataSchema22, VersionedNavigationConfigSchema22, NavigationConfigSchema22, ThemeConfigSchema22, DarkAndLightModeConfigSchema22, ColorsConfigV3Schema22, DocsConfigSchema22, DocsDefinitionSchema22, NpmPackageSchema22, MavenPackageSchema22, PypiPackageSchema22, PublishedSdkSchema22, PublishedPostmanCollectionSchema22, ApiArtifactsSchema22, InvalidCustomDomainErrorBodySchema2, OverlappingCustomDomainsSchema2, FilePathSchema22, FilePathInputSchema2, ImageFilePathSchema2, AuthConfigSchema2, StartDocsRegisterV2InputSchema2, StartDocsRegisterV2ResponseSchema2, StartDocsPreviewRegisterInputSchema2, StartDocsPreviewRegisterResponseSchema2, FinishDocsRegisterV2InputSchema2, TransferOwnershipInputSchema2, SetIsArchivedInputSchema2, SetDocsUrlMetadataInputSchema2, AlgoliaDomainInputSchema2, ListAlgoliaPreviewWhitelistResponseSchema2, DeleteDocsSiteInputSchema2, RemoveCustomDomainAliasInputSchema2, Bcp47LocaleSchema22, RegisterTranslationInputSchema2, RegisterTranslationResponseSchema2, docsV2WriteContract2, InvalidateCachedDocsInputSchema2, docsCacheContract2, MissingContentSchema2, RegisterResponseSchema2, FinishResponseSchema2, ArchiveSiteInputSchema2, ArchiveSiteResponseSchema2, BlobRefSchema2, PageBlobRefSchema2, FileManifestEntrySchema2, ImageRefSchema2, PathOrUrlSchema2, RgbaSchema2, BackgroundColorSchema2, ACCENT_SCALE_KEYS2, accentScaleShape2, LedgerThemeConfigSchema2, LedgerColorsConfigSchema2, LedgerFontVariantSchema2, LedgerFontConfigSchema2, LedgerTypographySchema2, LedgerJsFileSchema2, LedgerJsConfigSchema2, LedgerMetadataConfigSchema2, NavbarLinksFieldSchema2, FooterLinksFieldSchema2, LayoutFieldSchema2, ThemeFieldSchema2, SettingsFieldSchema2, AnalyticsFieldSchema2, AIChatFieldSchema2, PageActionsFieldSchema2, LedgerAgentsConfigSchema2, LedgerConfigSchema2, MetadataStringArraySchema2, FeatureFlagMetadataSchema2, LinkTargetSchema22, CollapsedSchema2, PlaygroundSettingsSchema3, LedgerAvailabilitySchema2, LedgerArtifactTypeSchema2, LedgerMetadataBaseSchema2, NodeMetadataFields2, ApiNodeMetadataFields2, LedgerSegmentDetailMetadataObjectSchema2, LedgerSegmentDetailMetadataSchema2, LedgerSegmentMetadataObjectSchema2, LedgerSegmentMetadataSchema2, LedgerMarkdownMetadataSchema2, LedgerRestMetadataSchema2, LedgerWebSocketMetadataSchema2, LedgerWebhookMetadataSchema2, LedgerGrpcMetadataSchema2, LedgerGraphQlMetadataSchema2, LedgerGraphQlTypeMetadataSchema2, LedgerChangelogEntryMetadataSchema2, LedgerLinkMetadataSchema2, LedgerFileArtifactMetadataSchema2, LedgerStructuralRedirectKindSchema2, LedgerRedirectKindSchema2, LedgerRedirectMetadataSchema2, LedgerArtifactMetadataSchema2, LEDGER_ARTIFACT_METADATA_SCHEMAS2, NavRouteBaseSchema2, LedgerNavRouteSchema2, DocsPublishGitInputSchema2, DocsContentFieldsSchema2, LocaleEntrySchemaInternal2, LocaleEntrySchema2, DocsPublishInputSchemaInternal2, DocsPublishInputSchema2, LedgerPreviewRegisterInputSchemaInternal2, LedgerPreviewRegisterInputSchema2, LedgerPreviewRegisterResponseSchema2, docsLedgerContract2, CurrentVersionInputSchema2, CurrentPreviewInputSchema2, CurrentVersionResponseSchema2, ContentRefSchema2, SegmentDetailSchema2, SegmentSchema2, VersionMetadataInputSchema2, VersionMetadataResponseSchema2, PageContentInputSchema2, PageContentResponseSchema2, BatchPageContentInputSchema2, BatchPageContentItemSchema2, BatchPageContentResponseSchema2, NavInputSchema2, NavResponseSchema2, RouteContextInputSchema2, RouteContextResponseBaseSchema2, RouteContextResponseSchema2, TopLevelNavigationInputSchema2, TopLevelNavigationResponseSchema2, VersionSwitchTargetsInputSchema2, VersionSwitchTargetSchema2, VersionSwitchTargetsResponseSchema2, ApiDefinitionInputSchema2, ApiDefinitionResponseSchema2, PrunedApiDefinitionInputSchema2, PrunedApiDefinitionResponseSchema2, FileArtifactInputSchema2, FileArtifactResponseSchema2, PresignedFileDownloadInputSchema2, PresignedFileDownloadResponseSchema2, FileMetadataInputSchema2, FileMetadataResponseSchema2, docsLedgerReadContract2, GetSnapshotInputSchema2, SetSnapshotInputSchema2, GetDocumentsForBranchesInputSchema2, EditorDocumentSchema2, GetSnapshotResponseSchema2, GetDocumentsForBranchesResponseSchema2, editorSnapshotContract2, GeneratorLanguage, ReleaseType, GeneratorLanguageSchema2, ScriptSchema2, GeneratorScriptsSchema2, GeneratorTypeSchema2, ChangelogEntryTypeSchema2, ChangelogEntrySchema2, YankSchema2, ReleaseTypeSchema2, VersionRangeSchema2, GeneratorSchema2, GeneratorOutputSchema3, GetGeneratorByImageInputSchema2, GetGeneratorInputSchema2, GeneratorReleaseSchema2, GeneratorReleaseRequestSchema2, GetLatestGeneratorReleaseInputSchema2, GetGeneratorChangelogInputSchema2, ChangelogResponseSchema2, GetChangelogResponseSchema2, GetGeneratorReleaseInputSchema2, ListGeneratorReleasesInputSchema2, ListGeneratorReleasesResponseSchema2, CliReleaseSchema2, GetLatestCliReleaseInputSchema2, GetCliChangelogInputSchema2, GetMinCliForIrInputSchema2, UpsertCliReleaseInputSchema2, GetCliReleaseInputSchema2, ListCliReleasesInputSchema2, ListCliReleasesResponseSchema2, generatorsContract2, generatorVersionsContract2, generatorCliContract2, CheckRunSchema2, GithubRepositoryIdSchema2, RepositoryIdSchema2, BaseRepositorySchema2, SdkRepositorySchema2, FernConfigRepositorySchema2, FernRepositorySchema2, GithubUserSchema2, GithubTeamSchema2, PullRequestReviewerSchema2, PullRequestStateSchema2, PullRequestState, PullRequestSchema2, ListRepositoriesResponseSchema2, ListPullRequestsResponseSchema2, GetRepositoryInputSchema2, ListRepositoriesInputSchema2, DeleteRepositoryInputSchema2, GetPullRequestInputSchema2, ListPullRequestsInputSchema2, DeletePullRequestInputSchema2, gitContract2, PdfExportScopeSchema2, PdfExportOptionsV1Schema2, PdfExportOptionsSchema2, PdfExportTaskStatusSchema2, PdfExportTaskSchema2, ListPdfExportTasksResponseSchema2, PdfExportDownloadResponseSchema2, CreatePdfExportTaskInputSchema2, ListPdfExportTasksInputSchema2, GetPdfExportTaskInputSchema2, UpdatePdfExportTaskInputSchema2, GetPdfExportDownloadUrlInputSchema2, CleanupPdfExportsResponseSchema2, pdfExportContract2, LanguageEnumSchema2, VersionBumpEnumSchema2, ComputeSemanticVersionInputSchema2, ComputeSemanticVersionOutputSchema2, sdksContract2, SlugsInputSchema2, SlugEntrySchema2, MarkdownEntrySchema2, GetSlugEntriesResponseSchema2, GetMarkdownEntriesResponseSchema2, slugsContract2, TypeScriptSdkSchema2, PythonSdkSchema2, GoSdkSchema2, RubySdkSchema2, JavaSdkSchema2, CsharpSdkSchema2, BaseSnippetCreateSchema2, SdkSnippetsCreateSchema2, snippetsFactoryContract2, ParameterPayloadSchema2, AuthPayloadSchema2, CustomSnippetPayloadSchema2, snippetsContract2, SnippetRegistryEntrySchema2, RegisterInputSchema2, RegisterBatchInputSchema2, GetInputSchema2, EndpointSnippetTemplateSchema2, templatesContract2, GenerateTokenInputSchema2, RevokeTokenInputSchema2, GenerateTokenOutputSchema2, tokensContract2, StartDocsRegisterV1InputSchema, StartDocsRegisterV1ResponseSchema, FinishDocsRegisterV1InputSchema, docsV1WriteContract, PATH_OR_URL_METADATA_KEYS, LogoViewSchema, ThemeViewSchema, ColorsViewSchema, FontViewSchema, TypographyViewSchema, JsFileViewSchema, MetadataFileRefViewSchema, ConfigViewSchema, NAV_ICON_FILE_PREFIX, FileTokenTreeSchema, ConfigFileTokenViewSchema, SegmentDetailIconViewSchema, SegmentIconViewSchema, LEDGER_MANIFEST_SCHEMA_VERSION, LEDGER_SHARD_SCHEMA_VERSION, ManifestBlobRefSchema, ManifestSegmentSchema, ManifestNavRouteSchema, ManifestRouteBaseSchema, ManifestRouteSchema, ManifestPageSchema, ManifestApiDefSchema, ManifestFileSchema, LedgerShardFileSchema, LedgerConfigBlobSchema, LedgerChromeBlobSchema, LedgerSidebarBundleSchema, LedgerSidebarMapEntrySchema, LedgerLocaleIndexSchema, LedgerRouteShardSchema, LedgerPagesBlobSchema, LedgerPointerSegmentSchema, LedgerLocaleRoutingSchema, LedgerManifestSchema, LedgerSiteArtifactSchema, PutContentInputSchema, PutContentResponseSchema, PutFileInputSchema, FileResponseSchema, contentContract, filesContract, SEMVER_RE, UpsertOrgConfigBodySchema, OrgConfigResponseSchema, FERN_FILE_REF_KEY, SHA256_RE, THEME_NAME_RE, ThemeResponseSchema, ThemeListItemSchema, ThemeListResponseSchema, UpsertThemeBodySchema;
611290
+ var OrgIdSchema3, ApiIdSchema2, ApiDefinitionIdSchema3, HttpMethodSchema4, HttpMethod46, UrlSchema3, EndpointPathLiteralSchema2, EndpointIdentifierSchema2, SdkRequestSchema2, DocsConfigIdSchema3, GrpcIdSchema2, PageIdSchema3, RoleIdSchema3, TokenIdSchema2, VersionIdSchema3, LinkTarget2, GrpcMethod2, Availability21, SupportedLanguage2, HttpSnippetLanguage5, SnippetsByEndpointMethodSchema2, SdkSchema2, TypeIdSchema2, EndpointIdSchema3, WebSocketIdSchema3, WebhookIdSchema3, GraphQlOperationIdSchema2, GraphQlTypeCategorySchema2, EnvironmentIdSchema2, PropertyKeySchema2, AuthSchemeIdSchema2, SubpackageIdSchema3, WebSocketMessageIdSchema2, FileIdSchema3, MultipleAuthTypeSchema2, GrpcMethodSchema2, AvailabilitySchema5, WebSocketMessageOriginSchema2, WebhookHttpMethodSchema2, WithDescriptionSchema2, WithAvailabilitySchema2, EnvironmentSchema5, RestProtocolSchema2, OpenRpcProtocolSchema2, GrpcProtocolSchema2, ProtocolSchema2, ObjectPropertyAccessSchema2, TypeReferenceIdDefaultSchema2, _numberNullish2, _numberIntNullish2, coercedNumberNullish2, coercedNumberIntNullish2, IntegerTypeSchema2, DoubleTypeSchema2, StringTypeSchema2, LongTypeSchema2, _booleanNullish2, BooleanTypeSchema2, DatetimeTypeSchema2, UuidTypeSchema2, Base64TypeSchema2, DateTypeSchema2, BigIntegerTypeSchema2, UintTypeSchema2, Uint64TypeSchema2, ScalarTypeSchema2, PrimitiveTypeSchema2, LiteralTypeSchema2, TypeReferenceSchema3, GraphQlArgumentSchema2, ObjectPropertySchema3, ObjectTypeSchema2, EnumValueSchema3, EnumTypeSchema2, DiscriminatedUnionVariantSchema2, DiscriminatedUnionTypeSchema2, ContentTypeSchema2, FilePropertySingleSchema2, FilePropertyArraySchema2, FormDataFilePropertySchema2, FormDataBodyPropertySchema2, FormDataPropertySchema2, FormDataRequestSchema2, EndpointPathPartSchema2, PathParameterSchema2, EndpointPathSchema2, QueryParameterSchema2, HeaderSchema3, JsonBodyShapeSchema2, FileDownloadResponseBodyShapeSchema2, StreamResponseV2Schema2, StreamConditionSchema2, FilenameWithDataSchema2, FormValueSchema2, BytesValueSchema2, ExampleEndpointRequestSchema2, ExampleServerSentEventSchema2, ExampleEndpointResponseSchema2, ErrorDeclarationSchema3, ExampleErrorResponseSchema2, ErrorExampleSchema2, GraphQlOperationTypeSchema2, GraphQlExampleSchema2, CodeSnippetSchema2, GraphQlOperationSchema2, WebhookPayloadShapeSchema2, WebhookPayloadSchema3, ExampleWebhookPayloadSchema2, WebSocketMessageBodyShapeSchema2, WebSocketMessageSchema2, ExampleWebSocketMessageSchema2, ExampleWebSocketSessionSchema2, ApiNavigationConfigItemSchema5, ApiNavigationConfigRootSchema5, PlaygroundDescriptionSchema2, BearerAuthSchema2, BasicAuthSchema2, HeaderAuthSchema2, OAuthClientCredentialsReferencedEndpointSchema2, OAuthClientCredentialsSchema2, OAuthSchema2, ApiAuthSchema4, JqStringSchema2, RegisterLanguageSchema2, RegisterUndiscriminatedUnionVariantSchema2, RegisterUndiscriminatedUnionTypeSchema2, RegisterTypeShapeSchema2, RegisterTypeDefinitionSchema2, RegisterBytesRequestSchema2, RegisterJsonRequestBodySchema2, RegisterHttpRequestBodyShapeSchema2, RegisterHttpRequestSchema2, RegisterHttpRequestsV2Schema2, RegisterCustomCodeSampleSchema2, RegisterExampleEndpointCallSchema2, RegisterNonStreamResponseSchema2, RegisterStreamResponseSchema2, RegisterStreamConditionResponseSchema2, RegisterHttpResponseBodyShapeSchema2, RegisterHttpResponseSchema2, RegisterHttpResponsesV2Schema2, RegisterErrorDeclarationV2Schema2, RegisterEndpointDefinitionSchema2, RegisterWebhookDefinitionSchema2, RegisterWebSocketChannelSchema2, SourceIdSchema2, SourceSchema3, SourceUploadSchema2, DynamicIRSchema2, DynamicIRUploadSchema2, TypescriptPackageSchema2, PythonPackageSchema2, GoModuleSchema2, JavaCoordinateSchema2, RubyGemSchema2, NugetPackageSchema2, ComposerPackageSchema2, SwiftPackageSchema2, CratesPackageSchema2, SnippetsConfigSchema2, RegisterApiDefinitionPackageSchema2, RegisterApiDefinitionSubpackageSchema2, RegisterApiDefinitionSchema2, RegisterApiDefinitionResponseSchema2, SnippetInfoSchema2, SdkDynamicIrDownloadSchema2, GetSdkDynamicIrUploadUrlsResponseSchema2, CheckSdkDynamicIrExistsResponseSchema2, EndpointExampleGenerationErrorBodySchema2, PathPartSchema2, WithNamespaceSchema2, LatestAuthSchemeSchema2, LatestObjectPropertyAccessSchema2, LatestTypeReferenceIdDefaultSchema2, LatestPrimitiveTypeSchema2, LatestLiteralTypeSchema2, LatestUnknownTypeSchema2, LatestEnumValueSchema2, LatestEnumTypeSchema2, LatestObjectPropertySchema2, LatestParameterPropertySchema2, LatestObjectTypeSchema2, LatestUndiscriminatedUnionVariantSchema2, LatestUndiscriminatedUnionTypeSchema2, LatestDiscriminatedUnionVariantSchema2, LatestDiscriminatedUnionTypeSchema2, LatestTypeShapeSchema2, LatestTypeReferenceSchema2, LatestTypeDefinitionSchema2, LatestContentTypeSchema2, LatestBytesRequestSchema2, LatestFormDataPropertySchema2, LatestFormDataRequestSchema2, LatestNullableTypeSchema2, LatestOptionalTypeSchema2, LatestListTypeSchema2, LatestSetTypeSchema2, LatestMapTypeSchema2, LatestLanguageSchema2, LatestExampleEndpointRequestSchema2, LatestExampleEndpointResponseSchema2, LatestExampleErrorResponseSchema2, LatestHttpRequestBodyShapeSchema2, LatestHttpRequestSchema2, LatestFileDownloadResponseBodyShapeSchema2, LatestStreamResponseSchema2, LatestHttpResponseBodyShapeSchema2, LatestHttpResponseSchema2, LatestErrorExampleSchema2, LatestErrorResponseSchema2, LatestCodeSnippetSchema2, LatestExampleEndpointCallSchema2, LatestEndpointDefinitionSchema2, LatestGraphQlOperationTypeSchema2, LatestGraphQlArgumentSchema2, LatestGraphQlExampleSchema2, LatestGraphQlOperationSchema2, LatestWebhookPayloadShapeSchema2, LatestWebhookPayloadSchema2, LatestExampleWebhookPayloadSchema2, LatestWebhookDefinitionSchema2, LatestWebSocketMessageSchema2, LatestExampleWebSocketMessageSchema2, LatestExampleWebSocketSessionSchema2, LatestWebSocketChannelSchema2, LatestSubpackageMetadataSchema2, LatestApiDefinitionSchema2, ApiDefinitionSchema4, ReadUndiscriminatedUnionVariantSchema2, ReadUndiscriminatedUnionTypeSchema2, ReadTypeShapeSchema2, ReadTypeDefinitionSchema2, ReadBytesRequestSchema2, ReadHttpRequestBodyShapeSchema2, ReadHttpRequestSchema2, ReadHttpRequestsV2Schema2, ReadSupportedLanguageSchema2, ReadLanguageSchema2, ReadCustomCodeSampleSchema2, ReadPythonSnippetSchema2, ReadTypescriptSnippetSchema2, ReadGoSnippetSchema2, ReadRubySnippetSchema2, ReadCsharpSnippetSchema2, ReadCodeExamplesSchema2, ReadExampleEndpointCallSchema2, ReadNonStreamResponseSchema2, ReadStreamResponseSchema2, ReadStreamConditionResponseSchema2, ReadHttpResponseBodyShapeSchema2, ReadHttpResponseSchema2, ReadHttpResponsesV2Schema2, ReadErrorDeclarationV2Schema2, ReadEndpointDefinitionSchema2, ReadWebhookDefinitionSchema2, ReadWebSocketChannelSchema2, ReadApiDefinitionPackageSchema2, ReadApiDefinitionSubpackageSchema2, ReadApiDefinitionSchema2, apiLatestContract2, apiReadContract2, apiRegisterContract2, EndpointSnippetTemplatesSchema2, DbHttpRequestSchema2, DbHttpRequestsV2Schema2, DbEndpointDefinitionSchema2, DbApiDefinitionPackageSchema2, DbApiDefinitionSubpackageSchema2, DbApiDefinitionSchema2, DbEndpointWithContextSchema2, DocsDeploymentStatusSchema2, DocsSiteSchema2, DocsDeploymentSchema2, RegisterDocsSiteInputSchema2, GetPostmanCollectionIdInputSchema2, GetDocsStatusInputSchema2, SetDocsStatusInputSchema2, CreateDeploymentInputSchema2, UpdateDeploymentStatusInputSchema2, GetDocsDeploymentsInputSchema2, UnlockDeployInputSchema2, GetDocsStatusResponseSchema2, GetDocsDeploymentsResponseSchema2, CreateDeploymentResponseSchema2, UpdateDeploymentStatusResponseSchema2, GetPostmanCollectionIdResponseSchema2, UnlockDeployResponseSchema2, GetDocsSitesByCollectionIdInputSchema2, FindSiteByOrgAndCollectionInputSchema2, FindSiteByOrgAndCollectionResponseSchema2, RecordPostmanNotificationInputSchema2, RecordPostmanNotificationResponseSchema2, GetUnnotifiedPostmanSitesResponseSchema2, GetDocsSitesByCollectionIdResponseSchema2, DeleteDocsSiteByServiceInputSchema2, DeleteDocsSiteByServiceResponseSchema2, SetEditorRepoUrlInputSchema2, docsDeploymentContract2, DocsSiteUrlSchema2, DashboardDocsSiteSchema2, GetDocsSitesForOrgInputSchema2, GetDocsSitesForOrgResponseSchema2, IsDocsSiteInOrgInputSchema2, IsDocsSiteInOrgResponseSchema2, DeleteAllDocsSitesForOrgInputSchema2, DeleteAllDocsSitesForOrgResponseSchema2, dashboardContract2, DashboardAnalyticsCommonInputSchema2, DashboardFeedbackInputSchema2, DashboardListOrgMembersInputSchema2, DashboardGetSiteConfigInputSchema2, AuthorizeDocsEditResponseSchema2, AnalyticsMetricSchema2, AnalyticsDimensionSchema2, AnalyticsGranularitySchema2, AnalyticsFilterFieldSchema2, AnalyticsFilterOpSchema2, AnalyticsFilterSchema2, AnalyticsOrderBySchema2, AnalyticsDateRangeSchema2, QueryAnalyticsInputSchema2, ResolvedDateRangeSchema2, AnalyticsSourceSchema2, StaticContentGroupBySchema2, StaticContentTrafficInputSchema2, StaticContentTrafficResponseSchema2, RecentFeedbackResponseSchema2, QueryAnalyticsResponseSchema2, OrgMembersResponseSchema2, SiteGitRepositorySchema2, SiteConfigResponseSchema2, SitePasswordProtectionSchema2, SiteSettingsResponseSchema2, ListDocsPagesInputSchema2, DocsPageSummarySchema2, ListDocsPagesResponseSchema2, GetDocsPageInputSchema2, DocsPageContentSchema2, GetDocsPageResponseSchema2, dashboardAgentContract2, FileIdSchema22, PageIdSchema22, UrlSchema22, VersionIdSchema22, ApiDefinitionIdSchema22, EndpointIdSchema22, WebSocketIdSchema22, WebhookIdSchema22, RoleIdSchema22, SubpackageIdSchema22, LinkTargetSchema3, AvailabilitySchema23, RgbaColorSchema2, FileIdOrUrlSchema2, LanguageSchema2, Bcp47LocaleSchema3, DocsTranslationsConfigSchema2, ProgrammingLanguageSchema2, AnnouncementConfigSchema3, SegmentConfigSchema2, FullStoryAnalyticsConfigSchema2, IntercomConfigSchema3, PostHogConfigSchema2, GTMConfigSchema2, GoogleAnalytics4ConfigSchema2, AmplitudeConfigSchema2, MixpanelConfigSchema2, HotJarConfigSchema2, KoalaConfigSchema2, LogRocketConfigSchema2, PirschConfigSchema2, PlausibleConfigSchema2, FathomConfigSchema2, ClearBitConfigSchema2, HeapConfigSchema2, AnalyticsConfigSchema3, SearchbarPlacementSchema2, TabsPlacementSchema2, SwitcherPlacementSchema2, ContentAlignmentSchema2, HeaderPositionSchema2, PageWidthSizeConfigSchema2, SizeConfigSchema2, TabsAlignmentSchema2, ChangelogLayoutSchema2, ApiReferenceLayoutSchema2, DocsLayoutConfigSchema2, FooterNavConfigSchema2, DocsSidebarConfigSchema2, DocsBodyConfigSchema2, DocsTabsStyleSchema2, DocsTabsObjectConfigSchema2, DocsTabsConfigSchema2, DocsPageActionsConfigSchema2, LanguageSwitcherConfigSchema2, ProductSwitcherConfigSchema2, DocsThemeConfigSchema2, HttpSnippetLanguageSchema2, HttpSnippetsConfigSchema2, SearchSettingsConfigSchema2, DocsSettingsConfigSchema3, TwitterCardSettingSchema3, MetadataConfigSchema3, RedirectConfigSchema3, WithPermissionsSchema2, NavbarLinkMetadataSchema2, NavbarGithubMetadataSchema2, NavbarLinkDropdownMetadataSchema2, NavbarLinkSchema3, FooterLinkSchema2, CssConfigSchema3, JsScriptStrategySchema2, JsRemoteConfigSchema2, JsFileConfigSchema2, JsConfigSchema3, IntegrationsConfigSchema3, FontStyleSchema2, FontDisplaySchema2, CustomFontConfigVariantSchema2, CustomFontConfigSchema2, FontConfigV2Schema2, DocsTypographyConfigV2Schema2, ThemedFileIdSchema2, ColorsConfigSchema2, ColorUnthemedConfigSchema2, ColorThemedConfigSchema2, ColorConfigSchema2, ColorsConfigV2Schema2, FontConfigSchema2, DocsTypographyConfigSchema2, EditThisPageLaunchSchema2, AIChatLocationSchema2, AIChatWebsiteDatasourceSchema2, AIChatDatasourceSchema2, AIModelSchema2, AIChatConfigSchema2, PageDescriptionSourceSchema2, AgentsConfigSchema2, PageActionOptionSchema2, CustomPageActionSchema2, SkillSchema2, SkillsConfigSchema2, PageActionOptionsSchema2, PageActionsConfigSchema3, HeightSchema3, PageContentSchema3, NavigationNodeMetadataSchema3, PageMetadataSchema3, LinkMetadataSchema3, NavigationTabLinkSchema3, ChangelogItemSchema3, ChangelogSectionSchema3, ChangelogSectionV3Schema3, ApiSectionV2Schema3, GitHubRepoSchema2, NpmPackageSchema3, MavenPackageSchema3, PypiPackageSchema3, PublishedSdkSchema3, PublishedPostmanCollectionSchema3, ApiArtifactsSchema3, ApiNavigationConfigItemSchema22, ApiNavigationConfigRootSchema22, DocsConfigIdSchema22, UrlFileSchema2, ImageFileSchema2, FileSchema3, BackgroundSchema3, ThemeConfigSchema5, DarkAndLightModeConfigSchema4, ColorsConfigV3Schema4, ApiNavigationConfigRootSchema32, ApiSectionSchema4, DocsSectionSchema4, NavigationItemSchema4, NavigationTabGroupSchema4, NavigationTabSchema4, UnversionedTabbedNavigationConfigSchema4, UnversionedUntabbedNavigationConfigSchema4, UnversionedNavigationConfigSchema4, VersionedNavigationConfigDataSchema4, VersionedNavigationConfigSchema4, NavigationConfigSchema5, DocsConfigSchema3, DocsDefinitionSchema3, BaseUrlSchema2, LoadDocsForUrlResponseSchema2, GetDocsForDomainLegacyInputSchema2, GetDocsForDomainInputSchema2, docsV1ReadContract2, MAX_DOXYFILE_CONTENT_LENGTH2, SETTING_LINE_RE2, AT_DIRECTIVE_RE2, BOOL_RE2, FILE_PATTERN_RE2, PREDEFINED_RE2, ALIAS_DEF_RE2, DOXYFILE_ALLOWED_KEYS2, ALLOWED_HOSTNAMES2, GithubUrlSchema2, SafeBranchSchema2, SafePackagePathSchema2, LibraryDocsBaseConfigSchema2, PythonLibraryDocsConfigSchema2, SafeDoxyfileContentSchema2, CppLibraryDocsConfigSchema2, StartLibraryDocsGenerationInputSchema2, StartLibraryDocsGenerationResponseSchema2, GetLibraryDocsStatusInputSchema2, LibraryDocsResultSchema2, LibraryDocsGenerationStatusSchema2, libraryDocsContract2, GetOrganizationForUrlInputSchema2, organizationContract2, GetDocsUrlMetadataInputSchema2, GetDocsUrlMetadataResponseSchema2, GetDocsForUrlInputSchema2, GetPrivateDocsForUrlInputSchema2, ListAllDocsUrlsInputSchema2, GetDocsConfigByIdInputSchema2, GetSiteMetricsInputSchema2, SiteMetricsSchema2, DocsDefinitionField2, GetDocsConfigByIdResponseSchema2, DocsDomainItemSchema2, ListAllDocsUrlsResponseSchema2, getDocsForUrl2, docsV2ReadContract2, OrgIdSchema22, FilePathSchema3, DocsRegistrationIdSchema2, HeightSchema22, FileS3UploadUrlSchema2, StartDocsRegisterResponseSchema2, PageContentSchema22, NavigationNodeMetadataSchema22, PageMetadataSchema22, LinkMetadataSchema22, ChangelogItemSchema22, ChangelogSectionSchema22, ChangelogSectionV2Schema2, ChangelogSectionV3Schema22, NavigationTabLinkSchema22, ApiNavigationConfigItemSchema32, ApiNavigationConfigSubpackageSchema2, ApiNavigationConfigRootSchema42, ApiSectionSchema22, ApiSectionV2Schema22, DocsSectionSchema22, NavigationItemSchema22, NavigationTabGroupSchema22, NavigationTabSchema22, NavigationTabV2Schema3, UnversionedTabbedNavigationConfigSchema22, UnversionedUntabbedNavigationConfigSchema22, UnversionedNavigationConfigSchema22, VersionedNavigationConfigDataSchema22, VersionedNavigationConfigSchema22, NavigationConfigSchema22, ThemeConfigSchema22, DarkAndLightModeConfigSchema22, ColorsConfigV3Schema22, DocsConfigSchema22, DocsDefinitionSchema22, NpmPackageSchema22, MavenPackageSchema22, PypiPackageSchema22, PublishedSdkSchema22, PublishedPostmanCollectionSchema22, ApiArtifactsSchema22, InvalidCustomDomainErrorBodySchema2, OverlappingCustomDomainsSchema2, FilePathSchema22, FilePathInputSchema2, ImageFilePathSchema2, AuthConfigSchema2, StartDocsRegisterV2InputSchema2, StartDocsRegisterV2ResponseSchema2, StartDocsPreviewRegisterInputSchema2, StartDocsPreviewRegisterResponseSchema2, FinishDocsRegisterV2InputSchema2, TransferOwnershipInputSchema2, SetIsArchivedInputSchema2, SetDocsUrlMetadataInputSchema2, AlgoliaDomainInputSchema2, ListAlgoliaPreviewWhitelistResponseSchema2, DeleteDocsSiteInputSchema2, RemoveCustomDomainAliasInputSchema2, Bcp47LocaleSchema22, RegisterTranslationInputSchema2, RegisterTranslationResponseSchema2, docsV2WriteContract2, InvalidateCachedDocsInputSchema2, docsCacheContract2, MissingContentSchema2, RegisterResponseSchema2, FinishResponseSchema2, ArchiveSiteInputSchema2, ArchiveSiteResponseSchema2, MigrateV2SiteInputSchema2, StartStaticBuildInputSchema2, StartStaticBuildResponseSchema2, ResolveStaticServingHostInputSchema2, ResolveStaticServingHostResponseSchema2, MigrateV2SiteSkipReasonSchema2, MigrateV2SiteResponseSchema2, BlobRefSchema2, PageBlobRefSchema2, FileManifestEntrySchema2, ImageRefSchema2, PathOrUrlSchema2, RgbaSchema2, BackgroundColorSchema2, ACCENT_SCALE_KEYS2, accentScaleShape2, LedgerThemeConfigSchema2, LedgerColorsConfigSchema2, LedgerFontVariantSchema2, LedgerFontConfigSchema2, LedgerTypographySchema2, LedgerJsFileSchema2, LedgerJsConfigSchema2, LedgerMetadataConfigSchema2, NavbarLinksFieldSchema2, FooterLinksFieldSchema2, LayoutFieldSchema2, ThemeFieldSchema2, SettingsFieldSchema2, AnalyticsFieldSchema2, AIChatFieldSchema2, PageActionsFieldSchema2, LedgerAgentsConfigSchema2, LedgerConfigSchema2, MetadataStringArraySchema2, FeatureFlagMetadataSchema2, LinkTargetSchema22, CollapsedSchema2, PlaygroundSettingsSchema3, LedgerAvailabilitySchema2, LedgerArtifactTypeSchema2, LedgerMetadataBaseSchema2, NodeMetadataFields2, ApiNodeMetadataFields2, LedgerSegmentDetailMetadataObjectSchema2, LedgerSegmentDetailMetadataSchema2, LedgerSegmentMetadataObjectSchema2, LedgerSegmentMetadataSchema2, LedgerMarkdownMetadataSchema2, LedgerRestMetadataSchema2, LedgerWebSocketMetadataSchema2, LedgerWebhookMetadataSchema2, LedgerGrpcMetadataSchema2, LedgerGraphQlMetadataSchema2, LedgerGraphQlTypeMetadataSchema2, LedgerChangelogEntryMetadataSchema2, LedgerLinkMetadataSchema2, LedgerFileArtifactMetadataSchema2, LedgerStructuralRedirectKindSchema2, LedgerRedirectKindSchema2, LedgerRedirectMetadataSchema2, LedgerArtifactMetadataSchema2, LEDGER_ARTIFACT_METADATA_SCHEMAS2, NavRouteBaseSchema2, LedgerNavRouteSchema2, DocsPublishGitInputSchema2, DocsContentFieldsSchema2, LocaleEntrySchemaInternal2, LocaleEntrySchema2, DocsPublishInputSchemaInternal2, DocsPublishInputSchema2, LedgerPreviewRegisterInputSchemaInternal2, LedgerPreviewRegisterInputSchema2, LedgerPreviewRegisterResponseSchema2, docsLedgerContract2, CurrentVersionInputSchema2, CurrentPreviewInputSchema2, CurrentVersionResponseSchema2, ContentRefSchema2, SegmentDetailSchema2, SegmentSchema2, VersionMetadataInputSchema2, VersionMetadataResponseSchema2, PageContentInputSchema2, PageContentResponseSchema2, BatchPageContentInputSchema2, BatchPageContentItemSchema2, BatchPageContentResponseSchema2, NavInputSchema2, NavResponseSchema2, RouteContextInputSchema2, RouteContextResponseBaseSchema2, RouteContextResponseSchema2, TopLevelNavigationInputSchema2, TopLevelNavigationResponseSchema2, VersionSwitchTargetsInputSchema2, VersionSwitchTargetSchema2, VersionSwitchTargetsResponseSchema2, ApiDefinitionInputSchema2, ApiDefinitionResponseSchema2, PrunedApiDefinitionInputSchema2, PrunedApiDefinitionResponseSchema2, FileArtifactInputSchema2, FileArtifactResponseSchema2, PresignedFileDownloadInputSchema2, PresignedFileDownloadResponseSchema2, FileMetadataInputSchema2, FileMetadataResponseSchema2, docsLedgerReadContract2, GetSnapshotInputSchema2, SetSnapshotInputSchema2, GetDocumentsForBranchesInputSchema2, EditorDocumentSchema2, GetSnapshotResponseSchema2, GetDocumentsForBranchesResponseSchema2, editorSnapshotContract2, GeneratorLanguage, ReleaseType, GeneratorLanguageSchema2, ScriptSchema2, GeneratorScriptsSchema2, GeneratorTypeSchema2, ChangelogEntryTypeSchema2, ChangelogEntrySchema2, YankSchema2, ReleaseTypeSchema2, VersionRangeSchema2, GeneratorSchema2, GeneratorOutputSchema3, GetGeneratorByImageInputSchema2, GetGeneratorInputSchema2, GeneratorReleaseSchema2, GeneratorReleaseRequestSchema2, GetLatestGeneratorReleaseInputSchema2, GetGeneratorChangelogInputSchema2, ChangelogResponseSchema2, GetChangelogResponseSchema2, GetGeneratorReleaseInputSchema2, ListGeneratorReleasesInputSchema2, ListGeneratorReleasesResponseSchema2, CliReleaseSchema2, GetLatestCliReleaseInputSchema2, GetCliChangelogInputSchema2, GetMinCliForIrInputSchema2, UpsertCliReleaseInputSchema2, GetCliReleaseInputSchema2, ListCliReleasesInputSchema2, ListCliReleasesResponseSchema2, generatorsContract2, generatorVersionsContract2, generatorCliContract2, CheckRunSchema2, GithubRepositoryIdSchema2, RepositoryIdSchema2, BaseRepositorySchema2, SdkRepositorySchema2, FernConfigRepositorySchema2, FernRepositorySchema2, GithubUserSchema2, GithubTeamSchema2, PullRequestReviewerSchema2, PullRequestStateSchema2, PullRequestState, PullRequestSchema2, ListRepositoriesResponseSchema2, ListPullRequestsResponseSchema2, GetRepositoryInputSchema2, ListRepositoriesInputSchema2, DeleteRepositoryInputSchema2, GetPullRequestInputSchema2, ListPullRequestsInputSchema2, DeletePullRequestInputSchema2, gitContract2, McpAuthSchemeSchema2, HttpUrlSchema2, McpMetadataSchema2, DeploymentConfigSchema2, McpPathSegmentSchema2, McpDeploymentStatusSchema2, McpModuleSchema2, McpGitInputSchema2, DeployMcpServerInputSchema2, GetMcpServerInputSchema2, ListMcpServersInputSchema2, ListMcpDeploymentsInputSchema2, DeleteMcpServerInputSchema2, McpDeploymentSummarySchema2, McpServerSchema2, ListMcpServersResponseSchema2, ListMcpDeploymentsResponseSchema2, mcpHostingContract2, PdfExportScopeSchema2, PdfExportOptionsV1Schema2, PdfExportOptionsSchema2, PdfExportTaskStatusSchema2, PdfExportTaskSchema2, ListPdfExportTasksResponseSchema2, PdfExportDownloadResponseSchema2, CreatePdfExportTaskInputSchema2, ListPdfExportTasksInputSchema2, GetPdfExportTaskInputSchema2, UpdatePdfExportTaskInputSchema2, GetPdfExportDownloadUrlInputSchema2, CleanupPdfExportsResponseSchema2, pdfExportContract2, LanguageEnumSchema2, VersionBumpEnumSchema2, ComputeSemanticVersionInputSchema2, ComputeSemanticVersionOutputSchema2, sdksContract2, SlugsInputSchema2, SlugEntrySchema2, MarkdownEntrySchema2, GetSlugEntriesResponseSchema2, GetMarkdownEntriesResponseSchema2, slugsContract2, TypeScriptSdkSchema2, PythonSdkSchema2, GoSdkSchema2, RubySdkSchema2, JavaSdkSchema2, CsharpSdkSchema2, BaseSnippetCreateSchema2, SdkSnippetsCreateSchema2, snippetsFactoryContract2, ParameterPayloadSchema2, AuthPayloadSchema2, CustomSnippetPayloadSchema2, snippetsContract2, SnippetRegistryEntrySchema2, RegisterInputSchema2, RegisterBatchInputSchema2, GetInputSchema2, EndpointSnippetTemplateSchema2, templatesContract2, GenerateTokenInputSchema2, RevokeTokenInputSchema2, GenerateTokenOutputSchema2, tokensContract2, StartDocsRegisterV1InputSchema, StartDocsRegisterV1ResponseSchema, FinishDocsRegisterV1InputSchema, docsV1WriteContract, PATH_OR_URL_METADATA_KEYS, LogoViewSchema, ThemeViewSchema, ColorsViewSchema, FontViewSchema, TypographyViewSchema, JsFileViewSchema, MetadataFileRefViewSchema, ConfigViewSchema, NAV_ICON_FILE_PREFIX, FileTokenTreeSchema, ConfigFileTokenViewSchema, SegmentDetailIconViewSchema, SegmentIconViewSchema, LEDGER_MANIFEST_SCHEMA_VERSION, LEDGER_SHARD_SCHEMA_VERSION, ManifestBlobRefSchema, ManifestSegmentSchema, ManifestNavRouteSchema, ManifestRouteBaseSchema, ManifestRouteSchema, ManifestPageSchema, ManifestApiDefSchema, ManifestFileSchema, LedgerShardFileSchema, LedgerConfigBlobSchema, LedgerChromeBlobSchema, LedgerSidebarBundleSchema, LedgerSidebarMapEntrySchema, LedgerLocaleIndexSchema, LedgerRouteShardSchema, LedgerPagesBlobSchema, LedgerPointerSegmentSchema, LedgerLocaleRoutingSchema, LedgerManifestSchema, LedgerSiteArtifactSchema, PutContentInputSchema, PutContentResponseSchema, PutFileInputSchema, FileResponseSchema, contentContract, filesContract, KV_KEY_PREFIX_ORG, KV_KEY_PREFIX_CONFIG, KV_KEY_PREFIX_META, KV_KEY_PREFIXES, SEMVER_RE, UpsertOrgConfigBodySchema, OrgConfigResponseSchema, FERN_FILE_REF_KEY, SHA256_RE, THEME_NAME_RE, ThemeResponseSchema, ThemeListItemSchema, ThemeListResponseSchema, UpsertThemeBodySchema;
610504
611291
  var init_orpc_client = __esm({
610505
- "../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.102-07ddc01b9b_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/orpc-client.mjs"() {
611292
+ "../../../node_modules/.pnpm/@fern-api+fdr-sdk@1.2.122-10cd6e7ad7_@opentelemetry+api@1.9.1_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/orpc-client.mjs"() {
610506
611293
  "use strict";
610507
611294
  init_dist5();
610508
611295
  init_dist5();
@@ -610580,6 +611367,11 @@ var init_orpc_client = __esm({
610580
611367
  init_fetch3();
610581
611368
  init_dist7();
610582
611369
  init_zod2();
611370
+ init_zod2();
611371
+ init_dist5();
611372
+ init_fetch3();
611373
+ init_dist7();
611374
+ init_zod2();
610583
611375
  init_dist5();
610584
611376
  init_fetch3();
610585
611377
  init_dist7();
@@ -611172,24 +611964,29 @@ var init_orpc_client = __esm({
611172
611964
  ApiNavigationConfigRootSchema5 = objectType({
611173
611965
  items: arrayType(ApiNavigationConfigItemSchema5)
611174
611966
  });
611967
+ PlaygroundDescriptionSchema2 = stringType().nullish();
611175
611968
  BearerAuthSchema2 = objectType({
611176
611969
  description: stringType().nullish(),
611970
+ playgroundDescription: PlaygroundDescriptionSchema2,
611177
611971
  tokenName: stringType().nullish()
611178
611972
  });
611179
611973
  BasicAuthSchema2 = objectType({
611180
611974
  description: stringType().nullish(),
611975
+ playgroundDescription: PlaygroundDescriptionSchema2,
611181
611976
  usernameName: stringType().nullish(),
611182
611977
  passwordName: stringType().nullish(),
611183
611978
  passwordAlwaysEmpty: booleanType().nullish()
611184
611979
  });
611185
611980
  HeaderAuthSchema2 = objectType({
611186
611981
  description: stringType().nullish(),
611982
+ playgroundDescription: PlaygroundDescriptionSchema2,
611187
611983
  nameOverride: stringType().nullish(),
611188
611984
  headerWireValue: stringType(),
611189
611985
  prefix: stringType().nullish()
611190
611986
  });
611191
611987
  OAuthClientCredentialsReferencedEndpointSchema2 = objectType({
611192
611988
  description: stringType().nullish(),
611989
+ playgroundDescription: PlaygroundDescriptionSchema2,
611193
611990
  endpointId: EndpointIdSchema3,
611194
611991
  accessTokenLocator: stringType(),
611195
611992
  headerName: stringType().nullish(),
@@ -612662,12 +613459,19 @@ var init_orpc_client = __esm({
612662
613459
  endDate: stringType()
612663
613460
  });
612664
613461
  AnalyticsSourceSchema2 = enumType(["cache", "live"]);
612665
- LlmBotTrafficResponseSchema2 = objectType({
613462
+ StaticContentGroupBySchema2 = enumType(["file", "provider"]);
613463
+ StaticContentTrafficInputSchema2 = DashboardAnalyticsCommonInputSchema2.extend({
613464
+ groupBy: StaticContentGroupBySchema2.optional()
613465
+ });
613466
+ StaticContentTrafficResponseSchema2 = objectType({
612666
613467
  resolvedDateRange: ResolvedDateRangeSchema2,
612667
- providers: arrayType(
613468
+ groupBy: StaticContentGroupBySchema2,
613469
+ rows: arrayType(
612668
613470
  objectType({
612669
- provider: stringType(),
612670
- count: numberType()
613471
+ key: stringType(),
613472
+ requests: numberType(),
613473
+ agentViews: numberType().optional(),
613474
+ humanViews: numberType().optional()
612671
613475
  })
612672
613476
  ),
612673
613477
  source: AnalyticsSourceSchema2
@@ -612771,14 +613575,61 @@ var init_orpc_client = __esm({
612771
613575
  searchBehavior: enumType(["hierarchical", "unified"]).nullable(),
612772
613576
  passwordProtection: SitePasswordProtectionSchema2
612773
613577
  });
613578
+ ListDocsPagesInputSchema2 = objectType({
613579
+ orgId: stringType(),
613580
+ domain: stringType().min(1),
613581
+ basepath: stringType().optional(),
613582
+ prefix: stringType().optional(),
613583
+ contains: stringType().optional(),
613584
+ limit: numberType().int().min(1).max(200).optional(),
613585
+ offset: numberType().int().min(0).optional()
613586
+ });
613587
+ DocsPageSummarySchema2 = objectType({
613588
+ /** Full published slug, without a leading slash (e.g. `protect/api-reference/jobs/get-status`). */
613589
+ slug: stringType(),
613590
+ url: stringType(),
613591
+ title: stringType(),
613592
+ /** Artifact type backing the page, e.g. `markdown`, `rest`, `webhook`, `changelog`. */
613593
+ nodeType: stringType()
613594
+ });
613595
+ ListDocsPagesResponseSchema2 = objectType({
613596
+ pages: arrayType(DocsPageSummarySchema2),
613597
+ /** Pages matching the filters across the whole site, not just this page of results. */
613598
+ totalMatched: numberType(),
613599
+ /** Every page on the site, so a caller can tell a narrow filter from a small site. */
613600
+ totalPages: numberType(),
613601
+ /** Pass back as `offset` for the next page. Null when this is the last one. */
613602
+ nextOffset: numberType().nullable()
613603
+ });
613604
+ GetDocsPageInputSchema2 = objectType({
613605
+ orgId: stringType(),
613606
+ domain: stringType().min(1),
613607
+ basepath: stringType().optional(),
613608
+ /** Published slug or pathname; a leading slash is accepted. */
613609
+ slug: stringType().min(1)
613610
+ });
613611
+ DocsPageContentSchema2 = DocsPageSummarySchema2.extend({
613612
+ /**
613613
+ * The page's source markdown. Null for pages generated from an API definition
613614
+ * (endpoints, websockets, webhooks), which have no markdown of their own.
613615
+ */
613616
+ markdown: stringType().nullable()
613617
+ });
613618
+ GetDocsPageResponseSchema2 = objectType({
613619
+ page: DocsPageContentSchema2.nullable(),
613620
+ /** Slugs closest to the requested one, when it matched no page. */
613621
+ suggestions: arrayType(stringType())
613622
+ });
612774
613623
  dashboardAgentContract2 = {
612775
- getLlmBotTraffic: oc.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema2).output(LlmBotTrafficResponseSchema2),
613624
+ getStaticContentTraffic: oc.route({ method: "POST", path: "/get-static-content-traffic" }).input(StaticContentTrafficInputSchema2).output(StaticContentTrafficResponseSchema2),
612776
613625
  getRecentFeedback: oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema2).output(RecentFeedbackResponseSchema2),
612777
613626
  queryAnalytics: oc.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema2).output(QueryAnalyticsResponseSchema2),
612778
613627
  listOrgMembers: oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema2).output(OrgMembersResponseSchema2),
612779
613628
  getSiteConfig: oc.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema2).output(SiteConfigResponseSchema2),
612780
613629
  authorizeDocsEdit: oc.route({ method: "POST", path: "/authorize-docs-edit" }).input(DashboardGetSiteConfigInputSchema2).output(AuthorizeDocsEditResponseSchema2),
612781
- getSiteSettings: oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema2).output(SiteSettingsResponseSchema2)
613630
+ getSiteSettings: oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema2).output(SiteSettingsResponseSchema2),
613631
+ listDocsPages: oc.route({ method: "POST", path: "/list-docs-pages" }).input(ListDocsPagesInputSchema2).output(ListDocsPagesResponseSchema2),
613632
+ getDocsPage: oc.route({ method: "POST", path: "/get-docs-page" }).input(GetDocsPageInputSchema2).output(GetDocsPageResponseSchema2)
612782
613633
  };
612783
613634
  FileIdSchema22 = stringType();
612784
613635
  PageIdSchema22 = stringType();
@@ -614205,6 +615056,80 @@ var init_orpc_client = __esm({
614205
615056
  ArchiveSiteResponseSchema2 = objectType({
614206
615057
  status: enumType(["archived", "already_archived", "not_found"])
614207
615058
  });
615059
+ MigrateV2SiteInputSchema2 = objectType({
615060
+ domain: stringType().min(1),
615061
+ /** "" for a root site, otherwise a leading-slash basepath. */
615062
+ basepath: stringType().default(""),
615063
+ /** Report what would convert without writing anything. */
615064
+ dryRun: booleanType().default(false),
615065
+ /** Convert again after a manual rollback left the row on a superseded ledger deployment. */
615066
+ allowRemigration: booleanType().default(false)
615067
+ });
615068
+ StartStaticBuildInputSchema2 = objectType({
615069
+ domain: stringType().min(1),
615070
+ /** "" for a root site, otherwise a leading-slash basepath. */
615071
+ basepath: stringType().default("")
615072
+ });
615073
+ StartStaticBuildResponseSchema2 = objectType({
615074
+ /** Mirrors the dispatcher's own outcomes, plus the sites it can't resolve. */
615075
+ status: enumType(["created", "already-running", "host-not-enabled", "disabled", "not-published"]),
615076
+ domain: stringType(),
615077
+ basepath: stringType(),
615078
+ /** The deployment being built, absent when the site has never published. */
615079
+ deploymentId: stringType().optional(),
615080
+ jobName: stringType().optional(),
615081
+ /** The host the build is exported to and served from, which may not be `domain`. */
615082
+ host: stringType().optional()
615083
+ });
615084
+ ResolveStaticServingHostInputSchema2 = objectType({
615085
+ domain: stringType().min(1),
615086
+ /** "" for a root site, otherwise a leading-slash basepath. */
615087
+ basepath: stringType().default("")
615088
+ });
615089
+ ResolveStaticServingHostResponseSchema2 = objectType({
615090
+ domain: stringType(),
615091
+ basepath: stringType(),
615092
+ /**
615093
+ * The hostname the static build is exported to and served from — always a
615094
+ * hostname Fern owns for a published site, even one on a customer's domain.
615095
+ */
615096
+ servingHost: stringType(),
615097
+ /** False when nothing routes to the serving host, so cutting over would serve nothing. */
615098
+ routable: booleanType(),
615099
+ /**
615100
+ * The deployment the serving host was derived from; absent when the site
615101
+ * has never published, in which case only its own hostname was available.
615102
+ */
615103
+ deploymentId: stringType().optional()
615104
+ });
615105
+ MigrateV2SiteSkipReasonSchema2 = enumType([
615106
+ "not-registered",
615107
+ "preview",
615108
+ "already-ledger",
615109
+ "has-translations",
615110
+ "no-navigation"
615111
+ ]);
615112
+ MigrateV2SiteResponseSchema2 = discriminatedUnionType("outcome", [
615113
+ objectType({
615114
+ outcome: literalType("skipped"),
615115
+ domain: stringType(),
615116
+ basepath: stringType(),
615117
+ reason: MigrateV2SiteSkipReasonSchema2
615118
+ }),
615119
+ objectType({
615120
+ outcome: literalType("convertible"),
615121
+ domain: stringType(),
615122
+ basepath: stringType(),
615123
+ pageCount: numberType(),
615124
+ fileCount: numberType()
615125
+ }),
615126
+ objectType({
615127
+ outcome: literalType("migrated"),
615128
+ domain: stringType(),
615129
+ basepath: stringType(),
615130
+ deploymentId: stringType()
615131
+ })
615132
+ ]);
614208
615133
  BlobRefSchema2 = objectType({
614209
615134
  hash: stringType(),
614210
615135
  contentType: stringType(),
@@ -614587,24 +615512,7 @@ var init_orpc_client = __esm({
614587
615512
  LedgerGraphQlTypeMetadataSchema2 = LedgerMetadataBaseSchema2.extend({
614588
615513
  ...ApiNodeMetadataFields2,
614589
615514
  typeId: stringType(),
614590
- typeCategory: GraphQlTypeCategorySchema2,
614591
- /**
614592
- * Ids of the types that reference this one directly, for the "referenced by"
614593
- * section of a type page.
614594
- *
614595
- * Computed at publish, because it cannot be derived on the read side: a type
614596
- * page's pruned definition contains what the type reaches, not what reaches
614597
- * it, and the navigation tree carries no field-level type references.
614598
- *
614599
- * Types rather than operations: where a schema namespaces its operations
614600
- * behind hub types, almost no operation names a leaf type directly, so an
614601
- * operation-keyed list is empty for most types. The type graph has the edge
614602
- * that exists, and it is small -- single digits for the large majority.
614603
- *
614604
- * Optional: absent on artifacts written before this field existed, and
614605
- * omitted entirely when nothing references the type.
614606
- */
614607
- referencedByTypeIds: arrayType(stringType()).optional()
615515
+ typeCategory: GraphQlTypeCategorySchema2
614608
615516
  });
614609
615517
  LedgerChangelogEntryMetadataSchema2 = LedgerMetadataBaseSchema2.extend({
614610
615518
  ...NodeMetadataFields2,
@@ -614823,7 +615731,10 @@ var init_orpc_client = __esm({
614823
615731
  register: oc.route({ method: "POST", path: "/register" }).input(DocsPublishInputSchema2).output(RegisterResponseSchema2),
614824
615732
  previewRegister: oc.route({ method: "POST", path: "/preview/init" }).input(LedgerPreviewRegisterInputSchema2).output(LedgerPreviewRegisterResponseSchema2),
614825
615733
  finish: oc.route({ method: "POST", path: "/register/finish" }).input(DocsPublishInputSchema2).output(FinishResponseSchema2),
614826
- archiveSite: oc.route({ method: "POST", path: "/archive" }).input(ArchiveSiteInputSchema2).output(ArchiveSiteResponseSchema2)
615734
+ archiveSite: oc.route({ method: "POST", path: "/archive" }).input(ArchiveSiteInputSchema2).output(ArchiveSiteResponseSchema2),
615735
+ migrateV2Site: oc.route({ method: "POST", path: "/migrate-v2" }).input(MigrateV2SiteInputSchema2).output(MigrateV2SiteResponseSchema2),
615736
+ startStaticBuild: oc.route({ method: "POST", path: "/static-build" }).input(StartStaticBuildInputSchema2).output(StartStaticBuildResponseSchema2),
615737
+ resolveStaticServingHost: oc.route({ method: "POST", path: "/static-build/serving-host" }).input(ResolveStaticServingHostInputSchema2).output(ResolveStaticServingHostResponseSchema2)
614827
615738
  };
614828
615739
  CurrentVersionInputSchema2 = objectType({
614829
615740
  domain: stringType(),
@@ -615467,6 +616378,154 @@ var init_orpc_client = __esm({
615467
616378
  path: "/pull-request/{repositoryOwner}/{repositoryName}/{pullRequestNumber}/delete"
615468
616379
  }).input(DeletePullRequestInputSchema2)
615469
616380
  };
616381
+ McpAuthSchemeSchema2 = discriminatedUnionType("type", [
616382
+ objectType({ type: literalType("bearer") }).passthrough(),
616383
+ objectType({
616384
+ type: literalType("apiKey"),
616385
+ paramName: stringType().min(1),
616386
+ in: enumType(["header", "query", "cookie"])
616387
+ }).passthrough(),
616388
+ objectType({ type: literalType("basic") }).passthrough()
616389
+ ]);
616390
+ HttpUrlSchema2 = stringType().url().refine((value2) => /^https?:\/\//i.test(value2), {
616391
+ message: "must be an http(s) URL"
616392
+ });
616393
+ McpMetadataSchema2 = objectType({
616394
+ name: stringType().min(1),
616395
+ toolsets: recordType(stringType(), arrayType(stringType())),
616396
+ toolsetMetadata: arrayType(
616397
+ objectType({
616398
+ name: stringType(),
616399
+ title: stringType(),
616400
+ description: stringType(),
616401
+ toolCount: numberType().int().nonnegative()
616402
+ }).passthrough()
616403
+ ),
616404
+ auth: objectType({
616405
+ schemes: arrayType(McpAuthSchemeSchema2),
616406
+ required: booleanType()
616407
+ }).passthrough(),
616408
+ skippedTools: arrayType(objectType({ name: stringType(), reason: stringType() }).passthrough()),
616409
+ environmentVariables: arrayType(
616410
+ objectType({
616411
+ name: stringType(),
616412
+ description: stringType(),
616413
+ required: booleanType()
616414
+ }).passthrough()
616415
+ ),
616416
+ baseUrl: HttpUrlSchema2,
616417
+ followRedirects: booleanType(),
616418
+ maxRedirects: numberType().int().nonnegative(),
616419
+ allowedRedirectHosts: arrayType(stringType())
616420
+ }).passthrough();
616421
+ DeploymentConfigSchema2 = objectType({
616422
+ serverName: stringType().min(1),
616423
+ baseUrl: HttpUrlSchema2,
616424
+ /**
616425
+ * Runtime rewrite of the upstream base URL. Part of the edge contract
616426
+ * (the outbound worker honors it) but not yet written by FDR.
616427
+ */
616428
+ baseUrlOverride: HttpUrlSchema2.optional(),
616429
+ followRedirects: booleanType(),
616430
+ maxRedirects: numberType().int().nonnegative(),
616431
+ allowedRedirectHosts: arrayType(stringType()),
616432
+ authSchemes: arrayType(McpAuthSchemeSchema2),
616433
+ authRequired: booleanType(),
616434
+ toolsets: recordType(stringType(), arrayType(stringType())),
616435
+ toolsetMetadata: McpMetadataSchema2.shape.toolsetMetadata
616436
+ });
616437
+ McpPathSegmentSchema2 = stringType().min(1).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
616438
+ McpDeploymentStatusSchema2 = enumType(["PUBLISHING", "SUCCEEDED", "FAILED"]);
616439
+ McpModuleSchema2 = objectType({
616440
+ name: stringType().regex(/^[A-Za-z0-9._/-]+$/),
616441
+ hash: stringType().regex(/^[0-9a-f]{64}$/),
616442
+ contentType: stringType().min(1)
616443
+ }).strict();
616444
+ McpGitInputSchema2 = objectType({
616445
+ repoUrl: stringType(),
616446
+ branch: stringType(),
616447
+ commitSha: stringType().optional()
616448
+ }).strict();
616449
+ DeployMcpServerInputSchema2 = objectType({
616450
+ orgId: McpPathSegmentSchema2,
616451
+ slug: McpPathSegmentSchema2,
616452
+ mainModule: stringType().min(1),
616453
+ compatibilityDate: stringType().regex(/^\d{4}-\d{2}-\d{2}$/),
616454
+ compatibilityFlags: arrayType(stringType()),
616455
+ // Bounded so a single deploy request cannot fan out unbounded parallel
616456
+ // CAS lookups and S3 reads. Generated MCP workers are 1-2 modules;
616457
+ // 20 leaves room for wasm/sourcemap/chunk splitting.
616458
+ modules: arrayType(McpModuleSchema2).min(1).max(20),
616459
+ metadata: McpMetadataSchema2,
616460
+ // Everything else in this schema is bounded; keep the opaque config
616461
+ // blob bounded too so it cannot balloon the JSONB row.
616462
+ config: unknownType().optional().refine((value2) => value2 === void 0 || (JSON.stringify(value2)?.length ?? 0) <= 65536, {
616463
+ message: "config must be at most 64KB serialized"
616464
+ }),
616465
+ generatorName: stringType().min(1),
616466
+ generatorVersion: stringType().min(1),
616467
+ cliVersion: stringType().optional(),
616468
+ git: McpGitInputSchema2.optional()
616469
+ }).strict().superRefine((input3, ctx) => {
616470
+ const names2 = /* @__PURE__ */ new Set();
616471
+ for (const module4 of input3.modules) {
616472
+ if (names2.has(module4.name)) {
616473
+ ctx.addIssue({
616474
+ code: ZodIssueCode2.custom,
616475
+ path: ["modules"],
616476
+ message: `duplicate module name: ${module4.name}`
616477
+ });
616478
+ }
616479
+ names2.add(module4.name);
616480
+ }
616481
+ if (!names2.has(input3.mainModule)) {
616482
+ ctx.addIssue({
616483
+ code: ZodIssueCode2.custom,
616484
+ path: ["mainModule"],
616485
+ message: `mainModule ${input3.mainModule} is not among the submitted modules`
616486
+ });
616487
+ }
616488
+ });
616489
+ GetMcpServerInputSchema2 = objectType({
616490
+ orgId: McpPathSegmentSchema2,
616491
+ slug: McpPathSegmentSchema2
616492
+ });
616493
+ ListMcpServersInputSchema2 = objectType({
616494
+ orgId: stringType()
616495
+ });
616496
+ ListMcpDeploymentsInputSchema2 = GetMcpServerInputSchema2;
616497
+ DeleteMcpServerInputSchema2 = GetMcpServerInputSchema2;
616498
+ McpDeploymentSummarySchema2 = objectType({
616499
+ id: stringType(),
616500
+ status: McpDeploymentStatusSchema2,
616501
+ /** True when this deployment is the one the server currently serves. */
616502
+ isActive: booleanType(),
616503
+ generatorVersion: stringType(),
616504
+ createdAt: stringType(),
616505
+ createdBy: stringType().nullish(),
616506
+ error: objectType({ name: stringType(), message: stringType() }).nullish()
616507
+ });
616508
+ McpServerSchema2 = objectType({
616509
+ id: stringType(),
616510
+ orgId: stringType(),
616511
+ slug: stringType(),
616512
+ /** The server is serving iff this is set; it names the serving deployment. */
616513
+ activeDeploymentId: stringType().nullish(),
616514
+ /** Most recent publication attempt — how the last deploy went. */
616515
+ latestDeployment: McpDeploymentSummarySchema2.nullish(),
616516
+ url: stringType().url(),
616517
+ createdAt: stringType(),
616518
+ updatedAt: stringType()
616519
+ });
616520
+ ListMcpServersResponseSchema2 = objectType({ servers: arrayType(McpServerSchema2) });
616521
+ ListMcpDeploymentsResponseSchema2 = objectType({ deployments: arrayType(McpDeploymentSummarySchema2) });
616522
+ mcpHostingContract2 = {
616523
+ deploy: oc.route({ method: "POST", path: "/deploy" }).input(DeployMcpServerInputSchema2).output(McpServerSchema2),
616524
+ getServer: oc.route({ method: "GET", path: "/servers/{slug}" }).input(GetMcpServerInputSchema2).output(McpServerSchema2),
616525
+ listServers: oc.route({ method: "GET", path: "/servers" }).input(ListMcpServersInputSchema2).output(ListMcpServersResponseSchema2),
616526
+ listDeployments: oc.route({ method: "GET", path: "/servers/{slug}/deployments" }).input(ListMcpDeploymentsInputSchema2).output(ListMcpDeploymentsResponseSchema2),
616527
+ deleteServer: oc.route({ method: "DELETE", path: "/servers/{slug}" }).input(DeleteMcpServerInputSchema2)
616528
+ };
615470
616529
  PdfExportScopeSchema2 = objectType({
615471
616530
  pageSlugs: arrayType(stringType())
615472
616531
  });
@@ -616132,6 +617191,10 @@ var init_orpc_client = __esm({
616132
617191
  */
616133
617192
  getFile: oc.route({ method: "GET", path: "/" }).output(FileResponseSchema)
616134
617193
  };
617194
+ KV_KEY_PREFIX_ORG = "org:";
617195
+ KV_KEY_PREFIX_CONFIG = "config:";
617196
+ KV_KEY_PREFIX_META = "meta:";
617197
+ KV_KEY_PREFIXES = [KV_KEY_PREFIX_ORG, KV_KEY_PREFIX_CONFIG, KV_KEY_PREFIX_META];
616135
617198
  SEMVER_RE = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z-.]+)?(?:\+[0-9A-Za-z-.]+)?$/;
616136
617199
  UpsertOrgConfigBodySchema = objectType({
616137
617200
  // A semver string sets the bound; `null` clears it; omitting leaves it unchanged.
@@ -705630,7 +706693,7 @@ var AccessTokenPosthogManager = class {
705630
706693
  properties: {
705631
706694
  ...event,
705632
706695
  ...event.properties,
705633
- version: "5.116.0",
706696
+ version: "5.117.0",
705634
706697
  usingAccessToken: true,
705635
706698
  ...getRunIdProperties()
705636
706699
  }
@@ -705696,7 +706759,7 @@ var UserPosthogManager = class {
705696
706759
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
705697
706760
  event: "CLI",
705698
706761
  properties: {
705699
- version: "5.116.0",
706762
+ version: "5.117.0",
705700
706763
  ...event,
705701
706764
  ...event.properties,
705702
706765
  usingAccessToken: false,
@@ -887374,7 +888437,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
887374
888437
  var LOGS_FOLDER_NAME = "logs";
887375
888438
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
887376
888439
  function getCliSource() {
887377
- const version7 = "5.116.0";
888440
+ const version7 = "5.117.0";
887378
888441
  return `cli@${version7}`;
887379
888442
  }
887380
888443
  var DebugLogger = class {
@@ -914687,7 +915750,7 @@ var LegacyDocsPublisher = class {
914687
915750
  previewId,
914688
915751
  disableTemplates: void 0,
914689
915752
  skipUpload,
914690
- cliVersion: "5.116.0",
915753
+ cliVersion: "5.117.0",
914691
915754
  loginCommand: "fern auth login"
914692
915755
  });
914693
915756
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -982099,7 +983162,7 @@ function getAutomationContextFromEnv() {
982099
983162
  config_branch: process.env.FERN_CONFIG_BRANCH,
982100
983163
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
982101
983164
  trigger: process.env.GITHUB_EVENT_NAME,
982102
- cli_version: "5.116.0"
983165
+ cli_version: "5.117.0"
982103
983166
  };
982104
983167
  }
982105
983168
  function isAutomationMode() {
@@ -982931,7 +983994,7 @@ var CliContext = class _CliContext {
982931
983994
  if (false) {
982932
983995
  this.logger.error("CLI_VERSION is not defined");
982933
983996
  }
982934
- return "5.116.0";
983997
+ return "5.117.0";
982935
983998
  }
982936
983999
  getCliName() {
982937
984000
  if (false) {
@@ -982983,8 +984046,12 @@ var CliContext = class _CliContext {
982983
984046
  * Temporarily restores the real stdout, writes, then re-redirects.
982984
984047
  */
982985
984048
  writeJsonToStdout(value2) {
984049
+ this.writeTextToStdout(JSON.stringify(value2, null, 2) + "\n");
984050
+ }
984051
+ /** Write machine-readable text to stdout while keeping status and diagnostics on stderr. */
984052
+ writeTextToStdout(value2) {
982986
984053
  this.stdoutRedirector.restore();
982987
- process.stdout.write(JSON.stringify(value2, null, 2) + "\n");
984054
+ process.stdout.write(value2);
982988
984055
  if (this.jsonMode) {
982989
984056
  this.stdoutRedirector.redirect();
982990
984057
  }
@@ -997599,7 +998666,7 @@ async function generateDiff({
997599
998666
  init_lib8();
997600
998667
  init_lib6();
997601
998668
 
997602
- // ../../../node_modules/.pnpm/@postman+sdk-config@0.2.0/node_modules/@postman/sdk-config/dist/sdk-config/v1/index.js
998669
+ // ../../../node_modules/.pnpm/@postman+sdk-config@0.3.1/node_modules/@postman/sdk-config/dist/sdk-config/v1/index.js
997603
998670
  init_zod();
997604
998671
  var import_semver18 = __toESM(require_semver2(), 1);
997605
998672
  var nonEmptyStringSchema = external_exports.string().min(1);
@@ -997869,8 +998936,8 @@ var clientConfigSchema = external_exports.strictObject({
997869
998936
  var sdkConfigV1ClientConfigSchema = clientConfigSchema;
997870
998937
  var sdkConfigV1ClientConfigOverrideSchema = clientConfigOverrideSchema;
997871
998938
  var goModulePathSchema = relativePathSchema.regex(
997872
- /^(?!.*(?:^|\/)\.{1,2}(?:\/|$))[A-Za-z0-9._~-]+(?:\/[A-Za-z0-9._~-]+)+$/,
997873
- "Go module path must be a slash-delimited path using letters, numbers, dots, dashes, underscores, or tildes"
998939
+ /^(?!.*(?:^|\/)\.{1,2}(?:\/|$))[A-Za-z0-9._~-]+(?:\/[A-Za-z0-9._~-]+)*$/,
998940
+ "Go module path must use letters, numbers, dots, dashes, underscores or tildes, in slash-delimited segments"
997874
998941
  );
997875
998942
  var composerPackageNameSchema = nonEmptyStringSchema.regex(
997876
998943
  /^[a-z0-9]([_.-]?[a-z0-9]+)*\/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$/,
@@ -998127,6 +999194,9 @@ function compact3(value2) {
998127
999194
  function optional23(key2, value2) {
998128
999195
  return value2 === void 0 ? {} : { [key2]: value2 };
998129
999196
  }
999197
+ function optionalObject(key2, value2) {
999198
+ return Object.keys(value2).length === 0 ? {} : { [key2]: value2 };
999199
+ }
998130
999200
  function isObject13(value2) {
998131
999201
  return value2 !== null && typeof value2 === "object" && !Array.isArray(value2);
998132
999202
  }
@@ -999109,12 +1000179,12 @@ var sdkConfigV1Schema = external_exports.strictObject({
999109
1000179
  sdkVersion: nonEmptyStringSchema.default("1.0.0"),
999110
1000180
  apiVersion: nonEmptyStringSchema.optional(),
999111
1000181
  source: sdkConfigV1SourceConfigSchema,
999112
- api: sdkConfigV1ApiConfigSchema,
999113
- client: sdkConfigV1ClientConfigSchema,
999114
- package: sdkConfigV1PackageConfigSchema,
1000182
+ api: sdkConfigV1ApiConfigSchema.prefault({}),
1000183
+ client: sdkConfigV1ClientConfigSchema.prefault({}),
1000184
+ package: sdkConfigV1PackageConfigSchema.prefault({}),
999115
1000185
  output: sdkConfigV1OutputConfigSchema.optional(),
999116
- docs: sdkConfigV1DocsConfigSchema,
999117
- generation: sdkConfigV1GenerationConfigSchema,
1000186
+ docs: sdkConfigV1DocsConfigSchema.prefault({}),
1000187
+ generation: sdkConfigV1GenerationConfigSchema.prefault({}),
999118
1000188
  targets: external_exports.array(sdkConfigV1TargetSchema).min(1)
999119
1000189
  }).superRefine(({ output: output2, package: globalPackage, targets: targets2 }, context3) => {
999120
1000190
  const configuredLanguages = /* @__PURE__ */ new Set();
@@ -999225,11 +1000295,10 @@ function mapFernConfigToSdkConfigV1(input3) {
999225
1000295
  source: input3.source,
999226
1000296
  ...optional23("sdkVersion", input3.sdkVersion),
999227
1000297
  ...optional23("apiVersion", input3.apiVersion),
999228
- api: api2,
999229
- client: clients.shared,
999230
- package: {},
999231
- docs: docs2.shared,
999232
- generation: generations.shared,
1000298
+ ...optionalObject("api", api2),
1000299
+ ...optionalObject("client", clients.shared),
1000300
+ ...optionalObject("docs", docs2.shared),
1000301
+ ...optionalObject("generation", generations.shared),
999233
1000302
  targets: targets2
999234
1000303
  };
999235
1000304
  const parsed = sdkConfigV1Schema.safeParse(sdkConfig);
@@ -999909,15 +1000978,39 @@ function takeToolsets(value2, aliases, state, basePath) {
999909
1000978
  return Object.fromEntries(entries24.filter((entry) => entry !== void 0));
999910
1000979
  }
999911
1000980
 
1000981
+ // src/commands/sdk-migrate/sdkMigrate.ts
1000982
+ var import_yaml18 = __toESM(require_dist11(), 1);
1000983
+
999912
1000984
  // src/commands/sdk-migrate/loadCompatibleMigrationGroups.ts
999913
1000985
  init_lib17();
999914
1000986
  init_lib6();
999915
1000987
  var import_crypto14 = require("crypto");
999916
1000988
 
999917
1000989
  // src/commands/sdk-migrate/projectMigrationSource.ts
1000990
+ init_lib17();
999918
1000991
  init_lib20();
999919
1000992
  init_lib6();
999920
1000993
  var import_path124 = __toESM(require("path"), 1);
1000994
+ var DEFAULT_PATH_PARAMETER_STYLE = getOpenAPISettings().inlinePathParameters ? "inline" : "wrapped";
1000995
+ function identifySourceDerivedApiFields({
1000996
+ workspace,
1000997
+ groups: groups2
1000998
+ }) {
1000999
+ if (workspace.type !== "oss") {
1001000
+ return { auth: false, environments: false };
1001001
+ }
1001002
+ const api2 = workspace.generatorsConfiguration?.api;
1001003
+ const hasConfiguredAuth = api2?.auth != null || api2?.["auth-schemes"] != null || groups2.some(
1001004
+ (group) => group.generators.some(
1001005
+ (generator) => generator.apiOverride?.auth != null || generator.apiOverride?.["auth-schemes"] != null
1001006
+ )
1001007
+ );
1001008
+ const hasConfiguredEnvironments = api2?.environments != null || api2?.["default-environment"] != null;
1001009
+ return {
1001010
+ auth: !hasConfiguredAuth,
1001011
+ environments: !hasConfiguredEnvironments
1001012
+ };
1001013
+ }
999921
1001014
  function resolveMigrationSourceSpecs({
999922
1001015
  workspace,
999923
1001016
  fernWorkspace,
@@ -999968,6 +1001061,27 @@ function serializeMigrationSource({
999968
1001061
  });
999969
1001062
  return hoistSharedApiImportSettings(serializedSpecs);
999970
1001063
  }
1001064
+ function resolveMigrationPathParameterStyle(specs) {
1001065
+ const explicitlyConfiguredSpecs = specs.filter(
1001066
+ (spec) => spec.type === "openapi" && spec.clientPathParameterStyleExplicit === true
1001067
+ );
1001068
+ if (explicitlyConfiguredSpecs.length === 0) {
1001069
+ return void 0;
1001070
+ }
1001071
+ const configuredStyles = new Set(
1001072
+ explicitlyConfiguredSpecs.map((spec) => spec.clientPathParameterStyle ?? DEFAULT_PATH_PARAMETER_STYLE)
1001073
+ );
1001074
+ if (configuredStyles.size > 1) {
1001075
+ const conflictingSpecs = explicitlyConfiguredSpecs.map(
1001076
+ (spec) => `${spec.idHint ?? spec.namespace ?? spec.name ?? spec.absolutePath}=${spec.clientPathParameterStyle ?? DEFAULT_PATH_PARAMETER_STYLE}`
1001077
+ ).join(", ");
1001078
+ throw new CliError({
1001079
+ message: `SDK Config v1 cannot represent conflicting inline-path-parameters settings across API specifications: ${conflictingSpecs}. Align these settings or migrate the configurations separately.`,
1001080
+ code: CliError.Code.ConfigError
1001081
+ });
1001082
+ }
1001083
+ return configuredStyles.values().next().value;
1001084
+ }
999971
1001085
  function migrationSourceRoot(workingDirectory, specs) {
999972
1001086
  return specs.flatMap((spec) => [spec.absolutePath, ...spec.absoluteOverlayPaths, ...spec.absoluteOverridePaths]).reduce(commonAncestor, import_path124.default.resolve(workingDirectory));
999973
1001087
  }
@@ -1000027,6 +1001141,10 @@ function resolveWorkspaceSpec(spec, settings) {
1000027
1001141
  absoluteOverlayPaths: spec.absoluteFilepathToOverlays == null ? [] : [spec.absoluteFilepathToOverlays],
1000028
1001142
  absoluteOverridePaths: normalizePaths(spec.absoluteFilepathToOverrides),
1000029
1001143
  apiImportSettings: projectFernApiImportSettings(settings),
1001144
+ ...spec.source.type !== "openapi" ? {} : {
1001145
+ clientPathParameterStyle: settings?.inlinePathParameters == null ? DEFAULT_PATH_PARAMETER_STYLE : settings.inlinePathParameters ? "inline" : "wrapped",
1001146
+ clientPathParameterStyleExplicit: settings?.inlinePathParameters != null
1001147
+ },
1000030
1001148
  idHint: spec.namespace,
1000031
1001149
  namespace: spec.namespace,
1000032
1001150
  type: spec.source.type
@@ -1000125,6 +1001243,8 @@ function resolveGeneratorSpecOverrides(workspacePath, specs) {
1000125
1001243
  (override) => import_path124.default.resolve(workspacePath, override)
1000126
1001244
  ),
1000127
1001245
  apiImportSettings: projectRawApiImportSettings(spec.settings),
1001246
+ clientPathParameterStyle: spec.settings?.["inline-path-parameters"] == null ? DEFAULT_PATH_PARAMETER_STYLE : spec.settings["inline-path-parameters"] ? "inline" : "wrapped",
1001247
+ clientPathParameterStyleExplicit: spec.settings?.["inline-path-parameters"] != null,
1000128
1001248
  idHint: spec.namespace,
1000129
1001249
  namespace: spec.namespace,
1000130
1001250
  type: "openapi"
@@ -1000380,9 +1001500,11 @@ init_lib10();
1000380
1001500
  function mapFernGroupToSdkConfig({
1000381
1001501
  fernWorkspace,
1000382
1001502
  group,
1000383
- source: source2
1001503
+ source: source2,
1001504
+ clientPathParameterStyle,
1001505
+ sourceDerivedApiFields
1000384
1001506
  }) {
1000385
- const apiProjection = mapFernDefinitionToSdkConfigApi(fernWorkspace.definition);
1001507
+ const apiProjection = mapFernDefinitionToSdkConfigApi(fernWorkspace.definition, sourceDerivedApiFields);
1000386
1001508
  const input3 = {
1000387
1001509
  apiName: fernWorkspace.definition.rootApiFile.contents.name,
1000388
1001510
  source: source2,
@@ -1000394,14 +1001516,21 @@ function mapFernGroupToSdkConfig({
1000394
1001516
  }
1000395
1001517
  };
1000396
1001518
  const mapped = mapFernConfigToSdkConfigV1(input3);
1001519
+ const sdkConfig = clientPathParameterStyle == null || mapped.sdkConfig.client?.pathParameterStyle != null ? mapped.sdkConfig : {
1001520
+ ...mapped.sdkConfig,
1001521
+ client: {
1001522
+ ...mapped.sdkConfig.client ?? {},
1001523
+ pathParameterStyle: clientPathParameterStyle
1001524
+ }
1001525
+ };
1000397
1001526
  return {
1000398
1001527
  diagnostics: [...apiProjection.diagnostics, ...mapped.unsupportedFields],
1000399
- sdkConfig: validateSdkConfigV1(mapped.sdkConfig)
1001528
+ sdkConfig: validateSdkConfigV1(sdkConfig)
1000400
1001529
  };
1000401
1001530
  }
1000402
- function mapFernDefinitionToSdkConfigApi(definition3) {
1001531
+ function mapFernDefinitionToSdkConfigApi(definition3, sourceDerivedApiFields) {
1000403
1001532
  const root6 = definition3.rootApiFile.contents;
1000404
- const environments2 = Object.entries(root6.environments ?? {}).sort(([left3], [right3]) => left3.localeCompare(right3)).map(([name2, environment2]) => ({
1001533
+ const environments2 = sourceDerivedApiFields?.environments ? [] : Object.entries(root6.environments ?? {}).sort(([left3], [right3]) => left3.localeCompare(right3)).map(([name2, environment2]) => ({
1000405
1001534
  name: name2,
1000406
1001535
  urls: mapEnvironmentUrls(environment2),
1000407
1001536
  ...typeof environment2 === "string" || environment2.docs == null ? {} : { description: environment2.docs }
@@ -1000413,12 +1001542,12 @@ function mapFernDefinitionToSdkConfigApi(definition3) {
1000413
1001542
  ...header.docs == null ? {} : { description: header.docs }
1000414
1001543
  }
1000415
1001544
  );
1000416
- const auth8 = mapFernAuth(root6);
1000417
- const baseUrl = root6["default-url"] ?? definition3.rootApiFile.defaultUrl;
1001545
+ const auth8 = sourceDerivedApiFields?.auth ? { diagnostics: [] } : mapFernAuth(root6);
1001546
+ const baseUrl = sourceDerivedApiFields?.environments ? void 0 : root6["default-url"] ?? definition3.rootApiFile.defaultUrl;
1000418
1001547
  return {
1000419
1001548
  api: {
1000420
1001549
  ...baseUrl == null ? {} : { baseUrl },
1000421
- ...root6["default-environment"] == null ? {} : { defaultEnvironment: root6["default-environment"] },
1001550
+ ...sourceDerivedApiFields?.environments || root6["default-environment"] == null ? {} : { defaultEnvironment: root6["default-environment"] },
1000422
1001551
  ...environments2.length === 0 ? {} : { environments: environments2 },
1000423
1001552
  ...headers2.length === 0 ? {} : { headers: headers2 },
1000424
1001553
  ...auth8.auth == null ? {} : { auth: auth8.auth }
@@ -1000771,6 +1001900,7 @@ function isErrorWithCode(error50, code5) {
1000771
1001900
  }
1000772
1001901
 
1000773
1001902
  // src/commands/sdk-migrate/sdkMigrate.ts
1001903
+ var DEFAULT_SDK_CONFIG_FILENAME = RelativeFilePath2.of("sdk-config.yml");
1000774
1001904
  async function sdkMigrate({
1000775
1001905
  project,
1000776
1001906
  cliContext,
@@ -1000786,12 +1001916,16 @@ async function sdkMigrate({
1000786
1001916
  groups: groups2,
1000787
1001917
  cliContext
1000788
1001918
  });
1001919
+ const outputPath = resolveOutputPath(args.output, workspace.absoluteFilePath);
1001920
+ const sourceBaseDirectory = args.output == null ? workspace.absoluteFilePath.toString() : cwd().toString();
1000789
1001921
  let mapped;
1000790
1001922
  try {
1000791
1001923
  mapped = mapFernGroupToSdkConfig({
1000792
1001924
  fernWorkspace,
1000793
1001925
  group,
1000794
- source: serializeMigrationSource({ specs: sourceSpecs, workingDirectory: cwd().toString() })
1001926
+ source: serializeMigrationSource({ specs: sourceSpecs, workingDirectory: sourceBaseDirectory }),
1001927
+ clientPathParameterStyle: resolveMigrationPathParameterStyle(sourceSpecs),
1001928
+ sourceDerivedApiFields: identifySourceDerivedApiFields({ workspace, groups: groups2 })
1000795
1001929
  });
1000796
1001930
  } catch (error50) {
1000797
1001931
  if (error50 instanceof FernConfigMappingError) {
@@ -1000810,15 +1001944,25 @@ async function sdkMigrate({
1000810
1001944
  code: CliError.Code.ValidationError
1000811
1001945
  });
1000812
1001946
  }
1000813
- if (args.output === "-") {
1000814
- cliContext.writeJsonToStdout(mapped.sdkConfig);
1001947
+ const serialized = import_yaml18.default.stringify(mapped.sdkConfig, { lineWidth: 0 });
1001948
+ const yaml3 = serialized.endsWith("\n") ? serialized : `${serialized}
1001949
+ `;
1001950
+ if (outputPath == null) {
1001951
+ cliContext.writeTextToStdout(yaml3);
1000815
1001952
  return;
1000816
1001953
  }
1000817
- const outputPath = resolve6(cwd(), args.output);
1000818
- await writeOutputFile(outputPath, `${JSON.stringify(mapped.sdkConfig, null, 2)}
1000819
- `, args.force);
1001954
+ await writeOutputFile(outputPath, yaml3, args.force);
1000820
1001955
  cliContext.stderr.info(`Created SDK Config v1 at ${outputPath}`);
1000821
1001956
  }
1001957
+ function resolveOutputPath(requestedOutput, workspaceDirectory) {
1001958
+ if (requestedOutput === "-") {
1001959
+ return void 0;
1001960
+ }
1001961
+ if (requestedOutput == null) {
1001962
+ return join8(workspaceDirectory, DEFAULT_SDK_CONFIG_FILENAME);
1001963
+ }
1001964
+ return resolve6(cwd(), requestedOutput);
1001965
+ }
1000822
1001966
  function printDiagnostics(cliContext, diagnostics) {
1000823
1001967
  for (const diagnostic of diagnostics) {
1000824
1001968
  const destination = diagnostic.sdkConfigPath == null ? "" : `; SDK Config: ${diagnostic.sdkConfigPath.join(".")}`;
@@ -1004991,9 +1006135,8 @@ function addSdkMigrateCommand(cli, cliContext) {
1004991
1006135
  }).option("output", {
1004992
1006136
  type: "string",
1004993
1006137
  alias: "o",
1004994
- demandOption: true,
1004995
1006138
  nargs: 1,
1004996
- description: 'Path to write SDK Config v1, or "-" for stdout'
1006139
+ description: 'Path to write SDK Config v1 YAML; defaults to sdk-config.yml beside generators.yml, or use "-" for stdout'
1004997
1006140
  }).option("force", {
1004998
1006141
  type: "boolean",
1004999
1006142
  default: false,