@togglhq/cli 1.5.29 → 1.5.30

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 { n as CommanderError, t as createProgram } from "./program-0krLPqUR.js";
2
+ import { n as CommanderError, t as createProgram } from "./program-D1SqAxB5.js";
3
3
  //#region src/cli.ts
4
4
  try {
5
5
  await createProgram({ enableUpdateNotification: true }).parseAsync(process.argv);
package/build/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-0krLPqUR.js";
1
+ import { t as createProgram } from "./program-D1SqAxB5.js";
2
2
  export { createProgram };
@@ -9050,6 +9050,7 @@ const TimeBlockSchema = /* @__PURE__ */ object({
9050
9050
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
9051
9051
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
9052
9052
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
9053
+ timezone: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Timezone is the effective IANA timezone hydrated on reads: the workspace timezone snapshotted at creation when set, else the creator's snapshot; NULL when unresolved."))),
9053
9054
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
9054
9055
  });
9055
9056
  const BillableSourceSchema = /* @__PURE__ */ picklist(["manual", "task_default"]);
@@ -9073,6 +9074,7 @@ const TimeEntrySchema = /* @__PURE__ */ object({
9073
9074
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
9074
9075
  task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
9075
9076
  time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
9077
+ timezone: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Timezone is the effective IANA timezone hydrated on reads: the workspace timezone snapshotted at creation when set, else the creator's snapshot; NULL when unresolved."))),
9076
9078
  tracked_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
9077
9079
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
9078
9080
  });
@@ -9195,6 +9197,7 @@ const PaginatedTimeBlockAggregateWithTasksSchema = /* @__PURE__ */ object({
9195
9197
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
9196
9198
  has_time_entry: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
9197
9199
  task: /* @__PURE__ */ optional(TaskSchema),
9200
+ timezone: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Timezone is the effective IANA timezone hydrated on reads: the workspace timezone snapshotted at creation when set, else the creator's snapshot; NULL when unresolved."))),
9198
9201
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
9199
9202
  })),
9200
9203
  page: /* @__PURE__ */ number(),
@@ -9235,6 +9238,7 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
9235
9238
  task: /* @__PURE__ */ optional(TaskSchema),
9236
9239
  task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
9237
9240
  time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
9241
+ timezone: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Timezone is the effective IANA timezone hydrated on reads: the workspace timezone snapshotted at creation when set, else the creator's snapshot; NULL when unresolved."))),
9238
9242
  tracked_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
9239
9243
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
9240
9244
  })),
@@ -9610,7 +9614,7 @@ async function updateOrganizationGroupUserRole(httpClient, organization_id, grou
9610
9614
  async function getOrganizationRoles(httpClient, organization_id, signal) {
9611
9615
  return await httpClient.get(`organizations/${organization_id}/roles`, { signal }).json();
9612
9616
  }
9613
- async function getOrganizationTeamsClassic(httpClient, organization_id, { workspace_id, page, per_page, sort_dir, filter, query, organization_user_id, group_ids }, signal) {
9617
+ async function getOrganizationTeamsClassic(httpClient, organization_id, { workspace_id, page, per_page, sort_dir, filter, query, organization_user_id, group_ids, active_members_only }, signal) {
9614
9618
  return await httpClient.get(`organizations/${organization_id}/teams`, {
9615
9619
  signal,
9616
9620
  searchParams: buildSearchParams$3({
@@ -9621,7 +9625,8 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
9621
9625
  filter,
9622
9626
  query,
9623
9627
  organization_user_id,
9624
- group_ids
9628
+ group_ids,
9629
+ active_members_only
9625
9630
  })
9626
9631
  }).json();
9627
9632
  }
@@ -10065,25 +10070,23 @@ async function getTaskByExternalId(httpClient, organization_id, workspace_id, {
10065
10070
  })
10066
10071
  }).json();
10067
10072
  }
10068
- async function getTasksCalendarEvents(httpClient, organization_id, workspace_id, { date_from, date_to, calendar_event_id, time_zone, hidden } = {}, signal) {
10073
+ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id, { date_from, date_to, calendar_event_id, hidden } = {}, signal) {
10069
10074
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
10070
10075
  signal,
10071
10076
  searchParams: buildSearchParams$3({
10072
10077
  date_from,
10073
10078
  date_to,
10074
10079
  calendar_event_id,
10075
- time_zone,
10076
10080
  hidden
10077
10081
  })
10078
10082
  }).json();
10079
10083
  }
10080
- async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, timezone, signal) {
10084
+ async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, signal) {
10081
10085
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
10082
10086
  signal,
10083
10087
  searchParams: buildSearchParams$3({
10084
10088
  date_from,
10085
- date_to,
10086
- timezone
10089
+ date_to
10087
10090
  })
10088
10091
  }).json();
10089
10092
  }
@@ -10107,7 +10110,7 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
10107
10110
  })
10108
10111
  }).json();
10109
10112
  }
10110
- async function getStreamTasks(httpClient, organization_id, workspace_id, { with_entries, pinned, order_by, status_id, toggl_user_id, name, has_time_entries, has_time_blocks, has_dates, archived, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, time_block_id, time_block_completed, team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_ghost_assignees, include_assignees, assignee_ghost_id, cf_filter } = {}, signal) {
10113
+ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_entries, pinned, order_by, status_id, toggl_user_id, name, has_time_entries, has_time_blocks, has_dates, private: private_, archived, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, time_block_id, time_block_completed, team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_ghost_assignees, include_assignees, assignee_ghost_id, cf_filter } = {}, signal) {
10111
10114
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
10112
10115
  signal,
10113
10116
  searchParams: buildSearchParams$3({
@@ -10120,6 +10123,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
10120
10123
  has_time_entries,
10121
10124
  has_time_blocks,
10122
10125
  has_dates,
10126
+ private: private_,
10123
10127
  archived,
10124
10128
  include_project_completed,
10125
10129
  include_drafts,
@@ -10353,7 +10357,7 @@ async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id,
10353
10357
  json: data
10354
10358
  }).json();
10355
10359
  }
10356
- async function getTimeEntriesRangeWithOrgClassic(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, type, page, per_page, order_by, archived, time_block_id, include_taskless, expand_calendar_event, time_zone }, signal) {
10360
+ async function getTimeEntriesRangeWithOrgClassic(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, type, page, per_page, order_by, archived, time_block_id, include_taskless, expand_calendar_event }, signal) {
10357
10361
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
10358
10362
  signal,
10359
10363
  searchParams: buildSearchParams$3({
@@ -10368,8 +10372,7 @@ async function getTimeEntriesRangeWithOrgClassic(httpClient, organization_id, wo
10368
10372
  archived,
10369
10373
  time_block_id,
10370
10374
  include_taskless,
10371
- expand_calendar_event,
10372
- time_zone
10375
+ expand_calendar_event
10373
10376
  })
10374
10377
  }).json();
10375
10378
  }
@@ -10421,7 +10424,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
10421
10424
  json: data
10422
10425
  }).json();
10423
10426
  }
10424
- async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, type, order_by, archived, include_taskless, expand_calendar_event, time_zone }, signal) {
10427
+ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, type, order_by, archived, include_taskless, expand_calendar_event }, signal) {
10425
10428
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
10426
10429
  signal,
10427
10430
  searchParams: buildSearchParams$3({
@@ -10433,8 +10436,7 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
10433
10436
  order_by,
10434
10437
  archived,
10435
10438
  include_taskless,
10436
- expand_calendar_event,
10437
- time_zone
10439
+ expand_calendar_event
10438
10440
  })
10439
10441
  }).json();
10440
10442
  }
@@ -10570,7 +10572,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10570
10572
  ]))
10571
10573
  });
10572
10574
  //#endregion
10573
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10575
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10574
10576
  async function getInvitations(httpClient, signal) {
10575
10577
  return (await httpClient.get(`invitations`, { signal })).json();
10576
10578
  }
@@ -10587,7 +10589,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10587
10589
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10588
10590
  }
10589
10591
  //#endregion
10590
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10592
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10591
10593
  function buildSearchParams$1(params, flattenArrays = false) {
10592
10594
  const searchParams = new URLSearchParams();
10593
10595
  Object.entries(params).forEach(([key, value]) => {
@@ -10599,7 +10601,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
10599
10601
  return searchParams;
10600
10602
  }
10601
10603
  //#endregion
10602
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10604
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10603
10605
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10604
10606
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10605
10607
  }
@@ -10613,7 +10615,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10613
10615
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10614
10616
  }
10615
10617
  //#endregion
10616
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10618
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10617
10619
  async function getWorkspaces(httpClient, organization_id, signal) {
10618
10620
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10619
10621
  }
@@ -10642,7 +10644,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
10642
10644
  });
10643
10645
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
10644
10646
  //#endregion
10645
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
10647
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
10646
10648
  const META_SYMBOL = Symbol.for("querygen:response:meta");
10647
10649
  function withResponseMeta(data, headers, status) {
10648
10650
  if (!data) return data;
@@ -10669,7 +10671,7 @@ function buildSearchParams(params, flattenArrays = false) {
10669
10671
  return searchParams;
10670
10672
  }
10671
10673
  //#endregion
10672
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
10674
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
10673
10675
  async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
10674
10676
  const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
10675
10677
  signal,
@@ -10678,12 +10680,12 @@ async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
10678
10680
  return withResponseMeta(await response.json(), response.headers, response.status);
10679
10681
  }
10680
10682
  //#endregion
10681
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10683
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10682
10684
  async function getStatus(httpClient, signal) {
10683
10685
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
10684
10686
  }
10685
10687
  //#endregion
10686
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10688
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10687
10689
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
10688
10690
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
10689
10691
  signal,
@@ -10711,7 +10713,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
10711
10713
  return response.json();
10712
10714
  }
10713
10715
  //#endregion
10714
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10716
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10715
10717
  async function getMyWorkingHours(httpClient, organization_id, signal) {
10716
10718
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
10717
10719
  }
@@ -14340,6 +14342,18 @@ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id
14340
14342
  async function getProjectMarginTargets(httpClient, organization_id, workspace_id, signal) {
14341
14343
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets`, { signal }).json();
14342
14344
  }
14345
+ async function getWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
14346
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
14347
+ }
14348
+ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, data, signal) {
14349
+ return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, {
14350
+ signal,
14351
+ json: data
14352
+ }).json();
14353
+ }
14354
+ async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
14355
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
14356
+ }
14343
14357
  async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
14344
14358
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
14345
14359
  }
@@ -14409,6 +14423,29 @@ async function createTaskRate(httpClient, organization_id, workspace_id, task_id
14409
14423
  }).json();
14410
14424
  }
14411
14425
  //#endregion
14426
+ //#region ../focus-queries/dist/recurring-budget-suggestions/requests.ts
14427
+ async function getRecurringProjectBudgetSuggestion(httpClient, organization_id, workspace_id, project_id, { target_period_start }, signal) {
14428
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/recurring-budget-suggestions/${project_id}`, {
14429
+ signal,
14430
+ searchParams: buildSearchParams$3({ target_period_start })
14431
+ }).json();
14432
+ }
14433
+ async function acceptARecurringProjectBudgetSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
14434
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/recurring-budget-suggestions/${project_id}/accept`, { signal }).json();
14435
+ }
14436
+ async function dismissARecurringProjectBudgetSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
14437
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/recurring-budget-suggestions/${project_id}/dismiss`, { signal }).json();
14438
+ }
14439
+ async function getTemplateEstimateSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
14440
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/template-estimate-suggestions/${project_id}`, { signal }).json();
14441
+ }
14442
+ async function acceptATemplateEstimateSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
14443
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/template-estimate-suggestions/${project_id}/accept`, { signal }).json();
14444
+ }
14445
+ async function dismissATemplateEstimateSuggestion(httpClient, organization_id, workspace_id, project_id, signal) {
14446
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/template-estimate-suggestions/${project_id}/dismiss`, { signal }).json();
14447
+ }
14448
+ //#endregion
14412
14449
  //#region ../focus-queries/dist/reports/requests.ts
14413
14450
  async function getProfitabilityReport(httpClient, workspace_id, data, response_format, include_dicts, signal) {
14414
14451
  return await httpClient.post(`reports/workspaces/${workspace_id}/profitability`, {
@@ -14496,6 +14533,9 @@ async function getCurrentSubscription(httpClient, organization_id, signal) {
14496
14533
  async function getFeaturesUpsell(httpClient, organization_id, signal) {
14497
14534
  return await httpClient.get(`organizations/${organization_id}/subscriptions/features-upsell`, { signal }).json();
14498
14535
  }
14536
+ async function getSubscriptionPlans(httpClient, organization_id, signal) {
14537
+ return await httpClient.get(`organizations/${organization_id}/subscriptions/plans`, { signal }).json();
14538
+ }
14499
14539
  async function getCurrentTrial(httpClient, organization_id, signal) {
14500
14540
  return await httpClient.get(`organizations/${organization_id}/subscriptions/trials/current`, { signal }).json();
14501
14541
  }
@@ -16293,6 +16333,7 @@ const generatedFocusOperations = [
16293
16333
  },
16294
16334
  mcp: { entityTool: "organization" },
16295
16335
  inputSchema: /* @__PURE__ */ looseObject({
16336
+ active_members_only: /* @__PURE__ */ unknown$1(),
16296
16337
  filter: /* @__PURE__ */ unknown$1(),
16297
16338
  group_ids: /* @__PURE__ */ unknown$1(),
16298
16339
  organization_user_id: /* @__PURE__ */ number$2(),
@@ -17323,6 +17364,29 @@ const generatedFocusOperations = [
17323
17364
  ]));
17324
17365
  }
17325
17366
  },
17367
+ {
17368
+ id: "focus.projects.margin-targets-clear-workspace",
17369
+ family: "focus",
17370
+ resource: "projects",
17371
+ action: "margin-targets-clear-workspace",
17372
+ title: "Margin Targets Clear Workspace Projects",
17373
+ description: "Margin Targets Clear Workspace Projects.",
17374
+ safety: "delete",
17375
+ destructive: true,
17376
+ cli: {
17377
+ group: ["projects", "margin-targets"],
17378
+ command: "clear-workspace",
17379
+ interactive: "default"
17380
+ },
17381
+ mcp: { entityTool: "projects" },
17382
+ inputSchema: /* @__PURE__ */ looseObject({}),
17383
+ execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
17384
+ client.httpClient,
17385
+ client.organizationId,
17386
+ client.workspaceIdNumber,
17387
+ void 0
17388
+ ]))
17389
+ },
17326
17390
  {
17327
17391
  id: "focus.projects.margin-targets-get",
17328
17392
  family: "focus",
@@ -17350,6 +17414,29 @@ const generatedFocusOperations = [
17350
17414
  ]));
17351
17415
  }
17352
17416
  },
17417
+ {
17418
+ id: "focus.projects.margin-targets-get-workspace",
17419
+ family: "focus",
17420
+ resource: "projects",
17421
+ action: "margin-targets-get-workspace",
17422
+ title: "Margin Targets Get Workspace Projects",
17423
+ description: "Margin Targets Get Workspace Projects.",
17424
+ safety: "read",
17425
+ destructive: false,
17426
+ cli: {
17427
+ group: ["projects", "margin-targets"],
17428
+ command: "get-workspace",
17429
+ interactive: "hidden"
17430
+ },
17431
+ mcp: { entityTool: "projects" },
17432
+ inputSchema: /* @__PURE__ */ looseObject({}),
17433
+ execute: (_input, { client }) => client.runGeneratedRequest("getWorkspaceProjectMarginTarget", () => callGeneratedRequest(getWorkspaceProjectMarginTarget, [
17434
+ client.httpClient,
17435
+ client.organizationId,
17436
+ client.workspaceIdNumber,
17437
+ void 0
17438
+ ]))
17439
+ },
17353
17440
  {
17354
17441
  id: "focus.projects.margin-targets-list",
17355
17442
  family: "focus",
@@ -17404,6 +17491,33 @@ const generatedFocusOperations = [
17404
17491
  ]));
17405
17492
  }
17406
17493
  },
17494
+ {
17495
+ id: "focus.projects.margin-targets-set-workspace",
17496
+ family: "focus",
17497
+ resource: "projects",
17498
+ action: "margin-targets-set-workspace",
17499
+ title: "Margin Targets Set Workspace Projects",
17500
+ description: "Margin Targets Set Workspace Projects.",
17501
+ safety: "read",
17502
+ destructive: false,
17503
+ cli: {
17504
+ group: ["projects", "margin-targets"],
17505
+ command: "set-workspace",
17506
+ interactive: "available"
17507
+ },
17508
+ mcp: { entityTool: "projects" },
17509
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ target_percent: /* @__PURE__ */ number$2() }) }),
17510
+ execute: (input, { client }) => {
17511
+ const data = input;
17512
+ return client.runGeneratedRequest("setWorkspaceProjectMarginTarget", () => callGeneratedRequest(setWorkspaceProjectMarginTarget, [
17513
+ client.httpClient,
17514
+ client.organizationId,
17515
+ client.workspaceIdNumber,
17516
+ data.payload ?? data.data ?? data,
17517
+ void 0
17518
+ ]));
17519
+ }
17520
+ },
17407
17521
  {
17408
17522
  id: "focus.projects.pin",
17409
17523
  family: "focus",
@@ -19191,6 +19305,172 @@ const generatedFocusOperations = [
19191
19305
  ]));
19192
19306
  }
19193
19307
  },
19308
+ {
19309
+ id: "focus.recurring-budget-suggestions.accept-arecurring-project-budget-suggestion",
19310
+ family: "focus",
19311
+ resource: "recurring-budget-suggestions",
19312
+ action: "accept-arecurring-project-budget-suggestion",
19313
+ title: "Accept Arecurring Project Budget Suggestion Recurring Budget Suggestions",
19314
+ description: "Accept Arecurring Project Budget Suggestion Recurring Budget Suggestions.",
19315
+ safety: "read",
19316
+ destructive: false,
19317
+ cli: {
19318
+ group: ["recurring-budget-suggestions"],
19319
+ command: "accept-arecurring-project-budget-suggestion",
19320
+ interactive: "available"
19321
+ },
19322
+ mcp: { entityTool: "recurring-budget-suggestions" },
19323
+ inputSchema: /* @__PURE__ */ looseObject({ project_id: /* @__PURE__ */ number$2() }),
19324
+ execute: (input, { client }) => {
19325
+ const data = input;
19326
+ return client.runGeneratedRequest("acceptARecurringProjectBudgetSuggestion", () => callGeneratedRequest(acceptARecurringProjectBudgetSuggestion, [
19327
+ client.httpClient,
19328
+ client.organizationId,
19329
+ client.workspaceIdNumber,
19330
+ data.project_id,
19331
+ void 0
19332
+ ]));
19333
+ }
19334
+ },
19335
+ {
19336
+ id: "focus.recurring-budget-suggestions.accept-atemplate-estimate-suggestion",
19337
+ family: "focus",
19338
+ resource: "recurring-budget-suggestions",
19339
+ action: "accept-atemplate-estimate-suggestion",
19340
+ title: "Accept Atemplate Estimate Suggestion Recurring Budget Suggestions",
19341
+ description: "Accept Atemplate Estimate Suggestion Recurring Budget Suggestions.",
19342
+ safety: "read",
19343
+ destructive: false,
19344
+ cli: {
19345
+ group: ["recurring-budget-suggestions"],
19346
+ command: "accept-atemplate-estimate-suggestion",
19347
+ interactive: "available"
19348
+ },
19349
+ mcp: { entityTool: "recurring-budget-suggestions" },
19350
+ inputSchema: /* @__PURE__ */ looseObject({ project_id: /* @__PURE__ */ number$2() }),
19351
+ execute: (input, { client }) => {
19352
+ const data = input;
19353
+ return client.runGeneratedRequest("acceptATemplateEstimateSuggestion", () => callGeneratedRequest(acceptATemplateEstimateSuggestion, [
19354
+ client.httpClient,
19355
+ client.organizationId,
19356
+ client.workspaceIdNumber,
19357
+ data.project_id,
19358
+ void 0
19359
+ ]));
19360
+ }
19361
+ },
19362
+ {
19363
+ id: "focus.recurring-budget-suggestions.dismiss-arecurring-project-budget-suggestion",
19364
+ family: "focus",
19365
+ resource: "recurring-budget-suggestions",
19366
+ action: "dismiss-arecurring-project-budget-suggestion",
19367
+ title: "Dismiss Arecurring Project Budget Suggestion Recurring Budget Suggestions",
19368
+ description: "Dismiss Arecurring Project Budget Suggestion Recurring Budget Suggestions.",
19369
+ safety: "read",
19370
+ destructive: false,
19371
+ cli: {
19372
+ group: ["recurring-budget-suggestions"],
19373
+ command: "dismiss-arecurring-project-budget-suggestion",
19374
+ interactive: "available"
19375
+ },
19376
+ mcp: { entityTool: "recurring-budget-suggestions" },
19377
+ inputSchema: /* @__PURE__ */ looseObject({ project_id: /* @__PURE__ */ number$2() }),
19378
+ execute: (input, { client }) => {
19379
+ const data = input;
19380
+ return client.runGeneratedRequest("dismissARecurringProjectBudgetSuggestion", () => callGeneratedRequest(dismissARecurringProjectBudgetSuggestion, [
19381
+ client.httpClient,
19382
+ client.organizationId,
19383
+ client.workspaceIdNumber,
19384
+ data.project_id,
19385
+ void 0
19386
+ ]));
19387
+ }
19388
+ },
19389
+ {
19390
+ id: "focus.recurring-budget-suggestions.dismiss-atemplate-estimate-suggestion",
19391
+ family: "focus",
19392
+ resource: "recurring-budget-suggestions",
19393
+ action: "dismiss-atemplate-estimate-suggestion",
19394
+ title: "Dismiss Atemplate Estimate Suggestion Recurring Budget Suggestions",
19395
+ description: "Dismiss Atemplate Estimate Suggestion Recurring Budget Suggestions.",
19396
+ safety: "read",
19397
+ destructive: false,
19398
+ cli: {
19399
+ group: ["recurring-budget-suggestions"],
19400
+ command: "dismiss-atemplate-estimate-suggestion",
19401
+ interactive: "available"
19402
+ },
19403
+ mcp: { entityTool: "recurring-budget-suggestions" },
19404
+ inputSchema: /* @__PURE__ */ looseObject({ project_id: /* @__PURE__ */ number$2() }),
19405
+ execute: (input, { client }) => {
19406
+ const data = input;
19407
+ return client.runGeneratedRequest("dismissATemplateEstimateSuggestion", () => callGeneratedRequest(dismissATemplateEstimateSuggestion, [
19408
+ client.httpClient,
19409
+ client.organizationId,
19410
+ client.workspaceIdNumber,
19411
+ data.project_id,
19412
+ void 0
19413
+ ]));
19414
+ }
19415
+ },
19416
+ {
19417
+ id: "focus.recurring-budget-suggestions.get-recurring-project-budget-suggestion",
19418
+ family: "focus",
19419
+ resource: "recurring-budget-suggestions",
19420
+ action: "get-recurring-project-budget-suggestion",
19421
+ title: "Get Recurring Project Budget Suggestion Recurring Budget Suggestions",
19422
+ description: "Get Recurring Project Budget Suggestion Recurring Budget Suggestions.",
19423
+ safety: "read",
19424
+ destructive: false,
19425
+ cli: {
19426
+ group: ["recurring-budget-suggestions"],
19427
+ command: "get-recurring-project-budget-suggestion",
19428
+ interactive: "hidden"
19429
+ },
19430
+ mcp: { entityTool: "recurring-budget-suggestions" },
19431
+ inputSchema: /* @__PURE__ */ looseObject({
19432
+ project_id: /* @__PURE__ */ number$2(),
19433
+ target_period_start: /* @__PURE__ */ unknown$1()
19434
+ }),
19435
+ execute: (input, { client }) => {
19436
+ const data = input;
19437
+ return client.runGeneratedRequest("getRecurringProjectBudgetSuggestion", () => callGeneratedRequest(getRecurringProjectBudgetSuggestion, [
19438
+ client.httpClient,
19439
+ client.organizationId,
19440
+ client.workspaceIdNumber,
19441
+ data.project_id,
19442
+ data,
19443
+ void 0
19444
+ ]));
19445
+ }
19446
+ },
19447
+ {
19448
+ id: "focus.recurring-budget-suggestions.get-template-estimate-suggestion",
19449
+ family: "focus",
19450
+ resource: "recurring-budget-suggestions",
19451
+ action: "get-template-estimate-suggestion",
19452
+ title: "Get Template Estimate Suggestion Recurring Budget Suggestions",
19453
+ description: "Get Template Estimate Suggestion Recurring Budget Suggestions.",
19454
+ safety: "read",
19455
+ destructive: false,
19456
+ cli: {
19457
+ group: ["recurring-budget-suggestions"],
19458
+ command: "get-template-estimate-suggestion",
19459
+ interactive: "available"
19460
+ },
19461
+ mcp: { entityTool: "recurring-budget-suggestions" },
19462
+ inputSchema: /* @__PURE__ */ looseObject({ project_id: /* @__PURE__ */ number$2() }),
19463
+ execute: (input, { client }) => {
19464
+ const data = input;
19465
+ return client.runGeneratedRequest("getTemplateEstimateSuggestion", () => callGeneratedRequest(getTemplateEstimateSuggestion, [
19466
+ client.httpClient,
19467
+ client.organizationId,
19468
+ client.workspaceIdNumber,
19469
+ data.project_id,
19470
+ void 0
19471
+ ]));
19472
+ }
19473
+ },
19194
19474
  {
19195
19475
  id: "focus.reports.get-flexq-data",
19196
19476
  family: "focus",
@@ -19849,6 +20129,28 @@ const generatedFocusOperations = [
19849
20129
  void 0
19850
20130
  ]))
19851
20131
  },
20132
+ {
20133
+ id: "focus.subscriptions.get-plans",
20134
+ family: "focus",
20135
+ resource: "subscriptions",
20136
+ action: "get-plans",
20137
+ title: "Get Plans Subscriptions",
20138
+ description: "Get Plans Subscriptions.",
20139
+ safety: "read",
20140
+ destructive: false,
20141
+ cli: {
20142
+ group: ["subscriptions"],
20143
+ command: "get-plans",
20144
+ interactive: "hidden"
20145
+ },
20146
+ mcp: { entityTool: "subscriptions" },
20147
+ inputSchema: /* @__PURE__ */ looseObject({}),
20148
+ execute: (_input, { client }) => client.runGeneratedRequest("getSubscriptionPlans", () => callGeneratedRequest(getSubscriptionPlans, [
20149
+ client.httpClient,
20150
+ client.organizationId,
20151
+ void 0
20152
+ ]))
20153
+ },
19852
20154
  {
19853
20155
  id: "focus.subscriptions.upsert-forced-trial",
19854
20156
  family: "focus",
@@ -20513,8 +20815,7 @@ const generatedFocusOperations = [
20513
20815
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
20514
20816
  date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
20515
20817
  date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
20516
- hidden: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
20517
- time_zone: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
20818
+ hidden: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
20518
20819
  }),
20519
20820
  execute: (input, { client }) => {
20520
20821
  const data = input;
@@ -20610,6 +20911,7 @@ const generatedFocusOperations = [
20610
20911
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
20611
20912
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
20612
20913
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
20914
+ private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
20613
20915
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
20614
20916
  recurring: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
20615
20917
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -21032,8 +21334,7 @@ const generatedFocusOperations = [
21032
21334
  mcp: { entityTool: "tasks" },
21033
21335
  inputSchema: /* @__PURE__ */ looseObject({
21034
21336
  date_from: /* @__PURE__ */ unknown$1(),
21035
- date_to: /* @__PURE__ */ unknown$1(),
21036
- timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
21337
+ date_to: /* @__PURE__ */ unknown$1()
21037
21338
  }),
21038
21339
  execute: (input, { client }) => {
21039
21340
  const data = input;
@@ -21043,7 +21344,6 @@ const generatedFocusOperations = [
21043
21344
  client.workspaceIdNumber,
21044
21345
  data.date_from,
21045
21346
  data.date_to,
21046
- data.timezone,
21047
21347
  void 0
21048
21348
  ]));
21049
21349
  }
@@ -21802,7 +22102,6 @@ const generatedFocusOperations = [
21802
22102
  order_by: /* @__PURE__ */ unknown$1(),
21803
22103
  status_id: /* @__PURE__ */ number$2(),
21804
22104
  task_id: /* @__PURE__ */ number$2(),
21805
- time_zone: /* @__PURE__ */ unknown$1(),
21806
22105
  type: /* @__PURE__ */ unknown$1()
21807
22106
  }),
21808
22107
  execute: (input, { client }) => {
@@ -25452,4 +25751,4 @@ Common commands:
25452
25751
  //#endregion
25453
25752
  export { CommanderError as n, createProgram as t };
25454
25753
 
25455
- //# sourceMappingURL=program-0krLPqUR.js.map
25754
+ //# sourceMappingURL=program-D1SqAxB5.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-0krLPqUR.js";
1
+ import { t as createProgram } from "./program-D1SqAxB5.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.5.29",
3
+ "version": "1.5.30",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@toggl/cli-core": "workspace:^",
57
57
  "@toggl/operations": "workspace:^",
58
- "@toggl/queries": "0.15.21",
58
+ "@toggl/queries": "0.15.24",
59
59
  "@types/node": "22.19.11",
60
60
  "tsdown": "0.21.8",
61
61
  "typescript": "5.9.3",