@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/api-definition/index.js +3 -7
- package/dist/js/api-definition/index.js.map +1 -1
- package/dist/js/api-definition/index.mjs +3 -7
- package/dist/js/api-definition/index.mjs.map +1 -1
- package/dist/js/client/FdrClient.js +1 -13
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +1 -13
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/converters/index.js +3 -7
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +3 -7
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/index.js +4 -20
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +4 -20
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +3 -7
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +3 -7
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +1 -30
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +1 -27
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/api-definition/prune.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/contract.d.ts +0 -78
- package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts +0 -11992
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
-
|
|
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,
|