@meltstudio/meltctl 4.115.1 → 4.115.2
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 +1 -51
- 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.115.
|
|
17
|
+
CLI_VERSION = "4.115.2";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -1048,31 +1048,6 @@ function createPmResource(config) {
|
|
|
1048
1048
|
// ../sdk/dist/resources/slack.js
|
|
1049
1049
|
function createSlackResource(config) {
|
|
1050
1050
|
return {
|
|
1051
|
-
/** Static URL of the API's redirect endpoint. Useful for callers that can
|
|
1052
|
-
* attach the bearer token themselves; the dashboard proxies via
|
|
1053
|
-
* `startInstall()` instead because the browser can't attach the JWT on a
|
|
1054
|
-
* cross-origin top-level navigation. */
|
|
1055
|
-
installUrl() {
|
|
1056
|
-
return `${config.baseUrl}/slack/install`;
|
|
1057
|
-
},
|
|
1058
|
-
/** Returns the upstream Slack OAuth URL the user should be redirected to
|
|
1059
|
-
* next. Used by the dashboard's `/api/slack/install` proxy route. */
|
|
1060
|
-
async startInstall() {
|
|
1061
|
-
const { data, status } = await apiFetch(config, "/slack/install/start");
|
|
1062
|
-
if (status === 403)
|
|
1063
|
-
throw new Error("Access denied. Only Team Managers can install Slack.");
|
|
1064
|
-
if (status >= 400)
|
|
1065
|
-
throw new Error(`Failed to start Slack install (${status}): ${data.error ?? ""}`);
|
|
1066
|
-
return data;
|
|
1067
|
-
},
|
|
1068
|
-
async getInstallStatus() {
|
|
1069
|
-
const { data, status } = await apiFetch(config, "/slack/install/status");
|
|
1070
|
-
if (status === 403)
|
|
1071
|
-
throw new Error("Access denied. Only Team Managers can view this.");
|
|
1072
|
-
if (status !== 200)
|
|
1073
|
-
throw new Error(`Failed to fetch Slack install status (${status})`);
|
|
1074
|
-
return data;
|
|
1075
|
-
},
|
|
1076
1051
|
async listChannels() {
|
|
1077
1052
|
const { data, status } = await apiFetch(config, "/slack/channels");
|
|
1078
1053
|
if (status === 403)
|
|
@@ -3517,31 +3492,6 @@ function createPmResource2(config) {
|
|
|
3517
3492
|
}
|
|
3518
3493
|
function createSlackResource2(config) {
|
|
3519
3494
|
return {
|
|
3520
|
-
/** Static URL of the API's redirect endpoint. Useful for callers that can
|
|
3521
|
-
* attach the bearer token themselves; the dashboard proxies via
|
|
3522
|
-
* `startInstall()` instead because the browser can't attach the JWT on a
|
|
3523
|
-
* cross-origin top-level navigation. */
|
|
3524
|
-
installUrl() {
|
|
3525
|
-
return `${config.baseUrl}/slack/install`;
|
|
3526
|
-
},
|
|
3527
|
-
/** Returns the upstream Slack OAuth URL the user should be redirected to
|
|
3528
|
-
* next. Used by the dashboard's `/api/slack/install` proxy route. */
|
|
3529
|
-
async startInstall() {
|
|
3530
|
-
const { data, status } = await apiFetch2(config, "/slack/install/start");
|
|
3531
|
-
if (status === 403)
|
|
3532
|
-
throw new Error("Access denied. Only Team Managers can install Slack.");
|
|
3533
|
-
if (status >= 400)
|
|
3534
|
-
throw new Error(`Failed to start Slack install (${status}): ${data.error ?? ""}`);
|
|
3535
|
-
return data;
|
|
3536
|
-
},
|
|
3537
|
-
async getInstallStatus() {
|
|
3538
|
-
const { data, status } = await apiFetch2(config, "/slack/install/status");
|
|
3539
|
-
if (status === 403)
|
|
3540
|
-
throw new Error("Access denied. Only Team Managers can view this.");
|
|
3541
|
-
if (status !== 200)
|
|
3542
|
-
throw new Error(`Failed to fetch Slack install status (${status})`);
|
|
3543
|
-
return data;
|
|
3544
|
-
},
|
|
3545
3495
|
async listChannels() {
|
|
3546
3496
|
const { data, status } = await apiFetch2(config, "/slack/channels");
|
|
3547
3497
|
if (status === 403)
|
package/package.json
CHANGED