@fern-api/fdr-sdk 1.2.73-6e6ce5ee80 → 1.2.73-c5de911f8d

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.
@@ -13461,30 +13461,6 @@ var NodeCollector = class _NodeCollector {
13461
13461
  getNodesInOrder = () => {
13462
13462
  return this.nodesInOrder;
13463
13463
  };
13464
- /**
13465
- * The distinct RBAC roles referenced anywhere in the navigation, collected from every node's
13466
- * `viewers`. This is the authoritative source of "which roles gate content on this site" — the
13467
- * top-level `root.roles` is not populated by the nav builders, and docs.yml's declared `roles`
13468
- * list is not serialized into the docs definition, so the roles that actually exist are the ones
13469
- * appearing in node `viewers` (e.g. the implicit `everyone` plus any custom roles like `beta`).
13470
- *
13471
- * NOTE: this is a faithful collection of every role in `viewers` — it INCLUDES the implicit
13472
- * `everyone` role when present (kept deliberately, so callers can e.g. detect whether a site uses
13473
- * RBAC at all). Consumers that want only masquerade-able custom roles MUST filter `everyone`
13474
- * themselves (the preview widget does this via `EVERYONE_ROLE`).
13475
- */
13476
- getRoles = (0, import_function.once)(() => {
13477
- const roles = /* @__PURE__ */ new Set();
13478
- for (const node of this.nodesInOrder) {
13479
- const viewers = node.viewers;
13480
- if (viewers != null) {
13481
- for (const role of viewers) {
13482
- roles.add(role);
13483
- }
13484
- }
13485
- }
13486
- return Array.from(roles);
13487
- });
13488
13464
  };
13489
13465
  var MAX_CHANGELOG_ENTRIES_MINIMUM = 15;
13490
13466
  var CHANGELOG_RECENCY_MONTHS = 6;