@togglhq/cli 1.11.66 → 1.11.67

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.
@@ -7274,7 +7274,6 @@ const ProjectLiteSchema = /* @__PURE__ */ object({
7274
7274
  name: /* @__PURE__ */ string(),
7275
7275
  permissions: /* @__PURE__ */ array(/* @__PURE__ */ string()),
7276
7276
  archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7277
- billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7278
7277
  client: /* @__PURE__ */ optional(ClientLiteSchema),
7279
7278
  color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7280
7279
  custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
@@ -7361,7 +7360,6 @@ const TaskSchema = /* @__PURE__ */ object({
7361
7360
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7362
7361
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7363
7362
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7364
- 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."))),
7365
7363
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
7366
7364
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7367
7365
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -7423,7 +7421,6 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
7423
7421
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7424
7422
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7425
7423
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7426
- 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."))),
7427
7424
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
7428
7425
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7429
7426
  parent: /* @__PURE__ */ optional(TaskSchema),
@@ -7584,8 +7581,6 @@ const TimeEntrySchema = /* @__PURE__ */ object({
7584
7581
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7585
7582
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7586
7583
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7587
- 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."))),
7588
- 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."))),
7589
7584
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7590
7585
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7591
7586
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -7671,10 +7666,8 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
7671
7666
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7672
7667
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7673
7668
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7674
- filtered_task_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7675
7669
  fixed_fee: /* @__PURE__ */ optional(ProjectFixedFeeSchema),
7676
7670
  parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7677
- picker_parent_group_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7678
7671
  rate: /* @__PURE__ */ optional(EffectiveProjectRatesSummarySchema),
7679
7672
  recurring_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7680
7673
  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)."))),
@@ -7730,8 +7723,6 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
7730
7723
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7731
7724
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7732
7725
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7733
- 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."))),
7734
- 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."))),
7735
7726
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7736
7727
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7737
7728
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -7904,6 +7895,8 @@ const TaskCreatePayloadSchema = /* @__PURE__ */ object({
7904
7895
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7905
7896
  estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
7906
7897
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
7898
+ integration_ext_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7899
+ integration_source: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7907
7900
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7908
7901
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7909
7902
  pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -7960,7 +7953,6 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
7960
7953
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7961
7954
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7962
7955
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7963
- 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."))),
7964
7956
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7965
7957
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7966
7958
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -7997,7 +7989,6 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
7997
7989
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7998
7990
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7999
7991
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
8000
- 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."))),
8001
7992
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
8002
7993
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
8003
7994
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -8018,6 +8009,7 @@ const TimeEntryBulkCreatePayloadSchema = /* @__PURE__ */ object({
8018
8009
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
8019
8010
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
8020
8011
  task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8012
+ time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8021
8013
  tracked_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
8022
8014
  user_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
8023
8015
  });
@@ -8046,7 +8038,8 @@ const TimeEntryStartTrackingPayloadSchema = /* @__PURE__ */ object({
8046
8038
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8047
8039
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
8048
8040
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
8049
- task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
8041
+ task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8042
+ time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
8050
8043
  });
8051
8044
  const TimeEntryStopTrackingPayloadSchema = /* @__PURE__ */ object({ end: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()) });
8052
8045
  //#endregion
@@ -9920,7 +9913,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
9920
9913
  })
9921
9914
  }).json();
9922
9915
  }
9923
- 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) {
9916
+ 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) {
9924
9917
  const response = await httpClient.get(`organizations/${organization_id}/users`, {
9925
9918
  signal,
9926
9919
  searchParams: buildSearchParams$2({
@@ -9941,7 +9934,6 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
9941
9934
  include_rates,
9942
9935
  pinned_ids,
9943
9936
  has_group,
9944
- track_without_focus,
9945
9937
  cf_filter,
9946
9938
  include_custom_fields,
9947
9939
  include_calendar_integration
@@ -10043,20 +10035,10 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
10043
10035
  }
10044
10036
  //#endregion
10045
10037
  //#region ../focus-queries/dist/projects/requests.ts
10046
- 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) {
10038
+ 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) {
10047
10039
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
10048
10040
  signal,
10049
10041
  searchParams: buildSearchParams$2({
10050
- include_task_counts,
10051
- include_picker_parent_group_counts,
10052
- task_archived,
10053
- task_recurring,
10054
- task_state,
10055
- task_source,
10056
- task_assignee_user_id,
10057
- task_assignee_team_id,
10058
- task_include_unassigned,
10059
- task_name,
10060
10042
  page,
10061
10043
  per_page,
10062
10044
  order_by,
@@ -10306,7 +10288,7 @@ async function restoreStatuses(httpClient, workspace_id, status_id, signal) {
10306
10288
  }
10307
10289
  //#endregion
10308
10290
  //#region ../focus-queries/dist/tasks/requests.ts
10309
- 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) {
10291
+ 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) {
10310
10292
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
10311
10293
  signal,
10312
10294
  searchParams: buildSearchParams$2({
@@ -10319,6 +10301,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
10319
10301
  toggl_user_id,
10320
10302
  name,
10321
10303
  has_time_entries,
10304
+ has_time_blocks,
10322
10305
  has_dates,
10323
10306
  private: private_,
10324
10307
  archived,
@@ -10341,6 +10324,10 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
10341
10324
  priority,
10342
10325
  is_priority,
10343
10326
  state,
10327
+ timeblock_start_from,
10328
+ timeblock_start_until,
10329
+ time_block_id,
10330
+ time_block_completed,
10344
10331
  team_id,
10345
10332
  assignee_team_id,
10346
10333
  assignee_user_id,
@@ -10352,11 +10339,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
10352
10339
  include_assignees,
10353
10340
  include_parent_matches,
10354
10341
  disable_aggregations,
10355
- cf_filter,
10356
- recurring_occurrences_after,
10357
- max_recurring_occurrences_after,
10358
- recurring_task_read,
10359
- include_projected_occurrences
10342
+ cf_filter
10360
10343
  })
10361
10344
  }).json();
10362
10345
  }
@@ -10431,44 +10414,16 @@ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id,
10431
10414
  })
10432
10415
  }).json();
10433
10416
  }
10434
- async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, skip_provider_refresh, signal) {
10417
+ async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, signal) {
10435
10418
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
10436
10419
  signal,
10437
10420
  searchParams: buildSearchParams$2({
10438
10421
  date_from,
10439
- date_to,
10440
- skip_provider_refresh
10441
- })
10442
- }).json();
10443
- }
10444
- async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, search, only_me, page, per_page } = {}, signal) {
10445
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
10446
- signal,
10447
- searchParams: buildSearchParams$2({
10448
- project_id,
10449
- without_project,
10450
- pinned_only,
10451
- search,
10452
- only_me,
10453
- page,
10454
- per_page
10455
- })
10456
- }).json();
10457
- }
10458
- async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, search, only_me, page, per_page } = {}, signal) {
10459
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
10460
- signal,
10461
- searchParams: buildSearchParams$2({
10462
- project_id,
10463
- without_project,
10464
- search,
10465
- only_me,
10466
- page,
10467
- per_page
10422
+ date_to
10468
10423
  })
10469
10424
  }).json();
10470
10425
  }
10471
- 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) {
10426
+ 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) {
10472
10427
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
10473
10428
  signal,
10474
10429
  searchParams: buildSearchParams$2({
@@ -10484,15 +10439,11 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
10484
10439
  assignee_team_id,
10485
10440
  assignee_user_id,
10486
10441
  tag_id,
10487
- include_assignees,
10488
- recurring_occurrences_after,
10489
- max_recurring_occurrences_after,
10490
- recurring_task_read,
10491
- include_projected_occurrences
10442
+ include_assignees
10492
10443
  })
10493
10444
  }).json();
10494
10445
  }
10495
- 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) {
10446
+ 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) {
10496
10447
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
10497
10448
  signal,
10498
10449
  searchParams: buildSearchParams$2({
@@ -10504,6 +10455,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
10504
10455
  name,
10505
10456
  include_parent_matches,
10506
10457
  has_time_entries,
10458
+ has_time_blocks,
10507
10459
  has_dates,
10508
10460
  private: private_,
10509
10461
  archived,
@@ -10526,6 +10478,8 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
10526
10478
  priority,
10527
10479
  is_priority,
10528
10480
  state,
10481
+ time_block_id,
10482
+ time_block_completed,
10529
10483
  team_id,
10530
10484
  assignee_team_id,
10531
10485
  assignee_user_id,
@@ -10534,11 +10488,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
10534
10488
  recurring_task_ids,
10535
10489
  client_id,
10536
10490
  include_assignees,
10537
- cf_filter,
10538
- recurring_occurrences_after,
10539
- max_recurring_occurrences_after,
10540
- recurring_task_read,
10541
- include_projected_occurrences
10491
+ cf_filter
10542
10492
  })
10543
10493
  }).json();
10544
10494
  }
@@ -10593,12 +10543,6 @@ async function getTaskWithChildrenClassic(httpClient, organization_id, workspace
10593
10543
  })
10594
10544
  }).json();
10595
10545
  }
10596
- async function createRecurringOccurrence(httpClient, organization_id, workspace_id, task_id, return_occurrence, signal) {
10597
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/occurrences`, {
10598
- signal,
10599
- searchParams: buildSearchParams$2({ return_occurrence })
10600
- }).json();
10601
- }
10602
10546
  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) {
10603
10547
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
10604
10548
  signal,
@@ -10624,7 +10568,7 @@ async function unarchiveTask(httpClient, organization_id, workspace_id, task_id,
10624
10568
  }
10625
10569
  //#endregion
10626
10570
  //#region ../focus-queries/dist/time-entries/requests.ts
10627
- async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived } = {}, signal) {
10571
+ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived, time_block_id } = {}, signal) {
10628
10572
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
10629
10573
  signal,
10630
10574
  searchParams: buildSearchParams$2({
@@ -10632,28 +10576,21 @@ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, wor
10632
10576
  per_page,
10633
10577
  order_by,
10634
10578
  type,
10635
- archived
10579
+ archived,
10580
+ time_block_id
10636
10581
  })
10637
10582
  }).json();
10638
10583
  }
10639
- async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, return_occurrence, signal) {
10584
+ async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
10640
10585
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
10641
10586
  signal,
10642
- json: data,
10643
- searchParams: buildSearchParams$2({
10644
- from_recurring_task_id,
10645
- return_occurrence
10646
- })
10587
+ json: data
10647
10588
  }).json();
10648
10589
  }
10649
- async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, from_recurring_task_id, return_occurrence, signal) {
10590
+ async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
10650
10591
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
10651
10592
  signal,
10652
- json: data,
10653
- searchParams: buildSearchParams$2({
10654
- from_recurring_task_id,
10655
- return_occurrence
10656
- })
10593
+ json: data
10657
10594
  }).json();
10658
10595
  }
10659
10596
  async function getBatchTimeEntriesWithOrg(httpClient, organization_id, workspace_id, { ids }, signal) {
@@ -10704,7 +10641,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
10704
10641
  json: data
10705
10642
  }).json();
10706
10643
  }
10707
- 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) {
10644
+ 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) {
10708
10645
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
10709
10646
  signal,
10710
10647
  searchParams: buildSearchParams$2({
@@ -10712,7 +10649,6 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
10712
10649
  date_to,
10713
10650
  task_id,
10714
10651
  status_id,
10715
- project_id,
10716
10652
  type,
10717
10653
  order_by,
10718
10654
  archived,
@@ -10727,36 +10663,28 @@ async function syncTimeEntry(httpClient, organization_id, workspace_id, client_u
10727
10663
  json: data
10728
10664
  }).json();
10729
10665
  }
10666
+ async function getStreamTimeEntriesTimeBlockIdsWithOrg(httpClient, organization_id, workspace_id, { time_block_id }, signal) {
10667
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/time-block-ids/stream`, {
10668
+ signal,
10669
+ searchParams: buildSearchParams$2({ time_block_id })
10670
+ }).json();
10671
+ }
10730
10672
  async function getTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
10731
10673
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
10732
10674
  }
10733
- async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
10675
+ async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
10734
10676
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
10735
10677
  signal,
10736
- json: data,
10737
- searchParams: buildSearchParams$2({
10738
- from_recurring_task_id,
10739
- return_occurrence
10740
- })
10678
+ json: data
10741
10679
  }).json();
10742
10680
  }
10743
- async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, from_recurring_task_id, return_occurrence, signal) {
10744
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
10745
- signal,
10746
- searchParams: buildSearchParams$2({
10747
- from_recurring_task_id,
10748
- return_occurrence
10749
- })
10750
- }).json();
10681
+ async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
10682
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
10751
10683
  }
10752
- async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
10684
+ async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
10753
10685
  return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
10754
10686
  signal,
10755
- json: data,
10756
- searchParams: buildSearchParams$2({
10757
- from_recurring_task_id,
10758
- return_occurrence
10759
- })
10687
+ json: data
10760
10688
  }).json();
10761
10689
  }
10762
10690
  async function archiveTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
@@ -14441,15 +14369,13 @@ async function getWorkspaceAttachmentStorage(httpClient, organization_id, worksp
14441
14369
  }
14442
14370
  //#endregion
14443
14371
  //#region ../focus-queries/dist/audit-log/requests.ts
14444
- 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) {
14372
+ async function getOrganizationAuditLog(httpClient, organization_id, from, to, { workspace_id, entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
14445
14373
  return await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
14446
14374
  signal,
14447
14375
  searchParams: buildSearchParams$2({
14448
14376
  workspace_id,
14449
14377
  entity_type,
14450
14378
  entity_id,
14451
- project_id,
14452
- custom_field_id,
14453
14379
  action,
14454
14380
  user_id,
14455
14381
  page_size,
@@ -14458,14 +14384,12 @@ async function getOrganizationAuditLog(httpClient, organization_id, from, to, {
14458
14384
  })
14459
14385
  }).json();
14460
14386
  }
14461
- 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) {
14387
+ async function getAuditLog(httpClient, organization_id, workspace_id, from, to, { entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
14462
14388
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
14463
14389
  signal,
14464
14390
  searchParams: buildSearchParams$2({
14465
14391
  entity_type,
14466
14392
  entity_id,
14467
- project_id,
14468
- custom_field_id,
14469
14393
  action,
14470
14394
  user_id,
14471
14395
  page_size,
@@ -14618,14 +14542,13 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
14618
14542
  }
14619
14543
  //#endregion
14620
14544
  //#region ../focus-queries/dist/capacities/requests.ts
14621
- 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) {
14545
+ 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) {
14622
14546
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
14623
14547
  signal,
14624
14548
  searchParams: buildSearchParams$2({
14549
+ user_id,
14625
14550
  start_date,
14626
14551
  end_date,
14627
- user_id,
14628
- team_id,
14629
14552
  private: private_,
14630
14553
  task_source,
14631
14554
  unit,
@@ -14685,15 +14608,6 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
14685
14608
  async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
14686
14609
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
14687
14610
  }
14688
- async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
14689
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
14690
- }
14691
- async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
14692
- return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
14693
- signal,
14694
- json: data
14695
- }).json();
14696
- }
14697
14611
  async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
14698
14612
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
14699
14613
  signal,
@@ -14957,7 +14871,7 @@ async function restoreMilestone(httpClient, workspace_id, milestone_id, signal)
14957
14871
  }
14958
14872
  //#endregion
14959
14873
  //#region ../focus-queries/dist/project-groups/requests.ts
14960
- 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) {
14874
+ 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) {
14961
14875
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
14962
14876
  signal,
14963
14877
  searchParams: buildSearchParams$2({
@@ -14983,7 +14897,6 @@ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id
14983
14897
  user_id,
14984
14898
  only_me,
14985
14899
  include_drafts,
14986
- include_recurring_series,
14987
14900
  cf_filter
14988
14901
  })
14989
14902
  }).json();
@@ -15002,6 +14915,9 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
15002
14915
  json: data
15003
14916
  }).json();
15004
14917
  }
14918
+ async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
14919
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
14920
+ }
15005
14921
  async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
15006
14922
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
15007
14923
  }
@@ -15027,37 +14943,6 @@ async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id
15027
14943
  }).json();
15028
14944
  }
15029
14945
  //#endregion
15030
- //#region ../focus-queries/dist/publicsharedreports/requests.ts
15031
- async function openPublicSharedReport(httpClient, token, signal) {
15032
- return await httpClient.get(`shared/${token}`, { signal }).json();
15033
- }
15034
- async function profitabilityPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
15035
- return await httpClient.post(`shared/${token}/profitability`, {
15036
- signal,
15037
- json: data,
15038
- searchParams: buildSearchParams$2({
15039
- response_format,
15040
- include_dicts
15041
- })
15042
- }).json();
15043
- }
15044
- async function queryPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
15045
- return await httpClient.post(`shared/${token}/query`, {
15046
- signal,
15047
- json: data,
15048
- searchParams: buildSearchParams$2({
15049
- response_format,
15050
- include_dicts
15051
- })
15052
- }).json();
15053
- }
15054
- async function workloadPublicSharedReport(httpClient, token, data, signal) {
15055
- return await httpClient.post(`shared/${token}/workload`, {
15056
- signal,
15057
- json: data
15058
- }).json();
15059
- }
15060
- //#endregion
15061
14946
  //#region ../focus-queries/dist/rates/requests.ts
15062
14947
  async function getProjectRatesSummary(httpClient, organization_id, workspace_id, { page, rows, order_by, search } = {}, signal) {
15063
14948
  const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/rates`, {
@@ -15219,7 +15104,7 @@ async function updateASavedView(httpClient, workspace_id, id, data, signal) {
15219
15104
  }
15220
15105
  //#endregion
15221
15106
  //#region ../focus-queries/dist/search/requests.ts
15222
- 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) {
15107
+ 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) {
15223
15108
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
15224
15109
  signal,
15225
15110
  searchParams: buildSearchParams$2({
@@ -15227,7 +15112,6 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
15227
15112
  per_group,
15228
15113
  assignee_user_id,
15229
15114
  assignee_team_id,
15230
- include_unassigned,
15231
15115
  project_id,
15232
15116
  task_id,
15233
15117
  include_drafts,
@@ -15272,18 +15156,6 @@ async function getSharedReportsSharedWithMe(httpClient, workspace_id, signal) {
15272
15156
  async function getSharedReportForViewer(httpClient, workspace_id, id, signal) {
15273
15157
  return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
15274
15158
  }
15275
- async function unshareSharedReport(httpClient, workspace_id, id, signal) {
15276
- return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
15277
- }
15278
- async function getSharedReportDates(httpClient, workspace_id, id, signal) {
15279
- return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}/dates`, { signal }).json();
15280
- }
15281
- async function setSharedReportDatesLock(httpClient, workspace_id, id, data, signal) {
15282
- return await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/dates`, {
15283
- signal,
15284
- json: data
15285
- }).json();
15286
- }
15287
15159
  async function addSharedReportGrants(httpClient, workspace_id, id, data, signal) {
15288
15160
  return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
15289
15161
  signal,
@@ -15293,21 +15165,6 @@ async function addSharedReportGrants(httpClient, workspace_id, id, data, signal)
15293
15165
  async function revokeSharedReportGrant(httpClient, workspace_id, id, grant_id, signal) {
15294
15166
  return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/grants/${grant_id}`, { signal }).json();
15295
15167
  }
15296
- async function mintSharedReportLink(httpClient, workspace_id, id, data, signal) {
15297
- return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
15298
- signal,
15299
- json: data
15300
- }).json();
15301
- }
15302
- async function revokeSharedReportLink(httpClient, workspace_id, id, signal) {
15303
- return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/link`, { signal }).json();
15304
- }
15305
- async function rotateSharedReportLink(httpClient, workspace_id, id, data, signal) {
15306
- return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
15307
- signal,
15308
- json: data
15309
- }).json();
15310
- }
15311
15168
  //#endregion
15312
15169
  //#region ../focus-queries/dist/subscriptions/requests.ts
15313
15170
  async function getCurrentSubscription(httpClient, organization_id, signal) {
@@ -15364,10 +15221,9 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
15364
15221
  }
15365
15222
  //#endregion
15366
15223
  //#region ../focus-queries/dist/task-groups/requests.ts
15367
- 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) {
15224
+ 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) {
15368
15225
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
15369
15226
  signal,
15370
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
15371
15227
  searchParams: buildSearchParams$2({
15372
15228
  project_id,
15373
15229
  source,
@@ -15396,18 +15252,13 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
15396
15252
  min_days,
15397
15253
  include_drafts,
15398
15254
  cf_filter,
15399
- user_cf_filter,
15400
- recurring_occurrences_after,
15401
- max_recurring_occurrences_after,
15402
- recurring_task_read,
15403
- include_projected_occurrences
15255
+ user_cf_filter
15404
15256
  })
15405
15257
  }).json();
15406
15258
  }
15407
- 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) {
15259
+ 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) {
15408
15260
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
15409
15261
  signal,
15410
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
15411
15262
  searchParams: buildSearchParams$2({
15412
15263
  team_id,
15413
15264
  project_id,
@@ -15436,18 +15287,13 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
15436
15287
  min_days,
15437
15288
  include_drafts,
15438
15289
  cf_filter,
15439
- user_cf_filter,
15440
- recurring_occurrences_after,
15441
- max_recurring_occurrences_after,
15442
- recurring_task_read,
15443
- include_projected_occurrences
15290
+ user_cf_filter
15444
15291
  })
15445
15292
  }).json();
15446
15293
  }
15447
- 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) {
15294
+ 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) {
15448
15295
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
15449
15296
  signal,
15450
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
15451
15297
  searchParams: buildSearchParams$2({
15452
15298
  source,
15453
15299
  priority,
@@ -15477,10 +15323,6 @@ async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, g
15477
15323
  include_drafts,
15478
15324
  cf_filter,
15479
15325
  user_cf_filter,
15480
- recurring_occurrences_after,
15481
- max_recurring_occurrences_after,
15482
- recurring_task_read,
15483
- include_projected_occurrences,
15484
15326
  page,
15485
15327
  per_page,
15486
15328
  order_by
@@ -15508,6 +15350,104 @@ async function getProjectSuggestionsForMultipleTasks(httpClient, organization_id
15508
15350
  }).json();
15509
15351
  }
15510
15352
  //#endregion
15353
+ //#region ../focus-queries/dist/time-blocks/requests.ts
15354
+ async function getTaskTimeBlocksWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, archived } = {}, signal) {
15355
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
15356
+ signal,
15357
+ searchParams: buildSearchParams$2({
15358
+ page,
15359
+ per_page,
15360
+ order_by,
15361
+ archived
15362
+ })
15363
+ }).json();
15364
+ }
15365
+ async function createTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
15366
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
15367
+ signal,
15368
+ json: data
15369
+ }).json();
15370
+ }
15371
+ async function getTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15372
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, { signal }).json();
15373
+ }
15374
+ async function updateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
15375
+ return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
15376
+ signal,
15377
+ json: data
15378
+ }).json();
15379
+ }
15380
+ async function deleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, outbound_sync, signal) {
15381
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
15382
+ signal,
15383
+ searchParams: buildSearchParams$2({ outbound_sync })
15384
+ }).json();
15385
+ }
15386
+ async function partialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
15387
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
15388
+ signal,
15389
+ json: data
15390
+ }).json();
15391
+ }
15392
+ async function archiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15393
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/archive`, { signal }).json();
15394
+ }
15395
+ async function restoreTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15396
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/restore`, { signal }).json();
15397
+ }
15398
+ async function unarchiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15399
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/unarchive`, { signal }).json();
15400
+ }
15401
+ async function getTimeBlocksRangeWithOrgClassic(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, page, per_page, archived, order_by }, signal) {
15402
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks`, {
15403
+ signal,
15404
+ searchParams: buildSearchParams$2({
15405
+ date_from,
15406
+ date_to,
15407
+ task_id,
15408
+ status_id,
15409
+ page,
15410
+ per_page,
15411
+ archived,
15412
+ order_by
15413
+ })
15414
+ }).json();
15415
+ }
15416
+ async function bulkCreateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
15417
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
15418
+ signal,
15419
+ json: data
15420
+ }).json();
15421
+ }
15422
+ async function bulkDeleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, ids, outbound_sync, signal) {
15423
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
15424
+ signal,
15425
+ searchParams: buildSearchParams$2({
15426
+ ids,
15427
+ outbound_sync
15428
+ })
15429
+ }).json();
15430
+ }
15431
+ async function bulkPartialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
15432
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
15433
+ signal,
15434
+ json: data
15435
+ }).json();
15436
+ }
15437
+ async function getTimeBlocksRangeStreamWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, archived, order_by }, signal) {
15438
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/stream`, {
15439
+ signal,
15440
+ searchParams: buildSearchParams$2({
15441
+ date_from,
15442
+ date_to,
15443
+ task_id,
15444
+ status_id,
15445
+ archived,
15446
+ order_by
15447
+ })
15448
+ }).json();
15449
+ }
15450
+ //#endregion
15511
15451
  //#region ../focus-queries/dist/time-entry-constraints/requests.ts
15512
15452
  async function getTimeEntryConstraints(httpClient, workspace_id, signal) {
15513
15453
  return await httpClient.get(`workspaces/${workspace_id}/time-entry-constraints`, { signal }).json();
@@ -15672,19 +15612,6 @@ async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id,
15672
15612
  json: data
15673
15613
  }).json();
15674
15614
  }
15675
- async function getTimesheetStatusCounts(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids }, signal) {
15676
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
15677
- signal,
15678
- searchParams: buildSearchParams$2({
15679
- date_from,
15680
- date_to,
15681
- setup_id,
15682
- user_account_ids,
15683
- approver_user_account_ids,
15684
- team_ids
15685
- })
15686
- }).json();
15687
- }
15688
15615
  async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
15689
15616
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal }).json();
15690
15617
  }
@@ -15728,21 +15655,7 @@ async function withdrawTimesheet(httpClient, organization_id, workspace_id, setu
15728
15655
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal }).json();
15729
15656
  }
15730
15657
  //#endregion
15731
- //#region ../focus-queries/dist/track-team-invites/requests.ts
15732
- async function postTrackTeamInvites(httpClient, organization_id, workspace_id, data, signal) {
15733
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
15734
- signal,
15735
- json: data
15736
- }).json();
15737
- }
15738
- //#endregion
15739
15658
  //#region ../focus-queries/dist/user-settings/requests.ts
15740
- async function emailUnsubscribePage(httpClient, token, signal) {
15741
- return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
15742
- }
15743
- async function emailUnsubscribe(httpClient, token, signal) {
15744
- return await httpClient.post(`email/unsubscribe/${token}`, { signal }).json();
15745
- }
15746
15659
  async function getUserSettings(httpClient, signal) {
15747
15660
  return await httpClient.get(`users/me/settings`, { signal }).json();
15748
15661
  }
@@ -15982,7 +15895,6 @@ const generatedFocusOperations = [
15982
15895
  mcp: { entityTool: "audit-log" },
15983
15896
  inputSchema: /* @__PURE__ */ looseObject({
15984
15897
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
15985
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
15986
15898
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
15987
15899
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
15988
15900
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -15990,7 +15902,6 @@ const generatedFocusOperations = [
15990
15902
  from: /* @__PURE__ */ string$1(),
15991
15903
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
15992
15904
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
15993
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
15994
15905
  to: /* @__PURE__ */ string$1(),
15995
15906
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
15996
15907
  workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -16024,7 +15935,6 @@ const generatedFocusOperations = [
16024
15935
  mcp: { entityTool: "audit-log" },
16025
15936
  inputSchema: /* @__PURE__ */ looseObject({
16026
15937
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16027
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16028
15938
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16029
15939
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16030
15940
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -16032,7 +15942,6 @@ const generatedFocusOperations = [
16032
15942
  from: /* @__PURE__ */ string$1(),
16033
15943
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16034
15944
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16035
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16036
15945
  to: /* @__PURE__ */ string$1(),
16037
15946
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
16038
15947
  }),
@@ -16072,7 +15981,6 @@ const generatedFocusOperations = [
16072
15981
  private_: /* @__PURE__ */ unknown$1(),
16073
15982
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16074
15983
  task_source: /* @__PURE__ */ unknown$1(),
16075
- team_id: /* @__PURE__ */ number$2(),
16076
15984
  unit: /* @__PURE__ */ unknown$1(),
16077
15985
  user_id: /* @__PURE__ */ number$2()
16078
15986
  }),
@@ -16322,6 +16230,8 @@ const generatedFocusOperations = [
16322
16230
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
16323
16231
  estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
16324
16232
  estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16233
+ integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16234
+ integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16325
16235
  notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16326
16236
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16327
16237
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -16355,6 +16265,8 @@ const generatedFocusOperations = [
16355
16265
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
16356
16266
  estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
16357
16267
  estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16268
+ integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16269
+ integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16358
16270
  notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16359
16271
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
16360
16272
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
@@ -16370,6 +16282,12 @@ const generatedFocusOperations = [
16370
16282
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
16371
16283
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
16372
16284
  }))),
16285
+ time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
16286
+ start: apiDateTimeString,
16287
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
16288
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16289
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
16290
+ }))),
16373
16291
  time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
16374
16292
  type: /* @__PURE__ */ picklist$1(["activity", "break"]),
16375
16293
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -16379,6 +16297,13 @@ const generatedFocusOperations = [
16379
16297
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16380
16298
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16381
16299
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
16300
+ time_block: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
16301
+ start: apiDateTimeString,
16302
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
16303
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16304
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
16305
+ })),
16306
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16382
16307
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
16383
16308
  }))
16384
16309
  }) }),
@@ -16496,33 +16421,6 @@ const generatedFocusOperations = [
16496
16421
  ]));
16497
16422
  }
16498
16423
  },
16499
- {
16500
- id: "focus.custom-fields.get-allowed-users",
16501
- family: "focus",
16502
- resource: "custom-fields",
16503
- action: "get-allowed-users",
16504
- title: "Get Allowed Users Custom Fields",
16505
- description: "Get Allowed Users Custom Fields.",
16506
- safety: "read",
16507
- destructive: false,
16508
- cli: {
16509
- group: ["custom-fields"],
16510
- command: "get-allowed-users",
16511
- interactive: "available"
16512
- },
16513
- mcp: { entityTool: "custom-fields" },
16514
- inputSchema: /* @__PURE__ */ looseObject({ custom_field_id: /* @__PURE__ */ number$2() }),
16515
- execute: (input, { client }) => {
16516
- const data = input;
16517
- return client.runGeneratedRequest("getCustomFieldAllowedUsers", () => callGeneratedRequest(getCustomFieldAllowedUsers, [
16518
- client.httpClient,
16519
- client.organizationId,
16520
- client.workspaceIdNumber,
16521
- data.custom_field_id,
16522
- void 0
16523
- ]));
16524
- }
16525
- },
16526
16424
  {
16527
16425
  id: "focus.custom-fields.list",
16528
16426
  family: "focus",
@@ -16692,37 +16590,6 @@ const generatedFocusOperations = [
16692
16590
  ]));
16693
16591
  }
16694
16592
  },
16695
- {
16696
- id: "focus.custom-fields.replace-custom-field-allowed-users",
16697
- family: "focus",
16698
- resource: "custom-fields",
16699
- action: "replace-custom-field-allowed-users",
16700
- title: "Replace Custom Field Allowed Users Custom Fields",
16701
- description: "Replace Custom Field Allowed Users Custom Fields.",
16702
- safety: "update",
16703
- destructive: false,
16704
- cli: {
16705
- group: ["custom-fields"],
16706
- command: "replace-custom-field-allowed-users",
16707
- interactive: "default"
16708
- },
16709
- mcp: { entityTool: "custom-fields" },
16710
- inputSchema: /* @__PURE__ */ looseObject({
16711
- custom_field_id: /* @__PURE__ */ number$2(),
16712
- payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) })
16713
- }),
16714
- execute: (input, { client }) => {
16715
- const data = input;
16716
- return client.runGeneratedRequest("replaceCustomFieldAllowedUsers", () => callGeneratedRequest(replaceCustomFieldAllowedUsers, [
16717
- client.httpClient,
16718
- client.organizationId,
16719
- client.workspaceIdNumber,
16720
- data.custom_field_id,
16721
- data.payload ?? data.data ?? data,
16722
- void 0
16723
- ]));
16724
- }
16725
- },
16726
16593
  {
16727
16594
  id: "focus.custom-fields.update",
16728
16595
  family: "focus",
@@ -16869,7 +16736,13 @@ const generatedFocusOperations = [
16869
16736
  },
16870
16737
  mcp: { entityTool: "goals" },
16871
16738
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
16739
+ billable: /* @__PURE__ */ boolean$1(),
16872
16740
  comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
16741
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16742
+ icon: /* @__PURE__ */ string$1(),
16743
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
16744
+ name: /* @__PURE__ */ string$1(),
16745
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16873
16746
  recurrence: /* @__PURE__ */ picklist$1([
16874
16747
  "daily",
16875
16748
  "weekly",
@@ -16877,18 +16750,12 @@ const generatedFocusOperations = [
16877
16750
  "monthly"
16878
16751
  ]),
16879
16752
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16753
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16880
16754
  target_seconds: /* @__PURE__ */ number$2(),
16881
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
16755
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16756
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16882
16757
  client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
16883
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16884
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
16885
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16886
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
16887
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16888
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
16889
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
16890
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
16891
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
16758
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
16892
16759
  }) }),
16893
16760
  execute: (input, { client }) => {
16894
16761
  const data = input;
@@ -16994,6 +16861,13 @@ const generatedFocusOperations = [
16994
16861
  },
16995
16862
  mcp: { entityTool: "goals" },
16996
16863
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
16864
+ billable: /* @__PURE__ */ boolean$1(),
16865
+ comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
16866
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16867
+ icon: /* @__PURE__ */ string$1(),
16868
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
16869
+ name: /* @__PURE__ */ string$1(),
16870
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16997
16871
  recurrence: /* @__PURE__ */ picklist$1([
16998
16872
  "daily",
16999
16873
  "weekly",
@@ -17001,19 +16875,12 @@ const generatedFocusOperations = [
17001
16875
  "monthly"
17002
16876
  ]),
17003
16877
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
17004
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
16878
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16879
+ target_seconds: /* @__PURE__ */ number$2(),
16880
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16881
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
17005
16882
  client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17006
- comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["more_than", "less_than"])),
17007
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17008
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17009
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17010
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
17011
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17012
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17013
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17014
- target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17015
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17016
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
16883
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
17017
16884
  }) }),
17018
16885
  execute: (input, { client }) => {
17019
16886
  const data = input;
@@ -17980,17 +17847,9 @@ const generatedFocusOperations = [
17980
17847
  mcp: { entityTool: "projects" },
17981
17848
  inputSchema: /* @__PURE__ */ looseObject({
17982
17849
  payload: /* @__PURE__ */ looseObject({
17983
- auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17984
- completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
17985
17850
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17986
17851
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17987
17852
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17988
- rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
17989
- "expire",
17990
- "carry_all",
17991
- "carry_over"
17992
- ])),
17993
- rrule: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17994
17853
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
17995
17854
  }),
17996
17855
  project_id: /* @__PURE__ */ number$2()
@@ -18434,7 +18293,6 @@ const generatedFocusOperations = [
18434
18293
  group: /* @__PURE__ */ string$1(),
18435
18294
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18436
18295
  include_group_totals: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18437
- include_recurring_series: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18438
18296
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18439
18297
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18440
18298
  only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -18537,6 +18395,29 @@ const generatedFocusOperations = [
18537
18395
  ]));
18538
18396
  }
18539
18397
  },
18398
+ {
18399
+ id: "focus.projects.margin-targets-clear-workspace",
18400
+ family: "focus",
18401
+ resource: "projects",
18402
+ action: "margin-targets-clear-workspace",
18403
+ title: "Margin Targets Clear Workspace Projects",
18404
+ description: "Margin Targets Clear Workspace Projects.",
18405
+ safety: "delete",
18406
+ destructive: true,
18407
+ cli: {
18408
+ group: ["projects", "margin-targets"],
18409
+ command: "clear-workspace",
18410
+ interactive: "default"
18411
+ },
18412
+ mcp: { entityTool: "projects" },
18413
+ inputSchema: /* @__PURE__ */ looseObject({}),
18414
+ execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
18415
+ client.httpClient,
18416
+ client.organizationId,
18417
+ client.workspaceIdNumber,
18418
+ void 0
18419
+ ]))
18420
+ },
18540
18421
  {
18541
18422
  id: "focus.projects.margin-targets-get",
18542
18423
  family: "focus",
@@ -18981,130 +18862,6 @@ const generatedFocusOperations = [
18981
18862
  ]));
18982
18863
  }
18983
18864
  },
18984
- {
18985
- id: "focus.publicsharedreports.open-public-shared-report",
18986
- family: "focus",
18987
- resource: "publicsharedreports",
18988
- action: "open-public-shared-report",
18989
- title: "Open Public Shared Report Publicsharedreports",
18990
- description: "Open Public Shared Report Publicsharedreports.",
18991
- safety: "read",
18992
- destructive: false,
18993
- cli: {
18994
- group: ["publicsharedreports"],
18995
- command: "open-public-shared-report",
18996
- interactive: "available"
18997
- },
18998
- mcp: { entityTool: "publicsharedreports" },
18999
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
19000
- execute: (input, { client }) => {
19001
- const data = input;
19002
- return client.runGeneratedRequest("openPublicSharedReport", () => callGeneratedRequest(openPublicSharedReport, [
19003
- client.httpClient,
19004
- data.token,
19005
- void 0
19006
- ]));
19007
- }
19008
- },
19009
- {
19010
- id: "focus.publicsharedreports.profitability-public-shared-report",
19011
- family: "focus",
19012
- resource: "publicsharedreports",
19013
- action: "profitability-public-shared-report",
19014
- title: "Profitability Public Shared Report Publicsharedreports",
19015
- description: "Profitability Public Shared Report Publicsharedreports.",
19016
- safety: "update",
19017
- destructive: false,
19018
- cli: {
19019
- group: ["publicsharedreports"],
19020
- command: "profitability-public-shared-report",
19021
- interactive: "default"
19022
- },
19023
- mcp: { entityTool: "publicsharedreports" },
19024
- inputSchema: /* @__PURE__ */ looseObject({
19025
- include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
19026
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
19027
- response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["json_row", "hierarchical"])),
19028
- token: /* @__PURE__ */ string$1()
19029
- }),
19030
- execute: (input, { client }) => {
19031
- const data = input;
19032
- return client.runGeneratedRequest("profitabilityPublicSharedReport", () => callGeneratedRequest(profitabilityPublicSharedReport, [
19033
- client.httpClient,
19034
- data.token,
19035
- data.payload ?? data.data ?? data,
19036
- data.response_format,
19037
- data.include_dicts,
19038
- void 0
19039
- ]));
19040
- }
19041
- },
19042
- {
19043
- id: "focus.publicsharedreports.query-public-shared-report",
19044
- family: "focus",
19045
- resource: "publicsharedreports",
19046
- action: "query-public-shared-report",
19047
- title: "Query Public Shared Report Publicsharedreports",
19048
- description: "Query Public Shared Report Publicsharedreports.",
19049
- safety: "update",
19050
- destructive: false,
19051
- cli: {
19052
- group: ["publicsharedreports"],
19053
- command: "query-public-shared-report",
19054
- interactive: "default"
19055
- },
19056
- mcp: { entityTool: "publicsharedreports" },
19057
- inputSchema: /* @__PURE__ */ looseObject({
19058
- include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
19059
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
19060
- response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
19061
- "json_row",
19062
- "table",
19063
- "hierarchical"
19064
- ])),
19065
- token: /* @__PURE__ */ string$1()
19066
- }),
19067
- execute: (input, { client }) => {
19068
- const data = input;
19069
- return client.runGeneratedRequest("queryPublicSharedReport", () => callGeneratedRequest(queryPublicSharedReport, [
19070
- client.httpClient,
19071
- data.token,
19072
- data.payload ?? data.data ?? data,
19073
- data.response_format,
19074
- data.include_dicts,
19075
- void 0
19076
- ]));
19077
- }
19078
- },
19079
- {
19080
- id: "focus.publicsharedreports.workload-public-shared-report",
19081
- family: "focus",
19082
- resource: "publicsharedreports",
19083
- action: "workload-public-shared-report",
19084
- title: "Workload Public Shared Report Publicsharedreports",
19085
- description: "Workload Public Shared Report Publicsharedreports.",
19086
- safety: "update",
19087
- destructive: false,
19088
- cli: {
19089
- group: ["publicsharedreports"],
19090
- command: "workload-public-shared-report",
19091
- interactive: "default"
19092
- },
19093
- mcp: { entityTool: "publicsharedreports" },
19094
- inputSchema: /* @__PURE__ */ looseObject({
19095
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
19096
- token: /* @__PURE__ */ string$1()
19097
- }),
19098
- execute: (input, { client }) => {
19099
- const data = input;
19100
- return client.runGeneratedRequest("workloadPublicSharedReport", () => callGeneratedRequest(workloadPublicSharedReport, [
19101
- client.httpClient,
19102
- data.token,
19103
- data.payload ?? data.data ?? data,
19104
- void 0
19105
- ]));
19106
- }
19107
- },
19108
18865
  {
19109
18866
  id: "focus.rates.billable-check-project-billable-rate-conflicts",
19110
18867
  family: "focus",
@@ -21063,7 +20820,7 @@ const generatedFocusOperations = [
21063
20820
  cli: {
21064
20821
  group: ["reportschedules"],
21065
20822
  command: "upsert-saved-view-schedule",
21066
- interactive: "hidden"
20823
+ interactive: "default"
21067
20824
  },
21068
20825
  mcp: { entityTool: "reportschedules" },
21069
20826
  inputSchema: /* @__PURE__ */ looseObject({
@@ -21074,10 +20831,8 @@ const generatedFocusOperations = [
21074
20831
  "weekly",
21075
20832
  "monthly"
21076
20833
  ]),
21077
- charts: /* @__PURE__ */ unknown$1(),
21078
20834
  time: /* @__PURE__ */ string$1(),
21079
20835
  day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21080
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
21081
20836
  recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
21082
20837
  recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
21083
20838
  recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
@@ -21410,32 +21165,6 @@ const generatedFocusOperations = [
21410
21165
  ]));
21411
21166
  }
21412
21167
  },
21413
- {
21414
- id: "focus.sharedreports.get-shared-report-dates",
21415
- family: "focus",
21416
- resource: "sharedreports",
21417
- action: "get-shared-report-dates",
21418
- title: "Get Shared Report Dates Sharedreports",
21419
- description: "Get Shared Report Dates Sharedreports.",
21420
- safety: "read",
21421
- destructive: false,
21422
- cli: {
21423
- group: ["sharedreports"],
21424
- command: "get-shared-report-dates",
21425
- interactive: "available"
21426
- },
21427
- mcp: { entityTool: "sharedreports" },
21428
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
21429
- execute: (input, { client }) => {
21430
- const data = input;
21431
- return client.runGeneratedRequest("getSharedReportDates", () => callGeneratedRequest(getSharedReportDates, [
21432
- client.httpClient,
21433
- client.workspaceIdNumber,
21434
- data.id,
21435
- void 0
21436
- ]));
21437
- }
21438
- },
21439
21168
  {
21440
21169
  id: "focus.sharedreports.get-shared-report-for-viewer",
21441
21170
  family: "focus",
@@ -21506,36 +21235,6 @@ const generatedFocusOperations = [
21506
21235
  void 0
21507
21236
  ]))
21508
21237
  },
21509
- {
21510
- id: "focus.sharedreports.mint-shared-report-link",
21511
- family: "focus",
21512
- resource: "sharedreports",
21513
- action: "mint-shared-report-link",
21514
- title: "Mint Shared Report Link Sharedreports",
21515
- description: "Mint Shared Report Link Sharedreports.",
21516
- safety: "update",
21517
- destructive: false,
21518
- cli: {
21519
- group: ["sharedreports"],
21520
- command: "mint-shared-report-link",
21521
- interactive: "default"
21522
- },
21523
- mcp: { entityTool: "sharedreports" },
21524
- inputSchema: /* @__PURE__ */ looseObject({
21525
- id: /* @__PURE__ */ number$2(),
21526
- payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
21527
- }),
21528
- execute: (input, { client }) => {
21529
- const data = input;
21530
- return client.runGeneratedRequest("mintSharedReportLink", () => callGeneratedRequest(mintSharedReportLink, [
21531
- client.httpClient,
21532
- client.workspaceIdNumber,
21533
- data.id,
21534
- data.payload ?? data.data ?? data,
21535
- void 0
21536
- ]));
21537
- }
21538
- },
21539
21238
  {
21540
21239
  id: "focus.sharedreports.revoke-shared-report-grant",
21541
21240
  family: "focus",
@@ -21566,92 +21265,6 @@ const generatedFocusOperations = [
21566
21265
  ]));
21567
21266
  }
21568
21267
  },
21569
- {
21570
- id: "focus.sharedreports.revoke-shared-report-link",
21571
- family: "focus",
21572
- resource: "sharedreports",
21573
- action: "revoke-shared-report-link",
21574
- title: "Revoke Shared Report Link Sharedreports",
21575
- description: "Revoke Shared Report Link Sharedreports.",
21576
- safety: "delete",
21577
- destructive: true,
21578
- cli: {
21579
- group: ["sharedreports"],
21580
- command: "revoke-shared-report-link",
21581
- interactive: "default"
21582
- },
21583
- mcp: { entityTool: "sharedreports" },
21584
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
21585
- execute: (input, { client }) => {
21586
- const data = input;
21587
- return client.runGeneratedRequest("revokeSharedReportLink", () => callGeneratedRequest(revokeSharedReportLink, [
21588
- client.httpClient,
21589
- client.workspaceIdNumber,
21590
- data.id,
21591
- void 0
21592
- ]));
21593
- }
21594
- },
21595
- {
21596
- id: "focus.sharedreports.rotate-shared-report-link",
21597
- family: "focus",
21598
- resource: "sharedreports",
21599
- action: "rotate-shared-report-link",
21600
- title: "Rotate Shared Report Link Sharedreports",
21601
- description: "Rotate Shared Report Link Sharedreports.",
21602
- safety: "update",
21603
- destructive: false,
21604
- cli: {
21605
- group: ["sharedreports"],
21606
- command: "rotate-shared-report-link",
21607
- interactive: "default"
21608
- },
21609
- mcp: { entityTool: "sharedreports" },
21610
- inputSchema: /* @__PURE__ */ looseObject({
21611
- id: /* @__PURE__ */ number$2(),
21612
- payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
21613
- }),
21614
- execute: (input, { client }) => {
21615
- const data = input;
21616
- return client.runGeneratedRequest("rotateSharedReportLink", () => callGeneratedRequest(rotateSharedReportLink, [
21617
- client.httpClient,
21618
- client.workspaceIdNumber,
21619
- data.id,
21620
- data.payload ?? data.data ?? data,
21621
- void 0
21622
- ]));
21623
- }
21624
- },
21625
- {
21626
- id: "focus.sharedreports.set-shared-report-dates-lock",
21627
- family: "focus",
21628
- resource: "sharedreports",
21629
- action: "set-shared-report-dates-lock",
21630
- title: "Set Shared Report Dates Lock Sharedreports",
21631
- description: "Set Shared Report Dates Lock Sharedreports.",
21632
- safety: "update",
21633
- destructive: false,
21634
- cli: {
21635
- group: ["sharedreports"],
21636
- command: "set-shared-report-dates-lock",
21637
- interactive: "default"
21638
- },
21639
- mcp: { entityTool: "sharedreports" },
21640
- inputSchema: /* @__PURE__ */ looseObject({
21641
- id: /* @__PURE__ */ number$2(),
21642
- payload: /* @__PURE__ */ looseObject({ locked: /* @__PURE__ */ boolean$1() })
21643
- }),
21644
- execute: (input, { client }) => {
21645
- const data = input;
21646
- return client.runGeneratedRequest("setSharedReportDatesLock", () => callGeneratedRequest(setSharedReportDatesLock, [
21647
- client.httpClient,
21648
- client.workspaceIdNumber,
21649
- data.id,
21650
- data.payload ?? data.data ?? data,
21651
- void 0
21652
- ]));
21653
- }
21654
- },
21655
21268
  {
21656
21269
  id: "focus.sharedreports.share-saved-view",
21657
21270
  family: "focus",
@@ -21726,32 +21339,6 @@ const generatedFocusOperations = [
21726
21339
  ]));
21727
21340
  }
21728
21341
  },
21729
- {
21730
- id: "focus.sharedreports.unshare-shared-report",
21731
- family: "focus",
21732
- resource: "sharedreports",
21733
- action: "unshare-shared-report",
21734
- title: "Unshare Shared Report Sharedreports",
21735
- description: "Unshare Shared Report Sharedreports.",
21736
- safety: "delete",
21737
- destructive: true,
21738
- cli: {
21739
- group: ["sharedreports"],
21740
- command: "unshare-shared-report",
21741
- interactive: "default"
21742
- },
21743
- mcp: { entityTool: "sharedreports" },
21744
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
21745
- execute: (input, { client }) => {
21746
- const data = input;
21747
- return client.runGeneratedRequest("unshareSharedReport", () => callGeneratedRequest(unshareSharedReport, [
21748
- client.httpClient,
21749
- client.workspaceIdNumber,
21750
- data.id,
21751
- void 0
21752
- ]));
21753
- }
21754
- },
21755
21342
  {
21756
21343
  id: "focus.statuses.create-status",
21757
21344
  family: "focus",
@@ -22795,52 +22382,21 @@ const generatedFocusOperations = [
22795
22382
  }
22796
22383
  },
22797
22384
  {
22798
- id: "focus.tasks.create-recurring-occurrence",
22385
+ id: "focus.tasks.delete",
22799
22386
  family: "focus",
22800
22387
  resource: "tasks",
22801
- action: "create-recurring-occurrence",
22802
- title: "Create Recurring Occurrence Tasks",
22803
- description: "Create Recurring Occurrence Tasks.",
22804
- safety: "create",
22805
- destructive: false,
22388
+ action: "delete",
22389
+ title: "Delete Tasks",
22390
+ description: "Delete Tasks.",
22391
+ safety: "delete",
22392
+ destructive: true,
22806
22393
  cli: {
22807
22394
  group: ["tasks"],
22808
- command: "create-recurring-occurrence",
22395
+ command: "delete",
22809
22396
  interactive: "default"
22810
22397
  },
22811
22398
  mcp: { entityTool: "tasks" },
22812
- inputSchema: /* @__PURE__ */ looseObject({
22813
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
22814
- task_id: /* @__PURE__ */ number$2()
22815
- }),
22816
- execute: (input, { client }) => {
22817
- const data = input;
22818
- return client.runGeneratedRequest("createRecurringOccurrence", () => callGeneratedRequest(createRecurringOccurrence, [
22819
- client.httpClient,
22820
- client.organizationId,
22821
- client.workspaceIdNumber,
22822
- data.task_id,
22823
- data.return_occurrence,
22824
- void 0
22825
- ]));
22826
- }
22827
- },
22828
- {
22829
- id: "focus.tasks.delete",
22830
- family: "focus",
22831
- resource: "tasks",
22832
- action: "delete",
22833
- title: "Delete Tasks",
22834
- description: "Delete Tasks.",
22835
- safety: "delete",
22836
- destructive: true,
22837
- cli: {
22838
- group: ["tasks"],
22839
- command: "delete",
22840
- interactive: "default"
22841
- },
22842
- mcp: { entityTool: "tasks" },
22843
- inputSchema: taskIdSchema,
22399
+ inputSchema: taskIdSchema,
22844
22400
  execute: (input, { client }) => {
22845
22401
  const data = input;
22846
22402
  return client.deleteTask(data.task_id);
@@ -23049,77 +22605,6 @@ const generatedFocusOperations = [
23049
22605
  ]));
23050
22606
  }
23051
22607
  },
23052
- {
23053
- id: "focus.tasks.get-picker-task-children",
23054
- family: "focus",
23055
- resource: "tasks",
23056
- action: "get-picker-task-children",
23057
- title: "Get Picker Task Children Tasks",
23058
- description: "Get Picker Task Children Tasks.",
23059
- safety: "read",
23060
- destructive: false,
23061
- cli: {
23062
- group: ["tasks"],
23063
- command: "get-picker-task-children",
23064
- interactive: "hidden"
23065
- },
23066
- mcp: { entityTool: "tasks" },
23067
- inputSchema: /* @__PURE__ */ looseObject({
23068
- only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23069
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23070
- parent_task_id: /* @__PURE__ */ number$2(),
23071
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23072
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23073
- search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23074
- without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23075
- }),
23076
- execute: (input, { client }) => {
23077
- const data = input;
23078
- return client.runGeneratedRequest("getPickerTaskChildrenClassic", () => callGeneratedRequest(getPickerTaskChildrenClassic, [
23079
- client.httpClient,
23080
- client.organizationId,
23081
- client.workspaceIdNumber,
23082
- data.parent_task_id,
23083
- data,
23084
- void 0
23085
- ]));
23086
- }
23087
- },
23088
- {
23089
- id: "focus.tasks.get-picker-task-groups",
23090
- family: "focus",
23091
- resource: "tasks",
23092
- action: "get-picker-task-groups",
23093
- title: "Get Picker Task Groups Tasks",
23094
- description: "Get Picker Task Groups Tasks.",
23095
- safety: "read",
23096
- destructive: false,
23097
- cli: {
23098
- group: ["tasks"],
23099
- command: "get-picker-task-groups",
23100
- interactive: "hidden"
23101
- },
23102
- mcp: { entityTool: "tasks" },
23103
- inputSchema: /* @__PURE__ */ looseObject({
23104
- only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23105
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23106
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23107
- pinned_only: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23108
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23109
- search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23110
- without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23111
- }),
23112
- execute: (input, { client }) => {
23113
- const data = input;
23114
- return client.runGeneratedRequest("getPickerTaskGroupsClassic", () => callGeneratedRequest(getPickerTaskGroupsClassic, [
23115
- client.httpClient,
23116
- client.organizationId,
23117
- client.workspaceIdNumber,
23118
- data,
23119
- void 0
23120
- ]));
23121
- }
23122
- },
23123
22608
  {
23124
22609
  id: "focus.tasks.get-recurring-instances",
23125
22610
  family: "focus",
@@ -23143,13 +22628,9 @@ const generatedFocusOperations = [
23143
22628
  dates_overlap_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23144
22629
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23145
22630
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23146
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23147
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23148
22631
  page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23149
22632
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23150
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23151
22633
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23152
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23153
22634
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23154
22635
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
23155
22636
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -23195,14 +22676,13 @@ const generatedFocusOperations = [
23195
22676
  estimated_mins_max: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23196
22677
  estimated_mins_min: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23197
22678
  has_dates: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
22679
+ has_time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23198
22680
  has_time_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23199
22681
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23200
22682
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23201
22683
  include_parent_matches: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23202
22684
  include_project_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23203
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23204
22685
  is_priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23205
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23206
22686
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23207
22687
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23208
22688
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -23211,9 +22691,7 @@ const generatedFocusOperations = [
23211
22691
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23212
22692
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23213
22693
  recurring: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23214
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23215
22694
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23216
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23217
22695
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23218
22696
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23219
22697
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23222,6 +22700,8 @@ const generatedFocusOperations = [
23222
22700
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23223
22701
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
23224
22702
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
22703
+ time_block_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
22704
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23225
22705
  toggl_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23226
22706
  with_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23227
22707
  }),
@@ -23349,10 +22829,8 @@ const generatedFocusOperations = [
23349
22829
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23350
22830
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23351
22831
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23352
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23353
22832
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23354
22833
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23355
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23356
22834
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23357
22835
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23358
22836
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23361,8 +22839,6 @@ const generatedFocusOperations = [
23361
22839
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23362
22840
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23363
22841
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23364
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23365
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23366
22842
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23367
22843
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23368
22844
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23371,8 +22847,7 @@ const generatedFocusOperations = [
23371
22847
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
23372
22848
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23373
22849
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23374
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23375
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
22850
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
23376
22851
  }),
23377
22852
  execute: (input, { client }) => {
23378
22853
  const data = input;
@@ -23414,17 +22889,13 @@ const generatedFocusOperations = [
23414
22889
  group_id: /* @__PURE__ */ number$2(),
23415
22890
  include_assignees: /* @__PURE__ */ unknown$1(),
23416
22891
  include_drafts: /* @__PURE__ */ unknown$1(),
23417
- include_projected_occurrences: /* @__PURE__ */ unknown$1(),
23418
22892
  include_unassigned: /* @__PURE__ */ unknown$1(),
23419
22893
  include_unmaterialized: /* @__PURE__ */ unknown$1(),
23420
- max_recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
23421
22894
  min_days: /* @__PURE__ */ unknown$1(),
23422
22895
  name: /* @__PURE__ */ unknown$1(),
23423
22896
  priority: /* @__PURE__ */ unknown$1(),
23424
22897
  private_: /* @__PURE__ */ unknown$1(),
23425
22898
  project_id: /* @__PURE__ */ number$2(),
23426
- recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
23427
- recurring_task_read: /* @__PURE__ */ unknown$1(),
23428
22899
  source: /* @__PURE__ */ unknown$1(),
23429
22900
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
23430
22901
  start_date_from: /* @__PURE__ */ unknown$1(),
@@ -23433,8 +22904,7 @@ const generatedFocusOperations = [
23433
22904
  tag_id: /* @__PURE__ */ number$2(),
23434
22905
  team_id: /* @__PURE__ */ number$2(),
23435
22906
  user_cf_filter: /* @__PURE__ */ unknown$1(),
23436
- user_tag_id: /* @__PURE__ */ number$2(),
23437
- xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
22907
+ user_tag_id: /* @__PURE__ */ number$2()
23438
22908
  }),
23439
22909
  execute: (input, { client }) => {
23440
22910
  const data = input;
@@ -23475,17 +22945,13 @@ const generatedFocusOperations = [
23475
22945
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23476
22946
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23477
22947
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23478
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23479
22948
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23480
22949
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23481
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23482
22950
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23483
22951
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23484
22952
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23485
22953
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23486
22954
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23487
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23488
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23489
22955
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23490
22956
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23491
22957
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23494,8 +22960,7 @@ const generatedFocusOperations = [
23494
22960
  tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23495
22961
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23496
22962
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23497
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23498
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
22963
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
23499
22964
  }),
23500
22965
  execute: (input, { client }) => {
23501
22966
  const data = input;
@@ -23636,148 +23101,611 @@ const generatedFocusOperations = [
23636
23101
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
23637
23102
  execute: (input, { client }) => {
23638
23103
  const data = input;
23639
- return client.runGeneratedRequest("getProjectSuggestionsForMultipleTasks", () => callGeneratedRequest(getProjectSuggestionsForMultipleTasks, [
23104
+ return client.runGeneratedRequest("getProjectSuggestionsForMultipleTasks", () => callGeneratedRequest(getProjectSuggestionsForMultipleTasks, [
23105
+ client.httpClient,
23106
+ client.organizationId,
23107
+ client.workspaceIdNumber,
23108
+ data.payload ?? data.data ?? data,
23109
+ void 0
23110
+ ]));
23111
+ }
23112
+ },
23113
+ {
23114
+ id: "focus.tasks.unarchive",
23115
+ family: "focus",
23116
+ resource: "tasks",
23117
+ action: "unarchive",
23118
+ title: "Unarchive Tasks",
23119
+ description: "Unarchive Tasks.",
23120
+ safety: "update",
23121
+ destructive: false,
23122
+ cli: {
23123
+ group: ["tasks"],
23124
+ command: "unarchive",
23125
+ interactive: "default"
23126
+ },
23127
+ mcp: { entityTool: "tasks" },
23128
+ inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
23129
+ execute: (input, { client }) => {
23130
+ const data = input;
23131
+ return client.runGeneratedRequest("unarchiveTask", () => callGeneratedRequest(unarchiveTask, [
23132
+ client.httpClient,
23133
+ client.organizationId,
23134
+ client.workspaceIdNumber,
23135
+ data.task_id,
23136
+ void 0
23137
+ ]));
23138
+ }
23139
+ },
23140
+ {
23141
+ id: "focus.tasks.update",
23142
+ family: "focus",
23143
+ resource: "tasks",
23144
+ action: "update",
23145
+ title: "Update Tasks",
23146
+ description: "Update Tasks.",
23147
+ safety: "update",
23148
+ destructive: false,
23149
+ cli: {
23150
+ group: ["tasks"],
23151
+ command: "update",
23152
+ interactive: "default"
23153
+ },
23154
+ mcp: { entityTool: "tasks" },
23155
+ inputSchema: taskUpdateSchema,
23156
+ execute: (input, { client }) => {
23157
+ const data = input;
23158
+ return client.updateTask(data.task_id, data.payload);
23159
+ }
23160
+ },
23161
+ {
23162
+ id: "focus.tasks.full-update",
23163
+ family: "focus",
23164
+ resource: "tasks",
23165
+ action: "full-update",
23166
+ title: "Full Update Tasks",
23167
+ description: "Full Update Tasks.",
23168
+ safety: "update",
23169
+ destructive: false,
23170
+ cli: {
23171
+ group: ["tasks"],
23172
+ command: "full-update",
23173
+ interactive: "hidden"
23174
+ },
23175
+ mcp: { entityTool: "tasks" },
23176
+ inputSchema: /* @__PURE__ */ looseObject({
23177
+ payload: /* @__PURE__ */ looseObject({
23178
+ name: /* @__PURE__ */ string$1(),
23179
+ status_id: /* @__PURE__ */ number$2(),
23180
+ auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23181
+ color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23182
+ custom_fields: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23183
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23184
+ end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23185
+ estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
23186
+ estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23187
+ notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23188
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23189
+ parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23190
+ pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23191
+ priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
23192
+ "none",
23193
+ "low",
23194
+ "medium",
23195
+ "high"
23196
+ ])),
23197
+ private: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23198
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23199
+ recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23200
+ rollup_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23201
+ start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
23202
+ }),
23203
+ task_id: /* @__PURE__ */ number$2()
23204
+ }),
23205
+ execute: (input, { client }) => {
23206
+ const data = input;
23207
+ return client.runGeneratedRequest("updateTask", () => callGeneratedRequest(updateTask, [
23208
+ client.httpClient,
23209
+ client.organizationId,
23210
+ client.workspaceIdNumber,
23211
+ data.task_id,
23212
+ data.payload ?? data.data ?? data,
23213
+ void 0
23214
+ ]));
23215
+ }
23216
+ },
23217
+ {
23218
+ id: "focus.tasks.update-calendar-range",
23219
+ family: "focus",
23220
+ resource: "tasks",
23221
+ action: "update-calendar-range",
23222
+ title: "Update Calendar Range Tasks",
23223
+ description: "Update Calendar Range Tasks.",
23224
+ safety: "update",
23225
+ destructive: false,
23226
+ cli: {
23227
+ group: ["tasks"],
23228
+ command: "update-calendar-range",
23229
+ interactive: "default"
23230
+ },
23231
+ mcp: { entityTool: "tasks" },
23232
+ inputSchema: /* @__PURE__ */ looseObject({
23233
+ date_from: /* @__PURE__ */ string$1(),
23234
+ date_to: /* @__PURE__ */ string$1()
23235
+ }),
23236
+ execute: (input, { client }) => {
23237
+ const data = input;
23238
+ return client.runGeneratedRequest("putTasksCalendarRange", () => callGeneratedRequest(putTasksCalendarRange, [
23239
+ client.httpClient,
23240
+ client.organizationId,
23241
+ client.workspaceIdNumber,
23242
+ data.date_from,
23243
+ data.date_to,
23244
+ void 0
23245
+ ]));
23246
+ }
23247
+ },
23248
+ {
23249
+ id: "focus.time-blocks.archive",
23250
+ family: "focus",
23251
+ resource: "time-blocks",
23252
+ action: "archive",
23253
+ title: "Archive Time Blocks",
23254
+ description: "Archive Time Blocks.",
23255
+ safety: "update",
23256
+ destructive: false,
23257
+ cli: {
23258
+ group: ["time-blocks"],
23259
+ command: "archive",
23260
+ interactive: "default"
23261
+ },
23262
+ mcp: { entityTool: "time-blocks" },
23263
+ inputSchema: /* @__PURE__ */ looseObject({
23264
+ task_id: /* @__PURE__ */ number$2(),
23265
+ time_block_id: /* @__PURE__ */ number$2()
23266
+ }),
23267
+ execute: (input, { client }) => {
23268
+ const data = input;
23269
+ return client.runGeneratedRequest("archiveTimeBlockWithOrg", () => callGeneratedRequest(archiveTimeBlockWithOrg, [
23270
+ client.httpClient,
23271
+ client.organizationId,
23272
+ client.workspaceIdNumber,
23273
+ data.task_id,
23274
+ data.time_block_id,
23275
+ void 0
23276
+ ]));
23277
+ }
23278
+ },
23279
+ {
23280
+ id: "focus.time-blocks.bulk-create",
23281
+ family: "focus",
23282
+ resource: "time-blocks",
23283
+ action: "bulk-create",
23284
+ title: "Bulk Create Time Blocks",
23285
+ description: "Bulk Create Time Blocks.",
23286
+ safety: "create",
23287
+ destructive: false,
23288
+ cli: {
23289
+ group: ["time-blocks", "bulk"],
23290
+ command: "create",
23291
+ interactive: "default"
23292
+ },
23293
+ mcp: { entityTool: "time-blocks" },
23294
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ time_blocks: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
23295
+ start: apiDateTimeString,
23296
+ task_id: /* @__PURE__ */ number$2(),
23297
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23298
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23299
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23300
+ })) }) }),
23301
+ execute: (input, { client }) => {
23302
+ const data = input;
23303
+ return client.runGeneratedRequest("bulkCreateTimeBlockWithOrg", () => callGeneratedRequest(bulkCreateTimeBlockWithOrg, [
23304
+ client.httpClient,
23305
+ client.organizationId,
23306
+ client.workspaceIdNumber,
23307
+ data.payload ?? data.data ?? data,
23308
+ void 0
23309
+ ]));
23310
+ }
23311
+ },
23312
+ {
23313
+ id: "focus.time-blocks.bulk-delete",
23314
+ family: "focus",
23315
+ resource: "time-blocks",
23316
+ action: "bulk-delete",
23317
+ title: "Bulk Delete Time Blocks",
23318
+ description: "Bulk Delete Time Blocks.",
23319
+ safety: "delete",
23320
+ destructive: true,
23321
+ cli: {
23322
+ group: ["time-blocks", "bulk"],
23323
+ command: "delete",
23324
+ interactive: "default"
23325
+ },
23326
+ mcp: { entityTool: "time-blocks" },
23327
+ inputSchema: /* @__PURE__ */ looseObject({
23328
+ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
23329
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23330
+ }),
23331
+ execute: (input, { client }) => {
23332
+ const data = input;
23333
+ return client.runGeneratedRequest("bulkDeleteTimeBlockWithOrg", () => callGeneratedRequest(bulkDeleteTimeBlockWithOrg, [
23334
+ client.httpClient,
23335
+ client.organizationId,
23336
+ client.workspaceIdNumber,
23337
+ data.ids,
23338
+ data.outbound_sync,
23339
+ void 0
23340
+ ]));
23341
+ }
23342
+ },
23343
+ {
23344
+ id: "focus.time-blocks.bulk-partial-update",
23345
+ family: "focus",
23346
+ resource: "time-blocks",
23347
+ action: "bulk-partial-update",
23348
+ title: "Bulk Partial Update Time Blocks",
23349
+ description: "Bulk Partial Update Time Blocks.",
23350
+ safety: "update",
23351
+ destructive: false,
23352
+ cli: {
23353
+ group: ["time-blocks", "bulk"],
23354
+ command: "partial-update",
23355
+ interactive: "hidden"
23356
+ },
23357
+ mcp: { entityTool: "time-blocks" },
23358
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ unknown$1() }),
23359
+ execute: (input, { client }) => {
23360
+ const data = input;
23361
+ return client.runGeneratedRequest("bulkPartialUpdateTimeBlockWithOrg", () => callGeneratedRequest(bulkPartialUpdateTimeBlockWithOrg, [
23362
+ client.httpClient,
23363
+ client.organizationId,
23364
+ client.workspaceIdNumber,
23365
+ data.payload ?? data.data ?? data,
23366
+ void 0
23367
+ ]));
23368
+ }
23369
+ },
23370
+ {
23371
+ id: "focus.time-blocks.create",
23372
+ family: "focus",
23373
+ resource: "time-blocks",
23374
+ action: "create",
23375
+ title: "Create Time Blocks",
23376
+ description: "Create Time Blocks.",
23377
+ safety: "create",
23378
+ destructive: false,
23379
+ cli: {
23380
+ group: ["time-blocks"],
23381
+ command: "create",
23382
+ interactive: "default"
23383
+ },
23384
+ mcp: { entityTool: "time-blocks" },
23385
+ inputSchema: /* @__PURE__ */ looseObject({
23386
+ payload: /* @__PURE__ */ looseObject({
23387
+ start: apiDateTimeString,
23388
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23389
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23390
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23391
+ }),
23392
+ task_id: /* @__PURE__ */ number$2()
23393
+ }),
23394
+ execute: (input, { client }) => {
23395
+ const data = input;
23396
+ return client.runGeneratedRequest("createTimeBlockWithOrg", () => callGeneratedRequest(createTimeBlockWithOrg, [
23397
+ client.httpClient,
23398
+ client.organizationId,
23399
+ client.workspaceIdNumber,
23400
+ data.task_id,
23401
+ data.payload ?? data.data ?? data,
23402
+ void 0
23403
+ ]));
23404
+ }
23405
+ },
23406
+ {
23407
+ id: "focus.time-blocks.delete",
23408
+ family: "focus",
23409
+ resource: "time-blocks",
23410
+ action: "delete",
23411
+ title: "Delete Time Blocks",
23412
+ description: "Delete Time Blocks.",
23413
+ safety: "delete",
23414
+ destructive: true,
23415
+ cli: {
23416
+ group: ["time-blocks"],
23417
+ command: "delete",
23418
+ interactive: "default"
23419
+ },
23420
+ mcp: { entityTool: "time-blocks" },
23421
+ inputSchema: /* @__PURE__ */ looseObject({
23422
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23423
+ task_id: /* @__PURE__ */ number$2(),
23424
+ time_block_id: /* @__PURE__ */ number$2()
23425
+ }),
23426
+ execute: (input, { client }) => {
23427
+ const data = input;
23428
+ return client.runGeneratedRequest("deleteTimeBlockWithOrg", () => callGeneratedRequest(deleteTimeBlockWithOrg, [
23429
+ client.httpClient,
23430
+ client.organizationId,
23431
+ client.workspaceIdNumber,
23432
+ data.task_id,
23433
+ data.time_block_id,
23434
+ data.outbound_sync,
23435
+ void 0
23436
+ ]));
23437
+ }
23438
+ },
23439
+ {
23440
+ id: "focus.time-blocks.get",
23441
+ family: "focus",
23442
+ resource: "time-blocks",
23443
+ action: "get",
23444
+ title: "Get Time Blocks",
23445
+ description: "Get Time Blocks.",
23446
+ safety: "read",
23447
+ destructive: false,
23448
+ cli: {
23449
+ group: ["time-blocks"],
23450
+ command: "get",
23451
+ interactive: "available"
23452
+ },
23453
+ mcp: { entityTool: "time-blocks" },
23454
+ inputSchema: /* @__PURE__ */ looseObject({
23455
+ task_id: /* @__PURE__ */ number$2(),
23456
+ time_block_id: /* @__PURE__ */ number$2()
23457
+ }),
23458
+ execute: (input, { client }) => {
23459
+ const data = input;
23460
+ return client.runGeneratedRequest("getTimeBlockWithOrg", () => callGeneratedRequest(getTimeBlockWithOrg, [
23461
+ client.httpClient,
23462
+ client.organizationId,
23463
+ client.workspaceIdNumber,
23464
+ data.task_id,
23465
+ data.time_block_id,
23466
+ void 0
23467
+ ]));
23468
+ }
23469
+ },
23470
+ {
23471
+ id: "focus.time-blocks.get-range",
23472
+ family: "focus",
23473
+ resource: "time-blocks",
23474
+ action: "get-range",
23475
+ title: "Get Range Time Blocks",
23476
+ description: "Get Range Time Blocks.",
23477
+ safety: "read",
23478
+ destructive: false,
23479
+ cli: {
23480
+ group: ["time-blocks"],
23481
+ command: "get-range",
23482
+ interactive: "hidden"
23483
+ },
23484
+ mcp: { entityTool: "time-blocks" },
23485
+ inputSchema: /* @__PURE__ */ looseObject({
23486
+ archived: /* @__PURE__ */ unknown$1(),
23487
+ date_from: /* @__PURE__ */ unknown$1(),
23488
+ date_to: /* @__PURE__ */ unknown$1(),
23489
+ order_by: /* @__PURE__ */ unknown$1(),
23490
+ page: /* @__PURE__ */ number$2(),
23491
+ per_page: /* @__PURE__ */ unknown$1(),
23492
+ status_id: /* @__PURE__ */ number$2(),
23493
+ task_id: /* @__PURE__ */ number$2()
23494
+ }),
23495
+ execute: (input, { client }) => {
23496
+ const data = input;
23497
+ return client.runGeneratedRequest("getTimeBlocksRangeWithOrgClassic", () => callGeneratedRequest(getTimeBlocksRangeWithOrgClassic, [
23498
+ client.httpClient,
23499
+ client.organizationId,
23500
+ client.workspaceIdNumber,
23501
+ data,
23502
+ void 0
23503
+ ]));
23504
+ }
23505
+ },
23506
+ {
23507
+ id: "focus.time-blocks.get-range-stream",
23508
+ family: "focus",
23509
+ resource: "time-blocks",
23510
+ action: "get-range-stream",
23511
+ title: "Get Range Stream Time Blocks",
23512
+ description: "Get Range Stream Time Blocks.",
23513
+ safety: "read",
23514
+ destructive: false,
23515
+ cli: {
23516
+ group: ["time-blocks"],
23517
+ command: "get-range-stream",
23518
+ interactive: "hidden"
23519
+ },
23520
+ mcp: { entityTool: "time-blocks" },
23521
+ inputSchema: /* @__PURE__ */ looseObject({
23522
+ archived: /* @__PURE__ */ unknown$1(),
23523
+ date_from: /* @__PURE__ */ unknown$1(),
23524
+ date_to: /* @__PURE__ */ unknown$1(),
23525
+ order_by: /* @__PURE__ */ unknown$1(),
23526
+ status_id: /* @__PURE__ */ number$2(),
23527
+ task_id: /* @__PURE__ */ number$2()
23528
+ }),
23529
+ execute: (input, { client }) => {
23530
+ const data = input;
23531
+ return client.runGeneratedRequest("getTimeBlocksRangeStreamWithOrg", () => callGeneratedRequest(getTimeBlocksRangeStreamWithOrg, [
23532
+ client.httpClient,
23533
+ client.organizationId,
23534
+ client.workspaceIdNumber,
23535
+ data,
23536
+ void 0
23537
+ ]));
23538
+ }
23539
+ },
23540
+ {
23541
+ id: "focus.time-blocks.get-task-time-blocks",
23542
+ family: "focus",
23543
+ resource: "time-blocks",
23544
+ action: "get-task-time-blocks",
23545
+ title: "Get Task Time Blocks Time Blocks",
23546
+ description: "Get Task Time Blocks Time Blocks.",
23547
+ safety: "read",
23548
+ destructive: false,
23549
+ cli: {
23550
+ group: ["time-blocks"],
23551
+ command: "get-task-time-blocks",
23552
+ interactive: "hidden"
23553
+ },
23554
+ mcp: { entityTool: "time-blocks" },
23555
+ inputSchema: /* @__PURE__ */ looseObject({
23556
+ archived: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23557
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23558
+ page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23559
+ per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23560
+ task_id: /* @__PURE__ */ number$2()
23561
+ }),
23562
+ execute: (input, { client }) => {
23563
+ const data = input;
23564
+ return client.runGeneratedRequest("getTaskTimeBlocksWithOrgClassic", () => callGeneratedRequest(getTaskTimeBlocksWithOrgClassic, [
23640
23565
  client.httpClient,
23641
23566
  client.organizationId,
23642
23567
  client.workspaceIdNumber,
23643
- data.payload ?? data.data ?? data,
23568
+ data.task_id,
23569
+ data,
23644
23570
  void 0
23645
23571
  ]));
23646
23572
  }
23647
23573
  },
23648
23574
  {
23649
- id: "focus.tasks.unarchive",
23575
+ id: "focus.time-blocks.partial-update",
23650
23576
  family: "focus",
23651
- resource: "tasks",
23652
- action: "unarchive",
23653
- title: "Unarchive Tasks",
23654
- description: "Unarchive Tasks.",
23577
+ resource: "time-blocks",
23578
+ action: "partial-update",
23579
+ title: "Partial Update Time Blocks",
23580
+ description: "Partial Update Time Blocks.",
23655
23581
  safety: "update",
23656
23582
  destructive: false,
23657
23583
  cli: {
23658
- group: ["tasks"],
23659
- command: "unarchive",
23584
+ group: ["time-blocks"],
23585
+ command: "partial-update",
23660
23586
  interactive: "default"
23661
23587
  },
23662
- mcp: { entityTool: "tasks" },
23663
- inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
23588
+ mcp: { entityTool: "time-blocks" },
23589
+ inputSchema: /* @__PURE__ */ looseObject({
23590
+ payload: /* @__PURE__ */ looseObject({
23591
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23592
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23593
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23594
+ start: /* @__PURE__ */ optional$1(apiDateTimeString),
23595
+ task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
23596
+ }),
23597
+ task_id: /* @__PURE__ */ number$2(),
23598
+ time_block_id: /* @__PURE__ */ number$2()
23599
+ }),
23664
23600
  execute: (input, { client }) => {
23665
23601
  const data = input;
23666
- return client.runGeneratedRequest("unarchiveTask", () => callGeneratedRequest(unarchiveTask, [
23602
+ return client.runGeneratedRequest("partialUpdateTimeBlockWithOrg", () => callGeneratedRequest(partialUpdateTimeBlockWithOrg, [
23667
23603
  client.httpClient,
23668
23604
  client.organizationId,
23669
23605
  client.workspaceIdNumber,
23670
23606
  data.task_id,
23607
+ data.time_block_id,
23608
+ data.payload ?? data.data ?? data,
23671
23609
  void 0
23672
23610
  ]));
23673
23611
  }
23674
23612
  },
23675
23613
  {
23676
- id: "focus.tasks.update",
23614
+ id: "focus.time-blocks.restore",
23677
23615
  family: "focus",
23678
- resource: "tasks",
23679
- action: "update",
23680
- title: "Update Tasks",
23681
- description: "Update Tasks.",
23616
+ resource: "time-blocks",
23617
+ action: "restore",
23618
+ title: "Restore Time Blocks",
23619
+ description: "Restore Time Blocks.",
23682
23620
  safety: "update",
23683
23621
  destructive: false,
23684
23622
  cli: {
23685
- group: ["tasks"],
23686
- command: "update",
23623
+ group: ["time-blocks"],
23624
+ command: "restore",
23687
23625
  interactive: "default"
23688
23626
  },
23689
- mcp: { entityTool: "tasks" },
23690
- inputSchema: taskUpdateSchema,
23627
+ mcp: { entityTool: "time-blocks" },
23628
+ inputSchema: /* @__PURE__ */ looseObject({
23629
+ task_id: /* @__PURE__ */ number$2(),
23630
+ time_block_id: /* @__PURE__ */ number$2()
23631
+ }),
23691
23632
  execute: (input, { client }) => {
23692
23633
  const data = input;
23693
- return client.updateTask(data.task_id, data.payload);
23634
+ return client.runGeneratedRequest("restoreTimeBlockWithOrg", () => callGeneratedRequest(restoreTimeBlockWithOrg, [
23635
+ client.httpClient,
23636
+ client.organizationId,
23637
+ client.workspaceIdNumber,
23638
+ data.task_id,
23639
+ data.time_block_id,
23640
+ void 0
23641
+ ]));
23694
23642
  }
23695
23643
  },
23696
23644
  {
23697
- id: "focus.tasks.full-update",
23645
+ id: "focus.time-blocks.unarchive",
23698
23646
  family: "focus",
23699
- resource: "tasks",
23700
- action: "full-update",
23701
- title: "Full Update Tasks",
23702
- description: "Full Update Tasks.",
23647
+ resource: "time-blocks",
23648
+ action: "unarchive",
23649
+ title: "Unarchive Time Blocks",
23650
+ description: "Unarchive Time Blocks.",
23703
23651
  safety: "update",
23704
23652
  destructive: false,
23705
23653
  cli: {
23706
- group: ["tasks"],
23707
- command: "full-update",
23708
- interactive: "hidden"
23654
+ group: ["time-blocks"],
23655
+ command: "unarchive",
23656
+ interactive: "default"
23709
23657
  },
23710
- mcp: { entityTool: "tasks" },
23658
+ mcp: { entityTool: "time-blocks" },
23711
23659
  inputSchema: /* @__PURE__ */ looseObject({
23712
- payload: /* @__PURE__ */ looseObject({
23713
- name: /* @__PURE__ */ string$1(),
23714
- status_id: /* @__PURE__ */ number$2(),
23715
- auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23716
- color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23717
- custom_fields: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23718
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23719
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23720
- estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
23721
- estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23722
- notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23723
- outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23724
- parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23725
- pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23726
- priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
23727
- "none",
23728
- "low",
23729
- "medium",
23730
- "high"
23731
- ])),
23732
- private: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23733
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23734
- recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23735
- rollup_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23736
- start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
23737
- }),
23738
- task_id: /* @__PURE__ */ number$2()
23660
+ task_id: /* @__PURE__ */ number$2(),
23661
+ time_block_id: /* @__PURE__ */ number$2()
23739
23662
  }),
23740
23663
  execute: (input, { client }) => {
23741
23664
  const data = input;
23742
- return client.runGeneratedRequest("updateTask", () => callGeneratedRequest(updateTask, [
23665
+ return client.runGeneratedRequest("unarchiveTimeBlockWithOrg", () => callGeneratedRequest(unarchiveTimeBlockWithOrg, [
23743
23666
  client.httpClient,
23744
23667
  client.organizationId,
23745
23668
  client.workspaceIdNumber,
23746
23669
  data.task_id,
23747
- data.payload ?? data.data ?? data,
23670
+ data.time_block_id,
23748
23671
  void 0
23749
23672
  ]));
23750
23673
  }
23751
23674
  },
23752
23675
  {
23753
- id: "focus.tasks.update-calendar-range",
23676
+ id: "focus.time-blocks.update",
23754
23677
  family: "focus",
23755
- resource: "tasks",
23756
- action: "update-calendar-range",
23757
- title: "Update Calendar Range Tasks",
23758
- description: "Update Calendar Range Tasks.",
23678
+ resource: "time-blocks",
23679
+ action: "update",
23680
+ title: "Update Time Blocks",
23681
+ description: "Update Time Blocks.",
23759
23682
  safety: "update",
23760
23683
  destructive: false,
23761
23684
  cli: {
23762
- group: ["tasks"],
23763
- command: "update-calendar-range",
23685
+ group: ["time-blocks"],
23686
+ command: "update",
23764
23687
  interactive: "default"
23765
23688
  },
23766
- mcp: { entityTool: "tasks" },
23689
+ mcp: { entityTool: "time-blocks" },
23767
23690
  inputSchema: /* @__PURE__ */ looseObject({
23768
- date_from: /* @__PURE__ */ string$1(),
23769
- date_to: /* @__PURE__ */ string$1(),
23770
- skip_provider_refresh: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23691
+ payload: /* @__PURE__ */ looseObject({
23692
+ start: apiDateTimeString,
23693
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23694
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23695
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23696
+ }),
23697
+ task_id: /* @__PURE__ */ number$2(),
23698
+ time_block_id: /* @__PURE__ */ number$2()
23771
23699
  }),
23772
23700
  execute: (input, { client }) => {
23773
23701
  const data = input;
23774
- return client.runGeneratedRequest("putTasksCalendarRange", () => callGeneratedRequest(putTasksCalendarRange, [
23702
+ return client.runGeneratedRequest("updateTimeBlockWithOrg", () => callGeneratedRequest(updateTimeBlockWithOrg, [
23775
23703
  client.httpClient,
23776
23704
  client.organizationId,
23777
23705
  client.workspaceIdNumber,
23778
- data.date_from,
23779
- data.date_to,
23780
- data.skip_provider_refresh,
23706
+ data.task_id,
23707
+ data.time_block_id,
23708
+ data.payload ?? data.data ?? data,
23781
23709
  void 0
23782
23710
  ]));
23783
23711
  }
@@ -23997,8 +23925,7 @@ const generatedFocusOperations = [
23997
23925
  required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
23998
23926
  "project",
23999
23927
  "task",
24000
- "description",
24001
- "tags"
23928
+ "description"
24002
23929
  ]) })),
24003
23930
  disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
24004
23931
  }) }),
@@ -24028,7 +23955,6 @@ const generatedFocusOperations = [
24028
23955
  },
24029
23956
  mcp: { entityTool: "time-entries" },
24030
23957
  inputSchema: /* @__PURE__ */ looseObject({
24031
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24032
23958
  payload: /* @__PURE__ */ looseObject({
24033
23959
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
24034
23960
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -24039,12 +23965,11 @@ const generatedFocusOperations = [
24039
23965
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24040
23966
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24041
23967
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24042
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24043
23968
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
23969
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24044
23970
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24045
23971
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
24046
23972
  }),
24047
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24048
23973
  task_id: /* @__PURE__ */ number$2()
24049
23974
  }),
24050
23975
  execute: (input, { client }) => {
@@ -24055,8 +23980,6 @@ const generatedFocusOperations = [
24055
23980
  client.workspaceIdNumber,
24056
23981
  data.task_id,
24057
23982
  data.payload ?? data.data ?? data,
24058
- data.from_recurring_task_id,
24059
- data.return_occurrence,
24060
23983
  void 0
24061
23984
  ]));
24062
23985
  }
@@ -24076,25 +23999,21 @@ const generatedFocusOperations = [
24076
23999
  interactive: "default"
24077
24000
  },
24078
24001
  mcp: { entityTool: "time-entries" },
24079
- inputSchema: /* @__PURE__ */ looseObject({
24080
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24081
- payload: /* @__PURE__ */ looseObject({
24082
- type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
24083
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24084
- calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24085
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24086
- duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24087
- planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24088
- planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24089
- planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24090
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24091
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24092
- start: /* @__PURE__ */ optional$1(apiDateTimeString),
24093
- tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24094
- user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
24095
- }),
24096
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
24097
- }),
24002
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
24003
+ type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
24004
+ billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24005
+ calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24006
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24007
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24008
+ planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24009
+ planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24010
+ planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24011
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24012
+ start: /* @__PURE__ */ optional$1(apiDateTimeString),
24013
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24014
+ tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24015
+ user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
24016
+ }) }),
24098
24017
  execute: (input, { client }) => {
24099
24018
  const data = input;
24100
24019
  return client.runGeneratedRequest("createTasklessTimeEntryWithOrg", () => callGeneratedRequest(createTasklessTimeEntryWithOrg, [
@@ -24102,8 +24021,6 @@ const generatedFocusOperations = [
24102
24021
  client.organizationId,
24103
24022
  client.workspaceIdNumber,
24104
24023
  data.payload ?? data.data ?? data,
24105
- data.from_recurring_task_id,
24106
- data.return_occurrence,
24107
24024
  void 0
24108
24025
  ]));
24109
24026
  }
@@ -24123,11 +24040,7 @@ const generatedFocusOperations = [
24123
24040
  interactive: "default"
24124
24041
  },
24125
24042
  mcp: { entityTool: "time-entries" },
24126
- inputSchema: /* @__PURE__ */ looseObject({
24127
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24128
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24129
- time_entry_id: /* @__PURE__ */ number$2()
24130
- }),
24043
+ inputSchema: /* @__PURE__ */ looseObject({ time_entry_id: /* @__PURE__ */ number$2() }),
24131
24044
  execute: (input, { client }) => {
24132
24045
  const data = input;
24133
24046
  return client.runGeneratedRequest("deleteTimeEntryWithOrg", () => callGeneratedRequest(deleteTimeEntryWithOrg, [
@@ -24135,8 +24048,6 @@ const generatedFocusOperations = [
24135
24048
  client.organizationId,
24136
24049
  client.workspaceIdNumber,
24137
24050
  data.time_entry_id,
24138
- data.from_recurring_task_id,
24139
- data.return_occurrence,
24140
24051
  void 0
24141
24052
  ]));
24142
24053
  }
@@ -24217,7 +24128,6 @@ const generatedFocusOperations = [
24217
24128
  expand_calendar_event: /* @__PURE__ */ unknown$1(),
24218
24129
  include_taskless: /* @__PURE__ */ unknown$1(),
24219
24130
  order_by: /* @__PURE__ */ unknown$1(),
24220
- project_id: /* @__PURE__ */ number$2(),
24221
24131
  status_id: /* @__PURE__ */ number$2(),
24222
24132
  task_id: /* @__PURE__ */ number$2(),
24223
24133
  type: /* @__PURE__ */ unknown$1()
@@ -24233,6 +24143,33 @@ const generatedFocusOperations = [
24233
24143
  ]));
24234
24144
  }
24235
24145
  },
24146
+ {
24147
+ id: "focus.time-entries.get-stream-time-entries-time-block-ids",
24148
+ family: "focus",
24149
+ resource: "time-entries",
24150
+ action: "get-stream-time-entries-time-block-ids",
24151
+ title: "Get Stream Time Entries Time Block Ids Time Entries",
24152
+ description: "Get Stream Time Entries Time Block Ids Time Entries.",
24153
+ safety: "read",
24154
+ destructive: false,
24155
+ cli: {
24156
+ group: ["time-entries"],
24157
+ command: "get-stream-time-entries-time-block-ids",
24158
+ interactive: "available"
24159
+ },
24160
+ mcp: { entityTool: "time-entries" },
24161
+ inputSchema: /* @__PURE__ */ looseObject({ time_block_id: /* @__PURE__ */ number$2() }),
24162
+ execute: (input, { client }) => {
24163
+ const data = input;
24164
+ return client.runGeneratedRequest("getStreamTimeEntriesTimeBlockIdsWithOrg", () => callGeneratedRequest(getStreamTimeEntriesTimeBlockIdsWithOrg, [
24165
+ client.httpClient,
24166
+ client.organizationId,
24167
+ client.workspaceIdNumber,
24168
+ data,
24169
+ void 0
24170
+ ]));
24171
+ }
24172
+ },
24236
24173
  {
24237
24174
  id: "focus.time-entries.get-task-time-entries",
24238
24175
  family: "focus",
@@ -24254,6 +24191,7 @@ const generatedFocusOperations = [
24254
24191
  page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24255
24192
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
24256
24193
  task_id: /* @__PURE__ */ number$2(),
24194
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24257
24195
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
24258
24196
  }),
24259
24197
  execute: (input, { client }) => {
@@ -24366,14 +24304,12 @@ const generatedFocusOperations = [
24366
24304
  },
24367
24305
  mcp: { entityTool: "time-entries" },
24368
24306
  inputSchema: /* @__PURE__ */ looseObject({
24369
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24370
24307
  payload: /* @__PURE__ */ looseObject({
24371
24308
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24372
24309
  duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24373
24310
  reset_billable_to_default: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24374
24311
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]))
24375
24312
  }),
24376
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24377
24313
  time_entry_id: /* @__PURE__ */ number$2()
24378
24314
  }),
24379
24315
  execute: (input, { client }) => {
@@ -24384,8 +24320,6 @@ const generatedFocusOperations = [
24384
24320
  client.workspaceIdNumber,
24385
24321
  data.time_entry_id,
24386
24322
  data.payload ?? data.data ?? data,
24387
- data.from_recurring_task_id,
24388
- data.return_occurrence,
24389
24323
  void 0
24390
24324
  ]));
24391
24325
  }
@@ -24643,7 +24577,6 @@ const generatedFocusOperations = [
24643
24577
  },
24644
24578
  mcp: { entityTool: "time-entries" },
24645
24579
  inputSchema: /* @__PURE__ */ looseObject({
24646
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24647
24580
  payload: /* @__PURE__ */ looseObject({
24648
24581
  type: /* @__PURE__ */ picklist$1(["activity", "break"]),
24649
24582
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -24653,9 +24586,9 @@ const generatedFocusOperations = [
24653
24586
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24654
24587
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24655
24588
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
24589
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24656
24590
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
24657
24591
  }),
24658
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24659
24592
  time_entry_id: /* @__PURE__ */ number$2()
24660
24593
  }),
24661
24594
  execute: (input, { client }) => {
@@ -24666,8 +24599,6 @@ const generatedFocusOperations = [
24666
24599
  client.workspaceIdNumber,
24667
24600
  data.time_entry_id,
24668
24601
  data.payload ?? data.data ?? data,
24669
- data.from_recurring_task_id,
24670
- data.return_occurrence,
24671
24602
  void 0
24672
24603
  ]));
24673
24604
  }
@@ -25183,40 +25114,6 @@ const generatedFocusOperations = [
25183
25114
  ]));
25184
25115
  }
25185
25116
  },
25186
- {
25187
- id: "focus.timesheets.get-status-counts",
25188
- family: "focus",
25189
- resource: "timesheets",
25190
- action: "get-status-counts",
25191
- title: "Get Status Counts Timesheets",
25192
- description: "Get Status Counts Timesheets.",
25193
- safety: "read",
25194
- destructive: false,
25195
- cli: {
25196
- group: ["timesheets"],
25197
- command: "get-status-counts",
25198
- interactive: "hidden"
25199
- },
25200
- mcp: { entityTool: "timesheets" },
25201
- inputSchema: /* @__PURE__ */ looseObject({
25202
- approver_user_account_ids: /* @__PURE__ */ unknown$1(),
25203
- date_from: /* @__PURE__ */ unknown$1(),
25204
- date_to: /* @__PURE__ */ unknown$1(),
25205
- setup_id: /* @__PURE__ */ number$2(),
25206
- team_ids: /* @__PURE__ */ unknown$1(),
25207
- user_account_ids: /* @__PURE__ */ unknown$1()
25208
- }),
25209
- execute: (input, { client }) => {
25210
- const data = input;
25211
- return client.runGeneratedRequest("getTimesheetStatusCounts", () => callGeneratedRequest(getTimesheetStatusCounts, [
25212
- client.httpClient,
25213
- client.organizationId,
25214
- client.workspaceIdNumber,
25215
- data,
25216
- void 0
25217
- ]));
25218
- }
25219
- },
25220
25117
  {
25221
25118
  id: "focus.timesheets.remove-timesheet-flag",
25222
25119
  family: "focus",
@@ -25766,33 +25663,6 @@ const generatedFocusOperations = [
25766
25663
  ]));
25767
25664
  }
25768
25665
  },
25769
- {
25770
- id: "focus.track-team-invites.post",
25771
- family: "focus",
25772
- resource: "track-team-invites",
25773
- action: "post",
25774
- title: "Post Track Team Invites",
25775
- description: "Post Track Team Invites.",
25776
- safety: "create",
25777
- destructive: false,
25778
- cli: {
25779
- group: ["track-team-invites"],
25780
- command: "post",
25781
- interactive: "default"
25782
- },
25783
- mcp: { entityTool: "track-team-invites" },
25784
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ organization_user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
25785
- execute: (input, { client }) => {
25786
- const data = input;
25787
- return client.runGeneratedRequest("postTrackTeamInvites", () => callGeneratedRequest(postTrackTeamInvites, [
25788
- client.httpClient,
25789
- client.organizationId,
25790
- client.workspaceIdNumber,
25791
- data.payload ?? data.data ?? data,
25792
- void 0
25793
- ]));
25794
- }
25795
- },
25796
25666
  {
25797
25667
  id: "focus.users.list",
25798
25668
  family: "focus",
@@ -25814,56 +25684,6 @@ const generatedFocusOperations = [
25814
25684
  return client.listOrgUsers(data);
25815
25685
  }
25816
25686
  },
25817
- {
25818
- id: "focus.users.settings-email-unsubscribe",
25819
- family: "focus",
25820
- resource: "users",
25821
- action: "settings-email-unsubscribe",
25822
- title: "Settings Email Unsubscribe Users",
25823
- description: "Settings Email Unsubscribe Users.",
25824
- safety: "update",
25825
- destructive: false,
25826
- cli: {
25827
- group: ["users", "settings"],
25828
- command: "email-unsubscribe",
25829
- interactive: "default"
25830
- },
25831
- mcp: { entityTool: "users" },
25832
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
25833
- execute: (input, { client }) => {
25834
- const data = input;
25835
- return client.runGeneratedRequest("emailUnsubscribe", () => callGeneratedRequest(emailUnsubscribe, [
25836
- client.httpClient,
25837
- data.token,
25838
- void 0
25839
- ]));
25840
- }
25841
- },
25842
- {
25843
- id: "focus.users.settings-email-unsubscribe-page",
25844
- family: "focus",
25845
- resource: "users",
25846
- action: "settings-email-unsubscribe-page",
25847
- title: "Settings Email Unsubscribe Page Users",
25848
- description: "Settings Email Unsubscribe Page Users.",
25849
- safety: "read",
25850
- destructive: false,
25851
- cli: {
25852
- group: ["users", "settings"],
25853
- command: "email-unsubscribe-page",
25854
- interactive: "available"
25855
- },
25856
- mcp: { entityTool: "users" },
25857
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
25858
- execute: (input, { client }) => {
25859
- const data = input;
25860
- return client.runGeneratedRequest("emailUnsubscribePage", () => callGeneratedRequest(emailUnsubscribePage, [
25861
- client.httpClient,
25862
- data.token,
25863
- void 0
25864
- ]));
25865
- }
25866
- },
25867
25687
  {
25868
25688
  id: "focus.users.settings-list",
25869
25689
  family: "focus",
@@ -25925,9 +25745,6 @@ const generatedFocusOperations = [
25925
25745
  has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
25926
25746
  import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
25927
25747
  new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
25928
- notify_project_alerts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
25929
- notify_project_member_added: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
25930
- notify_task_assigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
25931
25748
  onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
25932
25749
  onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
25933
25750
  onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -27987,4 +27804,4 @@ Common commands:
27987
27804
  //#endregion
27988
27805
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
27989
27806
 
27990
- //# sourceMappingURL=program-DfBQ3e83.js.map
27807
+ //# sourceMappingURL=program-C0-wDCc4.js.map