@fern-api/fdr-sdk 1.2.66-3d8402a3a1 → 1.2.66-b70af6724f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/js/index.js CHANGED
@@ -3310,11 +3310,9 @@ var ApiDefinitionPruner = class _ApiDefinitionPruner {
3310
3310
  expandTypeIds(typeIds) {
3311
3311
  const visitedTypeIds = /* @__PURE__ */ new Set();
3312
3312
  const queue = Array.from(typeIds);
3313
- const enqueuedTypeIds = new Set(typeIds);
3314
- const maxIterations = Object.keys(this.api.types).length + typeIds.size;
3315
3313
  let loop = 0;
3316
3314
  while (queue.length > 0) {
3317
- if (loop++ > maxIterations) {
3315
+ if (loop > LARGE_LOOP_TOLERANCE + typeIds.size) {
3318
3316
  throw new Error("Infinite loop detected while expanding type references.");
3319
3317
  }
3320
3318
  const typeId = queue.pop();
@@ -3323,13 +3321,11 @@ var ApiDefinitionPruner = class _ApiDefinitionPruner {
3323
3321
  const type = this.api.types[typeId];
3324
3322
  if (type) {
3325
3323
  ApiTypeIdVisitor.visitTypeDefinition(type, (nestedTypeId) => {
3326
- if (!enqueuedTypeIds.has(nestedTypeId) && this.api.types[nestedTypeId] != null) {
3327
- enqueuedTypeIds.add(nestedTypeId);
3328
- queue.push(nestedTypeId);
3329
- }
3324
+ queue.push(nestedTypeId);
3330
3325
  });
3331
3326
  }
3332
3327
  }
3328
+ loop++;
3333
3329
  }
3334
3330
  return visitedTypeIds;
3335
3331
  }
@@ -9372,20 +9368,8 @@ var LedgerFileArtifactMetadataSchema = LedgerMetadataBaseSchema.extend({
9372
9368
  height: z20.number().optional(),
9373
9369
  blurDataURL: z20.string().optional()
9374
9370
  });
9375
- var LedgerStructuralRedirectKindSchema = z20.enum([
9376
- "root",
9377
- "product",
9378
- "version",
9379
- "variant",
9380
- "tab",
9381
- "section",
9382
- "api-section"
9383
- ]);
9384
- var LedgerRedirectKindSchema = z20.enum(["structural", "link"]);
9385
9371
  var LedgerRedirectMetadataSchema = LedgerMetadataBaseSchema.extend({
9386
- href: z20.string().optional(),
9387
- redirectKind: LedgerRedirectKindSchema.optional(),
9388
- structuralKind: LedgerStructuralRedirectKindSchema.optional()
9372
+ href: z20.string().optional()
9389
9373
  });
9390
9374
  var LedgerArtifactMetadataSchema = z20.union([
9391
9375
  LedgerMarkdownMetadataSchema,