@meltstudio/meltctl 5.23.0 → 5.25.0
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 +67 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7499,7 +7499,7 @@ var CLI_VERSION;
|
|
|
7499
7499
|
var init_version = __esm({
|
|
7500
7500
|
"src/utils/version.ts"() {
|
|
7501
7501
|
"use strict";
|
|
7502
|
-
CLI_VERSION = "5.
|
|
7502
|
+
CLI_VERSION = "5.25.0";
|
|
7503
7503
|
}
|
|
7504
7504
|
});
|
|
7505
7505
|
|
|
@@ -27957,6 +27957,39 @@ function createEndpointChecksResource(config2) {
|
|
|
27957
27957
|
if (status >= 400) {
|
|
27958
27958
|
throw new Error(data.error ?? `Failed to delete endpoint check (${status})`);
|
|
27959
27959
|
}
|
|
27960
|
+
},
|
|
27961
|
+
/** Weekly Slack reminder settings (#651). Manager-gated. */
|
|
27962
|
+
async getReminderSettings() {
|
|
27963
|
+
const { data, status } = await apiFetch(config2, "/endpoint-reminders/settings");
|
|
27964
|
+
if (status === 403) {
|
|
27965
|
+
throw new Error("Access denied. Only Team Managers can view endpoint reminder settings.");
|
|
27966
|
+
}
|
|
27967
|
+
if (status !== 200) {
|
|
27968
|
+
throw new Error(data.error ?? `Failed to fetch endpoint reminder settings (${status})`);
|
|
27969
|
+
}
|
|
27970
|
+
return data.settings;
|
|
27971
|
+
},
|
|
27972
|
+
/** Save the reminder settings (#651). Turning `enabled` on starts the weekly DMs. */
|
|
27973
|
+
async updateReminderSettings(input) {
|
|
27974
|
+
const { data, status } = await apiFetch(config2, "/endpoint-reminders/settings", { method: "PUT", body: JSON.stringify(input) });
|
|
27975
|
+
if (status === 403) {
|
|
27976
|
+
throw new Error("Access denied. Only Team Managers can change endpoint reminder settings.");
|
|
27977
|
+
}
|
|
27978
|
+
if (status !== 200) {
|
|
27979
|
+
throw new Error(data.error ?? `Failed to save endpoint reminder settings (${status})`);
|
|
27980
|
+
}
|
|
27981
|
+
return data.settings;
|
|
27982
|
+
},
|
|
27983
|
+
/** Who would get a DM this week and who would be in the digest. Sends nothing. */
|
|
27984
|
+
async previewReminders() {
|
|
27985
|
+
const { data, status } = await apiFetch(config2, "/endpoint-reminders/preview");
|
|
27986
|
+
if (status === 403) {
|
|
27987
|
+
throw new Error("Access denied. Only Team Managers can preview endpoint reminders.");
|
|
27988
|
+
}
|
|
27989
|
+
if (status !== 200) {
|
|
27990
|
+
throw new Error(data.error ?? `Failed to preview endpoint reminders (${status})`);
|
|
27991
|
+
}
|
|
27992
|
+
return data;
|
|
27960
27993
|
}
|
|
27961
27994
|
};
|
|
27962
27995
|
}
|
|
@@ -55138,6 +55171,39 @@ function createEndpointChecksResource2(config2) {
|
|
|
55138
55171
|
if (status >= 400) {
|
|
55139
55172
|
throw new Error(data.error ?? `Failed to delete endpoint check (${status})`);
|
|
55140
55173
|
}
|
|
55174
|
+
},
|
|
55175
|
+
/** Weekly Slack reminder settings (#651). Manager-gated. */
|
|
55176
|
+
async getReminderSettings() {
|
|
55177
|
+
const { data, status } = await apiFetch2(config2, "/endpoint-reminders/settings");
|
|
55178
|
+
if (status === 403) {
|
|
55179
|
+
throw new Error("Access denied. Only Team Managers can view endpoint reminder settings.");
|
|
55180
|
+
}
|
|
55181
|
+
if (status !== 200) {
|
|
55182
|
+
throw new Error(data.error ?? `Failed to fetch endpoint reminder settings (${status})`);
|
|
55183
|
+
}
|
|
55184
|
+
return data.settings;
|
|
55185
|
+
},
|
|
55186
|
+
/** Save the reminder settings (#651). Turning `enabled` on starts the weekly DMs. */
|
|
55187
|
+
async updateReminderSettings(input) {
|
|
55188
|
+
const { data, status } = await apiFetch2(config2, "/endpoint-reminders/settings", { method: "PUT", body: JSON.stringify(input) });
|
|
55189
|
+
if (status === 403) {
|
|
55190
|
+
throw new Error("Access denied. Only Team Managers can change endpoint reminder settings.");
|
|
55191
|
+
}
|
|
55192
|
+
if (status !== 200) {
|
|
55193
|
+
throw new Error(data.error ?? `Failed to save endpoint reminder settings (${status})`);
|
|
55194
|
+
}
|
|
55195
|
+
return data.settings;
|
|
55196
|
+
},
|
|
55197
|
+
/** Who would get a DM this week and who would be in the digest. Sends nothing. */
|
|
55198
|
+
async previewReminders() {
|
|
55199
|
+
const { data, status } = await apiFetch2(config2, "/endpoint-reminders/preview");
|
|
55200
|
+
if (status === 403) {
|
|
55201
|
+
throw new Error("Access denied. Only Team Managers can preview endpoint reminders.");
|
|
55202
|
+
}
|
|
55203
|
+
if (status !== 200) {
|
|
55204
|
+
throw new Error(data.error ?? `Failed to preview endpoint reminders (${status})`);
|
|
55205
|
+
}
|
|
55206
|
+
return data;
|
|
55141
55207
|
}
|
|
55142
55208
|
};
|
|
55143
55209
|
}
|
package/package.json
CHANGED