infracensus-collector 1.6.69 → 1.6.70
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/aws-index.js +3 -3
- package/dist/azure-index.js +3 -3
- package/dist/{chunk-FHUSY55M.js → chunk-4VTTT4EY.js} +2 -2
- package/dist/{chunk-YODCYDGU.js → chunk-7ZVAQXEP.js} +2 -2
- package/dist/{chunk-PUELZPI2.js → chunk-AA62AEBX.js} +23 -8
- package/dist/chunk-AA62AEBX.js.map +7 -0
- package/dist/{chunk-OEVBPLDZ.js → chunk-DBRQMW4F.js} +3 -3
- package/dist/{chunk-WIZJ5HYY.js → chunk-GBOJ7UOJ.js} +2 -2
- package/dist/{chunk-YMX7IHZO.js → chunk-MQTHNPYA.js} +3 -3
- package/dist/{chunk-C7Q64SNU.js → chunk-NL6WRZYM.js} +2 -2
- package/dist/{chunk-BNU3TPUH.js → chunk-OOQVEI22.js} +2 -2
- package/dist/{chunk-TAPUYQEW.js → chunk-RXQXFZ5R.js} +2 -2
- package/dist/{chunk-OGBYEIPU.js → chunk-SVYSZ65Q.js} +3 -3
- package/dist/cli.js +2 -2
- package/dist/gcp-index.js +3 -3
- package/dist/identity-index.js +2 -2
- package/dist/index.js +9 -9
- package/dist/sensitive-data-index.js +4 -4
- package/dist/smb-shares-index.js +3 -3
- package/dist/{status-TJRZUJGM.js → status-USY4PLPC.js} +3 -3
- package/dist/voice-index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-PUELZPI2.js.map +0 -7
- /package/dist/{chunk-FHUSY55M.js.map → chunk-4VTTT4EY.js.map} +0 -0
- /package/dist/{chunk-YODCYDGU.js.map → chunk-7ZVAQXEP.js.map} +0 -0
- /package/dist/{chunk-OEVBPLDZ.js.map → chunk-DBRQMW4F.js.map} +0 -0
- /package/dist/{chunk-WIZJ5HYY.js.map → chunk-GBOJ7UOJ.js.map} +0 -0
- /package/dist/{chunk-YMX7IHZO.js.map → chunk-MQTHNPYA.js.map} +0 -0
- /package/dist/{chunk-C7Q64SNU.js.map → chunk-NL6WRZYM.js.map} +0 -0
- /package/dist/{chunk-BNU3TPUH.js.map → chunk-OOQVEI22.js.map} +0 -0
- /package/dist/{chunk-TAPUYQEW.js.map → chunk-RXQXFZ5R.js.map} +0 -0
- /package/dist/{chunk-OGBYEIPU.js.map → chunk-SVYSZ65Q.js.map} +0 -0
- /package/dist/{status-TJRZUJGM.js.map → status-USY4PLPC.js.map} +0 -0
package/dist/aws-index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
awsWithCost,
|
|
4
4
|
describeAwsRun,
|
|
5
5
|
runAwsAccount
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SVYSZ65Q.js";
|
|
7
7
|
import "./chunk-PCPJUPKF.js";
|
|
8
8
|
import "./chunk-JKLWKARZ.js";
|
|
9
9
|
import "./chunk-ND7YJJNV.js";
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
} from "./chunk-D7VTJN62.js";
|
|
20
20
|
import "./chunk-BPIFQYJR.js";
|
|
21
21
|
import "./chunk-PTGS7JVX.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-7ZVAQXEP.js";
|
|
23
23
|
import "./chunk-OORBSDZ2.js";
|
|
24
24
|
import "./chunk-PYKACAVZ.js";
|
|
25
25
|
import "./chunk-VILM5VKX.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-DBRQMW4F.js";
|
|
27
27
|
import "./chunk-URNQQQIZ.js";
|
|
28
28
|
import "./chunk-FFJGJCV7.js";
|
|
29
29
|
import {
|
package/dist/azure-index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
buildAzureInventory,
|
|
3
3
|
listAccessibleSubscriptions,
|
|
4
4
|
runAzureMonitoringCoverage
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RXQXFZ5R.js";
|
|
6
6
|
import "./chunk-ND7YJJNV.js";
|
|
7
7
|
import "./chunk-6D4KWUKJ.js";
|
|
8
8
|
import "./chunk-JHEAVIL7.js";
|
|
@@ -11,11 +11,11 @@ import "./chunk-4ARXQ6VD.js";
|
|
|
11
11
|
import {
|
|
12
12
|
ArmClient,
|
|
13
13
|
runCostAfterAzure
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7ZVAQXEP.js";
|
|
15
15
|
import "./chunk-OORBSDZ2.js";
|
|
16
16
|
import "./chunk-PYKACAVZ.js";
|
|
17
17
|
import "./chunk-VILM5VKX.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-DBRQMW4F.js";
|
|
19
19
|
import "./chunk-URNQQQIZ.js";
|
|
20
20
|
import {
|
|
21
21
|
pushAzureInventory
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classifyAndPush
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NL6WRZYM.js";
|
|
4
4
|
import {
|
|
5
5
|
DP_EXTERNAL_DOMAINS_MAX,
|
|
6
6
|
DP_M365_GRANTEES_PER_FILE,
|
|
@@ -1059,4 +1059,4 @@ export {
|
|
|
1059
1059
|
m365JobNote,
|
|
1060
1060
|
scanM365Stores
|
|
1061
1061
|
};
|
|
1062
|
-
//# sourceMappingURL=chunk-
|
|
1062
|
+
//# sourceMappingURL=chunk-4VTTT4EY.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
} from "./chunk-VILM5VKX.js";
|
|
71
71
|
import {
|
|
72
72
|
collectorVersion
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-DBRQMW4F.js";
|
|
74
74
|
import {
|
|
75
75
|
collectorOwnsModule
|
|
76
76
|
} from "./chunk-QANDVYFT.js";
|
|
@@ -3774,4 +3774,4 @@ export {
|
|
|
3774
3774
|
runCostAfterAzure,
|
|
3775
3775
|
runCostAfterIdentity
|
|
3776
3776
|
};
|
|
3777
|
-
//# sourceMappingURL=chunk-
|
|
3777
|
+
//# sourceMappingURL=chunk-7ZVAQXEP.js.map
|
|
@@ -1034,8 +1034,8 @@ var AxlClient = class {
|
|
|
1034
1034
|
async registrationBatch(deviceNames, out) {
|
|
1035
1035
|
{
|
|
1036
1036
|
const risBase = this.base.replace(/\/axl\/?$/, "/realtimeservice2/services/RISService70/");
|
|
1037
|
-
const items = deviceNames.map((n) => `<ns:item>${xml(n)}</ns:item>`).join("");
|
|
1038
|
-
const envelope = `<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.cisco.com/ast/soap"><soapenv:Body><ns:selectCmDevice><ns:CmSelectionCriteria><ns:MaxReturnedDevices
|
|
1037
|
+
const items = deviceNames.map((n) => `<ns:item><ns:Item>${xml(n)}</ns:Item></ns:item>`).join("");
|
|
1038
|
+
const envelope = `<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.cisco.com/ast/soap"><soapenv:Body><ns:selectCmDevice><ns:StateInfo></ns:StateInfo><ns:CmSelectionCriteria><ns:MaxReturnedDevices>${RISPORT_BATCH_SIZE}</ns:MaxReturnedDevices><ns:DeviceClass>Phone</ns:DeviceClass><ns:Model>255</ns:Model><ns:Status>Any</ns:Status><ns:NodeName></ns:NodeName><ns:SelectBy>Name</ns:SelectBy><ns:SelectItems>${items}</ns:SelectItems><ns:Protocol>Any</ns:Protocol><ns:DownloadStatus>Any</ns:DownloadStatus></ns:CmSelectionCriteria></ns:selectCmDevice></soapenv:Body></soapenv:Envelope>`;
|
|
1039
1039
|
const res = await fetch(risBase, {
|
|
1040
1040
|
...this.tlsInit,
|
|
1041
1041
|
method: "POST",
|
|
@@ -1155,9 +1155,12 @@ function errMsg2(err) {
|
|
|
1155
1155
|
return err instanceof Error ? err.message : String(err);
|
|
1156
1156
|
}
|
|
1157
1157
|
function asCount(v) {
|
|
1158
|
-
const n = typeof v === "string" ? Number(v) : typeof v === "number" ? v : void 0;
|
|
1158
|
+
const n = typeof v === "string" && v.trim() !== "" ? Number(v) : typeof v === "number" ? v : void 0;
|
|
1159
1159
|
return n !== void 0 && Number.isFinite(n) && n >= 0 ? Math.round(n) : void 0;
|
|
1160
1160
|
}
|
|
1161
|
+
function totalOf(json) {
|
|
1162
|
+
return asCount(json["@total"]) ?? asCount(json.total);
|
|
1163
|
+
}
|
|
1161
1164
|
var CupiClient = class {
|
|
1162
1165
|
base;
|
|
1163
1166
|
signal;
|
|
@@ -1188,13 +1191,25 @@ var CupiClient = class {
|
|
|
1188
1191
|
}
|
|
1189
1192
|
/** GET /vmrest/users?rowsPerPage=1 — `@total` is the mailbox count, without paging every row. */
|
|
1190
1193
|
async getMailboxCount() {
|
|
1191
|
-
|
|
1192
|
-
return asCount(json.total);
|
|
1194
|
+
return this.countOf("users?rowsPerPage=1");
|
|
1193
1195
|
}
|
|
1194
1196
|
/** GET /vmrest/ports?rowsPerPage=1 — `@total` is the configured voicemail port count. */
|
|
1195
1197
|
async getPortCount() {
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
+
return this.countOf("ports?rowsPerPage=1");
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* A list's total, or undefined — and when the reply answered but carried no
|
|
1202
|
+
* total, say which keys it DID carry (names only, bounded), so a format
|
|
1203
|
+
* change is visible in the log instead of becoming a silent "unknown".
|
|
1204
|
+
*/
|
|
1205
|
+
async countOf(path) {
|
|
1206
|
+
const json = await this.get(path);
|
|
1207
|
+
const total = totalOf(json);
|
|
1208
|
+
if (total === void 0) {
|
|
1209
|
+
const keys = Object.keys(json).slice(0, 8).join(", ") || "none";
|
|
1210
|
+
this.log("warn", `CUPI GET ${path}: the reply carried no @total (keys: ${keys})`);
|
|
1211
|
+
}
|
|
1212
|
+
return total;
|
|
1198
1213
|
}
|
|
1199
1214
|
/**
|
|
1200
1215
|
* GET /vmrest/telephonyintegrations/ports?rowsPerPage=1 — the first port's
|
|
@@ -2102,4 +2117,4 @@ export {
|
|
|
2102
2117
|
buildUnityInventory,
|
|
2103
2118
|
buildWebexInventory
|
|
2104
2119
|
};
|
|
2105
|
-
//# sourceMappingURL=chunk-
|
|
2120
|
+
//# sourceMappingURL=chunk-AA62AEBX.js.map
|