Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Function nodeHierarchy

    • Parameters

      • config: {
            enterpriseId: string;
            enterpriseName: string;
            memberships: { agentId: string; nodeIds: string[]; weight: number }[];
            nodes: {
                id: string;
                name: string;
                parentId: string | null;
                type: "ENTERPRISE" | "TEAM" | "FUNCTION" | "PROCESS" | "ECOSYSTEM";
            }[];
            policies: {
                defaultsByNode: Record<
                    string,
                    {
                        actionPolicyRef?: string;
                        budgetsRef?: string;
                        gatePolicyRef?: string;
                        outcomeContractRef?: string;
                        riskTierDefault?: "low"
                        | "med"
                        | "high"
                        | "critical";
                    },
                >;
                inheritance: { enabled: boolean };
            };
            version: 1;
        }

      Returns {
          depth: number;
          name: string;
          nodeId: string;
          nodeType: "ENTERPRISE" | "TEAM" | "FUNCTION" | "PROCESS" | "ECOSYSTEM";
          parentId: string | null;
      }[]