@meltstudio/meltctl 4.191.0 → 4.192.1
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/index.js +77 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var CLI_VERSION;
|
|
|
14
14
|
var init_version = __esm({
|
|
15
15
|
"src/utils/version.ts"() {
|
|
16
16
|
"use strict";
|
|
17
|
-
CLI_VERSION = "4.
|
|
17
|
+
CLI_VERSION = "4.192.1";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -1513,6 +1513,43 @@ function createEndpointChecksResource(config) {
|
|
|
1513
1513
|
};
|
|
1514
1514
|
}
|
|
1515
1515
|
|
|
1516
|
+
// ../sdk/dist/resources/profile-audits.js
|
|
1517
|
+
function createProfileAuditsResource(config) {
|
|
1518
|
+
return {
|
|
1519
|
+
async list(filters) {
|
|
1520
|
+
const params = new URLSearchParams();
|
|
1521
|
+
if (filters?.personEmail)
|
|
1522
|
+
params.set("personEmail", filters.personEmail);
|
|
1523
|
+
if (filters?.status)
|
|
1524
|
+
params.set("status", filters.status);
|
|
1525
|
+
if (filters?.severity)
|
|
1526
|
+
params.set("severity", filters.severity);
|
|
1527
|
+
if (filters?.checkCode)
|
|
1528
|
+
params.set("checkCode", filters.checkCode);
|
|
1529
|
+
if (filters?.limit)
|
|
1530
|
+
params.set("limit", String(filters.limit));
|
|
1531
|
+
const query = params.toString();
|
|
1532
|
+
const path9 = `/profile-audits${query ? `?${query}` : ""}`;
|
|
1533
|
+
const { data, status } = await apiFetch(config, path9);
|
|
1534
|
+
if (status === 403)
|
|
1535
|
+
throw new Error("Access denied. Only Team Managers can list profile audits.");
|
|
1536
|
+
if (status !== 200)
|
|
1537
|
+
throw new Error(data.error ?? `Failed to list profile audits (${status})`);
|
|
1538
|
+
return data;
|
|
1539
|
+
},
|
|
1540
|
+
async getStatsByPerson() {
|
|
1541
|
+
const { data, status } = await apiFetch(config, "/profile-audits/stats/by-person");
|
|
1542
|
+
if (status === 403)
|
|
1543
|
+
throw new Error("Access denied. Only Team Managers can view profile audit stats.");
|
|
1544
|
+
if (status !== 200) {
|
|
1545
|
+
const errMessage = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
1546
|
+
throw new Error(errMessage ?? `Failed to fetch profile audit stats (${status})`);
|
|
1547
|
+
}
|
|
1548
|
+
return data;
|
|
1549
|
+
}
|
|
1550
|
+
};
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1516
1553
|
// ../sdk/dist/client.js
|
|
1517
1554
|
async function apiFetch(config, path9, options = {}) {
|
|
1518
1555
|
const response = await fetch(`${config.baseUrl}${path9}`, {
|
|
@@ -1547,7 +1584,8 @@ function createMeltClient(config) {
|
|
|
1547
1584
|
chat: createChatResource(config),
|
|
1548
1585
|
me: createMeResource(config),
|
|
1549
1586
|
developers: createDevelopersResource(config),
|
|
1550
|
-
endpointChecks: createEndpointChecksResource(config)
|
|
1587
|
+
endpointChecks: createEndpointChecksResource(config),
|
|
1588
|
+
profileAudits: createProfileAuditsResource(config)
|
|
1551
1589
|
};
|
|
1552
1590
|
}
|
|
1553
1591
|
|
|
@@ -4737,6 +4775,41 @@ function createEndpointChecksResource2(config) {
|
|
|
4737
4775
|
}
|
|
4738
4776
|
};
|
|
4739
4777
|
}
|
|
4778
|
+
function createProfileAuditsResource2(config) {
|
|
4779
|
+
return {
|
|
4780
|
+
async list(filters) {
|
|
4781
|
+
const params = new URLSearchParams();
|
|
4782
|
+
if (filters?.personEmail)
|
|
4783
|
+
params.set("personEmail", filters.personEmail);
|
|
4784
|
+
if (filters?.status)
|
|
4785
|
+
params.set("status", filters.status);
|
|
4786
|
+
if (filters?.severity)
|
|
4787
|
+
params.set("severity", filters.severity);
|
|
4788
|
+
if (filters?.checkCode)
|
|
4789
|
+
params.set("checkCode", filters.checkCode);
|
|
4790
|
+
if (filters?.limit)
|
|
4791
|
+
params.set("limit", String(filters.limit));
|
|
4792
|
+
const query = params.toString();
|
|
4793
|
+
const path22 = `/profile-audits${query ? `?${query}` : ""}`;
|
|
4794
|
+
const { data, status } = await apiFetch2(config, path22);
|
|
4795
|
+
if (status === 403)
|
|
4796
|
+
throw new Error("Access denied. Only Team Managers can list profile audits.");
|
|
4797
|
+
if (status !== 200)
|
|
4798
|
+
throw new Error(data.error ?? `Failed to list profile audits (${status})`);
|
|
4799
|
+
return data;
|
|
4800
|
+
},
|
|
4801
|
+
async getStatsByPerson() {
|
|
4802
|
+
const { data, status } = await apiFetch2(config, "/profile-audits/stats/by-person");
|
|
4803
|
+
if (status === 403)
|
|
4804
|
+
throw new Error("Access denied. Only Team Managers can view profile audit stats.");
|
|
4805
|
+
if (status !== 200) {
|
|
4806
|
+
const errMessage = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
4807
|
+
throw new Error(errMessage ?? `Failed to fetch profile audit stats (${status})`);
|
|
4808
|
+
}
|
|
4809
|
+
return data;
|
|
4810
|
+
}
|
|
4811
|
+
};
|
|
4812
|
+
}
|
|
4740
4813
|
async function apiFetch2(config, path22, options = {}) {
|
|
4741
4814
|
const response = await fetch(`${config.baseUrl}${path22}`, {
|
|
4742
4815
|
...options,
|
|
@@ -4770,7 +4843,8 @@ function createMeltClient2(config) {
|
|
|
4770
4843
|
chat: createChatResource2(config),
|
|
4771
4844
|
me: createMeResource2(config),
|
|
4772
4845
|
developers: createDevelopersResource2(config),
|
|
4773
|
-
endpointChecks: createEndpointChecksResource2(config)
|
|
4846
|
+
endpointChecks: createEndpointChecksResource2(config),
|
|
4847
|
+
profileAudits: createProfileAuditsResource2(config)
|
|
4774
4848
|
};
|
|
4775
4849
|
}
|
|
4776
4850
|
var auditFindingSchema2 = z2.object({
|
package/package.json
CHANGED