@togglhq/cli 1.13.51 → 1.13.53
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/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-
|
|
2
|
+
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-B_IcIs_w.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-B_IcIs_w.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -9960,6 +9960,15 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
9960
9960
|
});
|
|
9961
9961
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
9962
9962
|
}
|
|
9963
|
+
async function updateOrganizationUserActiveStatus(httpClient, organization_id, organization_user_id, status, signal) {
|
|
9964
|
+
return await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal }).json();
|
|
9965
|
+
}
|
|
9966
|
+
async function createWorkspaceInvitations(httpClient, organization_id, workspace_id, data, signal) {
|
|
9967
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/invitations`, {
|
|
9968
|
+
signal,
|
|
9969
|
+
json: data
|
|
9970
|
+
}).json();
|
|
9971
|
+
}
|
|
9963
9972
|
//#endregion
|
|
9964
9973
|
//#region ../focus-queries/out/utils/requests.js
|
|
9965
9974
|
function buildSearchParams$1(params, flattenArrays = false) {
|
|
@@ -18763,6 +18772,36 @@ const generatedFocusOperations = [
|
|
|
18763
18772
|
]));
|
|
18764
18773
|
}
|
|
18765
18774
|
},
|
|
18775
|
+
{
|
|
18776
|
+
id: "focus.organization.create-workspace-invitations",
|
|
18777
|
+
family: "focus",
|
|
18778
|
+
resource: "organization",
|
|
18779
|
+
action: "create-workspace-invitations",
|
|
18780
|
+
title: "Create Workspace Invitations Organization",
|
|
18781
|
+
description: "Create Workspace Invitations Organization.",
|
|
18782
|
+
safety: "create",
|
|
18783
|
+
destructive: false,
|
|
18784
|
+
cli: {
|
|
18785
|
+
group: ["organization"],
|
|
18786
|
+
command: "create-workspace-invitations",
|
|
18787
|
+
interactive: "default"
|
|
18788
|
+
},
|
|
18789
|
+
mcp: { entityTool: "organization" },
|
|
18790
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
18791
|
+
emails: /* @__PURE__ */ array$1(/* @__PURE__ */ string$1()),
|
|
18792
|
+
focus_role_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
18793
|
+
}) }),
|
|
18794
|
+
execute: (input, { client }) => {
|
|
18795
|
+
const data = input;
|
|
18796
|
+
return client.runGeneratedRequest("createWorkspaceInvitations", () => callGeneratedRequest(createWorkspaceInvitations, [
|
|
18797
|
+
client.httpClient,
|
|
18798
|
+
client.organizationId,
|
|
18799
|
+
client.workspaceIdNumber,
|
|
18800
|
+
data.payload ?? data.data ?? data,
|
|
18801
|
+
void 0
|
|
18802
|
+
]));
|
|
18803
|
+
}
|
|
18804
|
+
},
|
|
18766
18805
|
{
|
|
18767
18806
|
id: "focus.organization.delete-group",
|
|
18768
18807
|
family: "focus",
|
|
@@ -18964,6 +19003,36 @@ const generatedFocusOperations = [
|
|
|
18964
19003
|
]));
|
|
18965
19004
|
}
|
|
18966
19005
|
},
|
|
19006
|
+
{
|
|
19007
|
+
id: "focus.organization.update-user-active-status",
|
|
19008
|
+
family: "focus",
|
|
19009
|
+
resource: "organization",
|
|
19010
|
+
action: "update-user-active-status",
|
|
19011
|
+
title: "Update User Active Status Organization",
|
|
19012
|
+
description: "Update User Active Status Organization.",
|
|
19013
|
+
safety: "update",
|
|
19014
|
+
destructive: false,
|
|
19015
|
+
cli: {
|
|
19016
|
+
group: ["organization"],
|
|
19017
|
+
command: "update-user-active-status",
|
|
19018
|
+
interactive: "default"
|
|
19019
|
+
},
|
|
19020
|
+
mcp: { entityTool: "organization" },
|
|
19021
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
19022
|
+
organization_user_id: /* @__PURE__ */ number$2(),
|
|
19023
|
+
status: /* @__PURE__ */ picklist$1(["active", "inactive"])
|
|
19024
|
+
}),
|
|
19025
|
+
execute: (input, { client }) => {
|
|
19026
|
+
const data = input;
|
|
19027
|
+
return client.runGeneratedRequest("updateOrganizationUserActiveStatus", () => callGeneratedRequest(updateOrganizationUserActiveStatus, [
|
|
19028
|
+
client.httpClient,
|
|
19029
|
+
client.organizationId,
|
|
19030
|
+
data.organization_user_id,
|
|
19031
|
+
data.status,
|
|
19032
|
+
void 0
|
|
19033
|
+
]));
|
|
19034
|
+
}
|
|
19035
|
+
},
|
|
18967
19036
|
{
|
|
18968
19037
|
id: "focus.projects.add-project-members",
|
|
18969
19038
|
family: "focus",
|
|
@@ -30198,4 +30267,4 @@ Common commands:
|
|
|
30198
30267
|
//#endregion
|
|
30199
30268
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
30200
30269
|
|
|
30201
|
-
//# sourceMappingURL=program-
|
|
30270
|
+
//# sourceMappingURL=program-B_IcIs_w.js.map
|
package/build/program.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-B_IcIs_w.js";
|
|
2
2
|
export { createProgram };
|