@togglhq/mcp 1.11.17 → 1.11.19

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 initProductAnalytics, c as shutdownProductAnalytics, i as getProductAnalyticsDistinctId, n as runMcpCli, o as redactUnsafeSentryMessages, r as captureToolInvocation, s as resolveProductAnalyticsDistinctId } from "./src-DGDBq7KJ.js";
2
+ import { a as initProductAnalytics, c as shutdownProductAnalytics, i as getProductAnalyticsDistinctId, n as runMcpCli, o as redactUnsafeSentryMessages, r as captureToolInvocation, s as resolveProductAnalyticsDistinctId } from "./src-BDkKaiqO.js";
3
3
  import * as Sentry from "@sentry/node";
4
4
  //#region src/analytics-tool-metadata.ts
5
5
  /**
@@ -165,7 +165,7 @@ function wrapServerWithProductAnalytics(server) {
165
165
  }
166
166
  //#endregion
167
167
  //#region src/cli.ts
168
- const packageVersion = "1.11.17";
168
+ const packageVersion = "1.11.19";
169
169
  let sentryEnabled = false;
170
170
  let productAnalyticsEnabled = false;
171
171
  runMcpCli({
package/build/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { n as runMcpCli, t as bootstrapServer } from "./src-DGDBq7KJ.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-BDkKaiqO.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -36552,7 +36552,6 @@ const TaskSchema = /* @__PURE__ */ object({
36552
36552
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
36553
36553
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
36554
36554
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
36555
- is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
36556
36555
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
36557
36556
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
36558
36557
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -36614,7 +36613,6 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
36614
36613
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
36615
36614
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
36616
36615
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
36617
- is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
36618
36616
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
36619
36617
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
36620
36618
  parent: /* @__PURE__ */ optional(TaskSchema),
@@ -36797,8 +36795,6 @@ const TimeEntrySchema = /* @__PURE__ */ object({
36797
36795
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
36798
36796
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
36799
36797
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
36800
- pattern_generated: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternGenerated is the response-facing derivative of GeneratedByTaskID: true when the entry was materialized by a series pattern."))),
36801
- pattern_managed: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternManaged reports that the pattern engine owns this entry. Server-owned; present in responses, never bindable from a payload."))),
36802
36798
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
36803
36799
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
36804
36800
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -36963,8 +36959,6 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
36963
36959
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
36964
36960
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
36965
36961
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
36966
- pattern_generated: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternGenerated is the response-facing derivative of GeneratedByTaskID: true when the entry was materialized by a series pattern."))),
36967
- pattern_managed: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternManaged reports that the pattern engine owns this entry. Server-owned; present in responses, never bindable from a payload."))),
36968
36962
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
36969
36963
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
36970
36964
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -37195,7 +37189,6 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
37195
37189
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
37196
37190
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
37197
37191
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
37198
- repeat_planned_time_entry_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RepeatPlannedTimeEntryID is the declared initial-selection input that will start a series from an existing planned entry (PR 11). Any supplied value — an ID or JSON null — is rejected until then; the contract is declared in docs/recurring-pr2a-additive-schema.md. json.RawMessage keeps absent distinguishable from explicit null on decode and is omitted on marshal when never set."))),
37199
37192
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
37200
37193
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
37201
37194
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -37232,7 +37225,6 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
37232
37225
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
37233
37226
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
37234
37227
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
37235
- repeat_planned_time_entry_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RepeatPlannedTimeEntryID is the declared initial-selection input that will start a series from an existing planned entry (PR 11). Any supplied value — an ID or JSON null — is rejected until then; the contract is declared in docs/recurring-pr2a-additive-schema.md. json.RawMessage keeps absent distinguishable from explicit null on decode and is omitted on marshal when never set."))),
37236
37228
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
37237
37229
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
37238
37230
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -37771,7 +37763,7 @@ async function restoreStatuses(httpClient, workspace_id, status_id, signal) {
37771
37763
  }
37772
37764
  //#endregion
37773
37765
  //#region ../focus-queries/dist/tasks/requests.ts
37774
- async function getTasksClassic(httpClient, organization_id, workspace_id, { page, per_page, 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, timeblock_start_from, timeblock_start_until, time_block_id, time_block_completed, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_rates, include_assignees, include_parent_matches, disable_aggregations, cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
37766
+ async function getTasksClassic(httpClient, organization_id, workspace_id, { page, per_page, 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, timeblock_start_from, timeblock_start_until, time_block_id, time_block_completed, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_rates, include_assignees, include_parent_matches, disable_aggregations, cf_filter } = {}, signal) {
37775
37767
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
37776
37768
  signal,
37777
37769
  searchParams: buildSearchParams$2({
@@ -37822,11 +37814,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
37822
37814
  include_assignees,
37823
37815
  include_parent_matches,
37824
37816
  disable_aggregations,
37825
- cf_filter,
37826
- recurring_occurrences_after,
37827
- max_recurring_occurrences_after,
37828
- recurring_task_read,
37829
- include_projected_occurrences
37817
+ cf_filter
37830
37818
  })
37831
37819
  }).json();
37832
37820
  }
@@ -37901,17 +37889,16 @@ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id,
37901
37889
  })
37902
37890
  }).json();
37903
37891
  }
37904
- async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, skip_provider_refresh, signal) {
37892
+ async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, signal) {
37905
37893
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
37906
37894
  signal,
37907
37895
  searchParams: buildSearchParams$2({
37908
37896
  date_from,
37909
- date_to,
37910
- skip_provider_refresh
37897
+ date_to
37911
37898
  })
37912
37899
  }).json();
37913
37900
  }
37914
- async function getTasksRecurringInstancesClassic(httpClient, organization_id, workspace_id, { page, per_page, archived, start_date, end_date, dates_overlap_start, dates_overlap_end, recurring_task_ids, team_id, assignee_team_id, assignee_user_id, tag_id, include_assignees, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
37901
+ async function getTasksRecurringInstancesClassic(httpClient, organization_id, workspace_id, { page, per_page, archived, start_date, end_date, dates_overlap_start, dates_overlap_end, recurring_task_ids, team_id, assignee_team_id, assignee_user_id, tag_id, include_assignees } = {}, signal) {
37915
37902
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
37916
37903
  signal,
37917
37904
  searchParams: buildSearchParams$2({
@@ -37927,15 +37914,11 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
37927
37914
  assignee_team_id,
37928
37915
  assignee_user_id,
37929
37916
  tag_id,
37930
- include_assignees,
37931
- recurring_occurrences_after,
37932
- max_recurring_occurrences_after,
37933
- recurring_task_read,
37934
- include_projected_occurrences
37917
+ include_assignees
37935
37918
  })
37936
37919
  }).json();
37937
37920
  }
37938
- async function getStreamTasks(httpClient, organization_id, workspace_id, { with_entries, pinned, order_by, status_id, toggl_user_id, name, include_parent_matches, 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_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_assignees, cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
37921
+ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_entries, pinned, order_by, status_id, toggl_user_id, name, include_parent_matches, 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_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_assignees, cf_filter } = {}, signal) {
37939
37922
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
37940
37923
  signal,
37941
37924
  searchParams: buildSearchParams$2({
@@ -37980,11 +37963,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
37980
37963
  recurring_task_ids,
37981
37964
  client_id,
37982
37965
  include_assignees,
37983
- cf_filter,
37984
- recurring_occurrences_after,
37985
- max_recurring_occurrences_after,
37986
- recurring_task_read,
37987
- include_projected_occurrences
37966
+ cf_filter
37988
37967
  })
37989
37968
  }).json();
37990
37969
  }
@@ -38039,12 +38018,6 @@ async function getTaskWithChildrenClassic(httpClient, organization_id, workspace
38039
38018
  })
38040
38019
  }).json();
38041
38020
  }
38042
- async function createRecurringOccurrence(httpClient, organization_id, workspace_id, task_id, return_occurrence, signal) {
38043
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/occurrences`, {
38044
- signal,
38045
- searchParams: buildSearchParams$2({ return_occurrence })
38046
- }).json();
38047
- }
38048
38021
  async function getTaskWithParentsClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, status_id, archived, source, team_id, assignee_user_id, tag_id, include_assignees } = {}, signal) {
38049
38022
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
38050
38023
  signal,
@@ -38181,24 +38154,16 @@ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, wor
38181
38154
  })
38182
38155
  }).json();
38183
38156
  }
38184
- async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, return_occurrence, signal) {
38157
+ async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
38185
38158
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
38186
38159
  signal,
38187
- json: data,
38188
- searchParams: buildSearchParams$2({
38189
- from_recurring_task_id,
38190
- return_occurrence
38191
- })
38160
+ json: data
38192
38161
  }).json();
38193
38162
  }
38194
- async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, from_recurring_task_id, return_occurrence, signal) {
38163
+ async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
38195
38164
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
38196
38165
  signal,
38197
- json: data,
38198
- searchParams: buildSearchParams$2({
38199
- from_recurring_task_id,
38200
- return_occurrence
38201
- })
38166
+ json: data
38202
38167
  }).json();
38203
38168
  }
38204
38169
  async function getBatchTimeEntriesWithOrg(httpClient, organization_id, workspace_id, { ids }, signal) {
@@ -38249,7 +38214,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
38249
38214
  json: data
38250
38215
  }).json();
38251
38216
  }
38252
- async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, project_id, type, order_by, archived, include_taskless, expand_calendar_event }, signal) {
38217
+ 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) {
38253
38218
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
38254
38219
  signal,
38255
38220
  searchParams: buildSearchParams$2({
@@ -38257,7 +38222,6 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
38257
38222
  date_to,
38258
38223
  task_id,
38259
38224
  status_id,
38260
- project_id,
38261
38225
  type,
38262
38226
  order_by,
38263
38227
  archived,
@@ -38281,33 +38245,19 @@ async function getStreamTimeEntriesTimeBlockIdsWithOrg(httpClient, organization_
38281
38245
  async function getTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
38282
38246
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
38283
38247
  }
38284
- async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
38248
+ async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
38285
38249
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
38286
38250
  signal,
38287
- json: data,
38288
- searchParams: buildSearchParams$2({
38289
- from_recurring_task_id,
38290
- return_occurrence
38291
- })
38251
+ json: data
38292
38252
  }).json();
38293
38253
  }
38294
- async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, from_recurring_task_id, return_occurrence, signal) {
38295
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
38296
- signal,
38297
- searchParams: buildSearchParams$2({
38298
- from_recurring_task_id,
38299
- return_occurrence
38300
- })
38301
- }).json();
38254
+ async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
38255
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
38302
38256
  }
38303
- async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
38257
+ async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
38304
38258
  return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
38305
38259
  signal,
38306
- json: data,
38307
- searchParams: buildSearchParams$2({
38308
- from_recurring_task_id,
38309
- return_occurrence
38310
- })
38260
+ json: data
38311
38261
  }).json();
38312
38262
  }
38313
38263
  async function archiveTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
@@ -38422,7 +38372,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38422
38372
  ]))
38423
38373
  });
38424
38374
  //#endregion
38425
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.27_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a6d26e07263f2a63be273a04e83ccb45/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38375
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.28_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_c1377dce73253ea099bc6943b2548716/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38426
38376
  async function getInvitations(httpClient, signal) {
38427
38377
  return (await httpClient.get(`invitations`, { signal })).json();
38428
38378
  }
@@ -38439,7 +38389,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38439
38389
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38440
38390
  }
38441
38391
  //#endregion
38442
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.27_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a6d26e07263f2a63be273a04e83ccb45/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38392
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.28_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_c1377dce73253ea099bc6943b2548716/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38443
38393
  function buildSearchParams(params, flattenArrays = false) {
38444
38394
  const searchParams = new URLSearchParams();
38445
38395
  Object.entries(params).forEach(([key, value]) => {
@@ -38451,7 +38401,7 @@ function buildSearchParams(params, flattenArrays = false) {
38451
38401
  return searchParams;
38452
38402
  }
38453
38403
  //#endregion
38454
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.27_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a6d26e07263f2a63be273a04e83ccb45/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38404
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.28_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_c1377dce73253ea099bc6943b2548716/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38455
38405
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38456
38406
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38457
38407
  }
@@ -38465,7 +38415,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38465
38415
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38466
38416
  }
38467
38417
  //#endregion
38468
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.27_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a6d26e07263f2a63be273a04e83ccb45/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38418
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.28_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_c1377dce73253ea099bc6943b2548716/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38469
38419
  async function getWorkspaces(httpClient, organization_id, signal) {
38470
38420
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38471
38421
  }
@@ -38485,7 +38435,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38485
38435
  });
38486
38436
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38487
38437
  //#endregion
38488
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.27_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a6d26e07263f2a63be273a04e83ccb45/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38438
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.28_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_c1377dce73253ea099bc6943b2548716/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38489
38439
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38490
38440
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38491
38441
  signal,
@@ -38496,12 +38446,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38496
38446
  })).json();
38497
38447
  }
38498
38448
  //#endregion
38499
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.27_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a6d26e07263f2a63be273a04e83ccb45/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38449
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.28_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_c1377dce73253ea099bc6943b2548716/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38500
38450
  async function getStatus(httpClient, signal) {
38501
38451
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38502
38452
  }
38503
38453
  //#endregion
38504
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.27_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a6d26e07263f2a63be273a04e83ccb45/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38454
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.28_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_c1377dce73253ea099bc6943b2548716/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38505
38455
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38506
38456
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38507
38457
  signal,
@@ -38529,7 +38479,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38529
38479
  return response.json();
38530
38480
  }
38531
38481
  //#endregion
38532
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.27_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a6d26e07263f2a63be273a04e83ccb45/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38482
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.28_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_c1377dce73253ea099bc6943b2548716/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38533
38483
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38534
38484
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38535
38485
  }
@@ -42180,15 +42130,13 @@ async function getWorkspaceAttachmentStorage(httpClient, organization_id, worksp
42180
42130
  }
42181
42131
  //#endregion
42182
42132
  //#region ../focus-queries/dist/audit-log/requests.ts
42183
- async function getOrganizationAuditLog(httpClient, organization_id, from, to, { workspace_id, entity_type, entity_id, project_id, custom_field_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
42133
+ async function getOrganizationAuditLog(httpClient, organization_id, from, to, { workspace_id, entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
42184
42134
  return await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
42185
42135
  signal,
42186
42136
  searchParams: buildSearchParams$2({
42187
42137
  workspace_id,
42188
42138
  entity_type,
42189
42139
  entity_id,
42190
- project_id,
42191
- custom_field_id,
42192
42140
  action,
42193
42141
  user_id,
42194
42142
  page_size,
@@ -42197,14 +42145,12 @@ async function getOrganizationAuditLog(httpClient, organization_id, from, to, {
42197
42145
  })
42198
42146
  }).json();
42199
42147
  }
42200
- async function getAuditLog(httpClient, organization_id, workspace_id, from, to, { entity_type, entity_id, project_id, custom_field_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
42148
+ async function getAuditLog(httpClient, organization_id, workspace_id, from, to, { entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
42201
42149
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
42202
42150
  signal,
42203
42151
  searchParams: buildSearchParams$2({
42204
42152
  entity_type,
42205
42153
  entity_id,
42206
- project_id,
42207
- custom_field_id,
42208
42154
  action,
42209
42155
  user_id,
42210
42156
  page_size,
@@ -42357,14 +42303,13 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
42357
42303
  }
42358
42304
  //#endregion
42359
42305
  //#region ../focus-queries/dist/capacities/requests.ts
42360
- async function capacityGetComputations(httpClient, organization_id, workspace_id, group, { start_date, end_date, user_id, team_id, private: private_, task_source, unit, include_drafts, include_task_estimates }, signal) {
42306
+ async function capacityGetComputations(httpClient, organization_id, workspace_id, group, { user_id, start_date, end_date, private: private_, task_source, unit, include_drafts, include_task_estimates }, signal) {
42361
42307
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
42362
42308
  signal,
42363
42309
  searchParams: buildSearchParams$2({
42310
+ user_id,
42364
42311
  start_date,
42365
42312
  end_date,
42366
- user_id,
42367
- team_id,
42368
42313
  private: private_,
42369
42314
  task_source,
42370
42315
  unit,
@@ -42424,15 +42369,6 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
42424
42369
  async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
42425
42370
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
42426
42371
  }
42427
- async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
42428
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
42429
- }
42430
- async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
42431
- return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
42432
- signal,
42433
- json: data
42434
- }).json();
42435
- }
42436
42372
  async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
42437
42373
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
42438
42374
  signal,
@@ -42740,6 +42676,9 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
42740
42676
  json: data
42741
42677
  }).json();
42742
42678
  }
42679
+ async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
42680
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
42681
+ }
42743
42682
  async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
42744
42683
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
42745
42684
  }
@@ -43043,10 +42982,9 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
43043
42982
  }
43044
42983
  //#endregion
43045
42984
  //#region ../focus-queries/dist/task-groups/requests.ts
43046
- async function getUserTaskGroupsByProject(httpClient, organization_id, workspace_id, { project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences, xTimelineFetchTrigger }, signal) {
42985
+ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace_id, { project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter }, signal) {
43047
42986
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
43048
42987
  signal,
43049
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
43050
42988
  searchParams: buildSearchParams$2({
43051
42989
  project_id,
43052
42990
  source,
@@ -43075,18 +43013,13 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
43075
43013
  min_days,
43076
43014
  include_drafts,
43077
43015
  cf_filter,
43078
- user_cf_filter,
43079
- recurring_occurrences_after,
43080
- max_recurring_occurrences_after,
43081
- recurring_task_read,
43082
- include_projected_occurrences
43016
+ user_cf_filter
43083
43017
  })
43084
43018
  }).json();
43085
43019
  }
43086
- async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id, { team_id, project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences, xTimelineFetchTrigger } = {}, signal) {
43020
+ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id, { team_id, project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter } = {}, signal) {
43087
43021
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
43088
43022
  signal,
43089
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
43090
43023
  searchParams: buildSearchParams$2({
43091
43024
  team_id,
43092
43025
  project_id,
@@ -43115,18 +43048,13 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
43115
43048
  min_days,
43116
43049
  include_drafts,
43117
43050
  cf_filter,
43118
- user_cf_filter,
43119
- recurring_occurrences_after,
43120
- max_recurring_occurrences_after,
43121
- recurring_task_read,
43122
- include_projected_occurrences
43051
+ user_cf_filter
43123
43052
  })
43124
43053
  }).json();
43125
43054
  }
43126
- async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, group, { source, priority, status_id, project_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences, page, per_page, order_by, xTimelineFetchTrigger } = {}, signal) {
43055
+ async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, group, { source, priority, status_id, project_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, page, per_page, order_by } = {}, signal) {
43127
43056
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
43128
43057
  signal,
43129
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
43130
43058
  searchParams: buildSearchParams$2({
43131
43059
  source,
43132
43060
  priority,
@@ -43156,10 +43084,6 @@ async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, g
43156
43084
  include_drafts,
43157
43085
  cf_filter,
43158
43086
  user_cf_filter,
43159
- recurring_occurrences_after,
43160
- max_recurring_occurrences_after,
43161
- recurring_task_read,
43162
- include_projected_occurrences,
43163
43087
  page,
43164
43088
  per_page,
43165
43089
  order_by
@@ -43395,12 +43319,6 @@ async function withdrawTimesheet(httpClient, organization_id, workspace_id, setu
43395
43319
  }
43396
43320
  //#endregion
43397
43321
  //#region ../focus-queries/dist/user-settings/requests.ts
43398
- async function emailUnsubscribePage(httpClient, token, signal) {
43399
- return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
43400
- }
43401
- async function emailUnsubscribe(httpClient, token, signal) {
43402
- return await httpClient.post(`email/unsubscribe/${token}`, { signal }).json();
43403
- }
43404
43322
  async function getUserSettings(httpClient, signal) {
43405
43323
  return await httpClient.get(`users/me/settings`, { signal }).json();
43406
43324
  }
@@ -43640,7 +43558,6 @@ const generatedFocusOperations = [
43640
43558
  mcp: { entityTool: "audit-log" },
43641
43559
  inputSchema: /* @__PURE__ */ looseObject({
43642
43560
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43643
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43644
43561
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43645
43562
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43646
43563
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -43648,7 +43565,6 @@ const generatedFocusOperations = [
43648
43565
  from: /* @__PURE__ */ string$1(),
43649
43566
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43650
43567
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43651
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43652
43568
  to: /* @__PURE__ */ string$1(),
43653
43569
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43654
43570
  workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -43682,7 +43598,6 @@ const generatedFocusOperations = [
43682
43598
  mcp: { entityTool: "audit-log" },
43683
43599
  inputSchema: /* @__PURE__ */ looseObject({
43684
43600
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43685
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43686
43601
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43687
43602
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43688
43603
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -43690,7 +43605,6 @@ const generatedFocusOperations = [
43690
43605
  from: /* @__PURE__ */ string$1(),
43691
43606
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43692
43607
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43693
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43694
43608
  to: /* @__PURE__ */ string$1(),
43695
43609
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
43696
43610
  }),
@@ -43730,7 +43644,6 @@ const generatedFocusOperations = [
43730
43644
  private_: /* @__PURE__ */ unknown$1(),
43731
43645
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
43732
43646
  task_source: /* @__PURE__ */ unknown$1(),
43733
- team_id: /* @__PURE__ */ number$2(),
43734
43647
  unit: /* @__PURE__ */ unknown$1(),
43735
43648
  user_id: /* @__PURE__ */ number$2()
43736
43649
  }),
@@ -44171,33 +44084,6 @@ const generatedFocusOperations = [
44171
44084
  ]));
44172
44085
  }
44173
44086
  },
44174
- {
44175
- id: "focus.custom-fields.get-allowed-users",
44176
- family: "focus",
44177
- resource: "custom-fields",
44178
- action: "get-allowed-users",
44179
- title: "Get Allowed Users Custom Fields",
44180
- description: "Get Allowed Users Custom Fields.",
44181
- safety: "read",
44182
- destructive: false,
44183
- cli: {
44184
- group: ["custom-fields"],
44185
- command: "get-allowed-users",
44186
- interactive: "available"
44187
- },
44188
- mcp: { entityTool: "custom-fields" },
44189
- inputSchema: /* @__PURE__ */ looseObject({ custom_field_id: /* @__PURE__ */ number$2() }),
44190
- execute: (input, { client }) => {
44191
- const data = input;
44192
- return client.runGeneratedRequest("getCustomFieldAllowedUsers", () => callGeneratedRequest(getCustomFieldAllowedUsers, [
44193
- client.httpClient,
44194
- client.organizationId,
44195
- client.workspaceIdNumber,
44196
- data.custom_field_id,
44197
- void 0
44198
- ]));
44199
- }
44200
- },
44201
44087
  {
44202
44088
  id: "focus.custom-fields.list",
44203
44089
  family: "focus",
@@ -44367,37 +44253,6 @@ const generatedFocusOperations = [
44367
44253
  ]));
44368
44254
  }
44369
44255
  },
44370
- {
44371
- id: "focus.custom-fields.replace-custom-field-allowed-users",
44372
- family: "focus",
44373
- resource: "custom-fields",
44374
- action: "replace-custom-field-allowed-users",
44375
- title: "Replace Custom Field Allowed Users Custom Fields",
44376
- description: "Replace Custom Field Allowed Users Custom Fields.",
44377
- safety: "update",
44378
- destructive: false,
44379
- cli: {
44380
- group: ["custom-fields"],
44381
- command: "replace-custom-field-allowed-users",
44382
- interactive: "default"
44383
- },
44384
- mcp: { entityTool: "custom-fields" },
44385
- inputSchema: /* @__PURE__ */ looseObject({
44386
- custom_field_id: /* @__PURE__ */ number$2(),
44387
- payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) })
44388
- }),
44389
- execute: (input, { client }) => {
44390
- const data = input;
44391
- return client.runGeneratedRequest("replaceCustomFieldAllowedUsers", () => callGeneratedRequest(replaceCustomFieldAllowedUsers, [
44392
- client.httpClient,
44393
- client.organizationId,
44394
- client.workspaceIdNumber,
44395
- data.custom_field_id,
44396
- data.payload ?? data.data ?? data,
44397
- void 0
44398
- ]));
44399
- }
44400
- },
44401
44256
  {
44402
44257
  id: "focus.custom-fields.update",
44403
44258
  family: "focus",
@@ -44544,7 +44399,13 @@ const generatedFocusOperations = [
44544
44399
  },
44545
44400
  mcp: { entityTool: "goals" },
44546
44401
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44402
+ billable: /* @__PURE__ */ boolean$1(),
44547
44403
  comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
44404
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44405
+ icon: /* @__PURE__ */ string$1(),
44406
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
44407
+ name: /* @__PURE__ */ string$1(),
44408
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44548
44409
  recurrence: /* @__PURE__ */ picklist$1([
44549
44410
  "daily",
44550
44411
  "weekly",
@@ -44552,18 +44413,12 @@ const generatedFocusOperations = [
44552
44413
  "monthly"
44553
44414
  ]),
44554
44415
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44416
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44555
44417
  target_seconds: /* @__PURE__ */ number$2(),
44556
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44418
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44419
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44557
44420
  client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44558
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44559
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44560
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44561
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
44562
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44563
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44564
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44565
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44566
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44421
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
44567
44422
  }) }),
44568
44423
  execute: (input, { client }) => {
44569
44424
  const data = input;
@@ -44669,6 +44524,13 @@ const generatedFocusOperations = [
44669
44524
  },
44670
44525
  mcp: { entityTool: "goals" },
44671
44526
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44527
+ billable: /* @__PURE__ */ boolean$1(),
44528
+ comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
44529
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44530
+ icon: /* @__PURE__ */ string$1(),
44531
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
44532
+ name: /* @__PURE__ */ string$1(),
44533
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44672
44534
  recurrence: /* @__PURE__ */ picklist$1([
44673
44535
  "daily",
44674
44536
  "weekly",
@@ -44676,19 +44538,12 @@ const generatedFocusOperations = [
44676
44538
  "monthly"
44677
44539
  ]),
44678
44540
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44679
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44541
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44542
+ target_seconds: /* @__PURE__ */ number$2(),
44543
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44544
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44680
44545
  client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44681
- comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["more_than", "less_than"])),
44682
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44683
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44684
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44685
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
44686
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44687
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44688
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44689
- target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44690
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44691
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44546
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
44692
44547
  }) }),
44693
44548
  execute: (input, { client }) => {
44694
44549
  const data = input;
@@ -45655,17 +45510,9 @@ const generatedFocusOperations = [
45655
45510
  mcp: { entityTool: "projects" },
45656
45511
  inputSchema: /* @__PURE__ */ looseObject({
45657
45512
  payload: /* @__PURE__ */ looseObject({
45658
- auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
45659
- completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
45660
45513
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
45661
45514
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
45662
45515
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
45663
- rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
45664
- "expire",
45665
- "carry_all",
45666
- "carry_over"
45667
- ])),
45668
- rrule: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
45669
45516
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
45670
45517
  }),
45671
45518
  project_id: /* @__PURE__ */ number$2()
@@ -46211,6 +46058,29 @@ const generatedFocusOperations = [
46211
46058
  ]));
46212
46059
  }
46213
46060
  },
46061
+ {
46062
+ id: "focus.projects.margin-targets-clear-workspace",
46063
+ family: "focus",
46064
+ resource: "projects",
46065
+ action: "margin-targets-clear-workspace",
46066
+ title: "Margin Targets Clear Workspace Projects",
46067
+ description: "Margin Targets Clear Workspace Projects.",
46068
+ safety: "delete",
46069
+ destructive: true,
46070
+ cli: {
46071
+ group: ["projects", "margin-targets"],
46072
+ command: "clear-workspace",
46073
+ interactive: "default"
46074
+ },
46075
+ mcp: { entityTool: "projects" },
46076
+ inputSchema: /* @__PURE__ */ looseObject({}),
46077
+ execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
46078
+ client.httpClient,
46079
+ client.organizationId,
46080
+ client.workspaceIdNumber,
46081
+ void 0
46082
+ ]))
46083
+ },
46214
46084
  {
46215
46085
  id: "focus.projects.margin-targets-get",
46216
46086
  family: "focus",
@@ -48613,7 +48483,7 @@ const generatedFocusOperations = [
48613
48483
  cli: {
48614
48484
  group: ["reportschedules"],
48615
48485
  command: "upsert-saved-view-schedule",
48616
- interactive: "hidden"
48486
+ interactive: "default"
48617
48487
  },
48618
48488
  mcp: { entityTool: "reportschedules" },
48619
48489
  inputSchema: /* @__PURE__ */ looseObject({
@@ -48624,10 +48494,8 @@ const generatedFocusOperations = [
48624
48494
  "weekly",
48625
48495
  "monthly"
48626
48496
  ]),
48627
- charts: /* @__PURE__ */ unknown$1(),
48628
48497
  time: /* @__PURE__ */ string$1(),
48629
48498
  day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48630
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
48631
48499
  recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
48632
48500
  recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
48633
48501
  recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
@@ -50176,37 +50044,6 @@ const generatedFocusOperations = [
50176
50044
  return client.createTask(data);
50177
50045
  }
50178
50046
  },
50179
- {
50180
- id: "focus.tasks.create-recurring-occurrence",
50181
- family: "focus",
50182
- resource: "tasks",
50183
- action: "create-recurring-occurrence",
50184
- title: "Create Recurring Occurrence Tasks",
50185
- description: "Create Recurring Occurrence Tasks.",
50186
- safety: "create",
50187
- destructive: false,
50188
- cli: {
50189
- group: ["tasks"],
50190
- command: "create-recurring-occurrence",
50191
- interactive: "default"
50192
- },
50193
- mcp: { entityTool: "tasks" },
50194
- inputSchema: /* @__PURE__ */ looseObject({
50195
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50196
- task_id: /* @__PURE__ */ number$2()
50197
- }),
50198
- execute: (input, { client }) => {
50199
- const data = input;
50200
- return client.runGeneratedRequest("createRecurringOccurrence", () => callGeneratedRequest(createRecurringOccurrence, [
50201
- client.httpClient,
50202
- client.organizationId,
50203
- client.workspaceIdNumber,
50204
- data.task_id,
50205
- data.return_occurrence,
50206
- void 0
50207
- ]));
50208
- }
50209
- },
50210
50047
  {
50211
50048
  id: "focus.tasks.delete",
50212
50049
  family: "focus",
@@ -50454,13 +50291,9 @@ const generatedFocusOperations = [
50454
50291
  dates_overlap_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50455
50292
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
50456
50293
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50457
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50458
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50459
50294
  page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50460
50295
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50461
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50462
50296
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50463
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50464
50297
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
50465
50298
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
50466
50299
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -50512,9 +50345,7 @@ const generatedFocusOperations = [
50512
50345
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50513
50346
  include_parent_matches: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50514
50347
  include_project_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50515
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50516
50348
  is_priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50517
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50518
50349
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50519
50350
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50520
50351
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -50523,9 +50354,7 @@ const generatedFocusOperations = [
50523
50354
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50524
50355
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50525
50356
  recurring: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50526
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50527
50357
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50528
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50529
50358
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50530
50359
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
50531
50360
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -50663,10 +50492,8 @@ const generatedFocusOperations = [
50663
50492
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50664
50493
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50665
50494
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50666
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50667
50495
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50668
50496
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50669
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50670
50497
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50671
50498
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50672
50499
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -50675,8 +50502,6 @@ const generatedFocusOperations = [
50675
50502
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50676
50503
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50677
50504
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50678
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50679
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50680
50505
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50681
50506
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
50682
50507
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -50685,8 +50510,7 @@ const generatedFocusOperations = [
50685
50510
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
50686
50511
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50687
50512
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50688
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50689
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
50513
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
50690
50514
  }),
50691
50515
  execute: (input, { client }) => {
50692
50516
  const data = input;
@@ -50728,17 +50552,13 @@ const generatedFocusOperations = [
50728
50552
  group_id: /* @__PURE__ */ number$2(),
50729
50553
  include_assignees: /* @__PURE__ */ unknown$1(),
50730
50554
  include_drafts: /* @__PURE__ */ unknown$1(),
50731
- include_projected_occurrences: /* @__PURE__ */ unknown$1(),
50732
50555
  include_unassigned: /* @__PURE__ */ unknown$1(),
50733
50556
  include_unmaterialized: /* @__PURE__ */ unknown$1(),
50734
- max_recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
50735
50557
  min_days: /* @__PURE__ */ unknown$1(),
50736
50558
  name: /* @__PURE__ */ unknown$1(),
50737
50559
  priority: /* @__PURE__ */ unknown$1(),
50738
50560
  private_: /* @__PURE__ */ unknown$1(),
50739
50561
  project_id: /* @__PURE__ */ number$2(),
50740
- recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
50741
- recurring_task_read: /* @__PURE__ */ unknown$1(),
50742
50562
  source: /* @__PURE__ */ unknown$1(),
50743
50563
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
50744
50564
  start_date_from: /* @__PURE__ */ unknown$1(),
@@ -50747,8 +50567,7 @@ const generatedFocusOperations = [
50747
50567
  tag_id: /* @__PURE__ */ number$2(),
50748
50568
  team_id: /* @__PURE__ */ number$2(),
50749
50569
  user_cf_filter: /* @__PURE__ */ unknown$1(),
50750
- user_tag_id: /* @__PURE__ */ number$2(),
50751
- xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
50570
+ user_tag_id: /* @__PURE__ */ number$2()
50752
50571
  }),
50753
50572
  execute: (input, { client }) => {
50754
50573
  const data = input;
@@ -50789,17 +50608,13 @@ const generatedFocusOperations = [
50789
50608
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50790
50609
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50791
50610
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50792
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50793
50611
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50794
50612
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50795
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50796
50613
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50797
50614
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50798
50615
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50799
50616
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50800
50617
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50801
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50802
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50803
50618
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50804
50619
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
50805
50620
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -50808,8 +50623,7 @@ const generatedFocusOperations = [
50808
50623
  tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50809
50624
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50810
50625
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50811
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50812
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
50626
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
50813
50627
  }),
50814
50628
  execute: (input, { client }) => {
50815
50629
  const data = input;
@@ -51080,8 +50894,7 @@ const generatedFocusOperations = [
51080
50894
  mcp: { entityTool: "tasks" },
51081
50895
  inputSchema: /* @__PURE__ */ looseObject({
51082
50896
  date_from: /* @__PURE__ */ string$1(),
51083
- date_to: /* @__PURE__ */ string$1(),
51084
- skip_provider_refresh: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
50897
+ date_to: /* @__PURE__ */ string$1()
51085
50898
  }),
51086
50899
  execute: (input, { client }) => {
51087
50900
  const data = input;
@@ -51091,7 +50904,6 @@ const generatedFocusOperations = [
51091
50904
  client.workspaceIdNumber,
51092
50905
  data.date_from,
51093
50906
  data.date_to,
51094
- data.skip_provider_refresh,
51095
50907
  void 0
51096
50908
  ]));
51097
50909
  }
@@ -51678,8 +51490,7 @@ const generatedFocusOperations = [
51678
51490
  required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
51679
51491
  "project",
51680
51492
  "task",
51681
- "description",
51682
- "tags"
51493
+ "description"
51683
51494
  ]) })),
51684
51495
  disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51685
51496
  }) }),
@@ -51709,7 +51520,6 @@ const generatedFocusOperations = [
51709
51520
  },
51710
51521
  mcp: { entityTool: "time-entries" },
51711
51522
  inputSchema: /* @__PURE__ */ looseObject({
51712
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51713
51523
  payload: /* @__PURE__ */ looseObject({
51714
51524
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
51715
51525
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -51720,13 +51530,11 @@ const generatedFocusOperations = [
51720
51530
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51721
51531
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51722
51532
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51723
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51724
51533
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
51725
51534
  time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51726
51535
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51727
51536
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51728
51537
  }),
51729
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51730
51538
  task_id: /* @__PURE__ */ number$2()
51731
51539
  }),
51732
51540
  execute: (input, { client }) => {
@@ -51737,8 +51545,6 @@ const generatedFocusOperations = [
51737
51545
  client.workspaceIdNumber,
51738
51546
  data.task_id,
51739
51547
  data.payload ?? data.data ?? data,
51740
- data.from_recurring_task_id,
51741
- data.return_occurrence,
51742
51548
  void 0
51743
51549
  ]));
51744
51550
  }
@@ -51758,26 +51564,21 @@ const generatedFocusOperations = [
51758
51564
  interactive: "default"
51759
51565
  },
51760
51566
  mcp: { entityTool: "time-entries" },
51761
- inputSchema: /* @__PURE__ */ looseObject({
51762
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51763
- payload: /* @__PURE__ */ looseObject({
51764
- type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
51765
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51766
- calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51767
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51768
- duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51769
- planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51770
- planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51771
- planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51772
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51773
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51774
- start: /* @__PURE__ */ optional$1(apiDateTimeString),
51775
- time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51776
- tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51777
- user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51778
- }),
51779
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51780
- }),
51567
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
51568
+ type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
51569
+ billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51570
+ calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51571
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51572
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51573
+ planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51574
+ planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51575
+ planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51576
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51577
+ start: /* @__PURE__ */ optional$1(apiDateTimeString),
51578
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51579
+ tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51580
+ user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51581
+ }) }),
51781
51582
  execute: (input, { client }) => {
51782
51583
  const data = input;
51783
51584
  return client.runGeneratedRequest("createTasklessTimeEntryWithOrg", () => callGeneratedRequest(createTasklessTimeEntryWithOrg, [
@@ -51785,8 +51586,6 @@ const generatedFocusOperations = [
51785
51586
  client.organizationId,
51786
51587
  client.workspaceIdNumber,
51787
51588
  data.payload ?? data.data ?? data,
51788
- data.from_recurring_task_id,
51789
- data.return_occurrence,
51790
51589
  void 0
51791
51590
  ]));
51792
51591
  }
@@ -51806,11 +51605,7 @@ const generatedFocusOperations = [
51806
51605
  interactive: "default"
51807
51606
  },
51808
51607
  mcp: { entityTool: "time-entries" },
51809
- inputSchema: /* @__PURE__ */ looseObject({
51810
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51811
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51812
- time_entry_id: /* @__PURE__ */ number$2()
51813
- }),
51608
+ inputSchema: /* @__PURE__ */ looseObject({ time_entry_id: /* @__PURE__ */ number$2() }),
51814
51609
  execute: (input, { client }) => {
51815
51610
  const data = input;
51816
51611
  return client.runGeneratedRequest("deleteTimeEntryWithOrg", () => callGeneratedRequest(deleteTimeEntryWithOrg, [
@@ -51818,8 +51613,6 @@ const generatedFocusOperations = [
51818
51613
  client.organizationId,
51819
51614
  client.workspaceIdNumber,
51820
51615
  data.time_entry_id,
51821
- data.from_recurring_task_id,
51822
- data.return_occurrence,
51823
51616
  void 0
51824
51617
  ]));
51825
51618
  }
@@ -51900,7 +51693,6 @@ const generatedFocusOperations = [
51900
51693
  expand_calendar_event: /* @__PURE__ */ unknown$1(),
51901
51694
  include_taskless: /* @__PURE__ */ unknown$1(),
51902
51695
  order_by: /* @__PURE__ */ unknown$1(),
51903
- project_id: /* @__PURE__ */ number$2(),
51904
51696
  status_id: /* @__PURE__ */ number$2(),
51905
51697
  task_id: /* @__PURE__ */ number$2(),
51906
51698
  type: /* @__PURE__ */ unknown$1()
@@ -52077,14 +51869,12 @@ const generatedFocusOperations = [
52077
51869
  },
52078
51870
  mcp: { entityTool: "time-entries" },
52079
51871
  inputSchema: /* @__PURE__ */ looseObject({
52080
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52081
51872
  payload: /* @__PURE__ */ looseObject({
52082
51873
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52083
51874
  duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52084
51875
  reset_billable_to_default: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52085
51876
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]))
52086
51877
  }),
52087
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52088
51878
  time_entry_id: /* @__PURE__ */ number$2()
52089
51879
  }),
52090
51880
  execute: (input, { client }) => {
@@ -52095,8 +51885,6 @@ const generatedFocusOperations = [
52095
51885
  client.workspaceIdNumber,
52096
51886
  data.time_entry_id,
52097
51887
  data.payload ?? data.data ?? data,
52098
- data.from_recurring_task_id,
52099
- data.return_occurrence,
52100
51888
  void 0
52101
51889
  ]));
52102
51890
  }
@@ -52354,7 +52142,6 @@ const generatedFocusOperations = [
52354
52142
  },
52355
52143
  mcp: { entityTool: "time-entries" },
52356
52144
  inputSchema: /* @__PURE__ */ looseObject({
52357
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52358
52145
  payload: /* @__PURE__ */ looseObject({
52359
52146
  type: /* @__PURE__ */ picklist$1(["activity", "break"]),
52360
52147
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -52367,7 +52154,6 @@ const generatedFocusOperations = [
52367
52154
  time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52368
52155
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
52369
52156
  }),
52370
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52371
52157
  time_entry_id: /* @__PURE__ */ number$2()
52372
52158
  }),
52373
52159
  execute: (input, { client }) => {
@@ -52378,8 +52164,6 @@ const generatedFocusOperations = [
52378
52164
  client.workspaceIdNumber,
52379
52165
  data.time_entry_id,
52380
52166
  data.payload ?? data.data ?? data,
52381
- data.from_recurring_task_id,
52382
- data.return_occurrence,
52383
52167
  void 0
52384
52168
  ]));
52385
52169
  }
@@ -53465,56 +53249,6 @@ const generatedFocusOperations = [
53465
53249
  return client.listOrgUsers(data);
53466
53250
  }
53467
53251
  },
53468
- {
53469
- id: "focus.users.settings-email-unsubscribe",
53470
- family: "focus",
53471
- resource: "users",
53472
- action: "settings-email-unsubscribe",
53473
- title: "Settings Email Unsubscribe Users",
53474
- description: "Settings Email Unsubscribe Users.",
53475
- safety: "update",
53476
- destructive: false,
53477
- cli: {
53478
- group: ["users", "settings"],
53479
- command: "email-unsubscribe",
53480
- interactive: "default"
53481
- },
53482
- mcp: { entityTool: "users" },
53483
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
53484
- execute: (input, { client }) => {
53485
- const data = input;
53486
- return client.runGeneratedRequest("emailUnsubscribe", () => callGeneratedRequest(emailUnsubscribe, [
53487
- client.httpClient,
53488
- data.token,
53489
- void 0
53490
- ]));
53491
- }
53492
- },
53493
- {
53494
- id: "focus.users.settings-email-unsubscribe-page",
53495
- family: "focus",
53496
- resource: "users",
53497
- action: "settings-email-unsubscribe-page",
53498
- title: "Settings Email Unsubscribe Page Users",
53499
- description: "Settings Email Unsubscribe Page Users.",
53500
- safety: "read",
53501
- destructive: false,
53502
- cli: {
53503
- group: ["users", "settings"],
53504
- command: "email-unsubscribe-page",
53505
- interactive: "available"
53506
- },
53507
- mcp: { entityTool: "users" },
53508
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
53509
- execute: (input, { client }) => {
53510
- const data = input;
53511
- return client.runGeneratedRequest("emailUnsubscribePage", () => callGeneratedRequest(emailUnsubscribePage, [
53512
- client.httpClient,
53513
- data.token,
53514
- void 0
53515
- ]));
53516
- }
53517
- },
53518
53252
  {
53519
53253
  id: "focus.users.settings-list",
53520
53254
  family: "focus",
@@ -53576,9 +53310,6 @@ const generatedFocusOperations = [
53576
53310
  has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53577
53311
  import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53578
53312
  new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53579
- notify_project_alerts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53580
- notify_project_member_added: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53581
- notify_task_assigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53582
53313
  onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53583
53314
  onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53584
53315
  onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -55122,7 +54853,7 @@ function registerWorkspaceTools(server) {
55122
54853
  //#region src/package-version.ts
55123
54854
  function mcpPackageVersion() {
55124
54855
  try {
55125
- return "1.11.17";
54856
+ return "1.11.19";
55126
54857
  } catch {
55127
54858
  return "unknown";
55128
54859
  }
@@ -55297,7 +55028,7 @@ import_main.default.config({
55297
55028
  quiet: true,
55298
55029
  ignore: ["MISSING_ENV_FILE"]
55299
55030
  });
55300
- const packageVersion = "1.11.17";
55031
+ const packageVersion = "1.11.19";
55301
55032
  function resolvePublicUrls() {
55302
55033
  return {
55303
55034
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -55362,4 +55093,4 @@ function bootstrapServer(options = {}) {
55362
55093
  //#endregion
55363
55094
  export { initProductAnalytics as a, shutdownProductAnalytics as c, getProductAnalyticsDistinctId as i, runMcpCli as n, redactUnsafeSentryMessages as o, captureToolInvocation as r, resolveProductAnalyticsDistinctId as s, bootstrapServer as t };
55364
55095
 
55365
- //# sourceMappingURL=src-DGDBq7KJ.js.map
55096
+ //# sourceMappingURL=src-BDkKaiqO.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.11.17",
3
+ "version": "1.11.19",
4
4
  "description": "Toggl 2.0 MCP server for Claude Code, Claude Desktop, and other MCP clients.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",