@togglhq/cli 1.13.52 → 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-C0eK2cN0.js";
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-C0eK2cN0.js";
1
+ import { t as createProgram } from "./program-B_IcIs_w.js";
2
2
  export { createProgram };
@@ -9963,6 +9963,12 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
9963
9963
  async function updateOrganizationUserActiveStatus(httpClient, organization_id, organization_user_id, status, signal) {
9964
9964
  return await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal }).json();
9965
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
+ }
9966
9972
  //#endregion
9967
9973
  //#region ../focus-queries/out/utils/requests.js
9968
9974
  function buildSearchParams$1(params, flattenArrays = false) {
@@ -18766,6 +18772,36 @@ const generatedFocusOperations = [
18766
18772
  ]));
18767
18773
  }
18768
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
+ },
18769
18805
  {
18770
18806
  id: "focus.organization.delete-group",
18771
18807
  family: "focus",
@@ -30231,4 +30267,4 @@ Common commands:
30231
30267
  //#endregion
30232
30268
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
30233
30269
 
30234
- //# sourceMappingURL=program-C0eK2cN0.js.map
30270
+ //# sourceMappingURL=program-B_IcIs_w.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-C0eK2cN0.js";
1
+ import { t as createProgram } from "./program-B_IcIs_w.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.52",
3
+ "version": "1.13.53",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",