@togglhq/cli 1.13.124 → 1.13.126

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-BfGvCvZt.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-ihFIgZrQ.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-BfGvCvZt.js";
1
+ import { t as createProgram } from "./program-ihFIgZrQ.js";
2
2
  export { createProgram };
@@ -7719,6 +7719,12 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
7719
7719
  end_time: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7720
7720
  foreground_color: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7721
7721
  meeting_link: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7722
+ response_status: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ picklist([
7723
+ "accepted",
7724
+ "declined",
7725
+ "tentative",
7726
+ "needsAction"
7727
+ ]))),
7722
7728
  series_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7723
7729
  series_timezone: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7724
7730
  start_time: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
@@ -10979,7 +10985,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10979
10985
  ]))
10980
10986
  });
10981
10987
  //#endregion
10982
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10988
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10983
10989
  async function getInvitations(httpClient, signal) {
10984
10990
  return (await httpClient.get(`invitations`, { signal })).json();
10985
10991
  }
@@ -10996,7 +11002,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10996
11002
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10997
11003
  }
10998
11004
  //#endregion
10999
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/utils/requests.mjs
11005
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/utils/requests.mjs
11000
11006
  function buildSearchParams(params, flattenArrays = false) {
11001
11007
  const searchParams = new URLSearchParams();
11002
11008
  Object.entries(params).forEach(([key, value]) => {
@@ -11008,7 +11014,7 @@ function buildSearchParams(params, flattenArrays = false) {
11008
11014
  return searchParams;
11009
11015
  }
11010
11016
  //#endregion
11011
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
11017
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
11012
11018
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
11013
11019
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
11014
11020
  }
@@ -11023,7 +11029,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
11023
11029
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
11024
11030
  }
11025
11031
  //#endregion
11026
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
11032
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
11027
11033
  async function getWorkspaces(httpClient, organization_id, signal) {
11028
11034
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
11029
11035
  }
@@ -11043,7 +11049,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
11043
11049
  });
11044
11050
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
11045
11051
  //#endregion
11046
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
11052
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
11047
11053
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
11048
11054
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
11049
11055
  signal,
@@ -11054,12 +11060,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
11054
11060
  })).json();
11055
11061
  }
11056
11062
  //#endregion
11057
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
11063
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
11058
11064
  async function getStatus(httpClient, signal) {
11059
11065
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
11060
11066
  }
11061
11067
  //#endregion
11062
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
11068
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
11063
11069
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
11064
11070
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
11065
11071
  signal,
@@ -11087,7 +11093,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
11087
11093
  return response.json();
11088
11094
  }
11089
11095
  //#endregion
11090
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.285_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b45840367d41cd9624e6d8a9003e5220/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
11096
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
11091
11097
  async function getMyWorkingHours(httpClient, organization_id, signal) {
11092
11098
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
11093
11099
  }
@@ -15016,6 +15022,30 @@ async function discardAiChange(httpClient, organization_id, workspace_id, conver
15016
15022
  async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
15017
15023
  return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal }).json();
15018
15024
  }
15025
+ async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
15026
+ return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
15027
+ signal,
15028
+ json: data
15029
+ }).json();
15030
+ }
15031
+ async function dayRebuildName(httpClient, organization_id, workspace_id, data, signal) {
15032
+ return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/name`, {
15033
+ signal,
15034
+ json: data
15035
+ }).json();
15036
+ }
15037
+ async function dayRebuildProjects(httpClient, organization_id, workspace_id, data, signal) {
15038
+ return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/projects`, {
15039
+ signal,
15040
+ json: data
15041
+ }).json();
15042
+ }
15043
+ async function dayRebuildReadConnected(httpClient, organization_id, workspace_id, data, signal) {
15044
+ return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/read-connected`, {
15045
+ signal,
15046
+ json: data
15047
+ }).json();
15048
+ }
15019
15049
  async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
15020
15050
  return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
15021
15051
  signal,
@@ -16829,6 +16859,132 @@ const generatedFocusOperations = [
16829
16859
  ]));
16830
16860
  }
16831
16861
  },
16862
+ {
16863
+ id: "focus.ai.day-rebuild-group",
16864
+ family: "focus",
16865
+ resource: "ai",
16866
+ action: "day-rebuild-group",
16867
+ title: "Day Rebuild Group Ai",
16868
+ description: "Day Rebuild Group Ai.",
16869
+ safety: "update",
16870
+ destructive: false,
16871
+ cli: {
16872
+ group: ["ai"],
16873
+ command: "day-rebuild-group",
16874
+ interactive: "hidden"
16875
+ },
16876
+ mcp: { entityTool: "ai" },
16877
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
16878
+ execute: (input, { client }) => {
16879
+ const data = input;
16880
+ return client.runGeneratedRequest("dayRebuildGroup", () => callGeneratedRequest(dayRebuildGroup, [
16881
+ client.httpClient,
16882
+ client.organizationId,
16883
+ client.workspaceIdNumber,
16884
+ data.payload ?? data.data ?? data,
16885
+ void 0
16886
+ ]));
16887
+ }
16888
+ },
16889
+ {
16890
+ id: "focus.ai.day-rebuild-name",
16891
+ family: "focus",
16892
+ resource: "ai",
16893
+ action: "day-rebuild-name",
16894
+ title: "Day Rebuild Name Ai",
16895
+ description: "Day Rebuild Name Ai.",
16896
+ safety: "update",
16897
+ destructive: false,
16898
+ cli: {
16899
+ group: ["ai"],
16900
+ command: "day-rebuild-name",
16901
+ interactive: "hidden"
16902
+ },
16903
+ mcp: { entityTool: "ai" },
16904
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
16905
+ execute: (input, { client }) => {
16906
+ const data = input;
16907
+ return client.runGeneratedRequest("dayRebuildName", () => callGeneratedRequest(dayRebuildName, [
16908
+ client.httpClient,
16909
+ client.organizationId,
16910
+ client.workspaceIdNumber,
16911
+ data.payload ?? data.data ?? data,
16912
+ void 0
16913
+ ]));
16914
+ }
16915
+ },
16916
+ {
16917
+ id: "focus.ai.day-rebuild-projects",
16918
+ family: "focus",
16919
+ resource: "ai",
16920
+ action: "day-rebuild-projects",
16921
+ title: "Day Rebuild Projects Ai",
16922
+ description: "Day Rebuild Projects Ai.",
16923
+ safety: "update",
16924
+ destructive: false,
16925
+ cli: {
16926
+ group: ["ai"],
16927
+ command: "day-rebuild-projects",
16928
+ interactive: "hidden"
16929
+ },
16930
+ mcp: { entityTool: "ai" },
16931
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
16932
+ execute: (input, { client }) => {
16933
+ const data = input;
16934
+ return client.runGeneratedRequest("dayRebuildProjects", () => callGeneratedRequest(dayRebuildProjects, [
16935
+ client.httpClient,
16936
+ client.organizationId,
16937
+ client.workspaceIdNumber,
16938
+ data.payload ?? data.data ?? data,
16939
+ void 0
16940
+ ]));
16941
+ }
16942
+ },
16943
+ {
16944
+ id: "focus.ai.day-rebuild-read-connected",
16945
+ family: "focus",
16946
+ resource: "ai",
16947
+ action: "day-rebuild-read-connected",
16948
+ title: "Day Rebuild Read Connected Ai",
16949
+ description: "Day Rebuild Read Connected Ai.",
16950
+ safety: "update",
16951
+ destructive: false,
16952
+ cli: {
16953
+ group: ["ai"],
16954
+ command: "day-rebuild-read-connected",
16955
+ interactive: "hidden"
16956
+ },
16957
+ mcp: { entityTool: "ai" },
16958
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
16959
+ now: /* @__PURE__ */ string$1(),
16960
+ service: /* @__PURE__ */ string$1(),
16961
+ since: /* @__PURE__ */ string$1(),
16962
+ tools: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
16963
+ name: /* @__PURE__ */ string$1(),
16964
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16965
+ input_schema: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
16966
+ })),
16967
+ preferred_tools: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ string$1())),
16968
+ turns: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
16969
+ assistant_content: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
16970
+ tool_results: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
16971
+ tool_use_id: /* @__PURE__ */ string$1(),
16972
+ content: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16973
+ is_error: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
16974
+ }))
16975
+ })))
16976
+ }) }),
16977
+ execute: (input, { client }) => {
16978
+ const data = input;
16979
+ return client.runGeneratedRequest("dayRebuildReadConnected", () => callGeneratedRequest(dayRebuildReadConnected, [
16980
+ client.httpClient,
16981
+ client.organizationId,
16982
+ client.workspaceIdNumber,
16983
+ data.payload ?? data.data ?? data,
16984
+ void 0
16985
+ ]));
16986
+ }
16987
+ },
16832
16988
  {
16833
16989
  id: "focus.ai.discard-ai-change",
16834
16990
  family: "focus",
@@ -31434,4 +31590,4 @@ Common commands:
31434
31590
  //#endregion
31435
31591
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
31436
31592
 
31437
- //# sourceMappingURL=program-BfGvCvZt.js.map
31593
+ //# sourceMappingURL=program-ihFIgZrQ.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-BfGvCvZt.js";
1
+ import { t as createProgram } from "./program-ihFIgZrQ.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.124",
3
+ "version": "1.13.126",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -56,7 +56,7 @@
56
56
  "devDependencies": {
57
57
  "@toggl/cli-core": "workspace:^",
58
58
  "@toggl/operations": "workspace:^",
59
- "@toggl/queries": "2.2.285",
59
+ "@toggl/queries": "2.2.286",
60
60
  "@types/node": "22.19.11",
61
61
  "tsdown": "0.21.8",
62
62
  "typescript": "5.9.3",