@togglhq/mcp 1.11.87 → 1.11.88

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.
@@ -32773,6 +32773,10 @@ function _joinExpects$1(values$1, separator) {
32773
32773
  */
32774
32774
  const ISO_DATE_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
32775
32775
  /**
32776
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time regex.
32777
+ */
32778
+ const ISO_DATE_TIME_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3]):[0-5]\d$/u;
32779
+ /**
32776
32780
  * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
32777
32781
  * space as a date/time separator and an optional space before the UTC offset.
32778
32782
  */
@@ -32826,6 +32830,22 @@ function isoDate$1(message$1) {
32826
32830
  };
32827
32831
  }
32828
32832
  /* @__NO_SIDE_EFFECTS__ */
32833
+ function isoDateTime$1(message$1) {
32834
+ return {
32835
+ kind: "validation",
32836
+ type: "iso_date_time",
32837
+ reference: isoDateTime$1,
32838
+ async: false,
32839
+ expects: null,
32840
+ requirement: ISO_DATE_TIME_REGEX$1,
32841
+ message: message$1,
32842
+ "~run"(dataset, config$1) {
32843
+ if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue$1(this, "date-time", dataset, config$1);
32844
+ return dataset;
32845
+ }
32846
+ };
32847
+ }
32848
+ /* @__NO_SIDE_EFFECTS__ */
32829
32849
  function isoTimestamp(message$1) {
32830
32850
  return {
32831
32851
  kind: "validation",
@@ -34663,7 +34683,6 @@ const ProjectLiteSchema = /* @__PURE__ */ object({
34663
34683
  name: /* @__PURE__ */ string(),
34664
34684
  permissions: /* @__PURE__ */ array(/* @__PURE__ */ string()),
34665
34685
  archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
34666
- billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
34667
34686
  client: /* @__PURE__ */ optional(ClientLiteSchema),
34668
34687
  color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34669
34688
  custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
@@ -34750,7 +34769,6 @@ const TaskSchema = /* @__PURE__ */ object({
34750
34769
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34751
34770
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
34752
34771
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
34753
- 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."))),
34754
34772
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
34755
34773
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34756
34774
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -34812,7 +34830,6 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
34812
34830
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34813
34831
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
34814
34832
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
34815
- 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."))),
34816
34833
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
34817
34834
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34818
34835
  parent: /* @__PURE__ */ optional(TaskSchema),
@@ -34973,8 +34990,6 @@ const TimeEntrySchema = /* @__PURE__ */ object({
34973
34990
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
34974
34991
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34975
34992
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
34976
- 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."))),
34977
- 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."))),
34978
34993
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
34979
34994
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
34980
34995
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -35060,10 +35075,8 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
35060
35075
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35061
35076
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
35062
35077
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35063
- filtered_task_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35064
35078
  fixed_fee: /* @__PURE__ */ optional(ProjectFixedFeeSchema),
35065
35079
  parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35066
- picker_parent_group_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35067
35080
  rate: /* @__PURE__ */ optional(EffectiveProjectRatesSummarySchema),
35068
35081
  recurring_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35069
35082
  rollover_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RolloverMins is the cumulative under/over budget carried into this instance from earlier instances in its recurring chain, in minutes. Positive = surplus (prior periods went under estimate, time carries forward); negative = debt (prior periods went over). Only populated for recurring instances; nil for templates and standalone projects. See service.HydrateRollover for the per-instance contribution rules driven by RolloverMode (expire / carry_over / carry_all)."))),
@@ -35119,8 +35132,6 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
35119
35132
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
35120
35133
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35121
35134
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35122
- 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."))),
35123
- 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."))),
35124
35135
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
35125
35136
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35126
35137
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -35293,6 +35304,8 @@ const TaskCreatePayloadSchema = /* @__PURE__ */ object({
35293
35304
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
35294
35305
  estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
35295
35306
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
35307
+ integration_ext_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35308
+ integration_source: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35296
35309
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35297
35310
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35298
35311
  pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -35349,7 +35362,6 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
35349
35362
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
35350
35363
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
35351
35364
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
35352
- 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."))),
35353
35365
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
35354
35366
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
35355
35367
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -35386,7 +35398,6 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
35386
35398
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
35387
35399
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
35388
35400
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
35389
- 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."))),
35390
35401
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
35391
35402
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
35392
35403
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -35407,6 +35418,7 @@ const TimeEntryBulkCreatePayloadSchema = /* @__PURE__ */ object({
35407
35418
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
35408
35419
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
35409
35420
  task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35421
+ time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35410
35422
  tracked_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
35411
35423
  user_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
35412
35424
  });
@@ -35435,7 +35447,8 @@ const TimeEntryStartTrackingPayloadSchema = /* @__PURE__ */ object({
35435
35447
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35436
35448
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
35437
35449
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
35438
- task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
35450
+ task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35451
+ time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
35439
35452
  });
35440
35453
  const TimeEntryStopTrackingPayloadSchema = /* @__PURE__ */ object({ end: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()) });
35441
35454
  //#endregion
@@ -37309,7 +37322,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
37309
37322
  })
37310
37323
  }).json();
37311
37324
  }
37312
- async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
37325
+ async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
37313
37326
  const response = await httpClient.get(`organizations/${organization_id}/users`, {
37314
37327
  signal,
37315
37328
  searchParams: buildSearchParams$2({
@@ -37330,7 +37343,6 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
37330
37343
  include_rates,
37331
37344
  pinned_ids,
37332
37345
  has_group,
37333
- track_without_focus,
37334
37346
  cf_filter,
37335
37347
  include_custom_fields,
37336
37348
  include_calendar_integration
@@ -37432,20 +37444,10 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
37432
37444
  }
37433
37445
  //#endregion
37434
37446
  //#region ../focus-queries/dist/projects/requests.ts
37435
- async function getProjectsClassic(httpClient, organization_id, workspace_id, { include_task_counts, include_picker_parent_group_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
37447
+ async function getProjectsClassic(httpClient, organization_id, workspace_id, { page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
37436
37448
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
37437
37449
  signal,
37438
37450
  searchParams: buildSearchParams$2({
37439
- include_task_counts,
37440
- include_picker_parent_group_counts,
37441
- task_archived,
37442
- task_recurring,
37443
- task_state,
37444
- task_source,
37445
- task_assignee_user_id,
37446
- task_assignee_team_id,
37447
- task_include_unassigned,
37448
- task_name,
37449
37451
  page,
37450
37452
  per_page,
37451
37453
  order_by,
@@ -37695,7 +37697,7 @@ async function restoreStatuses(httpClient, workspace_id, status_id, signal) {
37695
37697
  }
37696
37698
  //#endregion
37697
37699
  //#region ../focus-queries/dist/tasks/requests.ts
37698
- 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_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, 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) {
37700
+ 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) {
37699
37701
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
37700
37702
  signal,
37701
37703
  searchParams: buildSearchParams$2({
@@ -37708,6 +37710,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
37708
37710
  toggl_user_id,
37709
37711
  name,
37710
37712
  has_time_entries,
37713
+ has_time_blocks,
37711
37714
  has_dates,
37712
37715
  private: private_,
37713
37716
  archived,
@@ -37730,6 +37733,10 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
37730
37733
  priority,
37731
37734
  is_priority,
37732
37735
  state,
37736
+ timeblock_start_from,
37737
+ timeblock_start_until,
37738
+ time_block_id,
37739
+ time_block_completed,
37733
37740
  team_id,
37734
37741
  assignee_team_id,
37735
37742
  assignee_user_id,
@@ -37741,11 +37748,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
37741
37748
  include_assignees,
37742
37749
  include_parent_matches,
37743
37750
  disable_aggregations,
37744
- cf_filter,
37745
- recurring_occurrences_after,
37746
- max_recurring_occurrences_after,
37747
- recurring_task_read,
37748
- include_projected_occurrences
37751
+ cf_filter
37749
37752
  })
37750
37753
  }).json();
37751
37754
  }
@@ -37820,46 +37823,16 @@ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id,
37820
37823
  })
37821
37824
  }).json();
37822
37825
  }
37823
- async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, skip_provider_refresh, signal) {
37826
+ async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, signal) {
37824
37827
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
37825
37828
  signal,
37826
37829
  searchParams: buildSearchParams$2({
37827
37830
  date_from,
37828
- date_to,
37829
- skip_provider_refresh
37830
- })
37831
- }).json();
37832
- }
37833
- async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, search, only_me, page, per_page } = {}, signal) {
37834
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
37835
- signal,
37836
- searchParams: buildSearchParams$2({
37837
- project_id,
37838
- without_project,
37839
- pinned_only,
37840
- include_unassigned,
37841
- search,
37842
- only_me,
37843
- page,
37844
- per_page
37845
- })
37846
- }).json();
37847
- }
37848
- async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, search, only_me, page, per_page } = {}, signal) {
37849
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
37850
- signal,
37851
- searchParams: buildSearchParams$2({
37852
- project_id,
37853
- without_project,
37854
- include_unassigned,
37855
- search,
37856
- only_me,
37857
- page,
37858
- per_page
37831
+ date_to
37859
37832
  })
37860
37833
  }).json();
37861
37834
  }
37862
- 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) {
37835
+ 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) {
37863
37836
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
37864
37837
  signal,
37865
37838
  searchParams: buildSearchParams$2({
@@ -37875,15 +37848,11 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
37875
37848
  assignee_team_id,
37876
37849
  assignee_user_id,
37877
37850
  tag_id,
37878
- include_assignees,
37879
- recurring_occurrences_after,
37880
- max_recurring_occurrences_after,
37881
- recurring_task_read,
37882
- include_projected_occurrences
37851
+ include_assignees
37883
37852
  })
37884
37853
  }).json();
37885
37854
  }
37886
- 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_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, 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) {
37855
+ 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) {
37887
37856
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
37888
37857
  signal,
37889
37858
  searchParams: buildSearchParams$2({
@@ -37895,6 +37864,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
37895
37864
  name,
37896
37865
  include_parent_matches,
37897
37866
  has_time_entries,
37867
+ has_time_blocks,
37898
37868
  has_dates,
37899
37869
  private: private_,
37900
37870
  archived,
@@ -37917,6 +37887,8 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
37917
37887
  priority,
37918
37888
  is_priority,
37919
37889
  state,
37890
+ time_block_id,
37891
+ time_block_completed,
37920
37892
  team_id,
37921
37893
  assignee_team_id,
37922
37894
  assignee_user_id,
@@ -37925,11 +37897,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
37925
37897
  recurring_task_ids,
37926
37898
  client_id,
37927
37899
  include_assignees,
37928
- cf_filter,
37929
- recurring_occurrences_after,
37930
- max_recurring_occurrences_after,
37931
- recurring_task_read,
37932
- include_projected_occurrences
37900
+ cf_filter
37933
37901
  })
37934
37902
  }).json();
37935
37903
  }
@@ -37984,12 +37952,6 @@ async function getTaskWithChildrenClassic(httpClient, organization_id, workspace
37984
37952
  })
37985
37953
  }).json();
37986
37954
  }
37987
- async function createRecurringOccurrence(httpClient, organization_id, workspace_id, task_id, return_occurrence, signal) {
37988
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/occurrences`, {
37989
- signal,
37990
- searchParams: buildSearchParams$2({ return_occurrence })
37991
- }).json();
37992
- }
37993
37955
  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) {
37994
37956
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
37995
37957
  signal,
@@ -38015,7 +37977,7 @@ async function unarchiveTask(httpClient, organization_id, workspace_id, task_id,
38015
37977
  }
38016
37978
  //#endregion
38017
37979
  //#region ../focus-queries/dist/time-entries/requests.ts
38018
- async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived } = {}, signal) {
37980
+ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived, time_block_id } = {}, signal) {
38019
37981
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
38020
37982
  signal,
38021
37983
  searchParams: buildSearchParams$2({
@@ -38023,28 +37985,21 @@ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, wor
38023
37985
  per_page,
38024
37986
  order_by,
38025
37987
  type,
38026
- archived
37988
+ archived,
37989
+ time_block_id
38027
37990
  })
38028
37991
  }).json();
38029
37992
  }
38030
- async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, return_occurrence, signal) {
37993
+ async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
38031
37994
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
38032
37995
  signal,
38033
- json: data,
38034
- searchParams: buildSearchParams$2({
38035
- from_recurring_task_id,
38036
- return_occurrence
38037
- })
37996
+ json: data
38038
37997
  }).json();
38039
37998
  }
38040
- async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, from_recurring_task_id, return_occurrence, signal) {
37999
+ async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
38041
38000
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
38042
38001
  signal,
38043
- json: data,
38044
- searchParams: buildSearchParams$2({
38045
- from_recurring_task_id,
38046
- return_occurrence
38047
- })
38002
+ json: data
38048
38003
  }).json();
38049
38004
  }
38050
38005
  async function getBatchTimeEntriesWithOrg(httpClient, organization_id, workspace_id, { ids }, signal) {
@@ -38095,7 +38050,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
38095
38050
  json: data
38096
38051
  }).json();
38097
38052
  }
38098
- 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) {
38053
+ 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) {
38099
38054
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
38100
38055
  signal,
38101
38056
  searchParams: buildSearchParams$2({
@@ -38103,7 +38058,6 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
38103
38058
  date_to,
38104
38059
  task_id,
38105
38060
  status_id,
38106
- project_id,
38107
38061
  type,
38108
38062
  order_by,
38109
38063
  archived,
@@ -38118,36 +38072,28 @@ async function syncTimeEntry(httpClient, organization_id, workspace_id, client_u
38118
38072
  json: data
38119
38073
  }).json();
38120
38074
  }
38075
+ async function getStreamTimeEntriesTimeBlockIdsWithOrg(httpClient, organization_id, workspace_id, { time_block_id }, signal) {
38076
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/time-block-ids/stream`, {
38077
+ signal,
38078
+ searchParams: buildSearchParams$2({ time_block_id })
38079
+ }).json();
38080
+ }
38121
38081
  async function getTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
38122
38082
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
38123
38083
  }
38124
- async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
38084
+ async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
38125
38085
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
38126
38086
  signal,
38127
- json: data,
38128
- searchParams: buildSearchParams$2({
38129
- from_recurring_task_id,
38130
- return_occurrence
38131
- })
38087
+ json: data
38132
38088
  }).json();
38133
38089
  }
38134
- async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, from_recurring_task_id, return_occurrence, signal) {
38135
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
38136
- signal,
38137
- searchParams: buildSearchParams$2({
38138
- from_recurring_task_id,
38139
- return_occurrence
38140
- })
38141
- }).json();
38090
+ async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
38091
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
38142
38092
  }
38143
- async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
38093
+ async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
38144
38094
  return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
38145
38095
  signal,
38146
- json: data,
38147
- searchParams: buildSearchParams$2({
38148
- from_recurring_task_id,
38149
- return_occurrence
38150
- })
38096
+ json: data
38151
38097
  }).json();
38152
38098
  }
38153
38099
  async function archiveTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
@@ -38262,7 +38208,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38262
38208
  ]))
38263
38209
  });
38264
38210
  //#endregion
38265
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38211
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.90_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a4bd5962c76e60f798635f731c30e246/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38266
38212
  async function getInvitations(httpClient, signal) {
38267
38213
  return (await httpClient.get(`invitations`, { signal })).json();
38268
38214
  }
@@ -38279,7 +38225,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38279
38225
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38280
38226
  }
38281
38227
  //#endregion
38282
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38228
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.90_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a4bd5962c76e60f798635f731c30e246/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38283
38229
  function buildSearchParams(params, flattenArrays = false) {
38284
38230
  const searchParams = new URLSearchParams();
38285
38231
  Object.entries(params).forEach(([key, value]) => {
@@ -38291,7 +38237,7 @@ function buildSearchParams(params, flattenArrays = false) {
38291
38237
  return searchParams;
38292
38238
  }
38293
38239
  //#endregion
38294
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38240
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.90_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a4bd5962c76e60f798635f731c30e246/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38295
38241
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38296
38242
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38297
38243
  }
@@ -38305,7 +38251,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38305
38251
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38306
38252
  }
38307
38253
  //#endregion
38308
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38254
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.90_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a4bd5962c76e60f798635f731c30e246/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38309
38255
  async function getWorkspaces(httpClient, organization_id, signal) {
38310
38256
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38311
38257
  }
@@ -38314,7 +38260,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
38314
38260
  }
38315
38261
  const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
38316
38262
  working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
38317
- starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
38263
+ starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(24))),
38318
38264
  weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
38319
38265
  });
38320
38266
  const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
@@ -38325,7 +38271,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38325
38271
  });
38326
38272
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38327
38273
  //#endregion
38328
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38274
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.90_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a4bd5962c76e60f798635f731c30e246/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38329
38275
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38330
38276
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38331
38277
  signal,
@@ -38336,12 +38282,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38336
38282
  })).json();
38337
38283
  }
38338
38284
  //#endregion
38339
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38285
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.90_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a4bd5962c76e60f798635f731c30e246/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38340
38286
  async function getStatus(httpClient, signal) {
38341
38287
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38342
38288
  }
38343
38289
  //#endregion
38344
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38290
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.90_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a4bd5962c76e60f798635f731c30e246/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38345
38291
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38346
38292
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38347
38293
  signal,
@@ -38369,7 +38315,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38369
38315
  return response.json();
38370
38316
  }
38371
38317
  //#endregion
38372
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38318
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.90_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a4bd5962c76e60f798635f731c30e246/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38373
38319
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38374
38320
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38375
38321
  }
@@ -41973,15 +41919,13 @@ async function getWorkspaceAttachmentStorage(httpClient, organization_id, worksp
41973
41919
  }
41974
41920
  //#endregion
41975
41921
  //#region ../focus-queries/dist/audit-log/requests.ts
41976
- 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) {
41922
+ async function getOrganizationAuditLog(httpClient, organization_id, from, to, { workspace_id, entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
41977
41923
  return await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
41978
41924
  signal,
41979
41925
  searchParams: buildSearchParams$2({
41980
41926
  workspace_id,
41981
41927
  entity_type,
41982
41928
  entity_id,
41983
- project_id,
41984
- custom_field_id,
41985
41929
  action,
41986
41930
  user_id,
41987
41931
  page_size,
@@ -41990,14 +41934,12 @@ async function getOrganizationAuditLog(httpClient, organization_id, from, to, {
41990
41934
  })
41991
41935
  }).json();
41992
41936
  }
41993
- 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) {
41937
+ async function getAuditLog(httpClient, organization_id, workspace_id, from, to, { entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
41994
41938
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
41995
41939
  signal,
41996
41940
  searchParams: buildSearchParams$2({
41997
41941
  entity_type,
41998
41942
  entity_id,
41999
- project_id,
42000
- custom_field_id,
42001
41943
  action,
42002
41944
  user_id,
42003
41945
  page_size,
@@ -42150,14 +42092,13 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
42150
42092
  }
42151
42093
  //#endregion
42152
42094
  //#region ../focus-queries/dist/capacities/requests.ts
42153
- 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) {
42095
+ 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) {
42154
42096
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
42155
42097
  signal,
42156
42098
  searchParams: buildSearchParams$2({
42099
+ user_id,
42157
42100
  start_date,
42158
42101
  end_date,
42159
- user_id,
42160
- team_id,
42161
42102
  private: private_,
42162
42103
  task_source,
42163
42104
  unit,
@@ -42217,15 +42158,6 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
42217
42158
  async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
42218
42159
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
42219
42160
  }
42220
- async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
42221
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
42222
- }
42223
- async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
42224
- return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
42225
- signal,
42226
- json: data
42227
- }).json();
42228
- }
42229
42161
  async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
42230
42162
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
42231
42163
  signal,
@@ -42265,61 +42197,6 @@ async function patchUserCustomFieldValues(httpClient, organization_id, workspace
42265
42197
  }).json();
42266
42198
  }
42267
42199
  //#endregion
42268
- //#region ../focus-queries/dist/designations/requests.ts
42269
- async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { name, page, per_page, order_by } = {}, signal) {
42270
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
42271
- signal,
42272
- searchParams: buildSearchParams$2({
42273
- name,
42274
- page,
42275
- per_page,
42276
- order_by
42277
- })
42278
- }).json();
42279
- }
42280
- async function createWorkspaceDesignation(httpClient, organization_id, workspace_id, data, signal) {
42281
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
42282
- signal,
42283
- json: data
42284
- }).json();
42285
- }
42286
- async function bulkCreateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
42287
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
42288
- signal,
42289
- json: data
42290
- }).json();
42291
- }
42292
- async function bulkDeleteWorkspaceDesignations(httpClient, organization_id, workspace_id, ids, all_or_none, signal) {
42293
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
42294
- signal,
42295
- searchParams: buildSearchParams$2({
42296
- ids,
42297
- all_or_none
42298
- })
42299
- }).json();
42300
- }
42301
- async function bulkUpdateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
42302
- return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
42303
- signal,
42304
- json: data
42305
- }).json();
42306
- }
42307
- async function updateWorkspaceDesignationMembers(httpClient, organization_id, workspace_id, data, signal) {
42308
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/members`, {
42309
- signal,
42310
- json: data
42311
- }).json();
42312
- }
42313
- async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
42314
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal }).json();
42315
- }
42316
- async function updateWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, data, signal) {
42317
- return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, {
42318
- signal,
42319
- json: data
42320
- }).json();
42321
- }
42322
- //#endregion
42323
42200
  //#region ../focus-queries/dist/goals/requests.ts
42324
42201
  async function createGoal(httpClient, organization_id, workspace_id, data, signal) {
42325
42202
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals`, {
@@ -42544,7 +42421,7 @@ async function restoreMilestone(httpClient, workspace_id, milestone_id, signal)
42544
42421
  }
42545
42422
  //#endregion
42546
42423
  //#region ../focus-queries/dist/project-groups/requests.ts
42547
- async function getProjectGroupsClassic(httpClient, organization_id, workspace_id, group, { page, per_page, order_by, project_order_by, projects_per_group, include_group_totals, include_unassigned, archived, completed, private: private_, name, client_id, creator_id, tag_id, parent_project_id, assignee_user_id, project_id, start_date, end_date, user_id, only_me, include_drafts, include_recurring_series, cf_filter } = {}, signal) {
42424
+ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id, group, { page, per_page, order_by, project_order_by, projects_per_group, include_group_totals, include_unassigned, archived, completed, private: private_, name, client_id, creator_id, tag_id, parent_project_id, assignee_user_id, project_id, start_date, end_date, user_id, only_me, include_drafts, cf_filter } = {}, signal) {
42548
42425
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
42549
42426
  signal,
42550
42427
  searchParams: buildSearchParams$2({
@@ -42570,7 +42447,6 @@ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id
42570
42447
  user_id,
42571
42448
  only_me,
42572
42449
  include_drafts,
42573
- include_recurring_series,
42574
42450
  cf_filter
42575
42451
  })
42576
42452
  }).json();
@@ -42589,6 +42465,9 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
42589
42465
  json: data
42590
42466
  }).json();
42591
42467
  }
42468
+ async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
42469
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
42470
+ }
42592
42471
  async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
42593
42472
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
42594
42473
  }
@@ -42614,37 +42493,6 @@ async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id
42614
42493
  }).json();
42615
42494
  }
42616
42495
  //#endregion
42617
- //#region ../focus-queries/dist/publicsharedreports/requests.ts
42618
- async function openPublicSharedReport(httpClient, token, signal) {
42619
- return await httpClient.get(`shared/${token}`, { signal }).json();
42620
- }
42621
- async function profitabilityPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
42622
- return await httpClient.post(`shared/${token}/profitability`, {
42623
- signal,
42624
- json: data,
42625
- searchParams: buildSearchParams$2({
42626
- response_format,
42627
- include_dicts
42628
- })
42629
- }).json();
42630
- }
42631
- async function queryPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
42632
- return await httpClient.post(`shared/${token}/query`, {
42633
- signal,
42634
- json: data,
42635
- searchParams: buildSearchParams$2({
42636
- response_format,
42637
- include_dicts
42638
- })
42639
- }).json();
42640
- }
42641
- async function workloadPublicSharedReport(httpClient, token, data, signal) {
42642
- return await httpClient.post(`shared/${token}/workload`, {
42643
- signal,
42644
- json: data
42645
- }).json();
42646
- }
42647
- //#endregion
42648
42496
  //#region ../focus-queries/dist/rates/requests.ts
42649
42497
  async function getProjectRatesSummary(httpClient, organization_id, workspace_id, { page, rows, order_by, search } = {}, signal) {
42650
42498
  const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/rates`, {
@@ -42806,7 +42654,7 @@ async function updateASavedView(httpClient, workspace_id, id, data, signal) {
42806
42654
  }
42807
42655
  //#endregion
42808
42656
  //#region ../focus-queries/dist/search/requests.ts
42809
- async function search(httpClient, organization_id, workspace_id, { keyword, per_group, assignee_user_id, assignee_team_id, include_unassigned, project_id, task_id, include_drafts, exclude_calendar_events, group_by_tags, only_me }, signal) {
42657
+ async function search(httpClient, organization_id, workspace_id, { keyword, per_group, assignee_user_id, assignee_team_id, project_id, task_id, include_drafts, exclude_calendar_events, group_by_tags, only_me }, signal) {
42810
42658
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
42811
42659
  signal,
42812
42660
  searchParams: buildSearchParams$2({
@@ -42814,7 +42662,6 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
42814
42662
  per_group,
42815
42663
  assignee_user_id,
42816
42664
  assignee_team_id,
42817
- include_unassigned,
42818
42665
  project_id,
42819
42666
  task_id,
42820
42667
  include_drafts,
@@ -42859,18 +42706,6 @@ async function getSharedReportsSharedWithMe(httpClient, workspace_id, signal) {
42859
42706
  async function getSharedReportForViewer(httpClient, workspace_id, id, signal) {
42860
42707
  return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
42861
42708
  }
42862
- async function unshareSharedReport(httpClient, workspace_id, id, signal) {
42863
- return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
42864
- }
42865
- async function getSharedReportDates(httpClient, workspace_id, id, signal) {
42866
- return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}/dates`, { signal }).json();
42867
- }
42868
- async function setSharedReportDatesLock(httpClient, workspace_id, id, data, signal) {
42869
- return await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/dates`, {
42870
- signal,
42871
- json: data
42872
- }).json();
42873
- }
42874
42709
  async function addSharedReportGrants(httpClient, workspace_id, id, data, signal) {
42875
42710
  return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
42876
42711
  signal,
@@ -42880,21 +42715,6 @@ async function addSharedReportGrants(httpClient, workspace_id, id, data, signal)
42880
42715
  async function revokeSharedReportGrant(httpClient, workspace_id, id, grant_id, signal) {
42881
42716
  return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/grants/${grant_id}`, { signal }).json();
42882
42717
  }
42883
- async function mintSharedReportLink(httpClient, workspace_id, id, data, signal) {
42884
- return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
42885
- signal,
42886
- json: data
42887
- }).json();
42888
- }
42889
- async function revokeSharedReportLink(httpClient, workspace_id, id, signal) {
42890
- return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/link`, { signal }).json();
42891
- }
42892
- async function rotateSharedReportLink(httpClient, workspace_id, id, data, signal) {
42893
- return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
42894
- signal,
42895
- json: data
42896
- }).json();
42897
- }
42898
42718
  //#endregion
42899
42719
  //#region ../focus-queries/dist/subscriptions/requests.ts
42900
42720
  async function getCurrentSubscription(httpClient, organization_id, signal) {
@@ -42951,10 +42771,9 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
42951
42771
  }
42952
42772
  //#endregion
42953
42773
  //#region ../focus-queries/dist/task-groups/requests.ts
42954
- 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) {
42774
+ 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) {
42955
42775
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
42956
42776
  signal,
42957
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
42958
42777
  searchParams: buildSearchParams$2({
42959
42778
  project_id,
42960
42779
  source,
@@ -42983,18 +42802,13 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
42983
42802
  min_days,
42984
42803
  include_drafts,
42985
42804
  cf_filter,
42986
- user_cf_filter,
42987
- recurring_occurrences_after,
42988
- max_recurring_occurrences_after,
42989
- recurring_task_read,
42990
- include_projected_occurrences
42805
+ user_cf_filter
42991
42806
  })
42992
42807
  }).json();
42993
42808
  }
42994
- 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) {
42809
+ 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) {
42995
42810
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
42996
42811
  signal,
42997
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
42998
42812
  searchParams: buildSearchParams$2({
42999
42813
  team_id,
43000
42814
  project_id,
@@ -43023,18 +42837,13 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
43023
42837
  min_days,
43024
42838
  include_drafts,
43025
42839
  cf_filter,
43026
- user_cf_filter,
43027
- recurring_occurrences_after,
43028
- max_recurring_occurrences_after,
43029
- recurring_task_read,
43030
- include_projected_occurrences
42840
+ user_cf_filter
43031
42841
  })
43032
42842
  }).json();
43033
42843
  }
43034
- 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) {
42844
+ 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) {
43035
42845
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
43036
42846
  signal,
43037
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
43038
42847
  searchParams: buildSearchParams$2({
43039
42848
  source,
43040
42849
  priority,
@@ -43064,10 +42873,6 @@ async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, g
43064
42873
  include_drafts,
43065
42874
  cf_filter,
43066
42875
  user_cf_filter,
43067
- recurring_occurrences_after,
43068
- max_recurring_occurrences_after,
43069
- recurring_task_read,
43070
- include_projected_occurrences,
43071
42876
  page,
43072
42877
  per_page,
43073
42878
  order_by
@@ -43095,6 +42900,104 @@ async function getProjectSuggestionsForMultipleTasks(httpClient, organization_id
43095
42900
  }).json();
43096
42901
  }
43097
42902
  //#endregion
42903
+ //#region ../focus-queries/dist/time-blocks/requests.ts
42904
+ async function getTaskTimeBlocksWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, archived } = {}, signal) {
42905
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
42906
+ signal,
42907
+ searchParams: buildSearchParams$2({
42908
+ page,
42909
+ per_page,
42910
+ order_by,
42911
+ archived
42912
+ })
42913
+ }).json();
42914
+ }
42915
+ async function createTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
42916
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
42917
+ signal,
42918
+ json: data
42919
+ }).json();
42920
+ }
42921
+ async function getTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
42922
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, { signal }).json();
42923
+ }
42924
+ async function updateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
42925
+ return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
42926
+ signal,
42927
+ json: data
42928
+ }).json();
42929
+ }
42930
+ async function deleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, outbound_sync, signal) {
42931
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
42932
+ signal,
42933
+ searchParams: buildSearchParams$2({ outbound_sync })
42934
+ }).json();
42935
+ }
42936
+ async function partialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
42937
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
42938
+ signal,
42939
+ json: data
42940
+ }).json();
42941
+ }
42942
+ async function archiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
42943
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/archive`, { signal }).json();
42944
+ }
42945
+ async function restoreTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
42946
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/restore`, { signal }).json();
42947
+ }
42948
+ async function unarchiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
42949
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/unarchive`, { signal }).json();
42950
+ }
42951
+ async function getTimeBlocksRangeWithOrgClassic(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, page, per_page, archived, order_by }, signal) {
42952
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks`, {
42953
+ signal,
42954
+ searchParams: buildSearchParams$2({
42955
+ date_from,
42956
+ date_to,
42957
+ task_id,
42958
+ status_id,
42959
+ page,
42960
+ per_page,
42961
+ archived,
42962
+ order_by
42963
+ })
42964
+ }).json();
42965
+ }
42966
+ async function bulkCreateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
42967
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
42968
+ signal,
42969
+ json: data
42970
+ }).json();
42971
+ }
42972
+ async function bulkDeleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, ids, outbound_sync, signal) {
42973
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
42974
+ signal,
42975
+ searchParams: buildSearchParams$2({
42976
+ ids,
42977
+ outbound_sync
42978
+ })
42979
+ }).json();
42980
+ }
42981
+ async function bulkPartialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
42982
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
42983
+ signal,
42984
+ json: data
42985
+ }).json();
42986
+ }
42987
+ async function getTimeBlocksRangeStreamWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, archived, order_by }, signal) {
42988
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/stream`, {
42989
+ signal,
42990
+ searchParams: buildSearchParams$2({
42991
+ date_from,
42992
+ date_to,
42993
+ task_id,
42994
+ status_id,
42995
+ archived,
42996
+ order_by
42997
+ })
42998
+ }).json();
42999
+ }
43000
+ //#endregion
43098
43001
  //#region ../focus-queries/dist/time-entry-constraints/requests.ts
43099
43002
  async function getTimeEntryConstraints(httpClient, workspace_id, signal) {
43100
43003
  return await httpClient.get(`workspaces/${workspace_id}/time-entry-constraints`, { signal }).json();
@@ -43132,12 +43035,6 @@ async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, star
43132
43035
  })
43133
43036
  }).json();
43134
43037
  }
43135
- async function getTimeoffCategories(httpClient, organization_id, signal) {
43136
- return await httpClient.get(`organizations/${organization_id}/timeoff/categories`, { signal }).json();
43137
- }
43138
- async function getTimeoffCategory(httpClient, organization_id, category_id, signal) {
43139
- return await httpClient.get(`organizations/${organization_id}/timeoff/categories/${category_id}`, { signal }).json();
43140
- }
43141
43038
  async function getTimeoffForUser(httpClient, organization_id, user_id, { from, to }, signal) {
43142
43039
  return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}`, {
43143
43040
  signal,
@@ -43165,26 +43062,6 @@ async function deleteTimeoffForUser(httpClient, organization_id, user_id, data,
43165
43062
  json: data
43166
43063
  }).json();
43167
43064
  }
43168
- async function getTimeoffBalancesForUser(httpClient, organization_id, user_id, { category_id, date } = {}, signal) {
43169
- return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances`, {
43170
- signal,
43171
- searchParams: buildSearchParams$2({
43172
- category_id,
43173
- date
43174
- })
43175
- }).json();
43176
- }
43177
- async function getTimeoffBalanceChangesForUserClassic(httpClient, organization_id, user_id, { category_id, year, page, rows }, signal) {
43178
- return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances/changes`, {
43179
- signal,
43180
- searchParams: buildSearchParams$2({
43181
- category_id,
43182
- year,
43183
- page,
43184
- rows
43185
- })
43186
- }).json();
43187
- }
43188
43065
  //#endregion
43189
43066
  //#region ../focus-queries/dist/timesheet-setups/requests.ts
43190
43067
  async function getTimesheetSetups(httpClient, organization_id, workspace_id, { include_discontinued, user_account_id, approver_user_account_id } = {}, signal) {
@@ -43285,19 +43162,6 @@ async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id,
43285
43162
  json: data
43286
43163
  }).json();
43287
43164
  }
43288
- async function getTimesheetStatusCounts(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids }, signal) {
43289
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
43290
- signal,
43291
- searchParams: buildSearchParams$2({
43292
- date_from,
43293
- date_to,
43294
- setup_id,
43295
- user_account_ids,
43296
- approver_user_account_ids,
43297
- team_ids
43298
- })
43299
- }).json();
43300
- }
43301
43165
  async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
43302
43166
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal }).json();
43303
43167
  }
@@ -43341,21 +43205,7 @@ async function withdrawTimesheet(httpClient, organization_id, workspace_id, setu
43341
43205
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal }).json();
43342
43206
  }
43343
43207
  //#endregion
43344
- //#region ../focus-queries/dist/track-team-invites/requests.ts
43345
- async function postTrackTeamInvites(httpClient, organization_id, workspace_id, data, signal) {
43346
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
43347
- signal,
43348
- json: data
43349
- }).json();
43350
- }
43351
- //#endregion
43352
43208
  //#region ../focus-queries/dist/user-settings/requests.ts
43353
- async function emailUnsubscribePage(httpClient, token, signal) {
43354
- return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
43355
- }
43356
- async function emailUnsubscribe(httpClient, token, signal) {
43357
- return await httpClient.post(`email/unsubscribe/${token}`, { signal }).json();
43358
- }
43359
43209
  async function getUserSettings(httpClient, signal) {
43360
43210
  return await httpClient.get(`users/me/settings`, { signal }).json();
43361
43211
  }
@@ -43595,7 +43445,6 @@ const generatedFocusOperations = [
43595
43445
  mcp: { entityTool: "audit-log" },
43596
43446
  inputSchema: /* @__PURE__ */ looseObject({
43597
43447
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43598
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43599
43448
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43600
43449
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43601
43450
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -43603,7 +43452,6 @@ const generatedFocusOperations = [
43603
43452
  from: /* @__PURE__ */ string$1(),
43604
43453
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43605
43454
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43606
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43607
43455
  to: /* @__PURE__ */ string$1(),
43608
43456
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43609
43457
  workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -43637,7 +43485,6 @@ const generatedFocusOperations = [
43637
43485
  mcp: { entityTool: "audit-log" },
43638
43486
  inputSchema: /* @__PURE__ */ looseObject({
43639
43487
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43640
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43641
43488
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43642
43489
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43643
43490
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -43645,7 +43492,6 @@ const generatedFocusOperations = [
43645
43492
  from: /* @__PURE__ */ string$1(),
43646
43493
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43647
43494
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43648
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43649
43495
  to: /* @__PURE__ */ string$1(),
43650
43496
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
43651
43497
  }),
@@ -43685,7 +43531,6 @@ const generatedFocusOperations = [
43685
43531
  private_: /* @__PURE__ */ unknown$1(),
43686
43532
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
43687
43533
  task_source: /* @__PURE__ */ unknown$1(),
43688
- team_id: /* @__PURE__ */ number$2(),
43689
43534
  unit: /* @__PURE__ */ unknown$1(),
43690
43535
  user_id: /* @__PURE__ */ number$2()
43691
43536
  }),
@@ -43935,6 +43780,8 @@ const generatedFocusOperations = [
43935
43780
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
43936
43781
  estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
43937
43782
  estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43783
+ integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43784
+ integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
43938
43785
  notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
43939
43786
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43940
43787
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -43968,6 +43815,8 @@ const generatedFocusOperations = [
43968
43815
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
43969
43816
  estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
43970
43817
  estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43818
+ integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43819
+ integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
43971
43820
  notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
43972
43821
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
43973
43822
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
@@ -43983,6 +43832,12 @@ const generatedFocusOperations = [
43983
43832
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
43984
43833
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
43985
43834
  }))),
43835
+ time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
43836
+ start: apiDateTimeString,
43837
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
43838
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43839
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
43840
+ }))),
43986
43841
  time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
43987
43842
  type: /* @__PURE__ */ picklist$1(["activity", "break"]),
43988
43843
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -43992,6 +43847,13 @@ const generatedFocusOperations = [
43992
43847
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43993
43848
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
43994
43849
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
43850
+ time_block: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
43851
+ start: apiDateTimeString,
43852
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
43853
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43854
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
43855
+ })),
43856
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43995
43857
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
43996
43858
  }))
43997
43859
  }) }),
@@ -44109,33 +43971,6 @@ const generatedFocusOperations = [
44109
43971
  ]));
44110
43972
  }
44111
43973
  },
44112
- {
44113
- id: "focus.custom-fields.get-allowed-users",
44114
- family: "focus",
44115
- resource: "custom-fields",
44116
- action: "get-allowed-users",
44117
- title: "Get Allowed Users Custom Fields",
44118
- description: "Get Allowed Users Custom Fields.",
44119
- safety: "read",
44120
- destructive: false,
44121
- cli: {
44122
- group: ["custom-fields"],
44123
- command: "get-allowed-users",
44124
- interactive: "available"
44125
- },
44126
- mcp: { entityTool: "custom-fields" },
44127
- inputSchema: /* @__PURE__ */ looseObject({ custom_field_id: /* @__PURE__ */ number$2() }),
44128
- execute: (input, { client }) => {
44129
- const data = input;
44130
- return client.runGeneratedRequest("getCustomFieldAllowedUsers", () => callGeneratedRequest(getCustomFieldAllowedUsers, [
44131
- client.httpClient,
44132
- client.organizationId,
44133
- client.workspaceIdNumber,
44134
- data.custom_field_id,
44135
- void 0
44136
- ]));
44137
- }
44138
- },
44139
43974
  {
44140
43975
  id: "focus.custom-fields.list",
44141
43976
  family: "focus",
@@ -44305,37 +44140,6 @@ const generatedFocusOperations = [
44305
44140
  ]));
44306
44141
  }
44307
44142
  },
44308
- {
44309
- id: "focus.custom-fields.replace-custom-field-allowed-users",
44310
- family: "focus",
44311
- resource: "custom-fields",
44312
- action: "replace-custom-field-allowed-users",
44313
- title: "Replace Custom Field Allowed Users Custom Fields",
44314
- description: "Replace Custom Field Allowed Users Custom Fields.",
44315
- safety: "update",
44316
- destructive: false,
44317
- cli: {
44318
- group: ["custom-fields"],
44319
- command: "replace-custom-field-allowed-users",
44320
- interactive: "default"
44321
- },
44322
- mcp: { entityTool: "custom-fields" },
44323
- inputSchema: /* @__PURE__ */ looseObject({
44324
- custom_field_id: /* @__PURE__ */ number$2(),
44325
- payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) })
44326
- }),
44327
- execute: (input, { client }) => {
44328
- const data = input;
44329
- return client.runGeneratedRequest("replaceCustomFieldAllowedUsers", () => callGeneratedRequest(replaceCustomFieldAllowedUsers, [
44330
- client.httpClient,
44331
- client.organizationId,
44332
- client.workspaceIdNumber,
44333
- data.custom_field_id,
44334
- data.payload ?? data.data ?? data,
44335
- void 0
44336
- ]));
44337
- }
44338
- },
44339
44143
  {
44340
44144
  id: "focus.custom-fields.update",
44341
44145
  family: "focus",
@@ -44466,256 +44270,6 @@ const generatedFocusOperations = [
44466
44270
  ]));
44467
44271
  }
44468
44272
  },
44469
- {
44470
- id: "focus.designations.bulk-create-workspace",
44471
- family: "focus",
44472
- resource: "designations",
44473
- action: "bulk-create-workspace",
44474
- title: "Bulk Create Workspace Designations",
44475
- description: "Bulk Create Workspace Designations.",
44476
- safety: "create",
44477
- destructive: false,
44478
- cli: {
44479
- group: ["designations", "bulk"],
44480
- command: "create-workspace",
44481
- interactive: "default"
44482
- },
44483
- mcp: { entityTool: "designations" },
44484
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
44485
- name: /* @__PURE__ */ string$1(),
44486
- member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44487
- })) }) }),
44488
- execute: (input, { client }) => {
44489
- const data = input;
44490
- return client.runGeneratedRequest("bulkCreateWorkspaceDesignations", () => callGeneratedRequest(bulkCreateWorkspaceDesignations, [
44491
- client.httpClient,
44492
- client.organizationId,
44493
- client.workspaceIdNumber,
44494
- data.payload ?? data.data ?? data,
44495
- void 0
44496
- ]));
44497
- }
44498
- },
44499
- {
44500
- id: "focus.designations.bulk-delete-workspace",
44501
- family: "focus",
44502
- resource: "designations",
44503
- action: "bulk-delete-workspace",
44504
- title: "Bulk Delete Workspace Designations",
44505
- description: "Bulk Delete Workspace Designations.",
44506
- safety: "delete",
44507
- destructive: true,
44508
- cli: {
44509
- group: ["designations", "bulk"],
44510
- command: "delete-workspace",
44511
- interactive: "default"
44512
- },
44513
- mcp: { entityTool: "designations" },
44514
- inputSchema: /* @__PURE__ */ looseObject({
44515
- all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44516
- ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2())
44517
- }),
44518
- execute: (input, { client }) => {
44519
- const data = input;
44520
- return client.runGeneratedRequest("bulkDeleteWorkspaceDesignations", () => callGeneratedRequest(bulkDeleteWorkspaceDesignations, [
44521
- client.httpClient,
44522
- client.organizationId,
44523
- client.workspaceIdNumber,
44524
- data.ids,
44525
- data.all_or_none,
44526
- void 0
44527
- ]));
44528
- }
44529
- },
44530
- {
44531
- id: "focus.designations.bulk-update-workspace",
44532
- family: "focus",
44533
- resource: "designations",
44534
- action: "bulk-update-workspace",
44535
- title: "Bulk Update Workspace Designations",
44536
- description: "Bulk Update Workspace Designations.",
44537
- safety: "update",
44538
- destructive: false,
44539
- cli: {
44540
- group: ["designations", "bulk"],
44541
- command: "update-workspace",
44542
- interactive: "default"
44543
- },
44544
- mcp: { entityTool: "designations" },
44545
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44546
- designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
44547
- id: /* @__PURE__ */ number$2(),
44548
- name: /* @__PURE__ */ string$1()
44549
- })),
44550
- all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
44551
- }) }),
44552
- execute: (input, { client }) => {
44553
- const data = input;
44554
- return client.runGeneratedRequest("bulkUpdateWorkspaceDesignations", () => callGeneratedRequest(bulkUpdateWorkspaceDesignations, [
44555
- client.httpClient,
44556
- client.organizationId,
44557
- client.workspaceIdNumber,
44558
- data.payload ?? data.data ?? data,
44559
- void 0
44560
- ]));
44561
- }
44562
- },
44563
- {
44564
- id: "focus.designations.create-workspace",
44565
- family: "focus",
44566
- resource: "designations",
44567
- action: "create-workspace",
44568
- title: "Create Workspace Designations",
44569
- description: "Create Workspace Designations.",
44570
- safety: "create",
44571
- destructive: false,
44572
- cli: {
44573
- group: ["designations"],
44574
- command: "create-workspace",
44575
- interactive: "default"
44576
- },
44577
- mcp: { entityTool: "designations" },
44578
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44579
- name: /* @__PURE__ */ string$1(),
44580
- member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44581
- }) }),
44582
- execute: (input, { client }) => {
44583
- const data = input;
44584
- return client.runGeneratedRequest("createWorkspaceDesignation", () => callGeneratedRequest(createWorkspaceDesignation, [
44585
- client.httpClient,
44586
- client.organizationId,
44587
- client.workspaceIdNumber,
44588
- data.payload ?? data.data ?? data,
44589
- void 0
44590
- ]));
44591
- }
44592
- },
44593
- {
44594
- id: "focus.designations.delete-workspace",
44595
- family: "focus",
44596
- resource: "designations",
44597
- action: "delete-workspace",
44598
- title: "Delete Workspace Designations",
44599
- description: "Delete Workspace Designations.",
44600
- safety: "delete",
44601
- destructive: true,
44602
- cli: {
44603
- group: ["designations"],
44604
- command: "delete-workspace",
44605
- interactive: "default"
44606
- },
44607
- mcp: { entityTool: "designations" },
44608
- inputSchema: /* @__PURE__ */ looseObject({ designation_id: /* @__PURE__ */ number$2() }),
44609
- execute: (input, { client }) => {
44610
- const data = input;
44611
- return client.runGeneratedRequest("deleteWorkspaceDesignation", () => callGeneratedRequest(deleteWorkspaceDesignation, [
44612
- client.httpClient,
44613
- client.organizationId,
44614
- client.workspaceIdNumber,
44615
- data.designation_id,
44616
- void 0
44617
- ]));
44618
- }
44619
- },
44620
- {
44621
- id: "focus.designations.get-workspace-designations",
44622
- family: "focus",
44623
- resource: "designations",
44624
- action: "get-workspace-designations",
44625
- title: "Get Workspace Designations Designations",
44626
- description: "Get Workspace Designations Designations.",
44627
- safety: "read",
44628
- destructive: false,
44629
- cli: {
44630
- group: ["designations"],
44631
- command: "get-workspace-designations",
44632
- interactive: "hidden"
44633
- },
44634
- mcp: { entityTool: "designations" },
44635
- inputSchema: /* @__PURE__ */ looseObject({
44636
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
44637
- order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
44638
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44639
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
44640
- }),
44641
- execute: (input, { client }) => {
44642
- const data = input;
44643
- return client.runGeneratedRequest("getWorkspaceDesignationsClassic", () => callGeneratedRequest(getWorkspaceDesignationsClassic, [
44644
- client.httpClient,
44645
- client.organizationId,
44646
- client.workspaceIdNumber,
44647
- data,
44648
- void 0
44649
- ]));
44650
- }
44651
- },
44652
- {
44653
- id: "focus.designations.update-workspace",
44654
- family: "focus",
44655
- resource: "designations",
44656
- action: "update-workspace",
44657
- title: "Update Workspace Designations",
44658
- description: "Update Workspace Designations.",
44659
- safety: "update",
44660
- destructive: false,
44661
- cli: {
44662
- group: ["designations"],
44663
- command: "update-workspace",
44664
- interactive: "default"
44665
- },
44666
- mcp: { entityTool: "designations" },
44667
- inputSchema: /* @__PURE__ */ looseObject({
44668
- designation_id: /* @__PURE__ */ number$2(),
44669
- payload: /* @__PURE__ */ looseObject({ name: /* @__PURE__ */ string$1() })
44670
- }),
44671
- execute: (input, { client }) => {
44672
- const data = input;
44673
- return client.runGeneratedRequest("updateWorkspaceDesignation", () => callGeneratedRequest(updateWorkspaceDesignation, [
44674
- client.httpClient,
44675
- client.organizationId,
44676
- client.workspaceIdNumber,
44677
- data.designation_id,
44678
- data.payload ?? data.data ?? data,
44679
- void 0
44680
- ]));
44681
- }
44682
- },
44683
- {
44684
- id: "focus.designations.update-workspace-designation-members",
44685
- family: "focus",
44686
- resource: "designations",
44687
- action: "update-workspace-designation-members",
44688
- title: "Update Workspace Designation Members Designations",
44689
- description: "Update Workspace Designation Members Designations.",
44690
- safety: "update",
44691
- destructive: false,
44692
- cli: {
44693
- group: ["designations"],
44694
- command: "update-workspace-designation-members",
44695
- interactive: "default"
44696
- },
44697
- mcp: { entityTool: "designations" },
44698
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44699
- add: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
44700
- designation_id: /* @__PURE__ */ number$2(),
44701
- toggl_user_id: /* @__PURE__ */ number$2()
44702
- }))),
44703
- remove: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
44704
- designation_id: /* @__PURE__ */ number$2(),
44705
- toggl_user_id: /* @__PURE__ */ number$2()
44706
- })))
44707
- }) }),
44708
- execute: (input, { client }) => {
44709
- const data = input;
44710
- return client.runGeneratedRequest("updateWorkspaceDesignationMembers", () => callGeneratedRequest(updateWorkspaceDesignationMembers, [
44711
- client.httpClient,
44712
- client.organizationId,
44713
- client.workspaceIdNumber,
44714
- data.payload ?? data.data ?? data,
44715
- void 0
44716
- ]));
44717
- }
44718
- },
44719
44273
  {
44720
44274
  id: "focus.goals.create",
44721
44275
  family: "focus",
@@ -44732,7 +44286,13 @@ const generatedFocusOperations = [
44732
44286
  },
44733
44287
  mcp: { entityTool: "goals" },
44734
44288
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44289
+ billable: /* @__PURE__ */ boolean$1(),
44735
44290
  comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
44291
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44292
+ icon: /* @__PURE__ */ string$1(),
44293
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
44294
+ name: /* @__PURE__ */ string$1(),
44295
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44736
44296
  recurrence: /* @__PURE__ */ picklist$1([
44737
44297
  "daily",
44738
44298
  "weekly",
@@ -44740,18 +44300,12 @@ const generatedFocusOperations = [
44740
44300
  "monthly"
44741
44301
  ]),
44742
44302
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44303
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44743
44304
  target_seconds: /* @__PURE__ */ number$2(),
44744
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44305
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44306
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44745
44307
  client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44746
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44747
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44748
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44749
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
44750
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44751
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44752
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44753
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44754
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44308
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
44755
44309
  }) }),
44756
44310
  execute: (input, { client }) => {
44757
44311
  const data = input;
@@ -44857,6 +44411,13 @@ const generatedFocusOperations = [
44857
44411
  },
44858
44412
  mcp: { entityTool: "goals" },
44859
44413
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44414
+ billable: /* @__PURE__ */ boolean$1(),
44415
+ comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
44416
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44417
+ icon: /* @__PURE__ */ string$1(),
44418
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
44419
+ name: /* @__PURE__ */ string$1(),
44420
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44860
44421
  recurrence: /* @__PURE__ */ picklist$1([
44861
44422
  "daily",
44862
44423
  "weekly",
@@ -44864,19 +44425,12 @@ const generatedFocusOperations = [
44864
44425
  "monthly"
44865
44426
  ]),
44866
44427
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44867
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44428
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44429
+ target_seconds: /* @__PURE__ */ number$2(),
44430
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44431
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44868
44432
  client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44869
- comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["more_than", "less_than"])),
44870
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44871
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44872
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44873
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
44874
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44875
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44876
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44877
- target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44878
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44879
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44433
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
44880
44434
  }) }),
44881
44435
  execute: (input, { client }) => {
44882
44436
  const data = input;
@@ -45843,17 +45397,9 @@ const generatedFocusOperations = [
45843
45397
  mcp: { entityTool: "projects" },
45844
45398
  inputSchema: /* @__PURE__ */ looseObject({
45845
45399
  payload: /* @__PURE__ */ looseObject({
45846
- auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
45847
- completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
45848
45400
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
45849
45401
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
45850
45402
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
45851
- rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
45852
- "expire",
45853
- "carry_all",
45854
- "carry_over"
45855
- ])),
45856
- rrule: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
45857
45403
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
45858
45404
  }),
45859
45405
  project_id: /* @__PURE__ */ number$2()
@@ -46297,7 +45843,6 @@ const generatedFocusOperations = [
46297
45843
  group: /* @__PURE__ */ string$1(),
46298
45844
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
46299
45845
  include_group_totals: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
46300
- include_recurring_series: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
46301
45846
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
46302
45847
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
46303
45848
  only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -46401,17 +45946,40 @@ const generatedFocusOperations = [
46401
45946
  }
46402
45947
  },
46403
45948
  {
46404
- id: "focus.projects.margin-targets-get",
45949
+ id: "focus.projects.margin-targets-clear-workspace",
46405
45950
  family: "focus",
46406
45951
  resource: "projects",
46407
- action: "margin-targets-get",
46408
- title: "Margin Targets Get Projects",
46409
- description: "Margin Targets Get Projects.",
46410
- safety: "read",
46411
- destructive: false,
45952
+ action: "margin-targets-clear-workspace",
45953
+ title: "Margin Targets Clear Workspace Projects",
45954
+ description: "Margin Targets Clear Workspace Projects.",
45955
+ safety: "delete",
45956
+ destructive: true,
46412
45957
  cli: {
46413
45958
  group: ["projects", "margin-targets"],
46414
- command: "get",
45959
+ command: "clear-workspace",
45960
+ interactive: "default"
45961
+ },
45962
+ mcp: { entityTool: "projects" },
45963
+ inputSchema: /* @__PURE__ */ looseObject({}),
45964
+ execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
45965
+ client.httpClient,
45966
+ client.organizationId,
45967
+ client.workspaceIdNumber,
45968
+ void 0
45969
+ ]))
45970
+ },
45971
+ {
45972
+ id: "focus.projects.margin-targets-get",
45973
+ family: "focus",
45974
+ resource: "projects",
45975
+ action: "margin-targets-get",
45976
+ title: "Margin Targets Get Projects",
45977
+ description: "Margin Targets Get Projects.",
45978
+ safety: "read",
45979
+ destructive: false,
45980
+ cli: {
45981
+ group: ["projects", "margin-targets"],
45982
+ command: "get",
46415
45983
  interactive: "available"
46416
45984
  },
46417
45985
  mcp: { entityTool: "projects" },
@@ -46844,130 +46412,6 @@ const generatedFocusOperations = [
46844
46412
  ]));
46845
46413
  }
46846
46414
  },
46847
- {
46848
- id: "focus.publicsharedreports.open-public-shared-report",
46849
- family: "focus",
46850
- resource: "publicsharedreports",
46851
- action: "open-public-shared-report",
46852
- title: "Open Public Shared Report Publicsharedreports",
46853
- description: "Open Public Shared Report Publicsharedreports.",
46854
- safety: "read",
46855
- destructive: false,
46856
- cli: {
46857
- group: ["publicsharedreports"],
46858
- command: "open-public-shared-report",
46859
- interactive: "available"
46860
- },
46861
- mcp: { entityTool: "publicsharedreports" },
46862
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
46863
- execute: (input, { client }) => {
46864
- const data = input;
46865
- return client.runGeneratedRequest("openPublicSharedReport", () => callGeneratedRequest(openPublicSharedReport, [
46866
- client.httpClient,
46867
- data.token,
46868
- void 0
46869
- ]));
46870
- }
46871
- },
46872
- {
46873
- id: "focus.publicsharedreports.profitability-public-shared-report",
46874
- family: "focus",
46875
- resource: "publicsharedreports",
46876
- action: "profitability-public-shared-report",
46877
- title: "Profitability Public Shared Report Publicsharedreports",
46878
- description: "Profitability Public Shared Report Publicsharedreports.",
46879
- safety: "update",
46880
- destructive: false,
46881
- cli: {
46882
- group: ["publicsharedreports"],
46883
- command: "profitability-public-shared-report",
46884
- interactive: "default"
46885
- },
46886
- mcp: { entityTool: "publicsharedreports" },
46887
- inputSchema: /* @__PURE__ */ looseObject({
46888
- include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
46889
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
46890
- response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["json_row", "hierarchical"])),
46891
- token: /* @__PURE__ */ string$1()
46892
- }),
46893
- execute: (input, { client }) => {
46894
- const data = input;
46895
- return client.runGeneratedRequest("profitabilityPublicSharedReport", () => callGeneratedRequest(profitabilityPublicSharedReport, [
46896
- client.httpClient,
46897
- data.token,
46898
- data.payload ?? data.data ?? data,
46899
- data.response_format,
46900
- data.include_dicts,
46901
- void 0
46902
- ]));
46903
- }
46904
- },
46905
- {
46906
- id: "focus.publicsharedreports.query-public-shared-report",
46907
- family: "focus",
46908
- resource: "publicsharedreports",
46909
- action: "query-public-shared-report",
46910
- title: "Query Public Shared Report Publicsharedreports",
46911
- description: "Query Public Shared Report Publicsharedreports.",
46912
- safety: "update",
46913
- destructive: false,
46914
- cli: {
46915
- group: ["publicsharedreports"],
46916
- command: "query-public-shared-report",
46917
- interactive: "default"
46918
- },
46919
- mcp: { entityTool: "publicsharedreports" },
46920
- inputSchema: /* @__PURE__ */ looseObject({
46921
- include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
46922
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
46923
- response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
46924
- "json_row",
46925
- "table",
46926
- "hierarchical"
46927
- ])),
46928
- token: /* @__PURE__ */ string$1()
46929
- }),
46930
- execute: (input, { client }) => {
46931
- const data = input;
46932
- return client.runGeneratedRequest("queryPublicSharedReport", () => callGeneratedRequest(queryPublicSharedReport, [
46933
- client.httpClient,
46934
- data.token,
46935
- data.payload ?? data.data ?? data,
46936
- data.response_format,
46937
- data.include_dicts,
46938
- void 0
46939
- ]));
46940
- }
46941
- },
46942
- {
46943
- id: "focus.publicsharedreports.workload-public-shared-report",
46944
- family: "focus",
46945
- resource: "publicsharedreports",
46946
- action: "workload-public-shared-report",
46947
- title: "Workload Public Shared Report Publicsharedreports",
46948
- description: "Workload Public Shared Report Publicsharedreports.",
46949
- safety: "update",
46950
- destructive: false,
46951
- cli: {
46952
- group: ["publicsharedreports"],
46953
- command: "workload-public-shared-report",
46954
- interactive: "default"
46955
- },
46956
- mcp: { entityTool: "publicsharedreports" },
46957
- inputSchema: /* @__PURE__ */ looseObject({
46958
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
46959
- token: /* @__PURE__ */ string$1()
46960
- }),
46961
- execute: (input, { client }) => {
46962
- const data = input;
46963
- return client.runGeneratedRequest("workloadPublicSharedReport", () => callGeneratedRequest(workloadPublicSharedReport, [
46964
- client.httpClient,
46965
- data.token,
46966
- data.payload ?? data.data ?? data,
46967
- void 0
46968
- ]));
46969
- }
46970
- },
46971
46415
  {
46972
46416
  id: "focus.rates.billable-check-project-billable-rate-conflicts",
46973
46417
  family: "focus",
@@ -48926,7 +48370,7 @@ const generatedFocusOperations = [
48926
48370
  cli: {
48927
48371
  group: ["reportschedules"],
48928
48372
  command: "upsert-saved-view-schedule",
48929
- interactive: "hidden"
48373
+ interactive: "default"
48930
48374
  },
48931
48375
  mcp: { entityTool: "reportschedules" },
48932
48376
  inputSchema: /* @__PURE__ */ looseObject({
@@ -48937,10 +48381,8 @@ const generatedFocusOperations = [
48937
48381
  "weekly",
48938
48382
  "monthly"
48939
48383
  ]),
48940
- charts: /* @__PURE__ */ unknown$1(),
48941
48384
  time: /* @__PURE__ */ string$1(),
48942
48385
  day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48943
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
48944
48386
  recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
48945
48387
  recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
48946
48388
  recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
@@ -49273,32 +48715,6 @@ const generatedFocusOperations = [
49273
48715
  ]));
49274
48716
  }
49275
48717
  },
49276
- {
49277
- id: "focus.sharedreports.get-shared-report-dates",
49278
- family: "focus",
49279
- resource: "sharedreports",
49280
- action: "get-shared-report-dates",
49281
- title: "Get Shared Report Dates Sharedreports",
49282
- description: "Get Shared Report Dates Sharedreports.",
49283
- safety: "read",
49284
- destructive: false,
49285
- cli: {
49286
- group: ["sharedreports"],
49287
- command: "get-shared-report-dates",
49288
- interactive: "available"
49289
- },
49290
- mcp: { entityTool: "sharedreports" },
49291
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
49292
- execute: (input, { client }) => {
49293
- const data = input;
49294
- return client.runGeneratedRequest("getSharedReportDates", () => callGeneratedRequest(getSharedReportDates, [
49295
- client.httpClient,
49296
- client.workspaceIdNumber,
49297
- data.id,
49298
- void 0
49299
- ]));
49300
- }
49301
- },
49302
48718
  {
49303
48719
  id: "focus.sharedreports.get-shared-report-for-viewer",
49304
48720
  family: "focus",
@@ -49369,36 +48785,6 @@ const generatedFocusOperations = [
49369
48785
  void 0
49370
48786
  ]))
49371
48787
  },
49372
- {
49373
- id: "focus.sharedreports.mint-shared-report-link",
49374
- family: "focus",
49375
- resource: "sharedreports",
49376
- action: "mint-shared-report-link",
49377
- title: "Mint Shared Report Link Sharedreports",
49378
- description: "Mint Shared Report Link Sharedreports.",
49379
- safety: "update",
49380
- destructive: false,
49381
- cli: {
49382
- group: ["sharedreports"],
49383
- command: "mint-shared-report-link",
49384
- interactive: "default"
49385
- },
49386
- mcp: { entityTool: "sharedreports" },
49387
- inputSchema: /* @__PURE__ */ looseObject({
49388
- id: /* @__PURE__ */ number$2(),
49389
- payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
49390
- }),
49391
- execute: (input, { client }) => {
49392
- const data = input;
49393
- return client.runGeneratedRequest("mintSharedReportLink", () => callGeneratedRequest(mintSharedReportLink, [
49394
- client.httpClient,
49395
- client.workspaceIdNumber,
49396
- data.id,
49397
- data.payload ?? data.data ?? data,
49398
- void 0
49399
- ]));
49400
- }
49401
- },
49402
48788
  {
49403
48789
  id: "focus.sharedreports.revoke-shared-report-grant",
49404
48790
  family: "focus",
@@ -49429,92 +48815,6 @@ const generatedFocusOperations = [
49429
48815
  ]));
49430
48816
  }
49431
48817
  },
49432
- {
49433
- id: "focus.sharedreports.revoke-shared-report-link",
49434
- family: "focus",
49435
- resource: "sharedreports",
49436
- action: "revoke-shared-report-link",
49437
- title: "Revoke Shared Report Link Sharedreports",
49438
- description: "Revoke Shared Report Link Sharedreports.",
49439
- safety: "delete",
49440
- destructive: true,
49441
- cli: {
49442
- group: ["sharedreports"],
49443
- command: "revoke-shared-report-link",
49444
- interactive: "default"
49445
- },
49446
- mcp: { entityTool: "sharedreports" },
49447
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
49448
- execute: (input, { client }) => {
49449
- const data = input;
49450
- return client.runGeneratedRequest("revokeSharedReportLink", () => callGeneratedRequest(revokeSharedReportLink, [
49451
- client.httpClient,
49452
- client.workspaceIdNumber,
49453
- data.id,
49454
- void 0
49455
- ]));
49456
- }
49457
- },
49458
- {
49459
- id: "focus.sharedreports.rotate-shared-report-link",
49460
- family: "focus",
49461
- resource: "sharedreports",
49462
- action: "rotate-shared-report-link",
49463
- title: "Rotate Shared Report Link Sharedreports",
49464
- description: "Rotate Shared Report Link Sharedreports.",
49465
- safety: "update",
49466
- destructive: false,
49467
- cli: {
49468
- group: ["sharedreports"],
49469
- command: "rotate-shared-report-link",
49470
- interactive: "default"
49471
- },
49472
- mcp: { entityTool: "sharedreports" },
49473
- inputSchema: /* @__PURE__ */ looseObject({
49474
- id: /* @__PURE__ */ number$2(),
49475
- payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
49476
- }),
49477
- execute: (input, { client }) => {
49478
- const data = input;
49479
- return client.runGeneratedRequest("rotateSharedReportLink", () => callGeneratedRequest(rotateSharedReportLink, [
49480
- client.httpClient,
49481
- client.workspaceIdNumber,
49482
- data.id,
49483
- data.payload ?? data.data ?? data,
49484
- void 0
49485
- ]));
49486
- }
49487
- },
49488
- {
49489
- id: "focus.sharedreports.set-shared-report-dates-lock",
49490
- family: "focus",
49491
- resource: "sharedreports",
49492
- action: "set-shared-report-dates-lock",
49493
- title: "Set Shared Report Dates Lock Sharedreports",
49494
- description: "Set Shared Report Dates Lock Sharedreports.",
49495
- safety: "update",
49496
- destructive: false,
49497
- cli: {
49498
- group: ["sharedreports"],
49499
- command: "set-shared-report-dates-lock",
49500
- interactive: "default"
49501
- },
49502
- mcp: { entityTool: "sharedreports" },
49503
- inputSchema: /* @__PURE__ */ looseObject({
49504
- id: /* @__PURE__ */ number$2(),
49505
- payload: /* @__PURE__ */ looseObject({ locked: /* @__PURE__ */ boolean$1() })
49506
- }),
49507
- execute: (input, { client }) => {
49508
- const data = input;
49509
- return client.runGeneratedRequest("setSharedReportDatesLock", () => callGeneratedRequest(setSharedReportDatesLock, [
49510
- client.httpClient,
49511
- client.workspaceIdNumber,
49512
- data.id,
49513
- data.payload ?? data.data ?? data,
49514
- void 0
49515
- ]));
49516
- }
49517
- },
49518
48818
  {
49519
48819
  id: "focus.sharedreports.share-saved-view",
49520
48820
  family: "focus",
@@ -49589,32 +48889,6 @@ const generatedFocusOperations = [
49589
48889
  ]));
49590
48890
  }
49591
48891
  },
49592
- {
49593
- id: "focus.sharedreports.unshare-shared-report",
49594
- family: "focus",
49595
- resource: "sharedreports",
49596
- action: "unshare-shared-report",
49597
- title: "Unshare Shared Report Sharedreports",
49598
- description: "Unshare Shared Report Sharedreports.",
49599
- safety: "delete",
49600
- destructive: true,
49601
- cli: {
49602
- group: ["sharedreports"],
49603
- command: "unshare-shared-report",
49604
- interactive: "default"
49605
- },
49606
- mcp: { entityTool: "sharedreports" },
49607
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
49608
- execute: (input, { client }) => {
49609
- const data = input;
49610
- return client.runGeneratedRequest("unshareSharedReport", () => callGeneratedRequest(unshareSharedReport, [
49611
- client.httpClient,
49612
- client.workspaceIdNumber,
49613
- data.id,
49614
- void 0
49615
- ]));
49616
- }
49617
- },
49618
48892
  {
49619
48893
  id: "focus.statuses.create-status",
49620
48894
  family: "focus",
@@ -50657,37 +49931,6 @@ const generatedFocusOperations = [
50657
49931
  return client.createTask(data);
50658
49932
  }
50659
49933
  },
50660
- {
50661
- id: "focus.tasks.create-recurring-occurrence",
50662
- family: "focus",
50663
- resource: "tasks",
50664
- action: "create-recurring-occurrence",
50665
- title: "Create Recurring Occurrence Tasks",
50666
- description: "Create Recurring Occurrence Tasks.",
50667
- safety: "create",
50668
- destructive: false,
50669
- cli: {
50670
- group: ["tasks"],
50671
- command: "create-recurring-occurrence",
50672
- interactive: "default"
50673
- },
50674
- mcp: { entityTool: "tasks" },
50675
- inputSchema: /* @__PURE__ */ looseObject({
50676
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50677
- task_id: /* @__PURE__ */ number$2()
50678
- }),
50679
- execute: (input, { client }) => {
50680
- const data = input;
50681
- return client.runGeneratedRequest("createRecurringOccurrence", () => callGeneratedRequest(createRecurringOccurrence, [
50682
- client.httpClient,
50683
- client.organizationId,
50684
- client.workspaceIdNumber,
50685
- data.task_id,
50686
- data.return_occurrence,
50687
- void 0
50688
- ]));
50689
- }
50690
- },
50691
49934
  {
50692
49935
  id: "focus.tasks.delete",
50693
49936
  family: "focus",
@@ -50913,90 +50156,17 @@ const generatedFocusOperations = [
50913
50156
  }
50914
50157
  },
50915
50158
  {
50916
- id: "focus.tasks.get-picker-task-children",
50159
+ id: "focus.tasks.get-recurring-instances",
50917
50160
  family: "focus",
50918
50161
  resource: "tasks",
50919
- action: "get-picker-task-children",
50920
- title: "Get Picker Task Children Tasks",
50921
- description: "Get Picker Task Children Tasks.",
50162
+ action: "get-recurring-instances",
50163
+ title: "Get Recurring Instances Tasks",
50164
+ description: "Get Recurring Instances Tasks.",
50922
50165
  safety: "read",
50923
50166
  destructive: false,
50924
50167
  cli: {
50925
50168
  group: ["tasks"],
50926
- command: "get-picker-task-children",
50927
- interactive: "hidden"
50928
- },
50929
- mcp: { entityTool: "tasks" },
50930
- inputSchema: /* @__PURE__ */ looseObject({
50931
- include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50932
- only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50933
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50934
- parent_task_id: /* @__PURE__ */ number$2(),
50935
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50936
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50937
- search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50938
- without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
50939
- }),
50940
- execute: (input, { client }) => {
50941
- const data = input;
50942
- return client.runGeneratedRequest("getPickerTaskChildrenClassic", () => callGeneratedRequest(getPickerTaskChildrenClassic, [
50943
- client.httpClient,
50944
- client.organizationId,
50945
- client.workspaceIdNumber,
50946
- data.parent_task_id,
50947
- data,
50948
- void 0
50949
- ]));
50950
- }
50951
- },
50952
- {
50953
- id: "focus.tasks.get-picker-task-groups",
50954
- family: "focus",
50955
- resource: "tasks",
50956
- action: "get-picker-task-groups",
50957
- title: "Get Picker Task Groups Tasks",
50958
- description: "Get Picker Task Groups Tasks.",
50959
- safety: "read",
50960
- destructive: false,
50961
- cli: {
50962
- group: ["tasks"],
50963
- command: "get-picker-task-groups",
50964
- interactive: "hidden"
50965
- },
50966
- mcp: { entityTool: "tasks" },
50967
- inputSchema: /* @__PURE__ */ looseObject({
50968
- include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50969
- only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50970
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50971
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50972
- pinned_only: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50973
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50974
- search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50975
- without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
50976
- }),
50977
- execute: (input, { client }) => {
50978
- const data = input;
50979
- return client.runGeneratedRequest("getPickerTaskGroupsClassic", () => callGeneratedRequest(getPickerTaskGroupsClassic, [
50980
- client.httpClient,
50981
- client.organizationId,
50982
- client.workspaceIdNumber,
50983
- data,
50984
- void 0
50985
- ]));
50986
- }
50987
- },
50988
- {
50989
- id: "focus.tasks.get-recurring-instances",
50990
- family: "focus",
50991
- resource: "tasks",
50992
- action: "get-recurring-instances",
50993
- title: "Get Recurring Instances Tasks",
50994
- description: "Get Recurring Instances Tasks.",
50995
- safety: "read",
50996
- destructive: false,
50997
- cli: {
50998
- group: ["tasks"],
50999
- command: "get-recurring-instances",
50169
+ command: "get-recurring-instances",
51000
50170
  interactive: "hidden"
51001
50171
  },
51002
50172
  mcp: { entityTool: "tasks" },
@@ -51008,13 +50178,9 @@ const generatedFocusOperations = [
51008
50178
  dates_overlap_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51009
50179
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51010
50180
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51011
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51012
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51013
50181
  page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51014
50182
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51015
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51016
50183
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51017
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51018
50184
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51019
50185
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
51020
50186
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -51060,14 +50226,13 @@ const generatedFocusOperations = [
51060
50226
  estimated_mins_max: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51061
50227
  estimated_mins_min: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51062
50228
  has_dates: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50229
+ has_time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51063
50230
  has_time_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51064
50231
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51065
50232
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51066
50233
  include_parent_matches: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51067
50234
  include_project_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51068
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51069
50235
  is_priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51070
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51071
50236
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51072
50237
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51073
50238
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -51076,9 +50241,7 @@ const generatedFocusOperations = [
51076
50241
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51077
50242
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51078
50243
  recurring: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51079
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51080
50244
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51081
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51082
50245
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51083
50246
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51084
50247
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -51087,6 +50250,8 @@ const generatedFocusOperations = [
51087
50250
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51088
50251
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
51089
50252
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50253
+ time_block_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50254
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51090
50255
  toggl_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51091
50256
  with_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
51092
50257
  }),
@@ -51214,10 +50379,8 @@ const generatedFocusOperations = [
51214
50379
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51215
50380
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51216
50381
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51217
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51218
50382
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51219
50383
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51220
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51221
50384
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51222
50385
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51223
50386
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -51226,8 +50389,6 @@ const generatedFocusOperations = [
51226
50389
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51227
50390
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51228
50391
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51229
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51230
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51231
50392
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51232
50393
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51233
50394
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -51236,8 +50397,7 @@ const generatedFocusOperations = [
51236
50397
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
51237
50398
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51238
50399
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51239
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51240
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
50400
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51241
50401
  }),
51242
50402
  execute: (input, { client }) => {
51243
50403
  const data = input;
@@ -51279,17 +50439,13 @@ const generatedFocusOperations = [
51279
50439
  group_id: /* @__PURE__ */ number$2(),
51280
50440
  include_assignees: /* @__PURE__ */ unknown$1(),
51281
50441
  include_drafts: /* @__PURE__ */ unknown$1(),
51282
- include_projected_occurrences: /* @__PURE__ */ unknown$1(),
51283
50442
  include_unassigned: /* @__PURE__ */ unknown$1(),
51284
50443
  include_unmaterialized: /* @__PURE__ */ unknown$1(),
51285
- max_recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
51286
50444
  min_days: /* @__PURE__ */ unknown$1(),
51287
50445
  name: /* @__PURE__ */ unknown$1(),
51288
50446
  priority: /* @__PURE__ */ unknown$1(),
51289
50447
  private_: /* @__PURE__ */ unknown$1(),
51290
50448
  project_id: /* @__PURE__ */ number$2(),
51291
- recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
51292
- recurring_task_read: /* @__PURE__ */ unknown$1(),
51293
50449
  source: /* @__PURE__ */ unknown$1(),
51294
50450
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
51295
50451
  start_date_from: /* @__PURE__ */ unknown$1(),
@@ -51298,8 +50454,7 @@ const generatedFocusOperations = [
51298
50454
  tag_id: /* @__PURE__ */ number$2(),
51299
50455
  team_id: /* @__PURE__ */ number$2(),
51300
50456
  user_cf_filter: /* @__PURE__ */ unknown$1(),
51301
- user_tag_id: /* @__PURE__ */ number$2(),
51302
- xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
50457
+ user_tag_id: /* @__PURE__ */ number$2()
51303
50458
  }),
51304
50459
  execute: (input, { client }) => {
51305
50460
  const data = input;
@@ -51340,17 +50495,13 @@ const generatedFocusOperations = [
51340
50495
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51341
50496
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51342
50497
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51343
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51344
50498
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51345
50499
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51346
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51347
50500
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51348
50501
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51349
50502
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51350
50503
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51351
50504
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51352
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51353
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51354
50505
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51355
50506
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51356
50507
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -51359,8 +50510,7 @@ const generatedFocusOperations = [
51359
50510
  tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51360
50511
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51361
50512
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51362
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51363
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
50513
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51364
50514
  }),
51365
50515
  execute: (input, { client }) => {
51366
50516
  const data = input;
@@ -51604,45 +50754,508 @@ const generatedFocusOperations = [
51604
50754
  }),
51605
50755
  execute: (input, { client }) => {
51606
50756
  const data = input;
51607
- return client.runGeneratedRequest("updateTask", () => callGeneratedRequest(updateTask, [
50757
+ return client.runGeneratedRequest("updateTask", () => callGeneratedRequest(updateTask, [
50758
+ client.httpClient,
50759
+ client.organizationId,
50760
+ client.workspaceIdNumber,
50761
+ data.task_id,
50762
+ data.payload ?? data.data ?? data,
50763
+ void 0
50764
+ ]));
50765
+ }
50766
+ },
50767
+ {
50768
+ id: "focus.tasks.update-calendar-range",
50769
+ family: "focus",
50770
+ resource: "tasks",
50771
+ action: "update-calendar-range",
50772
+ title: "Update Calendar Range Tasks",
50773
+ description: "Update Calendar Range Tasks.",
50774
+ safety: "update",
50775
+ destructive: false,
50776
+ cli: {
50777
+ group: ["tasks"],
50778
+ command: "update-calendar-range",
50779
+ interactive: "default"
50780
+ },
50781
+ mcp: { entityTool: "tasks" },
50782
+ inputSchema: /* @__PURE__ */ looseObject({
50783
+ date_from: /* @__PURE__ */ string$1(),
50784
+ date_to: /* @__PURE__ */ string$1()
50785
+ }),
50786
+ execute: (input, { client }) => {
50787
+ const data = input;
50788
+ return client.runGeneratedRequest("putTasksCalendarRange", () => callGeneratedRequest(putTasksCalendarRange, [
50789
+ client.httpClient,
50790
+ client.organizationId,
50791
+ client.workspaceIdNumber,
50792
+ data.date_from,
50793
+ data.date_to,
50794
+ void 0
50795
+ ]));
50796
+ }
50797
+ },
50798
+ {
50799
+ id: "focus.time-blocks.archive",
50800
+ family: "focus",
50801
+ resource: "time-blocks",
50802
+ action: "archive",
50803
+ title: "Archive Time Blocks",
50804
+ description: "Archive Time Blocks.",
50805
+ safety: "update",
50806
+ destructive: false,
50807
+ cli: {
50808
+ group: ["time-blocks"],
50809
+ command: "archive",
50810
+ interactive: "default"
50811
+ },
50812
+ mcp: { entityTool: "time-blocks" },
50813
+ inputSchema: /* @__PURE__ */ looseObject({
50814
+ task_id: /* @__PURE__ */ number$2(),
50815
+ time_block_id: /* @__PURE__ */ number$2()
50816
+ }),
50817
+ execute: (input, { client }) => {
50818
+ const data = input;
50819
+ return client.runGeneratedRequest("archiveTimeBlockWithOrg", () => callGeneratedRequest(archiveTimeBlockWithOrg, [
50820
+ client.httpClient,
50821
+ client.organizationId,
50822
+ client.workspaceIdNumber,
50823
+ data.task_id,
50824
+ data.time_block_id,
50825
+ void 0
50826
+ ]));
50827
+ }
50828
+ },
50829
+ {
50830
+ id: "focus.time-blocks.bulk-create",
50831
+ family: "focus",
50832
+ resource: "time-blocks",
50833
+ action: "bulk-create",
50834
+ title: "Bulk Create Time Blocks",
50835
+ description: "Bulk Create Time Blocks.",
50836
+ safety: "create",
50837
+ destructive: false,
50838
+ cli: {
50839
+ group: ["time-blocks", "bulk"],
50840
+ command: "create",
50841
+ interactive: "default"
50842
+ },
50843
+ mcp: { entityTool: "time-blocks" },
50844
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ time_blocks: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
50845
+ start: apiDateTimeString,
50846
+ task_id: /* @__PURE__ */ number$2(),
50847
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50848
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50849
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
50850
+ })) }) }),
50851
+ execute: (input, { client }) => {
50852
+ const data = input;
50853
+ return client.runGeneratedRequest("bulkCreateTimeBlockWithOrg", () => callGeneratedRequest(bulkCreateTimeBlockWithOrg, [
50854
+ client.httpClient,
50855
+ client.organizationId,
50856
+ client.workspaceIdNumber,
50857
+ data.payload ?? data.data ?? data,
50858
+ void 0
50859
+ ]));
50860
+ }
50861
+ },
50862
+ {
50863
+ id: "focus.time-blocks.bulk-delete",
50864
+ family: "focus",
50865
+ resource: "time-blocks",
50866
+ action: "bulk-delete",
50867
+ title: "Bulk Delete Time Blocks",
50868
+ description: "Bulk Delete Time Blocks.",
50869
+ safety: "delete",
50870
+ destructive: true,
50871
+ cli: {
50872
+ group: ["time-blocks", "bulk"],
50873
+ command: "delete",
50874
+ interactive: "default"
50875
+ },
50876
+ mcp: { entityTool: "time-blocks" },
50877
+ inputSchema: /* @__PURE__ */ looseObject({
50878
+ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
50879
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
50880
+ }),
50881
+ execute: (input, { client }) => {
50882
+ const data = input;
50883
+ return client.runGeneratedRequest("bulkDeleteTimeBlockWithOrg", () => callGeneratedRequest(bulkDeleteTimeBlockWithOrg, [
50884
+ client.httpClient,
50885
+ client.organizationId,
50886
+ client.workspaceIdNumber,
50887
+ data.ids,
50888
+ data.outbound_sync,
50889
+ void 0
50890
+ ]));
50891
+ }
50892
+ },
50893
+ {
50894
+ id: "focus.time-blocks.bulk-partial-update",
50895
+ family: "focus",
50896
+ resource: "time-blocks",
50897
+ action: "bulk-partial-update",
50898
+ title: "Bulk Partial Update Time Blocks",
50899
+ description: "Bulk Partial Update Time Blocks.",
50900
+ safety: "update",
50901
+ destructive: false,
50902
+ cli: {
50903
+ group: ["time-blocks", "bulk"],
50904
+ command: "partial-update",
50905
+ interactive: "hidden"
50906
+ },
50907
+ mcp: { entityTool: "time-blocks" },
50908
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ unknown$1() }),
50909
+ execute: (input, { client }) => {
50910
+ const data = input;
50911
+ return client.runGeneratedRequest("bulkPartialUpdateTimeBlockWithOrg", () => callGeneratedRequest(bulkPartialUpdateTimeBlockWithOrg, [
50912
+ client.httpClient,
50913
+ client.organizationId,
50914
+ client.workspaceIdNumber,
50915
+ data.payload ?? data.data ?? data,
50916
+ void 0
50917
+ ]));
50918
+ }
50919
+ },
50920
+ {
50921
+ id: "focus.time-blocks.create",
50922
+ family: "focus",
50923
+ resource: "time-blocks",
50924
+ action: "create",
50925
+ title: "Create Time Blocks",
50926
+ description: "Create Time Blocks.",
50927
+ safety: "create",
50928
+ destructive: false,
50929
+ cli: {
50930
+ group: ["time-blocks"],
50931
+ command: "create",
50932
+ interactive: "default"
50933
+ },
50934
+ mcp: { entityTool: "time-blocks" },
50935
+ inputSchema: /* @__PURE__ */ looseObject({
50936
+ payload: /* @__PURE__ */ looseObject({
50937
+ start: apiDateTimeString,
50938
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50939
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50940
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
50941
+ }),
50942
+ task_id: /* @__PURE__ */ number$2()
50943
+ }),
50944
+ execute: (input, { client }) => {
50945
+ const data = input;
50946
+ return client.runGeneratedRequest("createTimeBlockWithOrg", () => callGeneratedRequest(createTimeBlockWithOrg, [
50947
+ client.httpClient,
50948
+ client.organizationId,
50949
+ client.workspaceIdNumber,
50950
+ data.task_id,
50951
+ data.payload ?? data.data ?? data,
50952
+ void 0
50953
+ ]));
50954
+ }
50955
+ },
50956
+ {
50957
+ id: "focus.time-blocks.delete",
50958
+ family: "focus",
50959
+ resource: "time-blocks",
50960
+ action: "delete",
50961
+ title: "Delete Time Blocks",
50962
+ description: "Delete Time Blocks.",
50963
+ safety: "delete",
50964
+ destructive: true,
50965
+ cli: {
50966
+ group: ["time-blocks"],
50967
+ command: "delete",
50968
+ interactive: "default"
50969
+ },
50970
+ mcp: { entityTool: "time-blocks" },
50971
+ inputSchema: /* @__PURE__ */ looseObject({
50972
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50973
+ task_id: /* @__PURE__ */ number$2(),
50974
+ time_block_id: /* @__PURE__ */ number$2()
50975
+ }),
50976
+ execute: (input, { client }) => {
50977
+ const data = input;
50978
+ return client.runGeneratedRequest("deleteTimeBlockWithOrg", () => callGeneratedRequest(deleteTimeBlockWithOrg, [
50979
+ client.httpClient,
50980
+ client.organizationId,
50981
+ client.workspaceIdNumber,
50982
+ data.task_id,
50983
+ data.time_block_id,
50984
+ data.outbound_sync,
50985
+ void 0
50986
+ ]));
50987
+ }
50988
+ },
50989
+ {
50990
+ id: "focus.time-blocks.get",
50991
+ family: "focus",
50992
+ resource: "time-blocks",
50993
+ action: "get",
50994
+ title: "Get Time Blocks",
50995
+ description: "Get Time Blocks.",
50996
+ safety: "read",
50997
+ destructive: false,
50998
+ cli: {
50999
+ group: ["time-blocks"],
51000
+ command: "get",
51001
+ interactive: "available"
51002
+ },
51003
+ mcp: { entityTool: "time-blocks" },
51004
+ inputSchema: /* @__PURE__ */ looseObject({
51005
+ task_id: /* @__PURE__ */ number$2(),
51006
+ time_block_id: /* @__PURE__ */ number$2()
51007
+ }),
51008
+ execute: (input, { client }) => {
51009
+ const data = input;
51010
+ return client.runGeneratedRequest("getTimeBlockWithOrg", () => callGeneratedRequest(getTimeBlockWithOrg, [
51011
+ client.httpClient,
51012
+ client.organizationId,
51013
+ client.workspaceIdNumber,
51014
+ data.task_id,
51015
+ data.time_block_id,
51016
+ void 0
51017
+ ]));
51018
+ }
51019
+ },
51020
+ {
51021
+ id: "focus.time-blocks.get-range",
51022
+ family: "focus",
51023
+ resource: "time-blocks",
51024
+ action: "get-range",
51025
+ title: "Get Range Time Blocks",
51026
+ description: "Get Range Time Blocks.",
51027
+ safety: "read",
51028
+ destructive: false,
51029
+ cli: {
51030
+ group: ["time-blocks"],
51031
+ command: "get-range",
51032
+ interactive: "hidden"
51033
+ },
51034
+ mcp: { entityTool: "time-blocks" },
51035
+ inputSchema: /* @__PURE__ */ looseObject({
51036
+ archived: /* @__PURE__ */ unknown$1(),
51037
+ date_from: /* @__PURE__ */ unknown$1(),
51038
+ date_to: /* @__PURE__ */ unknown$1(),
51039
+ order_by: /* @__PURE__ */ unknown$1(),
51040
+ page: /* @__PURE__ */ number$2(),
51041
+ per_page: /* @__PURE__ */ unknown$1(),
51042
+ status_id: /* @__PURE__ */ number$2(),
51043
+ task_id: /* @__PURE__ */ number$2()
51044
+ }),
51045
+ execute: (input, { client }) => {
51046
+ const data = input;
51047
+ return client.runGeneratedRequest("getTimeBlocksRangeWithOrgClassic", () => callGeneratedRequest(getTimeBlocksRangeWithOrgClassic, [
51048
+ client.httpClient,
51049
+ client.organizationId,
51050
+ client.workspaceIdNumber,
51051
+ data,
51052
+ void 0
51053
+ ]));
51054
+ }
51055
+ },
51056
+ {
51057
+ id: "focus.time-blocks.get-range-stream",
51058
+ family: "focus",
51059
+ resource: "time-blocks",
51060
+ action: "get-range-stream",
51061
+ title: "Get Range Stream Time Blocks",
51062
+ description: "Get Range Stream Time Blocks.",
51063
+ safety: "read",
51064
+ destructive: false,
51065
+ cli: {
51066
+ group: ["time-blocks"],
51067
+ command: "get-range-stream",
51068
+ interactive: "hidden"
51069
+ },
51070
+ mcp: { entityTool: "time-blocks" },
51071
+ inputSchema: /* @__PURE__ */ looseObject({
51072
+ archived: /* @__PURE__ */ unknown$1(),
51073
+ date_from: /* @__PURE__ */ unknown$1(),
51074
+ date_to: /* @__PURE__ */ unknown$1(),
51075
+ order_by: /* @__PURE__ */ unknown$1(),
51076
+ status_id: /* @__PURE__ */ number$2(),
51077
+ task_id: /* @__PURE__ */ number$2()
51078
+ }),
51079
+ execute: (input, { client }) => {
51080
+ const data = input;
51081
+ return client.runGeneratedRequest("getTimeBlocksRangeStreamWithOrg", () => callGeneratedRequest(getTimeBlocksRangeStreamWithOrg, [
51082
+ client.httpClient,
51083
+ client.organizationId,
51084
+ client.workspaceIdNumber,
51085
+ data,
51086
+ void 0
51087
+ ]));
51088
+ }
51089
+ },
51090
+ {
51091
+ id: "focus.time-blocks.get-task-time-blocks",
51092
+ family: "focus",
51093
+ resource: "time-blocks",
51094
+ action: "get-task-time-blocks",
51095
+ title: "Get Task Time Blocks Time Blocks",
51096
+ description: "Get Task Time Blocks Time Blocks.",
51097
+ safety: "read",
51098
+ destructive: false,
51099
+ cli: {
51100
+ group: ["time-blocks"],
51101
+ command: "get-task-time-blocks",
51102
+ interactive: "hidden"
51103
+ },
51104
+ mcp: { entityTool: "time-blocks" },
51105
+ inputSchema: /* @__PURE__ */ looseObject({
51106
+ archived: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51107
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51108
+ page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51109
+ per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51110
+ task_id: /* @__PURE__ */ number$2()
51111
+ }),
51112
+ execute: (input, { client }) => {
51113
+ const data = input;
51114
+ return client.runGeneratedRequest("getTaskTimeBlocksWithOrgClassic", () => callGeneratedRequest(getTaskTimeBlocksWithOrgClassic, [
51115
+ client.httpClient,
51116
+ client.organizationId,
51117
+ client.workspaceIdNumber,
51118
+ data.task_id,
51119
+ data,
51120
+ void 0
51121
+ ]));
51122
+ }
51123
+ },
51124
+ {
51125
+ id: "focus.time-blocks.partial-update",
51126
+ family: "focus",
51127
+ resource: "time-blocks",
51128
+ action: "partial-update",
51129
+ title: "Partial Update Time Blocks",
51130
+ description: "Partial Update Time Blocks.",
51131
+ safety: "update",
51132
+ destructive: false,
51133
+ cli: {
51134
+ group: ["time-blocks"],
51135
+ command: "partial-update",
51136
+ interactive: "default"
51137
+ },
51138
+ mcp: { entityTool: "time-blocks" },
51139
+ inputSchema: /* @__PURE__ */ looseObject({
51140
+ payload: /* @__PURE__ */ looseObject({
51141
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51142
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51143
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51144
+ start: /* @__PURE__ */ optional$1(apiDateTimeString),
51145
+ task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51146
+ }),
51147
+ task_id: /* @__PURE__ */ number$2(),
51148
+ time_block_id: /* @__PURE__ */ number$2()
51149
+ }),
51150
+ execute: (input, { client }) => {
51151
+ const data = input;
51152
+ return client.runGeneratedRequest("partialUpdateTimeBlockWithOrg", () => callGeneratedRequest(partialUpdateTimeBlockWithOrg, [
51153
+ client.httpClient,
51154
+ client.organizationId,
51155
+ client.workspaceIdNumber,
51156
+ data.task_id,
51157
+ data.time_block_id,
51158
+ data.payload ?? data.data ?? data,
51159
+ void 0
51160
+ ]));
51161
+ }
51162
+ },
51163
+ {
51164
+ id: "focus.time-blocks.restore",
51165
+ family: "focus",
51166
+ resource: "time-blocks",
51167
+ action: "restore",
51168
+ title: "Restore Time Blocks",
51169
+ description: "Restore Time Blocks.",
51170
+ safety: "update",
51171
+ destructive: false,
51172
+ cli: {
51173
+ group: ["time-blocks"],
51174
+ command: "restore",
51175
+ interactive: "default"
51176
+ },
51177
+ mcp: { entityTool: "time-blocks" },
51178
+ inputSchema: /* @__PURE__ */ looseObject({
51179
+ task_id: /* @__PURE__ */ number$2(),
51180
+ time_block_id: /* @__PURE__ */ number$2()
51181
+ }),
51182
+ execute: (input, { client }) => {
51183
+ const data = input;
51184
+ return client.runGeneratedRequest("restoreTimeBlockWithOrg", () => callGeneratedRequest(restoreTimeBlockWithOrg, [
51185
+ client.httpClient,
51186
+ client.organizationId,
51187
+ client.workspaceIdNumber,
51188
+ data.task_id,
51189
+ data.time_block_id,
51190
+ void 0
51191
+ ]));
51192
+ }
51193
+ },
51194
+ {
51195
+ id: "focus.time-blocks.unarchive",
51196
+ family: "focus",
51197
+ resource: "time-blocks",
51198
+ action: "unarchive",
51199
+ title: "Unarchive Time Blocks",
51200
+ description: "Unarchive Time Blocks.",
51201
+ safety: "update",
51202
+ destructive: false,
51203
+ cli: {
51204
+ group: ["time-blocks"],
51205
+ command: "unarchive",
51206
+ interactive: "default"
51207
+ },
51208
+ mcp: { entityTool: "time-blocks" },
51209
+ inputSchema: /* @__PURE__ */ looseObject({
51210
+ task_id: /* @__PURE__ */ number$2(),
51211
+ time_block_id: /* @__PURE__ */ number$2()
51212
+ }),
51213
+ execute: (input, { client }) => {
51214
+ const data = input;
51215
+ return client.runGeneratedRequest("unarchiveTimeBlockWithOrg", () => callGeneratedRequest(unarchiveTimeBlockWithOrg, [
51608
51216
  client.httpClient,
51609
51217
  client.organizationId,
51610
51218
  client.workspaceIdNumber,
51611
51219
  data.task_id,
51612
- data.payload ?? data.data ?? data,
51220
+ data.time_block_id,
51613
51221
  void 0
51614
51222
  ]));
51615
51223
  }
51616
51224
  },
51617
51225
  {
51618
- id: "focus.tasks.update-calendar-range",
51226
+ id: "focus.time-blocks.update",
51619
51227
  family: "focus",
51620
- resource: "tasks",
51621
- action: "update-calendar-range",
51622
- title: "Update Calendar Range Tasks",
51623
- description: "Update Calendar Range Tasks.",
51228
+ resource: "time-blocks",
51229
+ action: "update",
51230
+ title: "Update Time Blocks",
51231
+ description: "Update Time Blocks.",
51624
51232
  safety: "update",
51625
51233
  destructive: false,
51626
51234
  cli: {
51627
- group: ["tasks"],
51628
- command: "update-calendar-range",
51235
+ group: ["time-blocks"],
51236
+ command: "update",
51629
51237
  interactive: "default"
51630
51238
  },
51631
- mcp: { entityTool: "tasks" },
51239
+ mcp: { entityTool: "time-blocks" },
51632
51240
  inputSchema: /* @__PURE__ */ looseObject({
51633
- date_from: /* @__PURE__ */ string$1(),
51634
- date_to: /* @__PURE__ */ string$1(),
51635
- skip_provider_refresh: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51241
+ payload: /* @__PURE__ */ looseObject({
51242
+ start: apiDateTimeString,
51243
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51244
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51245
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51246
+ }),
51247
+ task_id: /* @__PURE__ */ number$2(),
51248
+ time_block_id: /* @__PURE__ */ number$2()
51636
51249
  }),
51637
51250
  execute: (input, { client }) => {
51638
51251
  const data = input;
51639
- return client.runGeneratedRequest("putTasksCalendarRange", () => callGeneratedRequest(putTasksCalendarRange, [
51252
+ return client.runGeneratedRequest("updateTimeBlockWithOrg", () => callGeneratedRequest(updateTimeBlockWithOrg, [
51640
51253
  client.httpClient,
51641
51254
  client.organizationId,
51642
51255
  client.workspaceIdNumber,
51643
- data.date_from,
51644
- data.date_to,
51645
- data.skip_provider_refresh,
51256
+ data.task_id,
51257
+ data.time_block_id,
51258
+ data.payload ?? data.data ?? data,
51646
51259
  void 0
51647
51260
  ]));
51648
51261
  }
@@ -51862,8 +51475,7 @@ const generatedFocusOperations = [
51862
51475
  required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
51863
51476
  "project",
51864
51477
  "task",
51865
- "description",
51866
- "tags"
51478
+ "description"
51867
51479
  ]) })),
51868
51480
  disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51869
51481
  }) }),
@@ -51893,7 +51505,6 @@ const generatedFocusOperations = [
51893
51505
  },
51894
51506
  mcp: { entityTool: "time-entries" },
51895
51507
  inputSchema: /* @__PURE__ */ looseObject({
51896
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51897
51508
  payload: /* @__PURE__ */ looseObject({
51898
51509
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
51899
51510
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -51904,12 +51515,11 @@ const generatedFocusOperations = [
51904
51515
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51905
51516
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51906
51517
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51907
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51908
51518
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
51519
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51909
51520
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51910
51521
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51911
51522
  }),
51912
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51913
51523
  task_id: /* @__PURE__ */ number$2()
51914
51524
  }),
51915
51525
  execute: (input, { client }) => {
@@ -51920,8 +51530,6 @@ const generatedFocusOperations = [
51920
51530
  client.workspaceIdNumber,
51921
51531
  data.task_id,
51922
51532
  data.payload ?? data.data ?? data,
51923
- data.from_recurring_task_id,
51924
- data.return_occurrence,
51925
51533
  void 0
51926
51534
  ]));
51927
51535
  }
@@ -51941,25 +51549,21 @@ const generatedFocusOperations = [
51941
51549
  interactive: "default"
51942
51550
  },
51943
51551
  mcp: { entityTool: "time-entries" },
51944
- inputSchema: /* @__PURE__ */ looseObject({
51945
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51946
- payload: /* @__PURE__ */ looseObject({
51947
- type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
51948
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51949
- calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51950
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51951
- duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51952
- planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51953
- planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51954
- planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51955
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51956
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51957
- start: /* @__PURE__ */ optional$1(apiDateTimeString),
51958
- tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51959
- user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51960
- }),
51961
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51962
- }),
51552
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
51553
+ type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
51554
+ billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51555
+ calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51556
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51557
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51558
+ planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51559
+ planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51560
+ planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51561
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51562
+ start: /* @__PURE__ */ optional$1(apiDateTimeString),
51563
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51564
+ tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51565
+ user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51566
+ }) }),
51963
51567
  execute: (input, { client }) => {
51964
51568
  const data = input;
51965
51569
  return client.runGeneratedRequest("createTasklessTimeEntryWithOrg", () => callGeneratedRequest(createTasklessTimeEntryWithOrg, [
@@ -51967,8 +51571,6 @@ const generatedFocusOperations = [
51967
51571
  client.organizationId,
51968
51572
  client.workspaceIdNumber,
51969
51573
  data.payload ?? data.data ?? data,
51970
- data.from_recurring_task_id,
51971
- data.return_occurrence,
51972
51574
  void 0
51973
51575
  ]));
51974
51576
  }
@@ -51988,11 +51590,7 @@ const generatedFocusOperations = [
51988
51590
  interactive: "default"
51989
51591
  },
51990
51592
  mcp: { entityTool: "time-entries" },
51991
- inputSchema: /* @__PURE__ */ looseObject({
51992
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51993
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51994
- time_entry_id: /* @__PURE__ */ number$2()
51995
- }),
51593
+ inputSchema: /* @__PURE__ */ looseObject({ time_entry_id: /* @__PURE__ */ number$2() }),
51996
51594
  execute: (input, { client }) => {
51997
51595
  const data = input;
51998
51596
  return client.runGeneratedRequest("deleteTimeEntryWithOrg", () => callGeneratedRequest(deleteTimeEntryWithOrg, [
@@ -52000,8 +51598,6 @@ const generatedFocusOperations = [
52000
51598
  client.organizationId,
52001
51599
  client.workspaceIdNumber,
52002
51600
  data.time_entry_id,
52003
- data.from_recurring_task_id,
52004
- data.return_occurrence,
52005
51601
  void 0
52006
51602
  ]));
52007
51603
  }
@@ -52082,7 +51678,6 @@ const generatedFocusOperations = [
52082
51678
  expand_calendar_event: /* @__PURE__ */ unknown$1(),
52083
51679
  include_taskless: /* @__PURE__ */ unknown$1(),
52084
51680
  order_by: /* @__PURE__ */ unknown$1(),
52085
- project_id: /* @__PURE__ */ number$2(),
52086
51681
  status_id: /* @__PURE__ */ number$2(),
52087
51682
  task_id: /* @__PURE__ */ number$2(),
52088
51683
  type: /* @__PURE__ */ unknown$1()
@@ -52098,6 +51693,33 @@ const generatedFocusOperations = [
52098
51693
  ]));
52099
51694
  }
52100
51695
  },
51696
+ {
51697
+ id: "focus.time-entries.get-stream-time-entries-time-block-ids",
51698
+ family: "focus",
51699
+ resource: "time-entries",
51700
+ action: "get-stream-time-entries-time-block-ids",
51701
+ title: "Get Stream Time Entries Time Block Ids Time Entries",
51702
+ description: "Get Stream Time Entries Time Block Ids Time Entries.",
51703
+ safety: "read",
51704
+ destructive: false,
51705
+ cli: {
51706
+ group: ["time-entries"],
51707
+ command: "get-stream-time-entries-time-block-ids",
51708
+ interactive: "available"
51709
+ },
51710
+ mcp: { entityTool: "time-entries" },
51711
+ inputSchema: /* @__PURE__ */ looseObject({ time_block_id: /* @__PURE__ */ number$2() }),
51712
+ execute: (input, { client }) => {
51713
+ const data = input;
51714
+ return client.runGeneratedRequest("getStreamTimeEntriesTimeBlockIdsWithOrg", () => callGeneratedRequest(getStreamTimeEntriesTimeBlockIdsWithOrg, [
51715
+ client.httpClient,
51716
+ client.organizationId,
51717
+ client.workspaceIdNumber,
51718
+ data,
51719
+ void 0
51720
+ ]));
51721
+ }
51722
+ },
52101
51723
  {
52102
51724
  id: "focus.time-entries.get-task-time-entries",
52103
51725
  family: "focus",
@@ -52119,6 +51741,7 @@ const generatedFocusOperations = [
52119
51741
  page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52120
51742
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
52121
51743
  task_id: /* @__PURE__ */ number$2(),
51744
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52122
51745
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
52123
51746
  }),
52124
51747
  execute: (input, { client }) => {
@@ -52231,14 +51854,12 @@ const generatedFocusOperations = [
52231
51854
  },
52232
51855
  mcp: { entityTool: "time-entries" },
52233
51856
  inputSchema: /* @__PURE__ */ looseObject({
52234
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52235
51857
  payload: /* @__PURE__ */ looseObject({
52236
51858
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52237
51859
  duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52238
51860
  reset_billable_to_default: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52239
51861
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]))
52240
51862
  }),
52241
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52242
51863
  time_entry_id: /* @__PURE__ */ number$2()
52243
51864
  }),
52244
51865
  execute: (input, { client }) => {
@@ -52249,8 +51870,6 @@ const generatedFocusOperations = [
52249
51870
  client.workspaceIdNumber,
52250
51871
  data.time_entry_id,
52251
51872
  data.payload ?? data.data ?? data,
52252
- data.from_recurring_task_id,
52253
- data.return_occurrence,
52254
51873
  void 0
52255
51874
  ]));
52256
51875
  }
@@ -52508,7 +52127,6 @@ const generatedFocusOperations = [
52508
52127
  },
52509
52128
  mcp: { entityTool: "time-entries" },
52510
52129
  inputSchema: /* @__PURE__ */ looseObject({
52511
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52512
52130
  payload: /* @__PURE__ */ looseObject({
52513
52131
  type: /* @__PURE__ */ picklist$1(["activity", "break"]),
52514
52132
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -52518,9 +52136,9 @@ const generatedFocusOperations = [
52518
52136
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52519
52137
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
52520
52138
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
52139
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52521
52140
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
52522
52141
  }),
52523
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52524
52142
  time_entry_id: /* @__PURE__ */ number$2()
52525
52143
  }),
52526
52144
  execute: (input, { client }) => {
@@ -52531,8 +52149,6 @@ const generatedFocusOperations = [
52531
52149
  client.workspaceIdNumber,
52532
52150
  data.time_entry_id,
52533
52151
  data.payload ?? data.data ?? data,
52534
- data.from_recurring_task_id,
52535
- data.return_occurrence,
52536
52152
  void 0
52537
52153
  ]));
52538
52154
  }
@@ -52597,118 +52213,6 @@ const generatedFocusOperations = [
52597
52213
  ]));
52598
52214
  }
52599
52215
  },
52600
- {
52601
- id: "focus.time-off.get-timeoff-balance-changes-for-user",
52602
- family: "focus",
52603
- resource: "time-off",
52604
- action: "get-timeoff-balance-changes-for-user",
52605
- title: "Get Timeoff Balance Changes For User Time Off",
52606
- description: "Get Timeoff Balance Changes For User Time Off.",
52607
- safety: "read",
52608
- destructive: false,
52609
- cli: {
52610
- group: ["time-off"],
52611
- command: "get-timeoff-balance-changes-for-user",
52612
- interactive: "hidden"
52613
- },
52614
- mcp: { entityTool: "time-off" },
52615
- inputSchema: /* @__PURE__ */ looseObject({
52616
- category_id: /* @__PURE__ */ number$2(),
52617
- page: /* @__PURE__ */ number$2(),
52618
- rows: /* @__PURE__ */ unknown$1(),
52619
- user_id: /* @__PURE__ */ number$2(),
52620
- year: /* @__PURE__ */ unknown$1()
52621
- }),
52622
- execute: (input, { client }) => {
52623
- const data = input;
52624
- return client.runGeneratedRequest("getTimeoffBalanceChangesForUserClassic", () => callGeneratedRequest(getTimeoffBalanceChangesForUserClassic, [
52625
- client.httpClient,
52626
- client.organizationId,
52627
- data.user_id,
52628
- data,
52629
- void 0
52630
- ]));
52631
- }
52632
- },
52633
- {
52634
- id: "focus.time-off.get-timeoff-balances-for-user",
52635
- family: "focus",
52636
- resource: "time-off",
52637
- action: "get-timeoff-balances-for-user",
52638
- title: "Get Timeoff Balances For User Time Off",
52639
- description: "Get Timeoff Balances For User Time Off.",
52640
- safety: "read",
52641
- destructive: false,
52642
- cli: {
52643
- group: ["time-off"],
52644
- command: "get-timeoff-balances-for-user",
52645
- interactive: "available"
52646
- },
52647
- mcp: { entityTool: "time-off" },
52648
- inputSchema: /* @__PURE__ */ looseObject({
52649
- category_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52650
- date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
52651
- user_id: /* @__PURE__ */ number$2()
52652
- }),
52653
- execute: (input, { client }) => {
52654
- const data = input;
52655
- return client.runGeneratedRequest("getTimeoffBalancesForUser", () => callGeneratedRequest(getTimeoffBalancesForUser, [
52656
- client.httpClient,
52657
- client.organizationId,
52658
- data.user_id,
52659
- data,
52660
- void 0
52661
- ]));
52662
- }
52663
- },
52664
- {
52665
- id: "focus.time-off.get-timeoff-categories",
52666
- family: "focus",
52667
- resource: "time-off",
52668
- action: "get-timeoff-categories",
52669
- title: "Get Timeoff Categories Time Off",
52670
- description: "Get Timeoff Categories Time Off.",
52671
- safety: "read",
52672
- destructive: false,
52673
- cli: {
52674
- group: ["time-off"],
52675
- command: "get-timeoff-categories",
52676
- interactive: "hidden"
52677
- },
52678
- mcp: { entityTool: "time-off" },
52679
- inputSchema: /* @__PURE__ */ looseObject({}),
52680
- execute: (_input, { client }) => client.runGeneratedRequest("getTimeoffCategories", () => callGeneratedRequest(getTimeoffCategories, [
52681
- client.httpClient,
52682
- client.organizationId,
52683
- void 0
52684
- ]))
52685
- },
52686
- {
52687
- id: "focus.time-off.get-timeoff-category",
52688
- family: "focus",
52689
- resource: "time-off",
52690
- action: "get-timeoff-category",
52691
- title: "Get Timeoff Category Time Off",
52692
- description: "Get Timeoff Category Time Off.",
52693
- safety: "read",
52694
- destructive: false,
52695
- cli: {
52696
- group: ["time-off"],
52697
- command: "get-timeoff-category",
52698
- interactive: "available"
52699
- },
52700
- mcp: { entityTool: "time-off" },
52701
- inputSchema: /* @__PURE__ */ looseObject({ category_id: /* @__PURE__ */ number$2() }),
52702
- execute: (input, { client }) => {
52703
- const data = input;
52704
- return client.runGeneratedRequest("getTimeoffCategory", () => callGeneratedRequest(getTimeoffCategory, [
52705
- client.httpClient,
52706
- client.organizationId,
52707
- data.category_id,
52708
- void 0
52709
- ]));
52710
- }
52711
- },
52712
52216
  {
52713
52217
  id: "focus.time-off.get-timeoff-for-user",
52714
52218
  family: "focus",
@@ -53160,40 +52664,6 @@ const generatedFocusOperations = [
53160
52664
  ]));
53161
52665
  }
53162
52666
  },
53163
- {
53164
- id: "focus.timesheets.get-status-counts",
53165
- family: "focus",
53166
- resource: "timesheets",
53167
- action: "get-status-counts",
53168
- title: "Get Status Counts Timesheets",
53169
- description: "Get Status Counts Timesheets.",
53170
- safety: "read",
53171
- destructive: false,
53172
- cli: {
53173
- group: ["timesheets"],
53174
- command: "get-status-counts",
53175
- interactive: "hidden"
53176
- },
53177
- mcp: { entityTool: "timesheets" },
53178
- inputSchema: /* @__PURE__ */ looseObject({
53179
- approver_user_account_ids: /* @__PURE__ */ unknown$1(),
53180
- date_from: /* @__PURE__ */ unknown$1(),
53181
- date_to: /* @__PURE__ */ unknown$1(),
53182
- setup_id: /* @__PURE__ */ number$2(),
53183
- team_ids: /* @__PURE__ */ unknown$1(),
53184
- user_account_ids: /* @__PURE__ */ unknown$1()
53185
- }),
53186
- execute: (input, { client }) => {
53187
- const data = input;
53188
- return client.runGeneratedRequest("getTimesheetStatusCounts", () => callGeneratedRequest(getTimesheetStatusCounts, [
53189
- client.httpClient,
53190
- client.organizationId,
53191
- client.workspaceIdNumber,
53192
- data,
53193
- void 0
53194
- ]));
53195
- }
53196
- },
53197
52667
  {
53198
52668
  id: "focus.timesheets.remove-timesheet-flag",
53199
52669
  family: "focus",
@@ -53743,33 +53213,6 @@ const generatedFocusOperations = [
53743
53213
  ]));
53744
53214
  }
53745
53215
  },
53746
- {
53747
- id: "focus.track-team-invites.post",
53748
- family: "focus",
53749
- resource: "track-team-invites",
53750
- action: "post",
53751
- title: "Post Track Team Invites",
53752
- description: "Post Track Team Invites.",
53753
- safety: "create",
53754
- destructive: false,
53755
- cli: {
53756
- group: ["track-team-invites"],
53757
- command: "post",
53758
- interactive: "default"
53759
- },
53760
- mcp: { entityTool: "track-team-invites" },
53761
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ organization_user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
53762
- execute: (input, { client }) => {
53763
- const data = input;
53764
- return client.runGeneratedRequest("postTrackTeamInvites", () => callGeneratedRequest(postTrackTeamInvites, [
53765
- client.httpClient,
53766
- client.organizationId,
53767
- client.workspaceIdNumber,
53768
- data.payload ?? data.data ?? data,
53769
- void 0
53770
- ]));
53771
- }
53772
- },
53773
53216
  {
53774
53217
  id: "focus.users.list",
53775
53218
  family: "focus",
@@ -53791,56 +53234,6 @@ const generatedFocusOperations = [
53791
53234
  return client.listOrgUsers(data);
53792
53235
  }
53793
53236
  },
53794
- {
53795
- id: "focus.users.settings-email-unsubscribe",
53796
- family: "focus",
53797
- resource: "users",
53798
- action: "settings-email-unsubscribe",
53799
- title: "Settings Email Unsubscribe Users",
53800
- description: "Settings Email Unsubscribe Users.",
53801
- safety: "update",
53802
- destructive: false,
53803
- cli: {
53804
- group: ["users", "settings"],
53805
- command: "email-unsubscribe",
53806
- interactive: "default"
53807
- },
53808
- mcp: { entityTool: "users" },
53809
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
53810
- execute: (input, { client }) => {
53811
- const data = input;
53812
- return client.runGeneratedRequest("emailUnsubscribe", () => callGeneratedRequest(emailUnsubscribe, [
53813
- client.httpClient,
53814
- data.token,
53815
- void 0
53816
- ]));
53817
- }
53818
- },
53819
- {
53820
- id: "focus.users.settings-email-unsubscribe-page",
53821
- family: "focus",
53822
- resource: "users",
53823
- action: "settings-email-unsubscribe-page",
53824
- title: "Settings Email Unsubscribe Page Users",
53825
- description: "Settings Email Unsubscribe Page Users.",
53826
- safety: "read",
53827
- destructive: false,
53828
- cli: {
53829
- group: ["users", "settings"],
53830
- command: "email-unsubscribe-page",
53831
- interactive: "available"
53832
- },
53833
- mcp: { entityTool: "users" },
53834
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
53835
- execute: (input, { client }) => {
53836
- const data = input;
53837
- return client.runGeneratedRequest("emailUnsubscribePage", () => callGeneratedRequest(emailUnsubscribePage, [
53838
- client.httpClient,
53839
- data.token,
53840
- void 0
53841
- ]));
53842
- }
53843
- },
53844
53237
  {
53845
53238
  id: "focus.users.settings-list",
53846
53239
  family: "focus",
@@ -53902,9 +53295,6 @@ const generatedFocusOperations = [
53902
53295
  has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53903
53296
  import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53904
53297
  new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53905
- notify_project_alerts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53906
- notify_project_member_added: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53907
- notify_task_assigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53908
53298
  onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53909
53299
  onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53910
53300
  onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -55447,7 +54837,7 @@ function registerWorkspaceTools(server) {
55447
54837
  //#region src/package-version.ts
55448
54838
  function mcpPackageVersion() {
55449
54839
  try {
55450
- return "1.11.87";
54840
+ return "1.11.88";
55451
54841
  } catch {
55452
54842
  return "unknown";
55453
54843
  }
@@ -55622,7 +55012,7 @@ import_main.default.config({
55622
55012
  quiet: true,
55623
55013
  ignore: ["MISSING_ENV_FILE"]
55624
55014
  });
55625
- const packageVersion = "1.11.87";
55015
+ const packageVersion = "1.11.88";
55626
55016
  function resolvePublicUrls() {
55627
55017
  return {
55628
55018
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -55687,4 +55077,4 @@ function bootstrapServer(options = {}) {
55687
55077
  //#endregion
55688
55078
  export { getProductAnalyticsDistinctId as a, resolvePublicSentryDsn as c, captureToolInvocation as i, shutdownProductAnalytics as l, runMcpCli as n, initProductAnalytics as o, PUBLIC_SENTRY_PRIVACY_OPTIONS as r, resolveProductAnalyticsDistinctId as s, bootstrapServer as t };
55689
55079
 
55690
- //# sourceMappingURL=src-BJpbMA5N.js.map
55080
+ //# sourceMappingURL=src-dkhZSWKr.js.map