@togglhq/cli 1.13.298 → 1.13.300

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-DPYDXpYv.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-BsFZF6i3.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-DPYDXpYv.js";
1
+ import { t as createProgram } from "./program-BsFZF6i3.js";
2
2
  export { createProgram };
@@ -17608,6 +17608,17 @@ async function emailUnsubscribePage(httpClient, token, signal) {
17608
17608
  async function emailUnsubscribe(httpClient, token, signal) {
17609
17609
  return (await httpClient.post(`email/unsubscribe/${token}`, { signal })).json();
17610
17610
  }
17611
+ async function recordWorkspaceOpened(httpClient, organization_id, workspace_id, signal) {
17612
+ return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/users/me/opened`, { signal })).json();
17613
+ }
17614
+ async function getLandingWorkspace(httpClient, { first_launch } = {}, signal) {
17615
+ const response = await httpClient.get(`users/me/landing-workspace`, {
17616
+ signal,
17617
+ searchParams: buildSearchParams$2({ first_launch })
17618
+ });
17619
+ if ([204, 205].includes(response.status)) return null;
17620
+ return response.json();
17621
+ }
17611
17622
  async function getUserSettings(httpClient, signal) {
17612
17623
  return (await httpClient.get(`users/me/settings`, { signal })).json();
17613
17624
  }
@@ -32150,6 +32161,31 @@ const generatedFocusOperations = [
32150
32161
  inputSchema: /* @__PURE__ */ looseObject({}),
32151
32162
  execute: (_input, { client }) => client.runGeneratedRequest("getDesktopUserSettings", () => callGeneratedRequest(getDesktopUserSettings, [client.httpClient, void 0]))
32152
32163
  },
32164
+ {
32165
+ id: "focus.users.settings-get-landing-workspace",
32166
+ family: "focus",
32167
+ resource: "users",
32168
+ action: "settings-get-landing-workspace",
32169
+ title: "Settings Get Landing Workspace Users",
32170
+ description: "Settings Get Landing Workspace Users.",
32171
+ safety: "read",
32172
+ destructive: false,
32173
+ cli: {
32174
+ group: ["users", "settings"],
32175
+ command: "get-landing-workspace",
32176
+ interactive: "hidden"
32177
+ },
32178
+ mcp: { entityTool: "users" },
32179
+ inputSchema: /* @__PURE__ */ looseObject({ first_launch: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()) }),
32180
+ execute: (input, { client }) => {
32181
+ const data = input;
32182
+ return client.runGeneratedRequest("getLandingWorkspace", () => callGeneratedRequest(getLandingWorkspace, [
32183
+ client.httpClient,
32184
+ data,
32185
+ void 0
32186
+ ]));
32187
+ }
32188
+ },
32153
32189
  {
32154
32190
  id: "focus.users.settings-list",
32155
32191
  family: "focus",
@@ -32195,6 +32231,7 @@ const generatedFocusOperations = [
32195
32231
  "do_nothing",
32196
32232
  "match_existing"
32197
32233
  ])),
32234
+ current_workspace_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["explicit", "inferred"])),
32198
32235
  date_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
32199
32236
  "US",
32200
32237
  "EU",
@@ -32268,6 +32305,29 @@ const generatedFocusOperations = [
32268
32305
  ]));
32269
32306
  }
32270
32307
  },
32308
+ {
32309
+ id: "focus.users.settings-record-workspace-opened",
32310
+ family: "focus",
32311
+ resource: "users",
32312
+ action: "settings-record-workspace-opened",
32313
+ title: "Settings Record Workspace Opened Users",
32314
+ description: "Settings Record Workspace Opened Users.",
32315
+ safety: "update",
32316
+ destructive: false,
32317
+ cli: {
32318
+ group: ["users", "settings"],
32319
+ command: "record-workspace-opened",
32320
+ interactive: "default"
32321
+ },
32322
+ mcp: { entityTool: "users" },
32323
+ inputSchema: /* @__PURE__ */ looseObject({}),
32324
+ execute: (_input, { client }) => client.runGeneratedRequest("recordWorkspaceOpened", () => callGeneratedRequest(recordWorkspaceOpened, [
32325
+ client.httpClient,
32326
+ client.organizationId,
32327
+ client.workspaceIdNumber,
32328
+ void 0
32329
+ ]))
32330
+ },
32271
32331
  {
32272
32332
  id: "focus.users.settings-update-desktop",
32273
32333
  family: "focus",
@@ -34517,4 +34577,4 @@ Common commands:
34517
34577
  //#endregion
34518
34578
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
34519
34579
 
34520
- //# sourceMappingURL=program-DPYDXpYv.js.map
34580
+ //# sourceMappingURL=program-BsFZF6i3.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-DPYDXpYv.js";
1
+ import { t as createProgram } from "./program-BsFZF6i3.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.298",
3
+ "version": "1.13.300",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",