@togglhq/mcp 1.11.95 → 1.11.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32773,10 +32773,6 @@ function _joinExpects$1(values$1, separator) {
32773
32773
  */
32774
32774
  const ISO_DATE_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
32775
32775
  /**
32776
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time regex.
32777
- */
32778
- const ISO_DATE_TIME_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3]):[0-5]\d$/u;
32779
- /**
32780
32776
  * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
32781
32777
  * space as a date/time separator and an optional space before the UTC offset.
32782
32778
  */
@@ -32830,22 +32826,6 @@ function isoDate$1(message$1) {
32830
32826
  };
32831
32827
  }
32832
32828
  /* @__NO_SIDE_EFFECTS__ */
32833
- function isoDateTime$1(message$1) {
32834
- return {
32835
- kind: "validation",
32836
- type: "iso_date_time",
32837
- reference: isoDateTime$1,
32838
- async: false,
32839
- expects: null,
32840
- requirement: ISO_DATE_TIME_REGEX$1,
32841
- message: message$1,
32842
- "~run"(dataset, config$1) {
32843
- if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue$1(this, "date-time", dataset, config$1);
32844
- return dataset;
32845
- }
32846
- };
32847
- }
32848
- /* @__NO_SIDE_EFFECTS__ */
32849
32829
  function isoTimestamp(message$1) {
32850
32830
  return {
32851
32831
  kind: "validation",
@@ -34683,7 +34663,6 @@ const ProjectLiteSchema = /* @__PURE__ */ object({
34683
34663
  name: /* @__PURE__ */ string(),
34684
34664
  permissions: /* @__PURE__ */ array(/* @__PURE__ */ string()),
34685
34665
  archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
34686
- billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
34687
34666
  client: /* @__PURE__ */ optional(ClientLiteSchema),
34688
34667
  color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34689
34668
  custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
@@ -34770,7 +34749,6 @@ const TaskSchema = /* @__PURE__ */ object({
34770
34749
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34771
34750
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
34772
34751
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
34773
- 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."))),
34774
34752
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
34775
34753
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34776
34754
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -34832,7 +34810,6 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
34832
34810
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34833
34811
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
34834
34812
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
34835
- 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."))),
34836
34813
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
34837
34814
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34838
34815
  parent: /* @__PURE__ */ optional(TaskSchema),
@@ -34993,8 +34970,6 @@ const TimeEntrySchema = /* @__PURE__ */ object({
34993
34970
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
34994
34971
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
34995
34972
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
34996
- 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."))),
34997
- 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."))),
34998
34973
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
34999
34974
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35000
34975
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -35009,21 +34984,21 @@ const TimeEntrySchema = /* @__PURE__ */ object({
35009
34984
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
35010
34985
  });
35011
34986
  const DtoAggregationFilterRequestSchema = /* @__PURE__ */ object({
35012
- aggregation: /* @__PURE__ */ optional(/* @__PURE__ */ object({
34987
+ aggregation: /* @__PURE__ */ object({
35013
34988
  function: /* @__PURE__ */ string(),
35014
34989
  property: /* @__PURE__ */ string()
35015
- })),
35016
- conditions: /* @__PURE__ */ optional(/* @__PURE__ */ lazy(() => DtoAggregationsFilterRequestSchema)),
35017
- operator: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35018
- property: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35019
- value: /* @__PURE__ */ optional(/* @__PURE__ */ unknown())
34990
+ }),
34991
+ conditions: /* @__PURE__ */ lazy(() => DtoAggregationsFilterRequestSchema),
34992
+ operator: /* @__PURE__ */ string(),
34993
+ property: /* @__PURE__ */ string(),
34994
+ value: /* @__PURE__ */ unknown()
35020
34995
  });
35021
34996
  const DtoAggregationsFilterRequestSchema = /* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoAggregationFilterRequestSchema));
35022
34997
  const DtoFilterRequestSchema = /* @__PURE__ */ object({
35023
- conditions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoFilterRequestSchema))),
35024
- operator: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35025
- property: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35026
- value: /* @__PURE__ */ optional(/* @__PURE__ */ unknown())
34998
+ conditions: /* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoFilterRequestSchema)),
34999
+ operator: /* @__PURE__ */ string(),
35000
+ property: /* @__PURE__ */ string(),
35001
+ value: /* @__PURE__ */ unknown()
35027
35002
  });
35028
35003
  const ClientSchema = /* @__PURE__ */ object({
35029
35004
  active: /* @__PURE__ */ boolean(),
@@ -35080,10 +35055,8 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
35080
35055
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35081
35056
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
35082
35057
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35083
- filtered_task_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35084
35058
  fixed_fee: /* @__PURE__ */ optional(ProjectFixedFeeSchema),
35085
35059
  parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35086
- picker_parent_group_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35087
35060
  rate: /* @__PURE__ */ optional(EffectiveProjectRatesSummarySchema),
35088
35061
  recurring_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35089
35062
  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)."))),
@@ -35139,8 +35112,6 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
35139
35112
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
35140
35113
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35141
35114
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35142
- 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."))),
35143
- 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."))),
35144
35115
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
35145
35116
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35146
35117
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -35313,6 +35284,8 @@ const TaskCreatePayloadSchema = /* @__PURE__ */ object({
35313
35284
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
35314
35285
  estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
35315
35286
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
35287
+ integration_ext_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35288
+ integration_source: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35316
35289
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
35317
35290
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35318
35291
  pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -35369,7 +35342,6 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
35369
35342
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
35370
35343
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
35371
35344
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
35372
- 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."))),
35373
35345
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
35374
35346
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
35375
35347
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -35406,7 +35378,6 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
35406
35378
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
35407
35379
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
35408
35380
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
35409
- 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."))),
35410
35381
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
35411
35382
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
35412
35383
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -35427,6 +35398,7 @@ const TimeEntryBulkCreatePayloadSchema = /* @__PURE__ */ object({
35427
35398
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
35428
35399
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
35429
35400
  task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35401
+ time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35430
35402
  tracked_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
35431
35403
  user_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
35432
35404
  });
@@ -35455,7 +35427,8 @@ const TimeEntryStartTrackingPayloadSchema = /* @__PURE__ */ object({
35455
35427
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35456
35428
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
35457
35429
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
35458
- task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
35430
+ task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
35431
+ time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
35459
35432
  });
35460
35433
  const TimeEntryStopTrackingPayloadSchema = /* @__PURE__ */ object({ end: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()) });
35461
35434
  //#endregion
@@ -37329,7 +37302,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
37329
37302
  })
37330
37303
  }).json();
37331
37304
  }
37332
- 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) {
37305
+ 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) {
37333
37306
  const response = await httpClient.get(`organizations/${organization_id}/users`, {
37334
37307
  signal,
37335
37308
  searchParams: buildSearchParams$2({
@@ -37350,7 +37323,6 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
37350
37323
  include_rates,
37351
37324
  pinned_ids,
37352
37325
  has_group,
37353
- track_without_focus,
37354
37326
  cf_filter,
37355
37327
  include_custom_fields,
37356
37328
  include_calendar_integration
@@ -37452,20 +37424,10 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
37452
37424
  }
37453
37425
  //#endregion
37454
37426
  //#region ../focus-queries/dist/projects/requests.ts
37455
- 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) {
37427
+ 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) {
37456
37428
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
37457
37429
  signal,
37458
37430
  searchParams: buildSearchParams$2({
37459
- include_task_counts,
37460
- include_picker_parent_group_counts,
37461
- task_archived,
37462
- task_recurring,
37463
- task_state,
37464
- task_source,
37465
- task_assignee_user_id,
37466
- task_assignee_team_id,
37467
- task_include_unassigned,
37468
- task_name,
37469
37431
  page,
37470
37432
  per_page,
37471
37433
  order_by,
@@ -37715,7 +37677,7 @@ async function restoreStatuses(httpClient, workspace_id, status_id, signal) {
37715
37677
  }
37716
37678
  //#endregion
37717
37679
  //#region ../focus-queries/dist/tasks/requests.ts
37718
- 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) {
37680
+ 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) {
37719
37681
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
37720
37682
  signal,
37721
37683
  searchParams: buildSearchParams$2({
@@ -37728,6 +37690,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
37728
37690
  toggl_user_id,
37729
37691
  name,
37730
37692
  has_time_entries,
37693
+ has_time_blocks,
37731
37694
  has_dates,
37732
37695
  private: private_,
37733
37696
  archived,
@@ -37750,6 +37713,10 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
37750
37713
  priority,
37751
37714
  is_priority,
37752
37715
  state,
37716
+ timeblock_start_from,
37717
+ timeblock_start_until,
37718
+ time_block_id,
37719
+ time_block_completed,
37753
37720
  team_id,
37754
37721
  assignee_team_id,
37755
37722
  assignee_user_id,
@@ -37761,11 +37728,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
37761
37728
  include_assignees,
37762
37729
  include_parent_matches,
37763
37730
  disable_aggregations,
37764
- cf_filter,
37765
- recurring_occurrences_after,
37766
- max_recurring_occurrences_after,
37767
- recurring_task_read,
37768
- include_projected_occurrences
37731
+ cf_filter
37769
37732
  })
37770
37733
  }).json();
37771
37734
  }
@@ -37840,46 +37803,16 @@ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id,
37840
37803
  })
37841
37804
  }).json();
37842
37805
  }
37843
- async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, skip_provider_refresh, signal) {
37806
+ async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, signal) {
37844
37807
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
37845
37808
  signal,
37846
37809
  searchParams: buildSearchParams$2({
37847
37810
  date_from,
37848
- date_to,
37849
- skip_provider_refresh
37850
- })
37851
- }).json();
37852
- }
37853
- async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, search, only_me, page, per_page } = {}, signal) {
37854
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
37855
- signal,
37856
- searchParams: buildSearchParams$2({
37857
- project_id,
37858
- without_project,
37859
- pinned_only,
37860
- include_unassigned,
37861
- search,
37862
- only_me,
37863
- page,
37864
- per_page
37865
- })
37866
- }).json();
37867
- }
37868
- async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, search, only_me, page, per_page } = {}, signal) {
37869
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
37870
- signal,
37871
- searchParams: buildSearchParams$2({
37872
- project_id,
37873
- without_project,
37874
- include_unassigned,
37875
- search,
37876
- only_me,
37877
- page,
37878
- per_page
37811
+ date_to
37879
37812
  })
37880
37813
  }).json();
37881
37814
  }
37882
- 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) {
37815
+ 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) {
37883
37816
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
37884
37817
  signal,
37885
37818
  searchParams: buildSearchParams$2({
@@ -37895,15 +37828,11 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
37895
37828
  assignee_team_id,
37896
37829
  assignee_user_id,
37897
37830
  tag_id,
37898
- include_assignees,
37899
- recurring_occurrences_after,
37900
- max_recurring_occurrences_after,
37901
- recurring_task_read,
37902
- include_projected_occurrences
37831
+ include_assignees
37903
37832
  })
37904
37833
  }).json();
37905
37834
  }
37906
- 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) {
37835
+ 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) {
37907
37836
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
37908
37837
  signal,
37909
37838
  searchParams: buildSearchParams$2({
@@ -37915,6 +37844,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
37915
37844
  name,
37916
37845
  include_parent_matches,
37917
37846
  has_time_entries,
37847
+ has_time_blocks,
37918
37848
  has_dates,
37919
37849
  private: private_,
37920
37850
  archived,
@@ -37937,6 +37867,8 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
37937
37867
  priority,
37938
37868
  is_priority,
37939
37869
  state,
37870
+ time_block_id,
37871
+ time_block_completed,
37940
37872
  team_id,
37941
37873
  assignee_team_id,
37942
37874
  assignee_user_id,
@@ -37945,11 +37877,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
37945
37877
  recurring_task_ids,
37946
37878
  client_id,
37947
37879
  include_assignees,
37948
- cf_filter,
37949
- recurring_occurrences_after,
37950
- max_recurring_occurrences_after,
37951
- recurring_task_read,
37952
- include_projected_occurrences
37880
+ cf_filter
37953
37881
  })
37954
37882
  }).json();
37955
37883
  }
@@ -38004,12 +37932,6 @@ async function getTaskWithChildrenClassic(httpClient, organization_id, workspace
38004
37932
  })
38005
37933
  }).json();
38006
37934
  }
38007
- async function createRecurringOccurrence(httpClient, organization_id, workspace_id, task_id, return_occurrence, signal) {
38008
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/occurrences`, {
38009
- signal,
38010
- searchParams: buildSearchParams$2({ return_occurrence })
38011
- }).json();
38012
- }
38013
37935
  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) {
38014
37936
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
38015
37937
  signal,
@@ -38035,7 +37957,7 @@ async function unarchiveTask(httpClient, organization_id, workspace_id, task_id,
38035
37957
  }
38036
37958
  //#endregion
38037
37959
  //#region ../focus-queries/dist/time-entries/requests.ts
38038
- async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived } = {}, signal) {
37960
+ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived, time_block_id } = {}, signal) {
38039
37961
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
38040
37962
  signal,
38041
37963
  searchParams: buildSearchParams$2({
@@ -38043,28 +37965,21 @@ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, wor
38043
37965
  per_page,
38044
37966
  order_by,
38045
37967
  type,
38046
- archived
37968
+ archived,
37969
+ time_block_id
38047
37970
  })
38048
37971
  }).json();
38049
37972
  }
38050
- async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, return_occurrence, signal) {
37973
+ async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
38051
37974
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
38052
37975
  signal,
38053
- json: data,
38054
- searchParams: buildSearchParams$2({
38055
- from_recurring_task_id,
38056
- return_occurrence
38057
- })
37976
+ json: data
38058
37977
  }).json();
38059
37978
  }
38060
- async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, from_recurring_task_id, return_occurrence, signal) {
37979
+ async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
38061
37980
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
38062
37981
  signal,
38063
- json: data,
38064
- searchParams: buildSearchParams$2({
38065
- from_recurring_task_id,
38066
- return_occurrence
38067
- })
37982
+ json: data
38068
37983
  }).json();
38069
37984
  }
38070
37985
  async function getBatchTimeEntriesWithOrg(httpClient, organization_id, workspace_id, { ids }, signal) {
@@ -38115,7 +38030,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
38115
38030
  json: data
38116
38031
  }).json();
38117
38032
  }
38118
- 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) {
38033
+ 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) {
38119
38034
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
38120
38035
  signal,
38121
38036
  searchParams: buildSearchParams$2({
@@ -38123,7 +38038,6 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
38123
38038
  date_to,
38124
38039
  task_id,
38125
38040
  status_id,
38126
- project_id,
38127
38041
  type,
38128
38042
  order_by,
38129
38043
  archived,
@@ -38138,36 +38052,28 @@ async function syncTimeEntry(httpClient, organization_id, workspace_id, client_u
38138
38052
  json: data
38139
38053
  }).json();
38140
38054
  }
38055
+ async function getStreamTimeEntriesTimeBlockIdsWithOrg(httpClient, organization_id, workspace_id, { time_block_id }, signal) {
38056
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/time-block-ids/stream`, {
38057
+ signal,
38058
+ searchParams: buildSearchParams$2({ time_block_id })
38059
+ }).json();
38060
+ }
38141
38061
  async function getTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
38142
38062
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
38143
38063
  }
38144
- async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
38064
+ async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
38145
38065
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
38146
38066
  signal,
38147
- json: data,
38148
- searchParams: buildSearchParams$2({
38149
- from_recurring_task_id,
38150
- return_occurrence
38151
- })
38067
+ json: data
38152
38068
  }).json();
38153
38069
  }
38154
- async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, from_recurring_task_id, return_occurrence, signal) {
38155
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
38156
- signal,
38157
- searchParams: buildSearchParams$2({
38158
- from_recurring_task_id,
38159
- return_occurrence
38160
- })
38161
- }).json();
38070
+ async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
38071
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
38162
38072
  }
38163
- async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
38073
+ async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
38164
38074
  return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
38165
38075
  signal,
38166
- json: data,
38167
- searchParams: buildSearchParams$2({
38168
- from_recurring_task_id,
38169
- return_occurrence
38170
- })
38076
+ json: data
38171
38077
  }).json();
38172
38078
  }
38173
38079
  async function archiveTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
@@ -38282,7 +38188,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
38282
38188
  ]))
38283
38189
  });
38284
38190
  //#endregion
38285
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38191
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.94_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_68f18c971e8f60df53ae800c6addc338/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
38286
38192
  async function getInvitations(httpClient, signal) {
38287
38193
  return (await httpClient.get(`invitations`, { signal })).json();
38288
38194
  }
@@ -38299,7 +38205,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
38299
38205
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
38300
38206
  }
38301
38207
  //#endregion
38302
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38208
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.94_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_68f18c971e8f60df53ae800c6addc338/node_modules/@toggl/queries/dist/org/utils/requests.mjs
38303
38209
  function buildSearchParams(params, flattenArrays = false) {
38304
38210
  const searchParams = new URLSearchParams();
38305
38211
  Object.entries(params).forEach(([key, value]) => {
@@ -38311,7 +38217,7 @@ function buildSearchParams(params, flattenArrays = false) {
38311
38217
  return searchParams;
38312
38218
  }
38313
38219
  //#endregion
38314
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38220
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.94_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_68f18c971e8f60df53ae800c6addc338/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
38315
38221
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
38316
38222
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
38317
38223
  }
@@ -38325,7 +38231,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
38325
38231
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
38326
38232
  }
38327
38233
  //#endregion
38328
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38234
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.94_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_68f18c971e8f60df53ae800c6addc338/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
38329
38235
  async function getWorkspaces(httpClient, organization_id, signal) {
38330
38236
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
38331
38237
  }
@@ -38334,7 +38240,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
38334
38240
  }
38335
38241
  const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
38336
38242
  working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
38337
- starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(24))),
38243
+ starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
38338
38244
  weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
38339
38245
  });
38340
38246
  const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
@@ -38345,7 +38251,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
38345
38251
  });
38346
38252
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
38347
38253
  //#endregion
38348
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38254
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.94_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_68f18c971e8f60df53ae800c6addc338/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
38349
38255
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
38350
38256
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
38351
38257
  signal,
@@ -38356,12 +38262,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
38356
38262
  })).json();
38357
38263
  }
38358
38264
  //#endregion
38359
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38265
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.94_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_68f18c971e8f60df53ae800c6addc338/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
38360
38266
  async function getStatus(httpClient, signal) {
38361
38267
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
38362
38268
  }
38363
38269
  //#endregion
38364
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38270
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.94_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_68f18c971e8f60df53ae800c6addc338/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
38365
38271
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
38366
38272
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
38367
38273
  signal,
@@ -38389,7 +38295,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
38389
38295
  return response.json();
38390
38296
  }
38391
38297
  //#endregion
38392
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.93_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_8767c9c715db49250ef3e49c4f8630a0/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38298
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.94_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_68f18c971e8f60df53ae800c6addc338/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
38393
38299
  async function getMyWorkingHours(httpClient, organization_id, signal) {
38394
38300
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
38395
38301
  }
@@ -41993,15 +41899,13 @@ async function getWorkspaceAttachmentStorage(httpClient, organization_id, worksp
41993
41899
  }
41994
41900
  //#endregion
41995
41901
  //#region ../focus-queries/dist/audit-log/requests.ts
41996
- 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) {
41902
+ async function getOrganizationAuditLog(httpClient, organization_id, from, to, { workspace_id, entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
41997
41903
  return await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
41998
41904
  signal,
41999
41905
  searchParams: buildSearchParams$2({
42000
41906
  workspace_id,
42001
41907
  entity_type,
42002
41908
  entity_id,
42003
- project_id,
42004
- custom_field_id,
42005
41909
  action,
42006
41910
  user_id,
42007
41911
  page_size,
@@ -42010,14 +41914,12 @@ async function getOrganizationAuditLog(httpClient, organization_id, from, to, {
42010
41914
  })
42011
41915
  }).json();
42012
41916
  }
42013
- 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) {
41917
+ async function getAuditLog(httpClient, organization_id, workspace_id, from, to, { entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
42014
41918
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
42015
41919
  signal,
42016
41920
  searchParams: buildSearchParams$2({
42017
41921
  entity_type,
42018
41922
  entity_id,
42019
- project_id,
42020
- custom_field_id,
42021
41923
  action,
42022
41924
  user_id,
42023
41925
  page_size,
@@ -42170,14 +42072,13 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
42170
42072
  }
42171
42073
  //#endregion
42172
42074
  //#region ../focus-queries/dist/capacities/requests.ts
42173
- 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) {
42075
+ 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) {
42174
42076
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
42175
42077
  signal,
42176
42078
  searchParams: buildSearchParams$2({
42079
+ user_id,
42177
42080
  start_date,
42178
42081
  end_date,
42179
- user_id,
42180
- team_id,
42181
42082
  private: private_,
42182
42083
  task_source,
42183
42084
  unit,
@@ -42237,15 +42138,6 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
42237
42138
  async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
42238
42139
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
42239
42140
  }
42240
- async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
42241
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
42242
- }
42243
- async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
42244
- return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
42245
- signal,
42246
- json: data
42247
- }).json();
42248
- }
42249
42141
  async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
42250
42142
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
42251
42143
  signal,
@@ -42285,61 +42177,6 @@ async function patchUserCustomFieldValues(httpClient, organization_id, workspace
42285
42177
  }).json();
42286
42178
  }
42287
42179
  //#endregion
42288
- //#region ../focus-queries/dist/designations/requests.ts
42289
- async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { name, page, per_page, order_by } = {}, signal) {
42290
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
42291
- signal,
42292
- searchParams: buildSearchParams$2({
42293
- name,
42294
- page,
42295
- per_page,
42296
- order_by
42297
- })
42298
- }).json();
42299
- }
42300
- async function createWorkspaceDesignation(httpClient, organization_id, workspace_id, data, signal) {
42301
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
42302
- signal,
42303
- json: data
42304
- }).json();
42305
- }
42306
- async function bulkCreateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
42307
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
42308
- signal,
42309
- json: data
42310
- }).json();
42311
- }
42312
- async function bulkDeleteWorkspaceDesignations(httpClient, organization_id, workspace_id, ids, all_or_none, signal) {
42313
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
42314
- signal,
42315
- searchParams: buildSearchParams$2({
42316
- ids,
42317
- all_or_none
42318
- })
42319
- }).json();
42320
- }
42321
- async function bulkUpdateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
42322
- return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
42323
- signal,
42324
- json: data
42325
- }).json();
42326
- }
42327
- async function updateWorkspaceDesignationMembers(httpClient, organization_id, workspace_id, data, signal) {
42328
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/members`, {
42329
- signal,
42330
- json: data
42331
- }).json();
42332
- }
42333
- async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
42334
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal }).json();
42335
- }
42336
- async function updateWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, data, signal) {
42337
- return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, {
42338
- signal,
42339
- json: data
42340
- }).json();
42341
- }
42342
- //#endregion
42343
42180
  //#region ../focus-queries/dist/goals/requests.ts
42344
42181
  async function createGoal(httpClient, organization_id, workspace_id, data, signal) {
42345
42182
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals`, {
@@ -42564,7 +42401,7 @@ async function restoreMilestone(httpClient, workspace_id, milestone_id, signal)
42564
42401
  }
42565
42402
  //#endregion
42566
42403
  //#region ../focus-queries/dist/project-groups/requests.ts
42567
- 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) {
42404
+ 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) {
42568
42405
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
42569
42406
  signal,
42570
42407
  searchParams: buildSearchParams$2({
@@ -42590,7 +42427,6 @@ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id
42590
42427
  user_id,
42591
42428
  only_me,
42592
42429
  include_drafts,
42593
- include_recurring_series,
42594
42430
  cf_filter
42595
42431
  })
42596
42432
  }).json();
@@ -42609,6 +42445,9 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
42609
42445
  json: data
42610
42446
  }).json();
42611
42447
  }
42448
+ async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
42449
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
42450
+ }
42612
42451
  async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
42613
42452
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
42614
42453
  }
@@ -42634,37 +42473,6 @@ async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id
42634
42473
  }).json();
42635
42474
  }
42636
42475
  //#endregion
42637
- //#region ../focus-queries/dist/publicsharedreports/requests.ts
42638
- async function openPublicSharedReport(httpClient, token, signal) {
42639
- return await httpClient.get(`shared/${token}`, { signal }).json();
42640
- }
42641
- async function profitabilityPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
42642
- return await httpClient.post(`shared/${token}/profitability`, {
42643
- signal,
42644
- json: data,
42645
- searchParams: buildSearchParams$2({
42646
- response_format,
42647
- include_dicts
42648
- })
42649
- }).json();
42650
- }
42651
- async function queryPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
42652
- return await httpClient.post(`shared/${token}/query`, {
42653
- signal,
42654
- json: data,
42655
- searchParams: buildSearchParams$2({
42656
- response_format,
42657
- include_dicts
42658
- })
42659
- }).json();
42660
- }
42661
- async function workloadPublicSharedReport(httpClient, token, data, signal) {
42662
- return await httpClient.post(`shared/${token}/workload`, {
42663
- signal,
42664
- json: data
42665
- }).json();
42666
- }
42667
- //#endregion
42668
42476
  //#region ../focus-queries/dist/rates/requests.ts
42669
42477
  async function getProjectRatesSummary(httpClient, organization_id, workspace_id, { page, rows, order_by, search } = {}, signal) {
42670
42478
  const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/rates`, {
@@ -42826,7 +42634,7 @@ async function updateASavedView(httpClient, workspace_id, id, data, signal) {
42826
42634
  }
42827
42635
  //#endregion
42828
42636
  //#region ../focus-queries/dist/search/requests.ts
42829
- 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) {
42637
+ 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) {
42830
42638
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
42831
42639
  signal,
42832
42640
  searchParams: buildSearchParams$2({
@@ -42834,7 +42642,6 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
42834
42642
  per_group,
42835
42643
  assignee_user_id,
42836
42644
  assignee_team_id,
42837
- include_unassigned,
42838
42645
  project_id,
42839
42646
  task_id,
42840
42647
  include_drafts,
@@ -42879,18 +42686,6 @@ async function getSharedReportsSharedWithMe(httpClient, workspace_id, signal) {
42879
42686
  async function getSharedReportForViewer(httpClient, workspace_id, id, signal) {
42880
42687
  return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
42881
42688
  }
42882
- async function unshareSharedReport(httpClient, workspace_id, id, signal) {
42883
- return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
42884
- }
42885
- async function getSharedReportDates(httpClient, workspace_id, id, signal) {
42886
- return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}/dates`, { signal }).json();
42887
- }
42888
- async function setSharedReportDatesLock(httpClient, workspace_id, id, data, signal) {
42889
- return await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/dates`, {
42890
- signal,
42891
- json: data
42892
- }).json();
42893
- }
42894
42689
  async function addSharedReportGrants(httpClient, workspace_id, id, data, signal) {
42895
42690
  return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
42896
42691
  signal,
@@ -42900,21 +42695,6 @@ async function addSharedReportGrants(httpClient, workspace_id, id, data, signal)
42900
42695
  async function revokeSharedReportGrant(httpClient, workspace_id, id, grant_id, signal) {
42901
42696
  return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/grants/${grant_id}`, { signal }).json();
42902
42697
  }
42903
- async function mintSharedReportLink(httpClient, workspace_id, id, data, signal) {
42904
- return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
42905
- signal,
42906
- json: data
42907
- }).json();
42908
- }
42909
- async function revokeSharedReportLink(httpClient, workspace_id, id, signal) {
42910
- return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/link`, { signal }).json();
42911
- }
42912
- async function rotateSharedReportLink(httpClient, workspace_id, id, data, signal) {
42913
- return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
42914
- signal,
42915
- json: data
42916
- }).json();
42917
- }
42918
42698
  //#endregion
42919
42699
  //#region ../focus-queries/dist/subscriptions/requests.ts
42920
42700
  async function getCurrentSubscription(httpClient, organization_id, signal) {
@@ -42971,10 +42751,9 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
42971
42751
  }
42972
42752
  //#endregion
42973
42753
  //#region ../focus-queries/dist/task-groups/requests.ts
42974
- 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) {
42754
+ 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) {
42975
42755
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
42976
42756
  signal,
42977
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
42978
42757
  searchParams: buildSearchParams$2({
42979
42758
  project_id,
42980
42759
  source,
@@ -43003,18 +42782,13 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
43003
42782
  min_days,
43004
42783
  include_drafts,
43005
42784
  cf_filter,
43006
- user_cf_filter,
43007
- recurring_occurrences_after,
43008
- max_recurring_occurrences_after,
43009
- recurring_task_read,
43010
- include_projected_occurrences
42785
+ user_cf_filter
43011
42786
  })
43012
42787
  }).json();
43013
42788
  }
43014
- 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) {
42789
+ 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) {
43015
42790
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
43016
42791
  signal,
43017
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
43018
42792
  searchParams: buildSearchParams$2({
43019
42793
  team_id,
43020
42794
  project_id,
@@ -43043,18 +42817,13 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
43043
42817
  min_days,
43044
42818
  include_drafts,
43045
42819
  cf_filter,
43046
- user_cf_filter,
43047
- recurring_occurrences_after,
43048
- max_recurring_occurrences_after,
43049
- recurring_task_read,
43050
- include_projected_occurrences
42820
+ user_cf_filter
43051
42821
  })
43052
42822
  }).json();
43053
42823
  }
43054
- 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) {
42824
+ 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) {
43055
42825
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
43056
42826
  signal,
43057
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
43058
42827
  searchParams: buildSearchParams$2({
43059
42828
  source,
43060
42829
  priority,
@@ -43084,10 +42853,6 @@ async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, g
43084
42853
  include_drafts,
43085
42854
  cf_filter,
43086
42855
  user_cf_filter,
43087
- recurring_occurrences_after,
43088
- max_recurring_occurrences_after,
43089
- recurring_task_read,
43090
- include_projected_occurrences,
43091
42856
  page,
43092
42857
  per_page,
43093
42858
  order_by
@@ -43115,6 +42880,104 @@ async function getProjectSuggestionsForMultipleTasks(httpClient, organization_id
43115
42880
  }).json();
43116
42881
  }
43117
42882
  //#endregion
42883
+ //#region ../focus-queries/dist/time-blocks/requests.ts
42884
+ async function getTaskTimeBlocksWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, archived } = {}, signal) {
42885
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
42886
+ signal,
42887
+ searchParams: buildSearchParams$2({
42888
+ page,
42889
+ per_page,
42890
+ order_by,
42891
+ archived
42892
+ })
42893
+ }).json();
42894
+ }
42895
+ async function createTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
42896
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
42897
+ signal,
42898
+ json: data
42899
+ }).json();
42900
+ }
42901
+ async function getTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
42902
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, { signal }).json();
42903
+ }
42904
+ async function updateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
42905
+ return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
42906
+ signal,
42907
+ json: data
42908
+ }).json();
42909
+ }
42910
+ async function deleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, outbound_sync, signal) {
42911
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
42912
+ signal,
42913
+ searchParams: buildSearchParams$2({ outbound_sync })
42914
+ }).json();
42915
+ }
42916
+ async function partialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
42917
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
42918
+ signal,
42919
+ json: data
42920
+ }).json();
42921
+ }
42922
+ async function archiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
42923
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/archive`, { signal }).json();
42924
+ }
42925
+ async function restoreTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
42926
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/restore`, { signal }).json();
42927
+ }
42928
+ async function unarchiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
42929
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/unarchive`, { signal }).json();
42930
+ }
42931
+ async function getTimeBlocksRangeWithOrgClassic(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, page, per_page, archived, order_by }, signal) {
42932
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks`, {
42933
+ signal,
42934
+ searchParams: buildSearchParams$2({
42935
+ date_from,
42936
+ date_to,
42937
+ task_id,
42938
+ status_id,
42939
+ page,
42940
+ per_page,
42941
+ archived,
42942
+ order_by
42943
+ })
42944
+ }).json();
42945
+ }
42946
+ async function bulkCreateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
42947
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
42948
+ signal,
42949
+ json: data
42950
+ }).json();
42951
+ }
42952
+ async function bulkDeleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, ids, outbound_sync, signal) {
42953
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
42954
+ signal,
42955
+ searchParams: buildSearchParams$2({
42956
+ ids,
42957
+ outbound_sync
42958
+ })
42959
+ }).json();
42960
+ }
42961
+ async function bulkPartialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
42962
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
42963
+ signal,
42964
+ json: data
42965
+ }).json();
42966
+ }
42967
+ async function getTimeBlocksRangeStreamWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, archived, order_by }, signal) {
42968
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/stream`, {
42969
+ signal,
42970
+ searchParams: buildSearchParams$2({
42971
+ date_from,
42972
+ date_to,
42973
+ task_id,
42974
+ status_id,
42975
+ archived,
42976
+ order_by
42977
+ })
42978
+ }).json();
42979
+ }
42980
+ //#endregion
43118
42981
  //#region ../focus-queries/dist/time-entry-constraints/requests.ts
43119
42982
  async function getTimeEntryConstraints(httpClient, workspace_id, signal) {
43120
42983
  return await httpClient.get(`workspaces/${workspace_id}/time-entry-constraints`, { signal }).json();
@@ -43152,12 +43015,6 @@ async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, star
43152
43015
  })
43153
43016
  }).json();
43154
43017
  }
43155
- async function getTimeoffCategories(httpClient, organization_id, signal) {
43156
- return await httpClient.get(`organizations/${organization_id}/timeoff/categories`, { signal }).json();
43157
- }
43158
- async function getTimeoffCategory(httpClient, organization_id, category_id, signal) {
43159
- return await httpClient.get(`organizations/${organization_id}/timeoff/categories/${category_id}`, { signal }).json();
43160
- }
43161
43018
  async function getTimeoffForUser(httpClient, organization_id, user_id, { from, to }, signal) {
43162
43019
  return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}`, {
43163
43020
  signal,
@@ -43185,40 +43042,20 @@ async function deleteTimeoffForUser(httpClient, organization_id, user_id, data,
43185
43042
  json: data
43186
43043
  }).json();
43187
43044
  }
43188
- async function getTimeoffBalancesForUser(httpClient, organization_id, user_id, { category_id, date } = {}, signal) {
43189
- return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances`, {
43045
+ //#endregion
43046
+ //#region ../focus-queries/dist/timesheet-setups/requests.ts
43047
+ async function getTimesheetSetups(httpClient, organization_id, workspace_id, { include_discontinued, user_account_id, approver_user_account_id } = {}, signal) {
43048
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
43190
43049
  signal,
43191
43050
  searchParams: buildSearchParams$2({
43192
- category_id,
43193
- date
43051
+ include_discontinued,
43052
+ user_account_id,
43053
+ approver_user_account_id
43194
43054
  })
43195
43055
  }).json();
43196
43056
  }
43197
- async function getTimeoffBalanceChangesForUserClassic(httpClient, organization_id, user_id, { category_id, year, page, rows }, signal) {
43198
- return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances/changes`, {
43199
- signal,
43200
- searchParams: buildSearchParams$2({
43201
- category_id,
43202
- year,
43203
- page,
43204
- rows
43205
- })
43206
- }).json();
43207
- }
43208
- //#endregion
43209
- //#region ../focus-queries/dist/timesheet-setups/requests.ts
43210
- async function getTimesheetSetups(httpClient, organization_id, workspace_id, { include_discontinued, user_account_id, approver_user_account_id } = {}, signal) {
43211
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
43212
- signal,
43213
- searchParams: buildSearchParams$2({
43214
- include_discontinued,
43215
- user_account_id,
43216
- approver_user_account_id
43217
- })
43218
- }).json();
43219
- }
43220
- async function createTimesheetSetup(httpClient, organization_id, workspace_id, data, signal) {
43221
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
43057
+ async function createTimesheetSetup(httpClient, organization_id, workspace_id, data, signal) {
43058
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
43222
43059
  signal,
43223
43060
  json: data
43224
43061
  }).json();
@@ -43305,19 +43142,6 @@ async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id,
43305
43142
  json: data
43306
43143
  }).json();
43307
43144
  }
43308
- async function getTimesheetStatusCounts(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids }, signal) {
43309
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
43310
- signal,
43311
- searchParams: buildSearchParams$2({
43312
- date_from,
43313
- date_to,
43314
- setup_id,
43315
- user_account_ids,
43316
- approver_user_account_ids,
43317
- team_ids
43318
- })
43319
- }).json();
43320
- }
43321
43145
  async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
43322
43146
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal }).json();
43323
43147
  }
@@ -43361,21 +43185,7 @@ async function withdrawTimesheet(httpClient, organization_id, workspace_id, setu
43361
43185
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal }).json();
43362
43186
  }
43363
43187
  //#endregion
43364
- //#region ../focus-queries/dist/track-team-invites/requests.ts
43365
- async function postTrackTeamInvites(httpClient, organization_id, workspace_id, data, signal) {
43366
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
43367
- signal,
43368
- json: data
43369
- }).json();
43370
- }
43371
- //#endregion
43372
43188
  //#region ../focus-queries/dist/user-settings/requests.ts
43373
- async function emailUnsubscribePage(httpClient, token, signal) {
43374
- return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
43375
- }
43376
- async function emailUnsubscribe(httpClient, token, signal) {
43377
- return await httpClient.post(`email/unsubscribe/${token}`, { signal }).json();
43378
- }
43379
43189
  async function getUserSettings(httpClient, signal) {
43380
43190
  return await httpClient.get(`users/me/settings`, { signal }).json();
43381
43191
  }
@@ -43403,12 +43213,6 @@ async function serviceVersion(httpClient, signal) {
43403
43213
  }
43404
43214
  //#endregion
43405
43215
  //#region ../focus-queries/dist/working-hours/requests.ts
43406
- async function replaceWorkingHoursForUsers(httpClient, organization_id, data, signal) {
43407
- return await httpClient.put(`organizations/${organization_id}/workinghours/users`, {
43408
- signal,
43409
- json: data
43410
- }).json();
43411
- }
43412
43216
  async function getWorkingHoursForUser(httpClient, organization_id, user_id, signal) {
43413
43217
  return await httpClient.get(`organizations/${organization_id}/workinghours/users/${user_id}`, { signal }).json();
43414
43218
  }
@@ -43621,7 +43425,6 @@ const generatedFocusOperations = [
43621
43425
  mcp: { entityTool: "audit-log" },
43622
43426
  inputSchema: /* @__PURE__ */ looseObject({
43623
43427
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43624
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43625
43428
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43626
43429
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43627
43430
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -43629,7 +43432,6 @@ const generatedFocusOperations = [
43629
43432
  from: /* @__PURE__ */ string$1(),
43630
43433
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43631
43434
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43632
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43633
43435
  to: /* @__PURE__ */ string$1(),
43634
43436
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43635
43437
  workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -43663,7 +43465,6 @@ const generatedFocusOperations = [
43663
43465
  mcp: { entityTool: "audit-log" },
43664
43466
  inputSchema: /* @__PURE__ */ looseObject({
43665
43467
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43666
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43667
43468
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43668
43469
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43669
43470
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -43671,7 +43472,6 @@ const generatedFocusOperations = [
43671
43472
  from: /* @__PURE__ */ string$1(),
43672
43473
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43673
43474
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
43674
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43675
43475
  to: /* @__PURE__ */ string$1(),
43676
43476
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
43677
43477
  }),
@@ -43711,7 +43511,6 @@ const generatedFocusOperations = [
43711
43511
  private_: /* @__PURE__ */ unknown$1(),
43712
43512
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
43713
43513
  task_source: /* @__PURE__ */ unknown$1(),
43714
- team_id: /* @__PURE__ */ number$2(),
43715
43514
  unit: /* @__PURE__ */ unknown$1(),
43716
43515
  user_id: /* @__PURE__ */ number$2()
43717
43516
  }),
@@ -43961,6 +43760,8 @@ const generatedFocusOperations = [
43961
43760
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
43962
43761
  estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
43963
43762
  estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43763
+ integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43764
+ integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
43964
43765
  notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
43965
43766
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43966
43767
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -43994,6 +43795,8 @@ const generatedFocusOperations = [
43994
43795
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
43995
43796
  estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
43996
43797
  estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43798
+ integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43799
+ integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
43997
43800
  notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
43998
43801
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
43999
43802
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
@@ -44009,6 +43812,12 @@ const generatedFocusOperations = [
44009
43812
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44010
43813
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
44011
43814
  }))),
43815
+ time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
43816
+ start: apiDateTimeString,
43817
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
43818
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43819
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
43820
+ }))),
44012
43821
  time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
44013
43822
  type: /* @__PURE__ */ picklist$1(["activity", "break"]),
44014
43823
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -44018,6 +43827,13 @@ const generatedFocusOperations = [
44018
43827
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44019
43828
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44020
43829
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
43830
+ time_block: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
43831
+ start: apiDateTimeString,
43832
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
43833
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
43834
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
43835
+ })),
43836
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44021
43837
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
44022
43838
  }))
44023
43839
  }) }),
@@ -44135,33 +43951,6 @@ const generatedFocusOperations = [
44135
43951
  ]));
44136
43952
  }
44137
43953
  },
44138
- {
44139
- id: "focus.custom-fields.get-allowed-users",
44140
- family: "focus",
44141
- resource: "custom-fields",
44142
- action: "get-allowed-users",
44143
- title: "Get Allowed Users Custom Fields",
44144
- description: "Get Allowed Users Custom Fields.",
44145
- safety: "read",
44146
- destructive: false,
44147
- cli: {
44148
- group: ["custom-fields"],
44149
- command: "get-allowed-users",
44150
- interactive: "available"
44151
- },
44152
- mcp: { entityTool: "custom-fields" },
44153
- inputSchema: /* @__PURE__ */ looseObject({ custom_field_id: /* @__PURE__ */ number$2() }),
44154
- execute: (input, { client }) => {
44155
- const data = input;
44156
- return client.runGeneratedRequest("getCustomFieldAllowedUsers", () => callGeneratedRequest(getCustomFieldAllowedUsers, [
44157
- client.httpClient,
44158
- client.organizationId,
44159
- client.workspaceIdNumber,
44160
- data.custom_field_id,
44161
- void 0
44162
- ]));
44163
- }
44164
- },
44165
43954
  {
44166
43955
  id: "focus.custom-fields.list",
44167
43956
  family: "focus",
@@ -44331,37 +44120,6 @@ const generatedFocusOperations = [
44331
44120
  ]));
44332
44121
  }
44333
44122
  },
44334
- {
44335
- id: "focus.custom-fields.replace-custom-field-allowed-users",
44336
- family: "focus",
44337
- resource: "custom-fields",
44338
- action: "replace-custom-field-allowed-users",
44339
- title: "Replace Custom Field Allowed Users Custom Fields",
44340
- description: "Replace Custom Field Allowed Users Custom Fields.",
44341
- safety: "update",
44342
- destructive: false,
44343
- cli: {
44344
- group: ["custom-fields"],
44345
- command: "replace-custom-field-allowed-users",
44346
- interactive: "default"
44347
- },
44348
- mcp: { entityTool: "custom-fields" },
44349
- inputSchema: /* @__PURE__ */ looseObject({
44350
- custom_field_id: /* @__PURE__ */ number$2(),
44351
- payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) })
44352
- }),
44353
- execute: (input, { client }) => {
44354
- const data = input;
44355
- return client.runGeneratedRequest("replaceCustomFieldAllowedUsers", () => callGeneratedRequest(replaceCustomFieldAllowedUsers, [
44356
- client.httpClient,
44357
- client.organizationId,
44358
- client.workspaceIdNumber,
44359
- data.custom_field_id,
44360
- data.payload ?? data.data ?? data,
44361
- void 0
44362
- ]));
44363
- }
44364
- },
44365
44123
  {
44366
44124
  id: "focus.custom-fields.update",
44367
44125
  family: "focus",
@@ -44493,27 +44251,45 @@ const generatedFocusOperations = [
44493
44251
  }
44494
44252
  },
44495
44253
  {
44496
- id: "focus.designations.bulk-create-workspace",
44254
+ id: "focus.goals.create",
44497
44255
  family: "focus",
44498
- resource: "designations",
44499
- action: "bulk-create-workspace",
44500
- title: "Bulk Create Workspace Designations",
44501
- description: "Bulk Create Workspace Designations.",
44256
+ resource: "goals",
44257
+ action: "create",
44258
+ title: "Create Goals",
44259
+ description: "Create Goals.",
44502
44260
  safety: "create",
44503
44261
  destructive: false,
44504
44262
  cli: {
44505
- group: ["designations", "bulk"],
44506
- command: "create-workspace",
44263
+ group: ["goals"],
44264
+ command: "create",
44507
44265
  interactive: "default"
44508
44266
  },
44509
- mcp: { entityTool: "designations" },
44510
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
44267
+ mcp: { entityTool: "goals" },
44268
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44269
+ billable: /* @__PURE__ */ boolean$1(),
44270
+ comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
44271
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44272
+ icon: /* @__PURE__ */ string$1(),
44273
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
44511
44274
  name: /* @__PURE__ */ string$1(),
44512
- member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44513
- })) }) }),
44275
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44276
+ recurrence: /* @__PURE__ */ picklist$1([
44277
+ "daily",
44278
+ "weekly",
44279
+ "daily_workdays",
44280
+ "monthly"
44281
+ ]),
44282
+ start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44283
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44284
+ target_seconds: /* @__PURE__ */ number$2(),
44285
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44286
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44287
+ client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44288
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
44289
+ }) }),
44514
44290
  execute: (input, { client }) => {
44515
44291
  const data = input;
44516
- return client.runGeneratedRequest("bulkCreateWorkspaceDesignations", () => callGeneratedRequest(bulkCreateWorkspaceDesignations, [
44292
+ return client.runGeneratedRequest("createGoal", () => callGeneratedRequest(createGoal, [
44517
44293
  client.httpClient,
44518
44294
  client.organizationId,
44519
44295
  client.workspaceIdNumber,
@@ -44523,91 +44299,122 @@ const generatedFocusOperations = [
44523
44299
  }
44524
44300
  },
44525
44301
  {
44526
- id: "focus.designations.bulk-delete-workspace",
44302
+ id: "focus.goals.delete",
44527
44303
  family: "focus",
44528
- resource: "designations",
44529
- action: "bulk-delete-workspace",
44530
- title: "Bulk Delete Workspace Designations",
44531
- description: "Bulk Delete Workspace Designations.",
44304
+ resource: "goals",
44305
+ action: "delete",
44306
+ title: "Delete Goals",
44307
+ description: "Delete Goals.",
44532
44308
  safety: "delete",
44533
44309
  destructive: true,
44534
44310
  cli: {
44535
- group: ["designations", "bulk"],
44536
- command: "delete-workspace",
44311
+ group: ["goals"],
44312
+ command: "delete",
44537
44313
  interactive: "default"
44538
44314
  },
44539
- mcp: { entityTool: "designations" },
44540
- inputSchema: /* @__PURE__ */ looseObject({
44541
- all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44542
- ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2())
44543
- }),
44315
+ mcp: { entityTool: "goals" },
44316
+ inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
44544
44317
  execute: (input, { client }) => {
44545
44318
  const data = input;
44546
- return client.runGeneratedRequest("bulkDeleteWorkspaceDesignations", () => callGeneratedRequest(bulkDeleteWorkspaceDesignations, [
44319
+ return client.runGeneratedRequest("deleteGoal", () => callGeneratedRequest(deleteGoal, [
44547
44320
  client.httpClient,
44548
44321
  client.organizationId,
44549
44322
  client.workspaceIdNumber,
44550
- data.ids,
44551
- data.all_or_none,
44323
+ data.goal_id,
44552
44324
  void 0
44553
44325
  ]));
44554
44326
  }
44555
44327
  },
44556
44328
  {
44557
- id: "focus.designations.bulk-update-workspace",
44329
+ id: "focus.goals.get",
44558
44330
  family: "focus",
44559
- resource: "designations",
44560
- action: "bulk-update-workspace",
44561
- title: "Bulk Update Workspace Designations",
44562
- description: "Bulk Update Workspace Designations.",
44563
- safety: "update",
44331
+ resource: "goals",
44332
+ action: "get",
44333
+ title: "Get Goals",
44334
+ description: "Get Goals.",
44335
+ safety: "read",
44564
44336
  destructive: false,
44565
44337
  cli: {
44566
- group: ["designations", "bulk"],
44567
- command: "update-workspace",
44568
- interactive: "default"
44338
+ group: ["goals"],
44339
+ command: "get",
44340
+ interactive: "available"
44569
44341
  },
44570
- mcp: { entityTool: "designations" },
44571
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44572
- designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
44573
- id: /* @__PURE__ */ number$2(),
44574
- name: /* @__PURE__ */ string$1()
44575
- })),
44576
- all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
44577
- }) }),
44342
+ mcp: { entityTool: "goals" },
44343
+ inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
44578
44344
  execute: (input, { client }) => {
44579
44345
  const data = input;
44580
- return client.runGeneratedRequest("bulkUpdateWorkspaceDesignations", () => callGeneratedRequest(bulkUpdateWorkspaceDesignations, [
44346
+ return client.runGeneratedRequest("getGoal", () => callGeneratedRequest(getGoal, [
44581
44347
  client.httpClient,
44582
44348
  client.organizationId,
44583
44349
  client.workspaceIdNumber,
44584
- data.payload ?? data.data ?? data,
44350
+ data.goal_id,
44585
44351
  void 0
44586
44352
  ]));
44587
44353
  }
44588
44354
  },
44589
44355
  {
44590
- id: "focus.designations.create-workspace",
44356
+ id: "focus.goals.list",
44591
44357
  family: "focus",
44592
- resource: "designations",
44593
- action: "create-workspace",
44594
- title: "Create Workspace Designations",
44595
- description: "Create Workspace Designations.",
44596
- safety: "create",
44358
+ resource: "goals",
44359
+ action: "list",
44360
+ title: "List Goals",
44361
+ description: "List Goals.",
44362
+ safety: "read",
44363
+ destructive: false,
44364
+ cli: {
44365
+ group: ["goals"],
44366
+ command: "list",
44367
+ interactive: "hidden"
44368
+ },
44369
+ mcp: { entityTool: "goals" },
44370
+ inputSchema: /* @__PURE__ */ looseObject({}),
44371
+ execute: (_input, { client }) => client.runGeneratedRequest("getGoals", () => callGeneratedRequest(getGoals, [
44372
+ client.httpClient,
44373
+ client.organizationId,
44374
+ client.workspaceIdNumber,
44375
+ void 0
44376
+ ]))
44377
+ },
44378
+ {
44379
+ id: "focus.goals.preview-goal-tracked-time",
44380
+ family: "focus",
44381
+ resource: "goals",
44382
+ action: "preview-goal-tracked-time",
44383
+ title: "Preview Goal Tracked Time Goals",
44384
+ description: "Preview Goal Tracked Time Goals.",
44385
+ safety: "update",
44597
44386
  destructive: false,
44598
44387
  cli: {
44599
- group: ["designations"],
44600
- command: "create-workspace",
44388
+ group: ["goals"],
44389
+ command: "preview-goal-tracked-time",
44601
44390
  interactive: "default"
44602
44391
  },
44603
- mcp: { entityTool: "designations" },
44392
+ mcp: { entityTool: "goals" },
44604
44393
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44394
+ billable: /* @__PURE__ */ boolean$1(),
44395
+ comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
44396
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44397
+ icon: /* @__PURE__ */ string$1(),
44398
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
44605
44399
  name: /* @__PURE__ */ string$1(),
44606
- member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44400
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44401
+ recurrence: /* @__PURE__ */ picklist$1([
44402
+ "daily",
44403
+ "weekly",
44404
+ "daily_workdays",
44405
+ "monthly"
44406
+ ]),
44407
+ start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44408
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44409
+ target_seconds: /* @__PURE__ */ number$2(),
44410
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44411
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
44412
+ client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44413
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
44607
44414
  }) }),
44608
44415
  execute: (input, { client }) => {
44609
44416
  const data = input;
44610
- return client.runGeneratedRequest("createWorkspaceDesignation", () => callGeneratedRequest(createWorkspaceDesignation, [
44417
+ return client.runGeneratedRequest("previewGoalTrackedTime", () => callGeneratedRequest(previewGoalTrackedTime, [
44611
44418
  client.httpClient,
44612
44419
  client.organizationId,
44613
44420
  client.workspaceIdNumber,
@@ -44617,173 +44424,108 @@ const generatedFocusOperations = [
44617
44424
  }
44618
44425
  },
44619
44426
  {
44620
- id: "focus.designations.delete-workspace",
44427
+ id: "focus.goals.reorder",
44621
44428
  family: "focus",
44622
- resource: "designations",
44623
- action: "delete-workspace",
44624
- title: "Delete Workspace Designations",
44625
- description: "Delete Workspace Designations.",
44626
- safety: "delete",
44627
- destructive: true,
44429
+ resource: "goals",
44430
+ action: "reorder",
44431
+ title: "Reorder Goals",
44432
+ description: "Reorder Goals.",
44433
+ safety: "update",
44434
+ destructive: false,
44628
44435
  cli: {
44629
- group: ["designations"],
44630
- command: "delete-workspace",
44436
+ group: ["goals"],
44437
+ command: "reorder",
44631
44438
  interactive: "default"
44632
44439
  },
44633
- mcp: { entityTool: "designations" },
44634
- inputSchema: /* @__PURE__ */ looseObject({ designation_id: /* @__PURE__ */ number$2() }),
44440
+ mcp: { entityTool: "goals" },
44441
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ goal_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
44635
44442
  execute: (input, { client }) => {
44636
44443
  const data = input;
44637
- return client.runGeneratedRequest("deleteWorkspaceDesignation", () => callGeneratedRequest(deleteWorkspaceDesignation, [
44444
+ return client.runGeneratedRequest("reorderGoals", () => callGeneratedRequest(reorderGoals, [
44638
44445
  client.httpClient,
44639
44446
  client.organizationId,
44640
44447
  client.workspaceIdNumber,
44641
- data.designation_id,
44448
+ data.payload ?? data.data ?? data,
44642
44449
  void 0
44643
44450
  ]));
44644
44451
  }
44645
44452
  },
44646
44453
  {
44647
- id: "focus.designations.get-workspace-designations",
44454
+ id: "focus.goals.update",
44648
44455
  family: "focus",
44649
- resource: "designations",
44650
- action: "get-workspace-designations",
44651
- title: "Get Workspace Designations Designations",
44652
- description: "Get Workspace Designations Designations.",
44653
- safety: "read",
44456
+ resource: "goals",
44457
+ action: "update",
44458
+ title: "Update Goals",
44459
+ description: "Update Goals.",
44460
+ safety: "update",
44654
44461
  destructive: false,
44655
44462
  cli: {
44656
- group: ["designations"],
44657
- command: "get-workspace-designations",
44658
- interactive: "hidden"
44463
+ group: ["goals"],
44464
+ command: "update",
44465
+ interactive: "default"
44659
44466
  },
44660
- mcp: { entityTool: "designations" },
44467
+ mcp: { entityTool: "goals" },
44661
44468
  inputSchema: /* @__PURE__ */ looseObject({
44662
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
44663
- order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
44664
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44665
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
44469
+ goal_id: /* @__PURE__ */ number$2(),
44470
+ payload: /* @__PURE__ */ looseObject({
44471
+ active: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44472
+ client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44473
+ comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44474
+ icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44475
+ name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44476
+ project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44477
+ recurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
44478
+ "daily",
44479
+ "weekly",
44480
+ "daily_workdays",
44481
+ "monthly"
44482
+ ])),
44483
+ start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44484
+ tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44485
+ target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44486
+ task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44487
+ weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44488
+ })
44666
44489
  }),
44667
44490
  execute: (input, { client }) => {
44668
44491
  const data = input;
44669
- return client.runGeneratedRequest("getWorkspaceDesignationsClassic", () => callGeneratedRequest(getWorkspaceDesignationsClassic, [
44492
+ return client.runGeneratedRequest("updateGoal", () => callGeneratedRequest(updateGoal, [
44670
44493
  client.httpClient,
44671
44494
  client.organizationId,
44672
44495
  client.workspaceIdNumber,
44673
- data,
44496
+ data.goal_id,
44497
+ data.payload ?? data.data ?? data,
44674
44498
  void 0
44675
44499
  ]));
44676
44500
  }
44677
44501
  },
44678
44502
  {
44679
- id: "focus.designations.update-workspace",
44503
+ id: "focus.milestones.create",
44680
44504
  family: "focus",
44681
- resource: "designations",
44682
- action: "update-workspace",
44683
- title: "Update Workspace Designations",
44684
- description: "Update Workspace Designations.",
44685
- safety: "update",
44686
- destructive: false,
44687
- cli: {
44688
- group: ["designations"],
44689
- command: "update-workspace",
44690
- interactive: "default"
44691
- },
44692
- mcp: { entityTool: "designations" },
44693
- inputSchema: /* @__PURE__ */ looseObject({
44694
- designation_id: /* @__PURE__ */ number$2(),
44695
- payload: /* @__PURE__ */ looseObject({ name: /* @__PURE__ */ string$1() })
44696
- }),
44697
- execute: (input, { client }) => {
44698
- const data = input;
44699
- return client.runGeneratedRequest("updateWorkspaceDesignation", () => callGeneratedRequest(updateWorkspaceDesignation, [
44700
- client.httpClient,
44701
- client.organizationId,
44702
- client.workspaceIdNumber,
44703
- data.designation_id,
44704
- data.payload ?? data.data ?? data,
44705
- void 0
44706
- ]));
44707
- }
44708
- },
44709
- {
44710
- id: "focus.designations.update-workspace-designation-members",
44711
- family: "focus",
44712
- resource: "designations",
44713
- action: "update-workspace-designation-members",
44714
- title: "Update Workspace Designation Members Designations",
44715
- description: "Update Workspace Designation Members Designations.",
44716
- safety: "update",
44717
- destructive: false,
44718
- cli: {
44719
- group: ["designations"],
44720
- command: "update-workspace-designation-members",
44721
- interactive: "default"
44722
- },
44723
- mcp: { entityTool: "designations" },
44724
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44725
- add: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
44726
- designation_id: /* @__PURE__ */ number$2(),
44727
- toggl_user_id: /* @__PURE__ */ number$2()
44728
- }))),
44729
- remove: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
44730
- designation_id: /* @__PURE__ */ number$2(),
44731
- toggl_user_id: /* @__PURE__ */ number$2()
44732
- })))
44733
- }) }),
44734
- execute: (input, { client }) => {
44735
- const data = input;
44736
- return client.runGeneratedRequest("updateWorkspaceDesignationMembers", () => callGeneratedRequest(updateWorkspaceDesignationMembers, [
44737
- client.httpClient,
44738
- client.organizationId,
44739
- client.workspaceIdNumber,
44740
- data.payload ?? data.data ?? data,
44741
- void 0
44742
- ]));
44743
- }
44744
- },
44745
- {
44746
- id: "focus.goals.create",
44747
- family: "focus",
44748
- resource: "goals",
44505
+ resource: "milestones",
44749
44506
  action: "create",
44750
- title: "Create Goals",
44751
- description: "Create Goals.",
44507
+ title: "Create Milestones",
44508
+ description: "Create Milestones.",
44752
44509
  safety: "create",
44753
44510
  destructive: false,
44754
44511
  cli: {
44755
- group: ["goals"],
44512
+ group: ["milestones"],
44756
44513
  command: "create",
44757
44514
  interactive: "default"
44758
44515
  },
44759
- mcp: { entityTool: "goals" },
44516
+ mcp: { entityTool: "milestones" },
44760
44517
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44761
- comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
44762
- recurrence: /* @__PURE__ */ picklist$1([
44763
- "daily",
44764
- "weekly",
44765
- "daily_workdays",
44766
- "monthly"
44767
- ]),
44768
- start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44769
- target_seconds: /* @__PURE__ */ number$2(),
44770
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44771
- client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44772
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44773
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44774
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44775
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
44776
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44518
+ color: /* @__PURE__ */ string$1(),
44519
+ due_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44520
+ name: /* @__PURE__ */ string$1(),
44521
+ completed_at: /* @__PURE__ */ optional$1(apiDateTimeString),
44777
44522
  project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44778
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44779
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44780
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44523
+ team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44781
44524
  }) }),
44782
44525
  execute: (input, { client }) => {
44783
44526
  const data = input;
44784
- return client.runGeneratedRequest("createGoal", () => callGeneratedRequest(createGoal, [
44527
+ return client.runGeneratedRequest("createMilestone", () => callGeneratedRequest(createMilestone, [
44785
44528
  client.httpClient,
44786
- client.organizationId,
44787
44529
  client.workspaceIdNumber,
44788
44530
  data.payload ?? data.data ?? data,
44789
44531
  void 0
@@ -44791,400 +44533,166 @@ const generatedFocusOperations = [
44791
44533
  }
44792
44534
  },
44793
44535
  {
44794
- id: "focus.goals.delete",
44536
+ id: "focus.milestones.delete",
44795
44537
  family: "focus",
44796
- resource: "goals",
44538
+ resource: "milestones",
44797
44539
  action: "delete",
44798
- title: "Delete Goals",
44799
- description: "Delete Goals.",
44540
+ title: "Delete Milestones",
44541
+ description: "Delete Milestones.",
44800
44542
  safety: "delete",
44801
44543
  destructive: true,
44802
44544
  cli: {
44803
- group: ["goals"],
44545
+ group: ["milestones"],
44804
44546
  command: "delete",
44805
44547
  interactive: "default"
44806
44548
  },
44807
- mcp: { entityTool: "goals" },
44808
- inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
44549
+ mcp: { entityTool: "milestones" },
44550
+ inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
44809
44551
  execute: (input, { client }) => {
44810
44552
  const data = input;
44811
- return client.runGeneratedRequest("deleteGoal", () => callGeneratedRequest(deleteGoal, [
44553
+ return client.runGeneratedRequest("deleteMilestone", () => callGeneratedRequest(deleteMilestone, [
44812
44554
  client.httpClient,
44813
- client.organizationId,
44814
44555
  client.workspaceIdNumber,
44815
- data.goal_id,
44556
+ data.milestone_id,
44816
44557
  void 0
44817
44558
  ]));
44818
44559
  }
44819
44560
  },
44820
44561
  {
44821
- id: "focus.goals.get",
44562
+ id: "focus.milestones.get",
44822
44563
  family: "focus",
44823
- resource: "goals",
44564
+ resource: "milestones",
44824
44565
  action: "get",
44825
- title: "Get Goals",
44826
- description: "Get Goals.",
44566
+ title: "Get Milestones",
44567
+ description: "Get Milestones.",
44827
44568
  safety: "read",
44828
44569
  destructive: false,
44829
44570
  cli: {
44830
- group: ["goals"],
44571
+ group: ["milestones"],
44831
44572
  command: "get",
44832
44573
  interactive: "available"
44833
44574
  },
44834
- mcp: { entityTool: "goals" },
44835
- inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
44575
+ mcp: { entityTool: "milestones" },
44576
+ inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
44836
44577
  execute: (input, { client }) => {
44837
44578
  const data = input;
44838
- return client.runGeneratedRequest("getGoal", () => callGeneratedRequest(getGoal, [
44579
+ return client.runGeneratedRequest("getMilestone", () => callGeneratedRequest(getMilestone, [
44839
44580
  client.httpClient,
44840
- client.organizationId,
44841
44581
  client.workspaceIdNumber,
44842
- data.goal_id,
44582
+ data.milestone_id,
44843
44583
  void 0
44844
44584
  ]));
44845
44585
  }
44846
44586
  },
44847
44587
  {
44848
- id: "focus.goals.list",
44588
+ id: "focus.milestones.get-classic",
44849
44589
  family: "focus",
44850
- resource: "goals",
44851
- action: "list",
44852
- title: "List Goals",
44853
- description: "List Goals.",
44590
+ resource: "milestones",
44591
+ action: "get-classic",
44592
+ title: "Get Classic Milestones",
44593
+ description: "Get Classic Milestones.",
44854
44594
  safety: "read",
44855
44595
  destructive: false,
44856
44596
  cli: {
44857
- group: ["goals"],
44858
- command: "list",
44597
+ group: ["milestones"],
44598
+ command: "get-classic",
44859
44599
  interactive: "hidden"
44860
44600
  },
44861
- mcp: { entityTool: "goals" },
44862
- inputSchema: /* @__PURE__ */ looseObject({}),
44863
- execute: (_input, { client }) => client.runGeneratedRequest("getGoals", () => callGeneratedRequest(getGoals, [
44864
- client.httpClient,
44865
- client.organizationId,
44866
- client.workspaceIdNumber,
44867
- void 0
44868
- ]))
44869
- },
44870
- {
44871
- id: "focus.goals.preview-goal-tracked-time",
44872
- family: "focus",
44873
- resource: "goals",
44874
- action: "preview-goal-tracked-time",
44875
- title: "Preview Goal Tracked Time Goals",
44876
- description: "Preview Goal Tracked Time Goals.",
44877
- safety: "update",
44878
- destructive: false,
44879
- cli: {
44880
- group: ["goals"],
44881
- command: "preview-goal-tracked-time",
44882
- interactive: "default"
44883
- },
44884
- mcp: { entityTool: "goals" },
44885
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
44886
- recurrence: /* @__PURE__ */ picklist$1([
44887
- "daily",
44888
- "weekly",
44889
- "daily_workdays",
44890
- "monthly"
44891
- ]),
44892
- start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
44893
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44894
- client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44895
- comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["more_than", "less_than"])),
44896
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44897
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44898
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44899
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
44900
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44901
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44902
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44903
- target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44904
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44905
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44906
- }) }),
44601
+ mcp: { entityTool: "milestones" },
44602
+ inputSchema: /* @__PURE__ */ looseObject({
44603
+ due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
44604
+ due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
44605
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
44606
+ page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44607
+ per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
44608
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44609
+ team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
44610
+ }),
44907
44611
  execute: (input, { client }) => {
44908
44612
  const data = input;
44909
- return client.runGeneratedRequest("previewGoalTrackedTime", () => callGeneratedRequest(previewGoalTrackedTime, [
44613
+ return client.runGeneratedRequest("getMilestonesClassic", () => callGeneratedRequest(getMilestonesClassic, [
44910
44614
  client.httpClient,
44911
- client.organizationId,
44912
44615
  client.workspaceIdNumber,
44913
- data.payload ?? data.data ?? data,
44616
+ data,
44914
44617
  void 0
44915
44618
  ]));
44916
44619
  }
44917
44620
  },
44918
44621
  {
44919
- id: "focus.goals.reorder",
44622
+ id: "focus.milestones.get-stream",
44920
44623
  family: "focus",
44921
- resource: "goals",
44922
- action: "reorder",
44923
- title: "Reorder Goals",
44924
- description: "Reorder Goals.",
44925
- safety: "update",
44624
+ resource: "milestones",
44625
+ action: "get-stream",
44626
+ title: "Get Stream Milestones",
44627
+ description: "Get Stream Milestones.",
44628
+ safety: "read",
44926
44629
  destructive: false,
44927
44630
  cli: {
44928
- group: ["goals"],
44929
- command: "reorder",
44930
- interactive: "default"
44631
+ group: ["milestones"],
44632
+ command: "get-stream",
44633
+ interactive: "hidden"
44931
44634
  },
44932
- mcp: { entityTool: "goals" },
44933
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ goal_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
44635
+ mcp: { entityTool: "milestones" },
44636
+ inputSchema: /* @__PURE__ */ looseObject({
44637
+ due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
44638
+ due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
44639
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
44640
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44641
+ team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
44642
+ }),
44934
44643
  execute: (input, { client }) => {
44935
44644
  const data = input;
44936
- return client.runGeneratedRequest("reorderGoals", () => callGeneratedRequest(reorderGoals, [
44645
+ return client.runGeneratedRequest("getMilestonesStream", () => callGeneratedRequest(getMilestonesStream, [
44937
44646
  client.httpClient,
44938
- client.organizationId,
44939
44647
  client.workspaceIdNumber,
44940
- data.payload ?? data.data ?? data,
44648
+ data,
44941
44649
  void 0
44942
44650
  ]));
44943
44651
  }
44944
44652
  },
44945
44653
  {
44946
- id: "focus.goals.update",
44654
+ id: "focus.milestones.partial-update",
44947
44655
  family: "focus",
44948
- resource: "goals",
44949
- action: "update",
44950
- title: "Update Goals",
44951
- description: "Update Goals.",
44656
+ resource: "milestones",
44657
+ action: "partial-update",
44658
+ title: "Partial Update Milestones",
44659
+ description: "Partial Update Milestones.",
44952
44660
  safety: "update",
44953
44661
  destructive: false,
44954
44662
  cli: {
44955
- group: ["goals"],
44956
- command: "update",
44663
+ group: ["milestones"],
44664
+ command: "partial-update",
44957
44665
  interactive: "default"
44958
44666
  },
44959
- mcp: { entityTool: "goals" },
44667
+ mcp: { entityTool: "milestones" },
44960
44668
  inputSchema: /* @__PURE__ */ looseObject({
44961
- goal_id: /* @__PURE__ */ number$2(),
44669
+ milestone_id: /* @__PURE__ */ number$2(),
44962
44670
  payload: /* @__PURE__ */ looseObject({
44963
- active: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
44964
- client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44965
- comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44966
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44671
+ due_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44967
44672
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
44968
44673
  project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44969
- recurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
44970
- "daily",
44971
- "weekly",
44972
- "daily_workdays",
44973
- "monthly"
44974
- ])),
44975
- start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
44976
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44977
- target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
44978
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
44979
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44674
+ team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
44980
44675
  })
44981
44676
  }),
44982
44677
  execute: (input, { client }) => {
44983
44678
  const data = input;
44984
- return client.runGeneratedRequest("updateGoal", () => callGeneratedRequest(updateGoal, [
44679
+ return client.runGeneratedRequest("partialUpdateMilestone", () => callGeneratedRequest(partialUpdateMilestone, [
44985
44680
  client.httpClient,
44986
- client.organizationId,
44987
44681
  client.workspaceIdNumber,
44988
- data.goal_id,
44682
+ data.milestone_id,
44989
44683
  data.payload ?? data.data ?? data,
44990
44684
  void 0
44991
44685
  ]));
44992
44686
  }
44993
44687
  },
44994
44688
  {
44995
- id: "focus.milestones.create",
44689
+ id: "focus.milestones.restore",
44996
44690
  family: "focus",
44997
44691
  resource: "milestones",
44998
- action: "create",
44999
- title: "Create Milestones",
45000
- description: "Create Milestones.",
45001
- safety: "create",
45002
- destructive: false,
45003
- cli: {
45004
- group: ["milestones"],
45005
- command: "create",
45006
- interactive: "default"
45007
- },
45008
- mcp: { entityTool: "milestones" },
45009
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
45010
- color: /* @__PURE__ */ string$1(),
45011
- due_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
45012
- name: /* @__PURE__ */ string$1(),
45013
- completed_at: /* @__PURE__ */ optional$1(apiDateTimeString),
45014
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
45015
- team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
45016
- }) }),
45017
- execute: (input, { client }) => {
45018
- const data = input;
45019
- return client.runGeneratedRequest("createMilestone", () => callGeneratedRequest(createMilestone, [
45020
- client.httpClient,
45021
- client.workspaceIdNumber,
45022
- data.payload ?? data.data ?? data,
45023
- void 0
45024
- ]));
45025
- }
45026
- },
45027
- {
45028
- id: "focus.milestones.delete",
45029
- family: "focus",
45030
- resource: "milestones",
45031
- action: "delete",
45032
- title: "Delete Milestones",
45033
- description: "Delete Milestones.",
45034
- safety: "delete",
45035
- destructive: true,
45036
- cli: {
45037
- group: ["milestones"],
45038
- command: "delete",
45039
- interactive: "default"
45040
- },
45041
- mcp: { entityTool: "milestones" },
45042
- inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
45043
- execute: (input, { client }) => {
45044
- const data = input;
45045
- return client.runGeneratedRequest("deleteMilestone", () => callGeneratedRequest(deleteMilestone, [
45046
- client.httpClient,
45047
- client.workspaceIdNumber,
45048
- data.milestone_id,
45049
- void 0
45050
- ]));
45051
- }
45052
- },
45053
- {
45054
- id: "focus.milestones.get",
45055
- family: "focus",
45056
- resource: "milestones",
45057
- action: "get",
45058
- title: "Get Milestones",
45059
- description: "Get Milestones.",
45060
- safety: "read",
45061
- destructive: false,
45062
- cli: {
45063
- group: ["milestones"],
45064
- command: "get",
45065
- interactive: "available"
45066
- },
45067
- mcp: { entityTool: "milestones" },
45068
- inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
45069
- execute: (input, { client }) => {
45070
- const data = input;
45071
- return client.runGeneratedRequest("getMilestone", () => callGeneratedRequest(getMilestone, [
45072
- client.httpClient,
45073
- client.workspaceIdNumber,
45074
- data.milestone_id,
45075
- void 0
45076
- ]));
45077
- }
45078
- },
45079
- {
45080
- id: "focus.milestones.get-classic",
45081
- family: "focus",
45082
- resource: "milestones",
45083
- action: "get-classic",
45084
- title: "Get Classic Milestones",
45085
- description: "Get Classic Milestones.",
45086
- safety: "read",
45087
- destructive: false,
45088
- cli: {
45089
- group: ["milestones"],
45090
- command: "get-classic",
45091
- interactive: "hidden"
45092
- },
45093
- mcp: { entityTool: "milestones" },
45094
- inputSchema: /* @__PURE__ */ looseObject({
45095
- due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
45096
- due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
45097
- order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
45098
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
45099
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
45100
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
45101
- team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
45102
- }),
45103
- execute: (input, { client }) => {
45104
- const data = input;
45105
- return client.runGeneratedRequest("getMilestonesClassic", () => callGeneratedRequest(getMilestonesClassic, [
45106
- client.httpClient,
45107
- client.workspaceIdNumber,
45108
- data,
45109
- void 0
45110
- ]));
45111
- }
45112
- },
45113
- {
45114
- id: "focus.milestones.get-stream",
45115
- family: "focus",
45116
- resource: "milestones",
45117
- action: "get-stream",
45118
- title: "Get Stream Milestones",
45119
- description: "Get Stream Milestones.",
45120
- safety: "read",
45121
- destructive: false,
45122
- cli: {
45123
- group: ["milestones"],
45124
- command: "get-stream",
45125
- interactive: "hidden"
45126
- },
45127
- mcp: { entityTool: "milestones" },
45128
- inputSchema: /* @__PURE__ */ looseObject({
45129
- due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
45130
- due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
45131
- order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
45132
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
45133
- team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
45134
- }),
45135
- execute: (input, { client }) => {
45136
- const data = input;
45137
- return client.runGeneratedRequest("getMilestonesStream", () => callGeneratedRequest(getMilestonesStream, [
45138
- client.httpClient,
45139
- client.workspaceIdNumber,
45140
- data,
45141
- void 0
45142
- ]));
45143
- }
45144
- },
45145
- {
45146
- id: "focus.milestones.partial-update",
45147
- family: "focus",
45148
- resource: "milestones",
45149
- action: "partial-update",
45150
- title: "Partial Update Milestones",
45151
- description: "Partial Update Milestones.",
45152
- safety: "update",
45153
- destructive: false,
45154
- cli: {
45155
- group: ["milestones"],
45156
- command: "partial-update",
45157
- interactive: "default"
45158
- },
45159
- mcp: { entityTool: "milestones" },
45160
- inputSchema: /* @__PURE__ */ looseObject({
45161
- milestone_id: /* @__PURE__ */ number$2(),
45162
- payload: /* @__PURE__ */ looseObject({
45163
- due_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
45164
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
45165
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
45166
- team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
45167
- })
45168
- }),
45169
- execute: (input, { client }) => {
45170
- const data = input;
45171
- return client.runGeneratedRequest("partialUpdateMilestone", () => callGeneratedRequest(partialUpdateMilestone, [
45172
- client.httpClient,
45173
- client.workspaceIdNumber,
45174
- data.milestone_id,
45175
- data.payload ?? data.data ?? data,
45176
- void 0
45177
- ]));
45178
- }
45179
- },
45180
- {
45181
- id: "focus.milestones.restore",
45182
- family: "focus",
45183
- resource: "milestones",
45184
- action: "restore",
45185
- title: "Restore Milestones",
45186
- description: "Restore Milestones.",
45187
- safety: "update",
44692
+ action: "restore",
44693
+ title: "Restore Milestones",
44694
+ description: "Restore Milestones.",
44695
+ safety: "update",
45188
44696
  destructive: false,
45189
44697
  cli: {
45190
44698
  group: ["milestones"],
@@ -45869,17 +45377,9 @@ const generatedFocusOperations = [
45869
45377
  mcp: { entityTool: "projects" },
45870
45378
  inputSchema: /* @__PURE__ */ looseObject({
45871
45379
  payload: /* @__PURE__ */ looseObject({
45872
- auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
45873
- completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
45874
45380
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
45875
45381
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
45876
45382
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
45877
- rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
45878
- "expire",
45879
- "carry_all",
45880
- "carry_over"
45881
- ])),
45882
- rrule: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
45883
45383
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
45884
45384
  }),
45885
45385
  project_id: /* @__PURE__ */ number$2()
@@ -46323,7 +45823,6 @@ const generatedFocusOperations = [
46323
45823
  group: /* @__PURE__ */ string$1(),
46324
45824
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
46325
45825
  include_group_totals: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
46326
- include_recurring_series: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
46327
45826
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
46328
45827
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
46329
45828
  only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -46426,6 +45925,29 @@ const generatedFocusOperations = [
46426
45925
  ]));
46427
45926
  }
46428
45927
  },
45928
+ {
45929
+ id: "focus.projects.margin-targets-clear-workspace",
45930
+ family: "focus",
45931
+ resource: "projects",
45932
+ action: "margin-targets-clear-workspace",
45933
+ title: "Margin Targets Clear Workspace Projects",
45934
+ description: "Margin Targets Clear Workspace Projects.",
45935
+ safety: "delete",
45936
+ destructive: true,
45937
+ cli: {
45938
+ group: ["projects", "margin-targets"],
45939
+ command: "clear-workspace",
45940
+ interactive: "default"
45941
+ },
45942
+ mcp: { entityTool: "projects" },
45943
+ inputSchema: /* @__PURE__ */ looseObject({}),
45944
+ execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
45945
+ client.httpClient,
45946
+ client.organizationId,
45947
+ client.workspaceIdNumber,
45948
+ void 0
45949
+ ]))
45950
+ },
46429
45951
  {
46430
45952
  id: "focus.projects.margin-targets-get",
46431
45953
  family: "focus",
@@ -46871,200 +46393,76 @@ const generatedFocusOperations = [
46871
46393
  }
46872
46394
  },
46873
46395
  {
46874
- id: "focus.publicsharedreports.open-public-shared-report",
46396
+ id: "focus.rates.billable-check-project-billable-rate-conflicts",
46875
46397
  family: "focus",
46876
- resource: "publicsharedreports",
46877
- action: "open-public-shared-report",
46878
- title: "Open Public Shared Report Publicsharedreports",
46879
- description: "Open Public Shared Report Publicsharedreports.",
46880
- safety: "read",
46398
+ resource: "rates",
46399
+ action: "billable-check-project-billable-rate-conflicts",
46400
+ title: "Billable Check Project Billable Rate Conflicts Rates",
46401
+ description: "Billable Check Project Billable Rate Conflicts Rates.",
46402
+ safety: "update",
46881
46403
  destructive: false,
46882
46404
  cli: {
46883
- group: ["publicsharedreports"],
46884
- command: "open-public-shared-report",
46885
- interactive: "available"
46405
+ group: ["rates", "billable"],
46406
+ command: "check-project-billable-rate-conflicts",
46407
+ interactive: "default"
46886
46408
  },
46887
- mcp: { entityTool: "publicsharedreports" },
46888
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
46409
+ mcp: { entityTool: "rates" },
46410
+ inputSchema: /* @__PURE__ */ looseObject({
46411
+ payload: rateSchedulePayloadSchema,
46412
+ project_id: /* @__PURE__ */ number$2()
46413
+ }),
46889
46414
  execute: (input, { client }) => {
46890
46415
  const data = input;
46891
- return client.runGeneratedRequest("openPublicSharedReport", () => callGeneratedRequest(openPublicSharedReport, [
46416
+ return client.runGeneratedRequest("checkProjectBillableRateConflicts", () => callGeneratedRequest(checkProjectBillableRateConflicts, [
46892
46417
  client.httpClient,
46893
- data.token,
46418
+ client.organizationId,
46419
+ client.workspaceIdNumber,
46420
+ data.project_id,
46421
+ data.payload ?? data.data ?? data,
46894
46422
  void 0
46895
46423
  ]));
46896
46424
  }
46897
46425
  },
46898
46426
  {
46899
- id: "focus.publicsharedreports.profitability-public-shared-report",
46427
+ id: "focus.rates.billable-check-project-user-billable-rate-conflicts",
46900
46428
  family: "focus",
46901
- resource: "publicsharedreports",
46902
- action: "profitability-public-shared-report",
46903
- title: "Profitability Public Shared Report Publicsharedreports",
46904
- description: "Profitability Public Shared Report Publicsharedreports.",
46429
+ resource: "rates",
46430
+ action: "billable-check-project-user-billable-rate-conflicts",
46431
+ title: "Billable Check Project User Billable Rate Conflicts Rates",
46432
+ description: "Billable Check Project User Billable Rate Conflicts Rates.",
46905
46433
  safety: "update",
46906
46434
  destructive: false,
46907
46435
  cli: {
46908
- group: ["publicsharedreports"],
46909
- command: "profitability-public-shared-report",
46436
+ group: ["rates", "billable"],
46437
+ command: "check-project-user-billable-rate-conflicts",
46910
46438
  interactive: "default"
46911
46439
  },
46912
- mcp: { entityTool: "publicsharedreports" },
46440
+ mcp: { entityTool: "rates" },
46913
46441
  inputSchema: /* @__PURE__ */ looseObject({
46914
- include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
46915
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
46916
- response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["json_row", "hierarchical"])),
46917
- token: /* @__PURE__ */ string$1()
46442
+ payload: rateSchedulePayloadSchema,
46443
+ project_id: /* @__PURE__ */ number$2(),
46444
+ user_id: /* @__PURE__ */ number$2()
46918
46445
  }),
46919
46446
  execute: (input, { client }) => {
46920
46447
  const data = input;
46921
- return client.runGeneratedRequest("profitabilityPublicSharedReport", () => callGeneratedRequest(profitabilityPublicSharedReport, [
46448
+ return client.runGeneratedRequest("checkProjectUserBillableRateConflicts", () => callGeneratedRequest(checkProjectUserBillableRateConflicts, [
46922
46449
  client.httpClient,
46923
- data.token,
46450
+ client.organizationId,
46451
+ client.workspaceIdNumber,
46452
+ data.project_id,
46453
+ data.user_id,
46924
46454
  data.payload ?? data.data ?? data,
46925
- data.response_format,
46926
- data.include_dicts,
46927
46455
  void 0
46928
46456
  ]));
46929
46457
  }
46930
46458
  },
46931
46459
  {
46932
- id: "focus.publicsharedreports.query-public-shared-report",
46460
+ id: "focus.rates.billable-check-workspace-billable-rate-conflicts",
46933
46461
  family: "focus",
46934
- resource: "publicsharedreports",
46935
- action: "query-public-shared-report",
46936
- title: "Query Public Shared Report Publicsharedreports",
46937
- description: "Query Public Shared Report Publicsharedreports.",
46938
- safety: "update",
46939
- destructive: false,
46940
- cli: {
46941
- group: ["publicsharedreports"],
46942
- command: "query-public-shared-report",
46943
- interactive: "default"
46944
- },
46945
- mcp: { entityTool: "publicsharedreports" },
46946
- inputSchema: /* @__PURE__ */ looseObject({
46947
- include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
46948
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
46949
- response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
46950
- "json_row",
46951
- "table",
46952
- "hierarchical"
46953
- ])),
46954
- token: /* @__PURE__ */ string$1()
46955
- }),
46956
- execute: (input, { client }) => {
46957
- const data = input;
46958
- return client.runGeneratedRequest("queryPublicSharedReport", () => callGeneratedRequest(queryPublicSharedReport, [
46959
- client.httpClient,
46960
- data.token,
46961
- data.payload ?? data.data ?? data,
46962
- data.response_format,
46963
- data.include_dicts,
46964
- void 0
46965
- ]));
46966
- }
46967
- },
46968
- {
46969
- id: "focus.publicsharedreports.workload-public-shared-report",
46970
- family: "focus",
46971
- resource: "publicsharedreports",
46972
- action: "workload-public-shared-report",
46973
- title: "Workload Public Shared Report Publicsharedreports",
46974
- description: "Workload Public Shared Report Publicsharedreports.",
46975
- safety: "update",
46976
- destructive: false,
46977
- cli: {
46978
- group: ["publicsharedreports"],
46979
- command: "workload-public-shared-report",
46980
- interactive: "default"
46981
- },
46982
- mcp: { entityTool: "publicsharedreports" },
46983
- inputSchema: /* @__PURE__ */ looseObject({
46984
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
46985
- token: /* @__PURE__ */ string$1()
46986
- }),
46987
- execute: (input, { client }) => {
46988
- const data = input;
46989
- return client.runGeneratedRequest("workloadPublicSharedReport", () => callGeneratedRequest(workloadPublicSharedReport, [
46990
- client.httpClient,
46991
- data.token,
46992
- data.payload ?? data.data ?? data,
46993
- void 0
46994
- ]));
46995
- }
46996
- },
46997
- {
46998
- id: "focus.rates.billable-check-project-billable-rate-conflicts",
46999
- family: "focus",
47000
- resource: "rates",
47001
- action: "billable-check-project-billable-rate-conflicts",
47002
- title: "Billable Check Project Billable Rate Conflicts Rates",
47003
- description: "Billable Check Project Billable Rate Conflicts Rates.",
47004
- safety: "update",
47005
- destructive: false,
47006
- cli: {
47007
- group: ["rates", "billable"],
47008
- command: "check-project-billable-rate-conflicts",
47009
- interactive: "default"
47010
- },
47011
- mcp: { entityTool: "rates" },
47012
- inputSchema: /* @__PURE__ */ looseObject({
47013
- payload: rateSchedulePayloadSchema,
47014
- project_id: /* @__PURE__ */ number$2()
47015
- }),
47016
- execute: (input, { client }) => {
47017
- const data = input;
47018
- return client.runGeneratedRequest("checkProjectBillableRateConflicts", () => callGeneratedRequest(checkProjectBillableRateConflicts, [
47019
- client.httpClient,
47020
- client.organizationId,
47021
- client.workspaceIdNumber,
47022
- data.project_id,
47023
- data.payload ?? data.data ?? data,
47024
- void 0
47025
- ]));
47026
- }
47027
- },
47028
- {
47029
- id: "focus.rates.billable-check-project-user-billable-rate-conflicts",
47030
- family: "focus",
47031
- resource: "rates",
47032
- action: "billable-check-project-user-billable-rate-conflicts",
47033
- title: "Billable Check Project User Billable Rate Conflicts Rates",
47034
- description: "Billable Check Project User Billable Rate Conflicts Rates.",
47035
- safety: "update",
47036
- destructive: false,
47037
- cli: {
47038
- group: ["rates", "billable"],
47039
- command: "check-project-user-billable-rate-conflicts",
47040
- interactive: "default"
47041
- },
47042
- mcp: { entityTool: "rates" },
47043
- inputSchema: /* @__PURE__ */ looseObject({
47044
- payload: rateSchedulePayloadSchema,
47045
- project_id: /* @__PURE__ */ number$2(),
47046
- user_id: /* @__PURE__ */ number$2()
47047
- }),
47048
- execute: (input, { client }) => {
47049
- const data = input;
47050
- return client.runGeneratedRequest("checkProjectUserBillableRateConflicts", () => callGeneratedRequest(checkProjectUserBillableRateConflicts, [
47051
- client.httpClient,
47052
- client.organizationId,
47053
- client.workspaceIdNumber,
47054
- data.project_id,
47055
- data.user_id,
47056
- data.payload ?? data.data ?? data,
47057
- void 0
47058
- ]));
47059
- }
47060
- },
47061
- {
47062
- id: "focus.rates.billable-check-workspace-billable-rate-conflicts",
47063
- family: "focus",
47064
- resource: "rates",
47065
- action: "billable-check-workspace-billable-rate-conflicts",
47066
- title: "Billable Check Workspace Billable Rate Conflicts Rates",
47067
- description: "Billable Check Workspace Billable Rate Conflicts Rates.",
46462
+ resource: "rates",
46463
+ action: "billable-check-workspace-billable-rate-conflicts",
46464
+ title: "Billable Check Workspace Billable Rate Conflicts Rates",
46465
+ description: "Billable Check Workspace Billable Rate Conflicts Rates.",
47068
46466
  safety: "update",
47069
46467
  destructive: false,
47070
46468
  cli: {
@@ -48571,51 +47969,51 @@ const generatedFocusOperations = [
48571
47969
  mcp: { entityTool: "reports" },
48572
47970
  inputSchema: /* @__PURE__ */ looseObject({
48573
47971
  payload: /* @__PURE__ */ looseObject({
48574
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48575
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
47972
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
47973
+ aggregation: /* @__PURE__ */ looseObject({
48576
47974
  function: /* @__PURE__ */ string$1(),
48577
47975
  property: /* @__PURE__ */ string$1()
48578
- })),
48579
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48580
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48581
- }))),
48582
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
47976
+ }),
47977
+ operator: /* @__PURE__ */ string$1(),
47978
+ property: /* @__PURE__ */ string$1()
47979
+ })),
47980
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48583
47981
  function: /* @__PURE__ */ string$1(),
48584
47982
  property: /* @__PURE__ */ string$1()
48585
- }))),
48586
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
48587
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48588
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48589
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48590
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
48591
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48592
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48593
- }))),
48594
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48595
- property: /* @__PURE__ */ string$1(),
48596
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
48597
- }))),
48598
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48599
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
47983
+ })),
47984
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
47985
+ currency: /* @__PURE__ */ string$1(),
47986
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
47987
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
47988
+ operator: /* @__PURE__ */ string$1(),
47989
+ property: /* @__PURE__ */ string$1()
47990
+ })),
47991
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48600
47992
  property: /* @__PURE__ */ string$1(),
48601
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48602
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48603
- }))),
48604
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
48605
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48606
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
47993
+ show_empty: /* @__PURE__ */ boolean$1()
48607
47994
  })),
48608
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
48609
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48610
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48611
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
47995
+ limit: /* @__PURE__ */ number$2(),
47996
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
47997
+ direction: /* @__PURE__ */ string$1(),
47998
+ nulls: /* @__PURE__ */ string$1(),
47999
+ property: /* @__PURE__ */ string$1()
48612
48000
  })),
48613
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48614
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48001
+ pagination: /* @__PURE__ */ looseObject({
48002
+ page: /* @__PURE__ */ number$2(),
48003
+ per_page: /* @__PURE__ */ number$2()
48004
+ }),
48005
+ period: /* @__PURE__ */ looseObject({
48006
+ from: /* @__PURE__ */ string$1(),
48007
+ preset: /* @__PURE__ */ string$1(),
48008
+ to: /* @__PURE__ */ string$1()
48009
+ }),
48010
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48615
48011
  name: /* @__PURE__ */ string$1(),
48616
48012
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
48617
- }))),
48618
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
48013
+ })),
48014
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
48015
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48016
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
48619
48017
  }),
48620
48018
  response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
48621
48019
  }),
@@ -48696,51 +48094,51 @@ const generatedFocusOperations = [
48696
48094
  inputSchema: /* @__PURE__ */ looseObject({
48697
48095
  include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
48698
48096
  payload: /* @__PURE__ */ looseObject({
48699
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48700
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
48097
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48098
+ aggregation: /* @__PURE__ */ looseObject({
48701
48099
  function: /* @__PURE__ */ string$1(),
48702
48100
  property: /* @__PURE__ */ string$1()
48703
- })),
48704
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48705
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48706
- }))),
48707
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48101
+ }),
48102
+ operator: /* @__PURE__ */ string$1(),
48103
+ property: /* @__PURE__ */ string$1()
48104
+ })),
48105
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48708
48106
  function: /* @__PURE__ */ string$1(),
48709
48107
  property: /* @__PURE__ */ string$1()
48710
- }))),
48711
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
48712
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48713
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48714
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48715
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
48716
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48717
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48718
- }))),
48719
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48720
- property: /* @__PURE__ */ string$1(),
48721
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
48722
- }))),
48723
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48724
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48108
+ })),
48109
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
48110
+ currency: /* @__PURE__ */ string$1(),
48111
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48112
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
48113
+ operator: /* @__PURE__ */ string$1(),
48114
+ property: /* @__PURE__ */ string$1()
48115
+ })),
48116
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48725
48117
  property: /* @__PURE__ */ string$1(),
48726
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48727
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48728
- }))),
48729
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
48730
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48731
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
48118
+ show_empty: /* @__PURE__ */ boolean$1()
48732
48119
  })),
48733
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
48734
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48735
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48736
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48120
+ limit: /* @__PURE__ */ number$2(),
48121
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48122
+ direction: /* @__PURE__ */ string$1(),
48123
+ nulls: /* @__PURE__ */ string$1(),
48124
+ property: /* @__PURE__ */ string$1()
48737
48125
  })),
48738
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48739
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48126
+ pagination: /* @__PURE__ */ looseObject({
48127
+ page: /* @__PURE__ */ number$2(),
48128
+ per_page: /* @__PURE__ */ number$2()
48129
+ }),
48130
+ period: /* @__PURE__ */ looseObject({
48131
+ from: /* @__PURE__ */ string$1(),
48132
+ preset: /* @__PURE__ */ string$1(),
48133
+ to: /* @__PURE__ */ string$1()
48134
+ }),
48135
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48740
48136
  name: /* @__PURE__ */ string$1(),
48741
48137
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
48742
- }))),
48743
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
48138
+ })),
48139
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
48140
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48141
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
48744
48142
  }),
48745
48143
  response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["json_row", "hierarchical"])),
48746
48144
  xTogglReportExport: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
@@ -48778,51 +48176,51 @@ const generatedFocusOperations = [
48778
48176
  },
48779
48177
  mcp: { entityTool: "reports" },
48780
48178
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
48781
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48782
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
48179
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48180
+ aggregation: /* @__PURE__ */ looseObject({
48783
48181
  function: /* @__PURE__ */ string$1(),
48784
48182
  property: /* @__PURE__ */ string$1()
48785
- })),
48786
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48787
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48788
- }))),
48789
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48183
+ }),
48184
+ operator: /* @__PURE__ */ string$1(),
48185
+ property: /* @__PURE__ */ string$1()
48186
+ })),
48187
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48790
48188
  function: /* @__PURE__ */ string$1(),
48791
48189
  property: /* @__PURE__ */ string$1()
48792
- }))),
48793
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
48794
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48795
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48796
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48797
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
48798
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48799
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48800
- }))),
48801
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48802
- property: /* @__PURE__ */ string$1(),
48803
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
48804
- }))),
48805
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48806
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48190
+ })),
48191
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
48192
+ currency: /* @__PURE__ */ string$1(),
48193
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48194
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
48195
+ operator: /* @__PURE__ */ string$1(),
48196
+ property: /* @__PURE__ */ string$1()
48197
+ })),
48198
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48807
48199
  property: /* @__PURE__ */ string$1(),
48808
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48809
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48810
- }))),
48811
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
48812
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48813
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
48200
+ show_empty: /* @__PURE__ */ boolean$1()
48814
48201
  })),
48815
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
48816
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48817
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48818
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48202
+ limit: /* @__PURE__ */ number$2(),
48203
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48204
+ direction: /* @__PURE__ */ string$1(),
48205
+ nulls: /* @__PURE__ */ string$1(),
48206
+ property: /* @__PURE__ */ string$1()
48819
48207
  })),
48820
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48821
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48208
+ pagination: /* @__PURE__ */ looseObject({
48209
+ page: /* @__PURE__ */ number$2(),
48210
+ per_page: /* @__PURE__ */ number$2()
48211
+ }),
48212
+ period: /* @__PURE__ */ looseObject({
48213
+ from: /* @__PURE__ */ string$1(),
48214
+ preset: /* @__PURE__ */ string$1(),
48215
+ to: /* @__PURE__ */ string$1()
48216
+ }),
48217
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48822
48218
  name: /* @__PURE__ */ string$1(),
48823
48219
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
48824
- }))),
48825
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
48220
+ })),
48221
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
48222
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48223
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
48826
48224
  }) }),
48827
48225
  execute: (input, { client }) => {
48828
48226
  const data = input;
@@ -48851,51 +48249,51 @@ const generatedFocusOperations = [
48851
48249
  mcp: { entityTool: "reports" },
48852
48250
  inputSchema: /* @__PURE__ */ looseObject({
48853
48251
  payload: /* @__PURE__ */ looseObject({
48854
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48855
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
48252
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48253
+ aggregation: /* @__PURE__ */ looseObject({
48856
48254
  function: /* @__PURE__ */ string$1(),
48857
48255
  property: /* @__PURE__ */ string$1()
48858
- })),
48859
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48860
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48861
- }))),
48862
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48256
+ }),
48257
+ operator: /* @__PURE__ */ string$1(),
48258
+ property: /* @__PURE__ */ string$1()
48259
+ })),
48260
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48863
48261
  function: /* @__PURE__ */ string$1(),
48864
48262
  property: /* @__PURE__ */ string$1()
48865
- }))),
48866
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
48867
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48868
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48869
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48870
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
48871
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48872
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48873
- }))),
48874
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48875
- property: /* @__PURE__ */ string$1(),
48876
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
48877
- }))),
48878
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48879
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48263
+ })),
48264
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
48265
+ currency: /* @__PURE__ */ string$1(),
48266
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48267
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
48268
+ operator: /* @__PURE__ */ string$1(),
48269
+ property: /* @__PURE__ */ string$1()
48270
+ })),
48271
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48880
48272
  property: /* @__PURE__ */ string$1(),
48881
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48882
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48883
- }))),
48884
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
48885
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48886
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
48273
+ show_empty: /* @__PURE__ */ boolean$1()
48887
48274
  })),
48888
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
48889
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48890
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48891
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
48275
+ limit: /* @__PURE__ */ number$2(),
48276
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48277
+ direction: /* @__PURE__ */ string$1(),
48278
+ nulls: /* @__PURE__ */ string$1(),
48279
+ property: /* @__PURE__ */ string$1()
48892
48280
  })),
48893
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48894
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48281
+ pagination: /* @__PURE__ */ looseObject({
48282
+ page: /* @__PURE__ */ number$2(),
48283
+ per_page: /* @__PURE__ */ number$2()
48284
+ }),
48285
+ period: /* @__PURE__ */ looseObject({
48286
+ from: /* @__PURE__ */ string$1(),
48287
+ preset: /* @__PURE__ */ string$1(),
48288
+ to: /* @__PURE__ */ string$1()
48289
+ }),
48290
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
48895
48291
  name: /* @__PURE__ */ string$1(),
48896
48292
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
48897
- }))),
48898
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
48293
+ })),
48294
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
48295
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
48296
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
48899
48297
  }),
48900
48298
  xTogglReportExport: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
48901
48299
  "csv",
@@ -48952,7 +48350,7 @@ const generatedFocusOperations = [
48952
48350
  cli: {
48953
48351
  group: ["reportschedules"],
48954
48352
  command: "upsert-saved-view-schedule",
48955
- interactive: "hidden"
48353
+ interactive: "default"
48956
48354
  },
48957
48355
  mcp: { entityTool: "reportschedules" },
48958
48356
  inputSchema: /* @__PURE__ */ looseObject({
@@ -48963,10 +48361,8 @@ const generatedFocusOperations = [
48963
48361
  "weekly",
48964
48362
  "monthly"
48965
48363
  ]),
48966
- charts: /* @__PURE__ */ unknown$1(),
48967
48364
  time: /* @__PURE__ */ string$1(),
48968
48365
  day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48969
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
48970
48366
  recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
48971
48367
  recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
48972
48368
  recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
@@ -49299,32 +48695,6 @@ const generatedFocusOperations = [
49299
48695
  ]));
49300
48696
  }
49301
48697
  },
49302
- {
49303
- id: "focus.sharedreports.get-shared-report-dates",
49304
- family: "focus",
49305
- resource: "sharedreports",
49306
- action: "get-shared-report-dates",
49307
- title: "Get Shared Report Dates Sharedreports",
49308
- description: "Get Shared Report Dates Sharedreports.",
49309
- safety: "read",
49310
- destructive: false,
49311
- cli: {
49312
- group: ["sharedreports"],
49313
- command: "get-shared-report-dates",
49314
- interactive: "available"
49315
- },
49316
- mcp: { entityTool: "sharedreports" },
49317
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
49318
- execute: (input, { client }) => {
49319
- const data = input;
49320
- return client.runGeneratedRequest("getSharedReportDates", () => callGeneratedRequest(getSharedReportDates, [
49321
- client.httpClient,
49322
- client.workspaceIdNumber,
49323
- data.id,
49324
- void 0
49325
- ]));
49326
- }
49327
- },
49328
48698
  {
49329
48699
  id: "focus.sharedreports.get-shared-report-for-viewer",
49330
48700
  family: "focus",
@@ -49395,36 +48765,6 @@ const generatedFocusOperations = [
49395
48765
  void 0
49396
48766
  ]))
49397
48767
  },
49398
- {
49399
- id: "focus.sharedreports.mint-shared-report-link",
49400
- family: "focus",
49401
- resource: "sharedreports",
49402
- action: "mint-shared-report-link",
49403
- title: "Mint Shared Report Link Sharedreports",
49404
- description: "Mint Shared Report Link Sharedreports.",
49405
- safety: "update",
49406
- destructive: false,
49407
- cli: {
49408
- group: ["sharedreports"],
49409
- command: "mint-shared-report-link",
49410
- interactive: "default"
49411
- },
49412
- mcp: { entityTool: "sharedreports" },
49413
- inputSchema: /* @__PURE__ */ looseObject({
49414
- id: /* @__PURE__ */ number$2(),
49415
- payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
49416
- }),
49417
- execute: (input, { client }) => {
49418
- const data = input;
49419
- return client.runGeneratedRequest("mintSharedReportLink", () => callGeneratedRequest(mintSharedReportLink, [
49420
- client.httpClient,
49421
- client.workspaceIdNumber,
49422
- data.id,
49423
- data.payload ?? data.data ?? data,
49424
- void 0
49425
- ]));
49426
- }
49427
- },
49428
48768
  {
49429
48769
  id: "focus.sharedreports.revoke-shared-report-grant",
49430
48770
  family: "focus",
@@ -49456,129 +48796,43 @@ const generatedFocusOperations = [
49456
48796
  }
49457
48797
  },
49458
48798
  {
49459
- id: "focus.sharedreports.revoke-shared-report-link",
48799
+ id: "focus.sharedreports.share-saved-view",
49460
48800
  family: "focus",
49461
48801
  resource: "sharedreports",
49462
- action: "revoke-shared-report-link",
49463
- title: "Revoke Shared Report Link Sharedreports",
49464
- description: "Revoke Shared Report Link Sharedreports.",
49465
- safety: "delete",
49466
- destructive: true,
48802
+ action: "share-saved-view",
48803
+ title: "Share Saved View Sharedreports",
48804
+ description: "Share Saved View Sharedreports.",
48805
+ safety: "update",
48806
+ destructive: false,
49467
48807
  cli: {
49468
48808
  group: ["sharedreports"],
49469
- command: "revoke-shared-report-link",
49470
- interactive: "default"
48809
+ command: "share-saved-view",
48810
+ interactive: "hidden"
49471
48811
  },
49472
48812
  mcp: { entityTool: "sharedreports" },
49473
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
48813
+ inputSchema: /* @__PURE__ */ looseObject({
48814
+ id: /* @__PURE__ */ number$2(),
48815
+ payload: /* @__PURE__ */ looseObject({
48816
+ charts: /* @__PURE__ */ unknown$1(),
48817
+ period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
48818
+ team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48819
+ user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
48820
+ workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
48821
+ })
48822
+ }),
49474
48823
  execute: (input, { client }) => {
49475
48824
  const data = input;
49476
- return client.runGeneratedRequest("revokeSharedReportLink", () => callGeneratedRequest(revokeSharedReportLink, [
48825
+ return client.runGeneratedRequest("shareSavedView", () => callGeneratedRequest(shareSavedView, [
49477
48826
  client.httpClient,
49478
48827
  client.workspaceIdNumber,
49479
48828
  data.id,
48829
+ data.payload ?? data.data ?? data,
49480
48830
  void 0
49481
48831
  ]));
49482
48832
  }
49483
48833
  },
49484
48834
  {
49485
- id: "focus.sharedreports.rotate-shared-report-link",
49486
- family: "focus",
49487
- resource: "sharedreports",
49488
- action: "rotate-shared-report-link",
49489
- title: "Rotate Shared Report Link Sharedreports",
49490
- description: "Rotate Shared Report Link Sharedreports.",
49491
- safety: "update",
49492
- destructive: false,
49493
- cli: {
49494
- group: ["sharedreports"],
49495
- command: "rotate-shared-report-link",
49496
- interactive: "default"
49497
- },
49498
- mcp: { entityTool: "sharedreports" },
49499
- inputSchema: /* @__PURE__ */ looseObject({
49500
- id: /* @__PURE__ */ number$2(),
49501
- payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
49502
- }),
49503
- execute: (input, { client }) => {
49504
- const data = input;
49505
- return client.runGeneratedRequest("rotateSharedReportLink", () => callGeneratedRequest(rotateSharedReportLink, [
49506
- client.httpClient,
49507
- client.workspaceIdNumber,
49508
- data.id,
49509
- data.payload ?? data.data ?? data,
49510
- void 0
49511
- ]));
49512
- }
49513
- },
49514
- {
49515
- id: "focus.sharedreports.set-shared-report-dates-lock",
49516
- family: "focus",
49517
- resource: "sharedreports",
49518
- action: "set-shared-report-dates-lock",
49519
- title: "Set Shared Report Dates Lock Sharedreports",
49520
- description: "Set Shared Report Dates Lock Sharedreports.",
49521
- safety: "update",
49522
- destructive: false,
49523
- cli: {
49524
- group: ["sharedreports"],
49525
- command: "set-shared-report-dates-lock",
49526
- interactive: "default"
49527
- },
49528
- mcp: { entityTool: "sharedreports" },
49529
- inputSchema: /* @__PURE__ */ looseObject({
49530
- id: /* @__PURE__ */ number$2(),
49531
- payload: /* @__PURE__ */ looseObject({ locked: /* @__PURE__ */ boolean$1() })
49532
- }),
49533
- execute: (input, { client }) => {
49534
- const data = input;
49535
- return client.runGeneratedRequest("setSharedReportDatesLock", () => callGeneratedRequest(setSharedReportDatesLock, [
49536
- client.httpClient,
49537
- client.workspaceIdNumber,
49538
- data.id,
49539
- data.payload ?? data.data ?? data,
49540
- void 0
49541
- ]));
49542
- }
49543
- },
49544
- {
49545
- id: "focus.sharedreports.share-saved-view",
49546
- family: "focus",
49547
- resource: "sharedreports",
49548
- action: "share-saved-view",
49549
- title: "Share Saved View Sharedreports",
49550
- description: "Share Saved View Sharedreports.",
49551
- safety: "update",
49552
- destructive: false,
49553
- cli: {
49554
- group: ["sharedreports"],
49555
- command: "share-saved-view",
49556
- interactive: "hidden"
49557
- },
49558
- mcp: { entityTool: "sharedreports" },
49559
- inputSchema: /* @__PURE__ */ looseObject({
49560
- id: /* @__PURE__ */ number$2(),
49561
- payload: /* @__PURE__ */ looseObject({
49562
- charts: /* @__PURE__ */ unknown$1(),
49563
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
49564
- team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
49565
- user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
49566
- workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
49567
- })
49568
- }),
49569
- execute: (input, { client }) => {
49570
- const data = input;
49571
- return client.runGeneratedRequest("shareSavedView", () => callGeneratedRequest(shareSavedView, [
49572
- client.httpClient,
49573
- client.workspaceIdNumber,
49574
- data.id,
49575
- data.payload ?? data.data ?? data,
49576
- void 0
49577
- ]));
49578
- }
49579
- },
49580
- {
49581
- id: "focus.sharedreports.share-saved-view-many",
48835
+ id: "focus.sharedreports.share-saved-view-many",
49582
48836
  family: "focus",
49583
48837
  resource: "sharedreports",
49584
48838
  action: "share-saved-view-many",
@@ -49615,32 +48869,6 @@ const generatedFocusOperations = [
49615
48869
  ]));
49616
48870
  }
49617
48871
  },
49618
- {
49619
- id: "focus.sharedreports.unshare-shared-report",
49620
- family: "focus",
49621
- resource: "sharedreports",
49622
- action: "unshare-shared-report",
49623
- title: "Unshare Shared Report Sharedreports",
49624
- description: "Unshare Shared Report Sharedreports.",
49625
- safety: "delete",
49626
- destructive: true,
49627
- cli: {
49628
- group: ["sharedreports"],
49629
- command: "unshare-shared-report",
49630
- interactive: "default"
49631
- },
49632
- mcp: { entityTool: "sharedreports" },
49633
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
49634
- execute: (input, { client }) => {
49635
- const data = input;
49636
- return client.runGeneratedRequest("unshareSharedReport", () => callGeneratedRequest(unshareSharedReport, [
49637
- client.httpClient,
49638
- client.workspaceIdNumber,
49639
- data.id,
49640
- void 0
49641
- ]));
49642
- }
49643
- },
49644
48872
  {
49645
48873
  id: "focus.statuses.create-status",
49646
48874
  family: "focus",
@@ -50683,37 +49911,6 @@ const generatedFocusOperations = [
50683
49911
  return client.createTask(data);
50684
49912
  }
50685
49913
  },
50686
- {
50687
- id: "focus.tasks.create-recurring-occurrence",
50688
- family: "focus",
50689
- resource: "tasks",
50690
- action: "create-recurring-occurrence",
50691
- title: "Create Recurring Occurrence Tasks",
50692
- description: "Create Recurring Occurrence Tasks.",
50693
- safety: "create",
50694
- destructive: false,
50695
- cli: {
50696
- group: ["tasks"],
50697
- command: "create-recurring-occurrence",
50698
- interactive: "default"
50699
- },
50700
- mcp: { entityTool: "tasks" },
50701
- inputSchema: /* @__PURE__ */ looseObject({
50702
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50703
- task_id: /* @__PURE__ */ number$2()
50704
- }),
50705
- execute: (input, { client }) => {
50706
- const data = input;
50707
- return client.runGeneratedRequest("createRecurringOccurrence", () => callGeneratedRequest(createRecurringOccurrence, [
50708
- client.httpClient,
50709
- client.organizationId,
50710
- client.workspaceIdNumber,
50711
- data.task_id,
50712
- data.return_occurrence,
50713
- void 0
50714
- ]));
50715
- }
50716
- },
50717
49914
  {
50718
49915
  id: "focus.tasks.delete",
50719
49916
  family: "focus",
@@ -50938,79 +50135,6 @@ const generatedFocusOperations = [
50938
50135
  ]));
50939
50136
  }
50940
50137
  },
50941
- {
50942
- id: "focus.tasks.get-picker-task-children",
50943
- family: "focus",
50944
- resource: "tasks",
50945
- action: "get-picker-task-children",
50946
- title: "Get Picker Task Children Tasks",
50947
- description: "Get Picker Task Children Tasks.",
50948
- safety: "read",
50949
- destructive: false,
50950
- cli: {
50951
- group: ["tasks"],
50952
- command: "get-picker-task-children",
50953
- interactive: "hidden"
50954
- },
50955
- mcp: { entityTool: "tasks" },
50956
- inputSchema: /* @__PURE__ */ looseObject({
50957
- include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50958
- only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50959
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50960
- parent_task_id: /* @__PURE__ */ number$2(),
50961
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50962
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50963
- search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50964
- without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
50965
- }),
50966
- execute: (input, { client }) => {
50967
- const data = input;
50968
- return client.runGeneratedRequest("getPickerTaskChildrenClassic", () => callGeneratedRequest(getPickerTaskChildrenClassic, [
50969
- client.httpClient,
50970
- client.organizationId,
50971
- client.workspaceIdNumber,
50972
- data.parent_task_id,
50973
- data,
50974
- void 0
50975
- ]));
50976
- }
50977
- },
50978
- {
50979
- id: "focus.tasks.get-picker-task-groups",
50980
- family: "focus",
50981
- resource: "tasks",
50982
- action: "get-picker-task-groups",
50983
- title: "Get Picker Task Groups Tasks",
50984
- description: "Get Picker Task Groups Tasks.",
50985
- safety: "read",
50986
- destructive: false,
50987
- cli: {
50988
- group: ["tasks"],
50989
- command: "get-picker-task-groups",
50990
- interactive: "hidden"
50991
- },
50992
- mcp: { entityTool: "tasks" },
50993
- inputSchema: /* @__PURE__ */ looseObject({
50994
- include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50995
- only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50996
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50997
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50998
- pinned_only: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50999
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51000
- search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51001
- without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
51002
- }),
51003
- execute: (input, { client }) => {
51004
- const data = input;
51005
- return client.runGeneratedRequest("getPickerTaskGroupsClassic", () => callGeneratedRequest(getPickerTaskGroupsClassic, [
51006
- client.httpClient,
51007
- client.organizationId,
51008
- client.workspaceIdNumber,
51009
- data,
51010
- void 0
51011
- ]));
51012
- }
51013
- },
51014
50138
  {
51015
50139
  id: "focus.tasks.get-recurring-instances",
51016
50140
  family: "focus",
@@ -51034,13 +50158,9 @@ const generatedFocusOperations = [
51034
50158
  dates_overlap_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51035
50159
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51036
50160
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51037
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51038
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51039
50161
  page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51040
50162
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51041
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51042
50163
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51043
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51044
50164
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51045
50165
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
51046
50166
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -51086,14 +50206,13 @@ const generatedFocusOperations = [
51086
50206
  estimated_mins_max: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51087
50207
  estimated_mins_min: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51088
50208
  has_dates: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50209
+ has_time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51089
50210
  has_time_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51090
50211
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51091
50212
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51092
50213
  include_parent_matches: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51093
50214
  include_project_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51094
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51095
50215
  is_priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51096
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51097
50216
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51098
50217
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51099
50218
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -51102,9 +50221,7 @@ const generatedFocusOperations = [
51102
50221
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51103
50222
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51104
50223
  recurring: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51105
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51106
50224
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51107
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51108
50225
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51109
50226
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51110
50227
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -51113,6 +50230,8 @@ const generatedFocusOperations = [
51113
50230
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51114
50231
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
51115
50232
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50233
+ time_block_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50234
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51116
50235
  toggl_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51117
50236
  with_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
51118
50237
  }),
@@ -51240,10 +50359,8 @@ const generatedFocusOperations = [
51240
50359
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51241
50360
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51242
50361
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51243
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51244
50362
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51245
50363
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51246
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51247
50364
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51248
50365
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51249
50366
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -51252,8 +50369,6 @@ const generatedFocusOperations = [
51252
50369
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51253
50370
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51254
50371
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51255
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51256
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51257
50372
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51258
50373
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51259
50374
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -51262,8 +50377,7 @@ const generatedFocusOperations = [
51262
50377
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
51263
50378
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51264
50379
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51265
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51266
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
50380
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51267
50381
  }),
51268
50382
  execute: (input, { client }) => {
51269
50383
  const data = input;
@@ -51305,17 +50419,13 @@ const generatedFocusOperations = [
51305
50419
  group_id: /* @__PURE__ */ number$2(),
51306
50420
  include_assignees: /* @__PURE__ */ unknown$1(),
51307
50421
  include_drafts: /* @__PURE__ */ unknown$1(),
51308
- include_projected_occurrences: /* @__PURE__ */ unknown$1(),
51309
50422
  include_unassigned: /* @__PURE__ */ unknown$1(),
51310
50423
  include_unmaterialized: /* @__PURE__ */ unknown$1(),
51311
- max_recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
51312
50424
  min_days: /* @__PURE__ */ unknown$1(),
51313
50425
  name: /* @__PURE__ */ unknown$1(),
51314
50426
  priority: /* @__PURE__ */ unknown$1(),
51315
50427
  private_: /* @__PURE__ */ unknown$1(),
51316
50428
  project_id: /* @__PURE__ */ number$2(),
51317
- recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
51318
- recurring_task_read: /* @__PURE__ */ unknown$1(),
51319
50429
  source: /* @__PURE__ */ unknown$1(),
51320
50430
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
51321
50431
  start_date_from: /* @__PURE__ */ unknown$1(),
@@ -51324,8 +50434,7 @@ const generatedFocusOperations = [
51324
50434
  tag_id: /* @__PURE__ */ number$2(),
51325
50435
  team_id: /* @__PURE__ */ number$2(),
51326
50436
  user_cf_filter: /* @__PURE__ */ unknown$1(),
51327
- user_tag_id: /* @__PURE__ */ number$2(),
51328
- xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
50437
+ user_tag_id: /* @__PURE__ */ number$2()
51329
50438
  }),
51330
50439
  execute: (input, { client }) => {
51331
50440
  const data = input;
@@ -51366,17 +50475,13 @@ const generatedFocusOperations = [
51366
50475
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51367
50476
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51368
50477
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51369
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51370
50478
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51371
50479
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51372
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51373
50480
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51374
50481
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51375
50482
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51376
50483
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51377
50484
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51378
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51379
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51380
50485
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51381
50486
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51382
50487
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -51385,290 +50490,752 @@ const generatedFocusOperations = [
51385
50490
  tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51386
50491
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51387
50492
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51388
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51389
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
50493
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
50494
+ }),
50495
+ execute: (input, { client }) => {
50496
+ const data = input;
50497
+ return client.runGeneratedRequest("getUserTaskGroupsByTeam", () => callGeneratedRequest(getUserTaskGroupsByTeam, [
50498
+ client.httpClient,
50499
+ client.organizationId,
50500
+ client.workspaceIdNumber,
50501
+ data,
50502
+ void 0
50503
+ ]));
50504
+ }
50505
+ },
50506
+ {
50507
+ id: "focus.tasks.groups-update",
50508
+ family: "focus",
50509
+ resource: "tasks",
50510
+ action: "groups-update",
50511
+ title: "Groups Update Tasks",
50512
+ description: "Groups Update Tasks.",
50513
+ safety: "update",
50514
+ destructive: false,
50515
+ cli: {
50516
+ group: ["tasks", "groups"],
50517
+ command: "update",
50518
+ interactive: "hidden"
50519
+ },
50520
+ mcp: { entityTool: "tasks" },
50521
+ inputSchema: /* @__PURE__ */ looseObject({
50522
+ group: /* @__PURE__ */ picklist$1([
50523
+ "projects",
50524
+ "users",
50525
+ "tags"
50526
+ ]),
50527
+ payload: /* @__PURE__ */ unknown$1()
50528
+ }),
50529
+ execute: (input, { client }) => {
50530
+ const data = input;
50531
+ return client.runGeneratedRequest("updateTaskGroups", () => callGeneratedRequest(updateTaskGroups, [
50532
+ client.httpClient,
50533
+ client.organizationId,
50534
+ client.workspaceIdNumber,
50535
+ data.group,
50536
+ data.payload ?? data.data ?? data,
50537
+ void 0
50538
+ ]));
50539
+ }
50540
+ },
50541
+ {
50542
+ id: "focus.tasks.list",
50543
+ family: "focus",
50544
+ resource: "tasks",
50545
+ action: "list",
50546
+ title: "List Tasks",
50547
+ description: "List Tasks.",
50548
+ safety: "read",
50549
+ destructive: false,
50550
+ cli: {
50551
+ group: ["tasks"],
50552
+ command: "list",
50553
+ interactive: "available"
50554
+ },
50555
+ mcp: { entityTool: "tasks" },
50556
+ inputSchema: taskListSchema,
50557
+ execute: (input, { client }) => {
50558
+ const data = input;
50559
+ return client.listTasks(data);
50560
+ }
50561
+ },
50562
+ {
50563
+ id: "focus.tasks.restore",
50564
+ family: "focus",
50565
+ resource: "tasks",
50566
+ action: "restore",
50567
+ title: "Restore Tasks",
50568
+ description: "Restore Tasks.",
50569
+ safety: "update",
50570
+ destructive: false,
50571
+ cli: {
50572
+ group: ["tasks"],
50573
+ command: "restore",
50574
+ interactive: "default"
50575
+ },
50576
+ mcp: { entityTool: "tasks" },
50577
+ inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
50578
+ execute: (input, { client }) => {
50579
+ const data = input;
50580
+ return client.runGeneratedRequest("restoreTask", () => callGeneratedRequest(restoreTask, [
50581
+ client.httpClient,
50582
+ client.organizationId,
50583
+ client.workspaceIdNumber,
50584
+ data.task_id,
50585
+ void 0
50586
+ ]));
50587
+ }
50588
+ },
50589
+ {
50590
+ id: "focus.tasks.suggestions-get-project-suggestion-for-atask",
50591
+ family: "focus",
50592
+ resource: "tasks",
50593
+ action: "suggestions-get-project-suggestion-for-atask",
50594
+ title: "Suggestions Get Project Suggestion For Atask Tasks",
50595
+ description: "Suggestions Get Project Suggestion For Atask Tasks.",
50596
+ safety: "update",
50597
+ destructive: false,
50598
+ cli: {
50599
+ group: ["tasks", "suggestions"],
50600
+ command: "get-project-suggestion-for-atask",
50601
+ interactive: "default"
50602
+ },
50603
+ mcp: { entityTool: "tasks" },
50604
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }) }),
50605
+ execute: (input, { client }) => {
50606
+ const data = input;
50607
+ return client.runGeneratedRequest("getProjectSuggestionForATask", () => callGeneratedRequest(getProjectSuggestionForATask, [
50608
+ client.httpClient,
50609
+ client.organizationId,
50610
+ client.workspaceIdNumber,
50611
+ data.payload ?? data.data ?? data,
50612
+ void 0
50613
+ ]));
50614
+ }
50615
+ },
50616
+ {
50617
+ id: "focus.tasks.suggestions-get-project-suggestions-for-multiple-tasks",
50618
+ family: "focus",
50619
+ resource: "tasks",
50620
+ action: "suggestions-get-project-suggestions-for-multiple-tasks",
50621
+ title: "Suggestions Get Project Suggestions For Multiple Tasks Tasks",
50622
+ description: "Suggestions Get Project Suggestions For Multiple Tasks Tasks.",
50623
+ safety: "update",
50624
+ destructive: false,
50625
+ cli: {
50626
+ group: ["tasks", "suggestions"],
50627
+ command: "get-project-suggestions-for-multiple-tasks",
50628
+ interactive: "default"
50629
+ },
50630
+ mcp: { entityTool: "tasks" },
50631
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
50632
+ execute: (input, { client }) => {
50633
+ const data = input;
50634
+ return client.runGeneratedRequest("getProjectSuggestionsForMultipleTasks", () => callGeneratedRequest(getProjectSuggestionsForMultipleTasks, [
50635
+ client.httpClient,
50636
+ client.organizationId,
50637
+ client.workspaceIdNumber,
50638
+ data.payload ?? data.data ?? data,
50639
+ void 0
50640
+ ]));
50641
+ }
50642
+ },
50643
+ {
50644
+ id: "focus.tasks.unarchive",
50645
+ family: "focus",
50646
+ resource: "tasks",
50647
+ action: "unarchive",
50648
+ title: "Unarchive Tasks",
50649
+ description: "Unarchive Tasks.",
50650
+ safety: "update",
50651
+ destructive: false,
50652
+ cli: {
50653
+ group: ["tasks"],
50654
+ command: "unarchive",
50655
+ interactive: "default"
50656
+ },
50657
+ mcp: { entityTool: "tasks" },
50658
+ inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
50659
+ execute: (input, { client }) => {
50660
+ const data = input;
50661
+ return client.runGeneratedRequest("unarchiveTask", () => callGeneratedRequest(unarchiveTask, [
50662
+ client.httpClient,
50663
+ client.organizationId,
50664
+ client.workspaceIdNumber,
50665
+ data.task_id,
50666
+ void 0
50667
+ ]));
50668
+ }
50669
+ },
50670
+ {
50671
+ id: "focus.tasks.update",
50672
+ family: "focus",
50673
+ resource: "tasks",
50674
+ action: "update",
50675
+ title: "Update Tasks",
50676
+ description: "Update Tasks.",
50677
+ safety: "update",
50678
+ destructive: false,
50679
+ cli: {
50680
+ group: ["tasks"],
50681
+ command: "update",
50682
+ interactive: "default"
50683
+ },
50684
+ mcp: { entityTool: "tasks" },
50685
+ inputSchema: taskUpdateSchema,
50686
+ execute: (input, { client }) => {
50687
+ const data = input;
50688
+ return client.updateTask(data.task_id, data.payload);
50689
+ }
50690
+ },
50691
+ {
50692
+ id: "focus.tasks.full-update",
50693
+ family: "focus",
50694
+ resource: "tasks",
50695
+ action: "full-update",
50696
+ title: "Full Update Tasks",
50697
+ description: "Full Update Tasks.",
50698
+ safety: "update",
50699
+ destructive: false,
50700
+ cli: {
50701
+ group: ["tasks"],
50702
+ command: "full-update",
50703
+ interactive: "hidden"
50704
+ },
50705
+ mcp: { entityTool: "tasks" },
50706
+ inputSchema: /* @__PURE__ */ looseObject({
50707
+ payload: /* @__PURE__ */ looseObject({
50708
+ name: /* @__PURE__ */ string$1(),
50709
+ status_id: /* @__PURE__ */ number$2(),
50710
+ auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50711
+ color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
50712
+ custom_fields: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
50713
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
50714
+ end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
50715
+ estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
50716
+ estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50717
+ notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
50718
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50719
+ parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50720
+ pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50721
+ priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
50722
+ "none",
50723
+ "low",
50724
+ "medium",
50725
+ "high"
50726
+ ])),
50727
+ private: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50728
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50729
+ recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50730
+ rollup_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50731
+ start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
50732
+ }),
50733
+ task_id: /* @__PURE__ */ number$2()
50734
+ }),
50735
+ execute: (input, { client }) => {
50736
+ const data = input;
50737
+ return client.runGeneratedRequest("updateTask", () => callGeneratedRequest(updateTask, [
50738
+ client.httpClient,
50739
+ client.organizationId,
50740
+ client.workspaceIdNumber,
50741
+ data.task_id,
50742
+ data.payload ?? data.data ?? data,
50743
+ void 0
50744
+ ]));
50745
+ }
50746
+ },
50747
+ {
50748
+ id: "focus.tasks.update-calendar-range",
50749
+ family: "focus",
50750
+ resource: "tasks",
50751
+ action: "update-calendar-range",
50752
+ title: "Update Calendar Range Tasks",
50753
+ description: "Update Calendar Range Tasks.",
50754
+ safety: "update",
50755
+ destructive: false,
50756
+ cli: {
50757
+ group: ["tasks"],
50758
+ command: "update-calendar-range",
50759
+ interactive: "default"
50760
+ },
50761
+ mcp: { entityTool: "tasks" },
50762
+ inputSchema: /* @__PURE__ */ looseObject({
50763
+ date_from: /* @__PURE__ */ string$1(),
50764
+ date_to: /* @__PURE__ */ string$1()
50765
+ }),
50766
+ execute: (input, { client }) => {
50767
+ const data = input;
50768
+ return client.runGeneratedRequest("putTasksCalendarRange", () => callGeneratedRequest(putTasksCalendarRange, [
50769
+ client.httpClient,
50770
+ client.organizationId,
50771
+ client.workspaceIdNumber,
50772
+ data.date_from,
50773
+ data.date_to,
50774
+ void 0
50775
+ ]));
50776
+ }
50777
+ },
50778
+ {
50779
+ id: "focus.time-blocks.archive",
50780
+ family: "focus",
50781
+ resource: "time-blocks",
50782
+ action: "archive",
50783
+ title: "Archive Time Blocks",
50784
+ description: "Archive Time Blocks.",
50785
+ safety: "update",
50786
+ destructive: false,
50787
+ cli: {
50788
+ group: ["time-blocks"],
50789
+ command: "archive",
50790
+ interactive: "default"
50791
+ },
50792
+ mcp: { entityTool: "time-blocks" },
50793
+ inputSchema: /* @__PURE__ */ looseObject({
50794
+ task_id: /* @__PURE__ */ number$2(),
50795
+ time_block_id: /* @__PURE__ */ number$2()
50796
+ }),
50797
+ execute: (input, { client }) => {
50798
+ const data = input;
50799
+ return client.runGeneratedRequest("archiveTimeBlockWithOrg", () => callGeneratedRequest(archiveTimeBlockWithOrg, [
50800
+ client.httpClient,
50801
+ client.organizationId,
50802
+ client.workspaceIdNumber,
50803
+ data.task_id,
50804
+ data.time_block_id,
50805
+ void 0
50806
+ ]));
50807
+ }
50808
+ },
50809
+ {
50810
+ id: "focus.time-blocks.bulk-create",
50811
+ family: "focus",
50812
+ resource: "time-blocks",
50813
+ action: "bulk-create",
50814
+ title: "Bulk Create Time Blocks",
50815
+ description: "Bulk Create Time Blocks.",
50816
+ safety: "create",
50817
+ destructive: false,
50818
+ cli: {
50819
+ group: ["time-blocks", "bulk"],
50820
+ command: "create",
50821
+ interactive: "default"
50822
+ },
50823
+ mcp: { entityTool: "time-blocks" },
50824
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ time_blocks: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
50825
+ start: apiDateTimeString,
50826
+ task_id: /* @__PURE__ */ number$2(),
50827
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50828
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50829
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
50830
+ })) }) }),
50831
+ execute: (input, { client }) => {
50832
+ const data = input;
50833
+ return client.runGeneratedRequest("bulkCreateTimeBlockWithOrg", () => callGeneratedRequest(bulkCreateTimeBlockWithOrg, [
50834
+ client.httpClient,
50835
+ client.organizationId,
50836
+ client.workspaceIdNumber,
50837
+ data.payload ?? data.data ?? data,
50838
+ void 0
50839
+ ]));
50840
+ }
50841
+ },
50842
+ {
50843
+ id: "focus.time-blocks.bulk-delete",
50844
+ family: "focus",
50845
+ resource: "time-blocks",
50846
+ action: "bulk-delete",
50847
+ title: "Bulk Delete Time Blocks",
50848
+ description: "Bulk Delete Time Blocks.",
50849
+ safety: "delete",
50850
+ destructive: true,
50851
+ cli: {
50852
+ group: ["time-blocks", "bulk"],
50853
+ command: "delete",
50854
+ interactive: "default"
50855
+ },
50856
+ mcp: { entityTool: "time-blocks" },
50857
+ inputSchema: /* @__PURE__ */ looseObject({
50858
+ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
50859
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51390
50860
  }),
51391
50861
  execute: (input, { client }) => {
51392
50862
  const data = input;
51393
- return client.runGeneratedRequest("getUserTaskGroupsByTeam", () => callGeneratedRequest(getUserTaskGroupsByTeam, [
50863
+ return client.runGeneratedRequest("bulkDeleteTimeBlockWithOrg", () => callGeneratedRequest(bulkDeleteTimeBlockWithOrg, [
51394
50864
  client.httpClient,
51395
50865
  client.organizationId,
51396
50866
  client.workspaceIdNumber,
51397
- data,
50867
+ data.ids,
50868
+ data.outbound_sync,
51398
50869
  void 0
51399
50870
  ]));
51400
50871
  }
51401
50872
  },
51402
50873
  {
51403
- id: "focus.tasks.groups-update",
50874
+ id: "focus.time-blocks.bulk-partial-update",
51404
50875
  family: "focus",
51405
- resource: "tasks",
51406
- action: "groups-update",
51407
- title: "Groups Update Tasks",
51408
- description: "Groups Update Tasks.",
50876
+ resource: "time-blocks",
50877
+ action: "bulk-partial-update",
50878
+ title: "Bulk Partial Update Time Blocks",
50879
+ description: "Bulk Partial Update Time Blocks.",
51409
50880
  safety: "update",
51410
50881
  destructive: false,
51411
50882
  cli: {
51412
- group: ["tasks", "groups"],
51413
- command: "update",
50883
+ group: ["time-blocks", "bulk"],
50884
+ command: "partial-update",
51414
50885
  interactive: "hidden"
51415
50886
  },
51416
- mcp: { entityTool: "tasks" },
50887
+ mcp: { entityTool: "time-blocks" },
50888
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ unknown$1() }),
50889
+ execute: (input, { client }) => {
50890
+ const data = input;
50891
+ return client.runGeneratedRequest("bulkPartialUpdateTimeBlockWithOrg", () => callGeneratedRequest(bulkPartialUpdateTimeBlockWithOrg, [
50892
+ client.httpClient,
50893
+ client.organizationId,
50894
+ client.workspaceIdNumber,
50895
+ data.payload ?? data.data ?? data,
50896
+ void 0
50897
+ ]));
50898
+ }
50899
+ },
50900
+ {
50901
+ id: "focus.time-blocks.create",
50902
+ family: "focus",
50903
+ resource: "time-blocks",
50904
+ action: "create",
50905
+ title: "Create Time Blocks",
50906
+ description: "Create Time Blocks.",
50907
+ safety: "create",
50908
+ destructive: false,
50909
+ cli: {
50910
+ group: ["time-blocks"],
50911
+ command: "create",
50912
+ interactive: "default"
50913
+ },
50914
+ mcp: { entityTool: "time-blocks" },
51417
50915
  inputSchema: /* @__PURE__ */ looseObject({
51418
- group: /* @__PURE__ */ picklist$1([
51419
- "projects",
51420
- "users",
51421
- "tags"
51422
- ]),
51423
- payload: /* @__PURE__ */ unknown$1()
50916
+ payload: /* @__PURE__ */ looseObject({
50917
+ start: apiDateTimeString,
50918
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50919
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
50920
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
50921
+ }),
50922
+ task_id: /* @__PURE__ */ number$2()
51424
50923
  }),
51425
50924
  execute: (input, { client }) => {
51426
50925
  const data = input;
51427
- return client.runGeneratedRequest("updateTaskGroups", () => callGeneratedRequest(updateTaskGroups, [
50926
+ return client.runGeneratedRequest("createTimeBlockWithOrg", () => callGeneratedRequest(createTimeBlockWithOrg, [
51428
50927
  client.httpClient,
51429
50928
  client.organizationId,
51430
50929
  client.workspaceIdNumber,
51431
- data.group,
50930
+ data.task_id,
51432
50931
  data.payload ?? data.data ?? data,
51433
50932
  void 0
51434
50933
  ]));
51435
50934
  }
51436
50935
  },
51437
50936
  {
51438
- id: "focus.tasks.list",
50937
+ id: "focus.time-blocks.delete",
51439
50938
  family: "focus",
51440
- resource: "tasks",
51441
- action: "list",
51442
- title: "List Tasks",
51443
- description: "List Tasks.",
50939
+ resource: "time-blocks",
50940
+ action: "delete",
50941
+ title: "Delete Time Blocks",
50942
+ description: "Delete Time Blocks.",
50943
+ safety: "delete",
50944
+ destructive: true,
50945
+ cli: {
50946
+ group: ["time-blocks"],
50947
+ command: "delete",
50948
+ interactive: "default"
50949
+ },
50950
+ mcp: { entityTool: "time-blocks" },
50951
+ inputSchema: /* @__PURE__ */ looseObject({
50952
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
50953
+ task_id: /* @__PURE__ */ number$2(),
50954
+ time_block_id: /* @__PURE__ */ number$2()
50955
+ }),
50956
+ execute: (input, { client }) => {
50957
+ const data = input;
50958
+ return client.runGeneratedRequest("deleteTimeBlockWithOrg", () => callGeneratedRequest(deleteTimeBlockWithOrg, [
50959
+ client.httpClient,
50960
+ client.organizationId,
50961
+ client.workspaceIdNumber,
50962
+ data.task_id,
50963
+ data.time_block_id,
50964
+ data.outbound_sync,
50965
+ void 0
50966
+ ]));
50967
+ }
50968
+ },
50969
+ {
50970
+ id: "focus.time-blocks.get",
50971
+ family: "focus",
50972
+ resource: "time-blocks",
50973
+ action: "get",
50974
+ title: "Get Time Blocks",
50975
+ description: "Get Time Blocks.",
51444
50976
  safety: "read",
51445
50977
  destructive: false,
51446
50978
  cli: {
51447
- group: ["tasks"],
51448
- command: "list",
50979
+ group: ["time-blocks"],
50980
+ command: "get",
51449
50981
  interactive: "available"
51450
50982
  },
51451
- mcp: { entityTool: "tasks" },
51452
- inputSchema: taskListSchema,
50983
+ mcp: { entityTool: "time-blocks" },
50984
+ inputSchema: /* @__PURE__ */ looseObject({
50985
+ task_id: /* @__PURE__ */ number$2(),
50986
+ time_block_id: /* @__PURE__ */ number$2()
50987
+ }),
51453
50988
  execute: (input, { client }) => {
51454
50989
  const data = input;
51455
- return client.listTasks(data);
50990
+ return client.runGeneratedRequest("getTimeBlockWithOrg", () => callGeneratedRequest(getTimeBlockWithOrg, [
50991
+ client.httpClient,
50992
+ client.organizationId,
50993
+ client.workspaceIdNumber,
50994
+ data.task_id,
50995
+ data.time_block_id,
50996
+ void 0
50997
+ ]));
51456
50998
  }
51457
50999
  },
51458
51000
  {
51459
- id: "focus.tasks.restore",
51001
+ id: "focus.time-blocks.get-range",
51460
51002
  family: "focus",
51461
- resource: "tasks",
51462
- action: "restore",
51463
- title: "Restore Tasks",
51464
- description: "Restore Tasks.",
51465
- safety: "update",
51003
+ resource: "time-blocks",
51004
+ action: "get-range",
51005
+ title: "Get Range Time Blocks",
51006
+ description: "Get Range Time Blocks.",
51007
+ safety: "read",
51466
51008
  destructive: false,
51467
51009
  cli: {
51468
- group: ["tasks"],
51469
- command: "restore",
51470
- interactive: "default"
51010
+ group: ["time-blocks"],
51011
+ command: "get-range",
51012
+ interactive: "hidden"
51471
51013
  },
51472
- mcp: { entityTool: "tasks" },
51473
- inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
51014
+ mcp: { entityTool: "time-blocks" },
51015
+ inputSchema: /* @__PURE__ */ looseObject({
51016
+ archived: /* @__PURE__ */ unknown$1(),
51017
+ date_from: /* @__PURE__ */ unknown$1(),
51018
+ date_to: /* @__PURE__ */ unknown$1(),
51019
+ order_by: /* @__PURE__ */ unknown$1(),
51020
+ page: /* @__PURE__ */ number$2(),
51021
+ per_page: /* @__PURE__ */ unknown$1(),
51022
+ status_id: /* @__PURE__ */ number$2(),
51023
+ task_id: /* @__PURE__ */ number$2()
51024
+ }),
51474
51025
  execute: (input, { client }) => {
51475
51026
  const data = input;
51476
- return client.runGeneratedRequest("restoreTask", () => callGeneratedRequest(restoreTask, [
51027
+ return client.runGeneratedRequest("getTimeBlocksRangeWithOrgClassic", () => callGeneratedRequest(getTimeBlocksRangeWithOrgClassic, [
51477
51028
  client.httpClient,
51478
51029
  client.organizationId,
51479
51030
  client.workspaceIdNumber,
51480
- data.task_id,
51031
+ data,
51481
51032
  void 0
51482
51033
  ]));
51483
51034
  }
51484
51035
  },
51485
51036
  {
51486
- id: "focus.tasks.suggestions-get-project-suggestion-for-atask",
51037
+ id: "focus.time-blocks.get-range-stream",
51487
51038
  family: "focus",
51488
- resource: "tasks",
51489
- action: "suggestions-get-project-suggestion-for-atask",
51490
- title: "Suggestions Get Project Suggestion For Atask Tasks",
51491
- description: "Suggestions Get Project Suggestion For Atask Tasks.",
51492
- safety: "update",
51039
+ resource: "time-blocks",
51040
+ action: "get-range-stream",
51041
+ title: "Get Range Stream Time Blocks",
51042
+ description: "Get Range Stream Time Blocks.",
51043
+ safety: "read",
51493
51044
  destructive: false,
51494
51045
  cli: {
51495
- group: ["tasks", "suggestions"],
51496
- command: "get-project-suggestion-for-atask",
51497
- interactive: "default"
51046
+ group: ["time-blocks"],
51047
+ command: "get-range-stream",
51048
+ interactive: "hidden"
51498
51049
  },
51499
- mcp: { entityTool: "tasks" },
51500
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }) }),
51050
+ mcp: { entityTool: "time-blocks" },
51051
+ inputSchema: /* @__PURE__ */ looseObject({
51052
+ archived: /* @__PURE__ */ unknown$1(),
51053
+ date_from: /* @__PURE__ */ unknown$1(),
51054
+ date_to: /* @__PURE__ */ unknown$1(),
51055
+ order_by: /* @__PURE__ */ unknown$1(),
51056
+ status_id: /* @__PURE__ */ number$2(),
51057
+ task_id: /* @__PURE__ */ number$2()
51058
+ }),
51501
51059
  execute: (input, { client }) => {
51502
51060
  const data = input;
51503
- return client.runGeneratedRequest("getProjectSuggestionForATask", () => callGeneratedRequest(getProjectSuggestionForATask, [
51061
+ return client.runGeneratedRequest("getTimeBlocksRangeStreamWithOrg", () => callGeneratedRequest(getTimeBlocksRangeStreamWithOrg, [
51504
51062
  client.httpClient,
51505
51063
  client.organizationId,
51506
51064
  client.workspaceIdNumber,
51507
- data.payload ?? data.data ?? data,
51065
+ data,
51508
51066
  void 0
51509
51067
  ]));
51510
51068
  }
51511
51069
  },
51512
51070
  {
51513
- id: "focus.tasks.suggestions-get-project-suggestions-for-multiple-tasks",
51071
+ id: "focus.time-blocks.get-task-time-blocks",
51514
51072
  family: "focus",
51515
- resource: "tasks",
51516
- action: "suggestions-get-project-suggestions-for-multiple-tasks",
51517
- title: "Suggestions Get Project Suggestions For Multiple Tasks Tasks",
51518
- description: "Suggestions Get Project Suggestions For Multiple Tasks Tasks.",
51519
- safety: "update",
51073
+ resource: "time-blocks",
51074
+ action: "get-task-time-blocks",
51075
+ title: "Get Task Time Blocks Time Blocks",
51076
+ description: "Get Task Time Blocks Time Blocks.",
51077
+ safety: "read",
51520
51078
  destructive: false,
51521
51079
  cli: {
51522
- group: ["tasks", "suggestions"],
51523
- command: "get-project-suggestions-for-multiple-tasks",
51524
- interactive: "default"
51080
+ group: ["time-blocks"],
51081
+ command: "get-task-time-blocks",
51082
+ interactive: "hidden"
51525
51083
  },
51526
- mcp: { entityTool: "tasks" },
51527
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
51084
+ mcp: { entityTool: "time-blocks" },
51085
+ inputSchema: /* @__PURE__ */ looseObject({
51086
+ archived: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51087
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51088
+ page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51089
+ per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51090
+ task_id: /* @__PURE__ */ number$2()
51091
+ }),
51528
51092
  execute: (input, { client }) => {
51529
51093
  const data = input;
51530
- return client.runGeneratedRequest("getProjectSuggestionsForMultipleTasks", () => callGeneratedRequest(getProjectSuggestionsForMultipleTasks, [
51094
+ return client.runGeneratedRequest("getTaskTimeBlocksWithOrgClassic", () => callGeneratedRequest(getTaskTimeBlocksWithOrgClassic, [
51531
51095
  client.httpClient,
51532
51096
  client.organizationId,
51533
51097
  client.workspaceIdNumber,
51534
- data.payload ?? data.data ?? data,
51098
+ data.task_id,
51099
+ data,
51535
51100
  void 0
51536
51101
  ]));
51537
51102
  }
51538
51103
  },
51539
51104
  {
51540
- id: "focus.tasks.unarchive",
51105
+ id: "focus.time-blocks.partial-update",
51541
51106
  family: "focus",
51542
- resource: "tasks",
51543
- action: "unarchive",
51544
- title: "Unarchive Tasks",
51545
- description: "Unarchive Tasks.",
51107
+ resource: "time-blocks",
51108
+ action: "partial-update",
51109
+ title: "Partial Update Time Blocks",
51110
+ description: "Partial Update Time Blocks.",
51546
51111
  safety: "update",
51547
51112
  destructive: false,
51548
51113
  cli: {
51549
- group: ["tasks"],
51550
- command: "unarchive",
51114
+ group: ["time-blocks"],
51115
+ command: "partial-update",
51551
51116
  interactive: "default"
51552
51117
  },
51553
- mcp: { entityTool: "tasks" },
51554
- inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
51118
+ mcp: { entityTool: "time-blocks" },
51119
+ inputSchema: /* @__PURE__ */ looseObject({
51120
+ payload: /* @__PURE__ */ looseObject({
51121
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51122
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51123
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51124
+ start: /* @__PURE__ */ optional$1(apiDateTimeString),
51125
+ task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51126
+ }),
51127
+ task_id: /* @__PURE__ */ number$2(),
51128
+ time_block_id: /* @__PURE__ */ number$2()
51129
+ }),
51555
51130
  execute: (input, { client }) => {
51556
51131
  const data = input;
51557
- return client.runGeneratedRequest("unarchiveTask", () => callGeneratedRequest(unarchiveTask, [
51132
+ return client.runGeneratedRequest("partialUpdateTimeBlockWithOrg", () => callGeneratedRequest(partialUpdateTimeBlockWithOrg, [
51558
51133
  client.httpClient,
51559
51134
  client.organizationId,
51560
51135
  client.workspaceIdNumber,
51561
51136
  data.task_id,
51137
+ data.time_block_id,
51138
+ data.payload ?? data.data ?? data,
51562
51139
  void 0
51563
51140
  ]));
51564
51141
  }
51565
51142
  },
51566
51143
  {
51567
- id: "focus.tasks.update",
51144
+ id: "focus.time-blocks.restore",
51568
51145
  family: "focus",
51569
- resource: "tasks",
51570
- action: "update",
51571
- title: "Update Tasks",
51572
- description: "Update Tasks.",
51146
+ resource: "time-blocks",
51147
+ action: "restore",
51148
+ title: "Restore Time Blocks",
51149
+ description: "Restore Time Blocks.",
51573
51150
  safety: "update",
51574
51151
  destructive: false,
51575
51152
  cli: {
51576
- group: ["tasks"],
51577
- command: "update",
51153
+ group: ["time-blocks"],
51154
+ command: "restore",
51578
51155
  interactive: "default"
51579
51156
  },
51580
- mcp: { entityTool: "tasks" },
51581
- inputSchema: taskUpdateSchema,
51157
+ mcp: { entityTool: "time-blocks" },
51158
+ inputSchema: /* @__PURE__ */ looseObject({
51159
+ task_id: /* @__PURE__ */ number$2(),
51160
+ time_block_id: /* @__PURE__ */ number$2()
51161
+ }),
51582
51162
  execute: (input, { client }) => {
51583
51163
  const data = input;
51584
- return client.updateTask(data.task_id, data.payload);
51164
+ return client.runGeneratedRequest("restoreTimeBlockWithOrg", () => callGeneratedRequest(restoreTimeBlockWithOrg, [
51165
+ client.httpClient,
51166
+ client.organizationId,
51167
+ client.workspaceIdNumber,
51168
+ data.task_id,
51169
+ data.time_block_id,
51170
+ void 0
51171
+ ]));
51585
51172
  }
51586
51173
  },
51587
51174
  {
51588
- id: "focus.tasks.full-update",
51175
+ id: "focus.time-blocks.unarchive",
51589
51176
  family: "focus",
51590
- resource: "tasks",
51591
- action: "full-update",
51592
- title: "Full Update Tasks",
51593
- description: "Full Update Tasks.",
51177
+ resource: "time-blocks",
51178
+ action: "unarchive",
51179
+ title: "Unarchive Time Blocks",
51180
+ description: "Unarchive Time Blocks.",
51594
51181
  safety: "update",
51595
51182
  destructive: false,
51596
51183
  cli: {
51597
- group: ["tasks"],
51598
- command: "full-update",
51599
- interactive: "hidden"
51184
+ group: ["time-blocks"],
51185
+ command: "unarchive",
51186
+ interactive: "default"
51600
51187
  },
51601
- mcp: { entityTool: "tasks" },
51188
+ mcp: { entityTool: "time-blocks" },
51602
51189
  inputSchema: /* @__PURE__ */ looseObject({
51603
- payload: /* @__PURE__ */ looseObject({
51604
- name: /* @__PURE__ */ string$1(),
51605
- status_id: /* @__PURE__ */ number$2(),
51606
- auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51607
- color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51608
- custom_fields: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
51609
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51610
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
51611
- estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
51612
- estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51613
- notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51614
- outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51615
- parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51616
- pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51617
- priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
51618
- "none",
51619
- "low",
51620
- "medium",
51621
- "high"
51622
- ])),
51623
- private: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51624
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51625
- recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51626
- rollup_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51627
- start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
51628
- }),
51629
- task_id: /* @__PURE__ */ number$2()
51190
+ task_id: /* @__PURE__ */ number$2(),
51191
+ time_block_id: /* @__PURE__ */ number$2()
51630
51192
  }),
51631
51193
  execute: (input, { client }) => {
51632
51194
  const data = input;
51633
- return client.runGeneratedRequest("updateTask", () => callGeneratedRequest(updateTask, [
51195
+ return client.runGeneratedRequest("unarchiveTimeBlockWithOrg", () => callGeneratedRequest(unarchiveTimeBlockWithOrg, [
51634
51196
  client.httpClient,
51635
51197
  client.organizationId,
51636
51198
  client.workspaceIdNumber,
51637
51199
  data.task_id,
51638
- data.payload ?? data.data ?? data,
51200
+ data.time_block_id,
51639
51201
  void 0
51640
51202
  ]));
51641
51203
  }
51642
51204
  },
51643
51205
  {
51644
- id: "focus.tasks.update-calendar-range",
51206
+ id: "focus.time-blocks.update",
51645
51207
  family: "focus",
51646
- resource: "tasks",
51647
- action: "update-calendar-range",
51648
- title: "Update Calendar Range Tasks",
51649
- description: "Update Calendar Range Tasks.",
51208
+ resource: "time-blocks",
51209
+ action: "update",
51210
+ title: "Update Time Blocks",
51211
+ description: "Update Time Blocks.",
51650
51212
  safety: "update",
51651
51213
  destructive: false,
51652
51214
  cli: {
51653
- group: ["tasks"],
51654
- command: "update-calendar-range",
51215
+ group: ["time-blocks"],
51216
+ command: "update",
51655
51217
  interactive: "default"
51656
51218
  },
51657
- mcp: { entityTool: "tasks" },
51219
+ mcp: { entityTool: "time-blocks" },
51658
51220
  inputSchema: /* @__PURE__ */ looseObject({
51659
- date_from: /* @__PURE__ */ string$1(),
51660
- date_to: /* @__PURE__ */ string$1(),
51661
- skip_provider_refresh: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51221
+ payload: /* @__PURE__ */ looseObject({
51222
+ start: apiDateTimeString,
51223
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51224
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51225
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51226
+ }),
51227
+ task_id: /* @__PURE__ */ number$2(),
51228
+ time_block_id: /* @__PURE__ */ number$2()
51662
51229
  }),
51663
51230
  execute: (input, { client }) => {
51664
51231
  const data = input;
51665
- return client.runGeneratedRequest("putTasksCalendarRange", () => callGeneratedRequest(putTasksCalendarRange, [
51232
+ return client.runGeneratedRequest("updateTimeBlockWithOrg", () => callGeneratedRequest(updateTimeBlockWithOrg, [
51666
51233
  client.httpClient,
51667
51234
  client.organizationId,
51668
51235
  client.workspaceIdNumber,
51669
- data.date_from,
51670
- data.date_to,
51671
- data.skip_provider_refresh,
51236
+ data.task_id,
51237
+ data.time_block_id,
51238
+ data.payload ?? data.data ?? data,
51672
51239
  void 0
51673
51240
  ]));
51674
51241
  }
@@ -51888,8 +51455,7 @@ const generatedFocusOperations = [
51888
51455
  required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
51889
51456
  "project",
51890
51457
  "task",
51891
- "description",
51892
- "tags"
51458
+ "description"
51893
51459
  ]) })),
51894
51460
  disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51895
51461
  }) }),
@@ -51919,7 +51485,6 @@ const generatedFocusOperations = [
51919
51485
  },
51920
51486
  mcp: { entityTool: "time-entries" },
51921
51487
  inputSchema: /* @__PURE__ */ looseObject({
51922
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51923
51488
  payload: /* @__PURE__ */ looseObject({
51924
51489
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
51925
51490
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -51930,12 +51495,11 @@ const generatedFocusOperations = [
51930
51495
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51931
51496
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51932
51497
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51933
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51934
51498
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
51499
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51935
51500
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51936
51501
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51937
51502
  }),
51938
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51939
51503
  task_id: /* @__PURE__ */ number$2()
51940
51504
  }),
51941
51505
  execute: (input, { client }) => {
@@ -51946,8 +51510,6 @@ const generatedFocusOperations = [
51946
51510
  client.workspaceIdNumber,
51947
51511
  data.task_id,
51948
51512
  data.payload ?? data.data ?? data,
51949
- data.from_recurring_task_id,
51950
- data.return_occurrence,
51951
51513
  void 0
51952
51514
  ]));
51953
51515
  }
@@ -51967,25 +51529,21 @@ const generatedFocusOperations = [
51967
51529
  interactive: "default"
51968
51530
  },
51969
51531
  mcp: { entityTool: "time-entries" },
51970
- inputSchema: /* @__PURE__ */ looseObject({
51971
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51972
- payload: /* @__PURE__ */ looseObject({
51973
- type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
51974
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51975
- calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51976
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51977
- duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51978
- planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51979
- planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51980
- planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51981
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51982
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51983
- start: /* @__PURE__ */ optional$1(apiDateTimeString),
51984
- tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51985
- user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51986
- }),
51987
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
51988
- }),
51532
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
51533
+ type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
51534
+ billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
51535
+ calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51536
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51537
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51538
+ planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51539
+ planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51540
+ planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
51541
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51542
+ start: /* @__PURE__ */ optional$1(apiDateTimeString),
51543
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
51544
+ tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
51545
+ user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
51546
+ }) }),
51989
51547
  execute: (input, { client }) => {
51990
51548
  const data = input;
51991
51549
  return client.runGeneratedRequest("createTasklessTimeEntryWithOrg", () => callGeneratedRequest(createTasklessTimeEntryWithOrg, [
@@ -51993,8 +51551,6 @@ const generatedFocusOperations = [
51993
51551
  client.organizationId,
51994
51552
  client.workspaceIdNumber,
51995
51553
  data.payload ?? data.data ?? data,
51996
- data.from_recurring_task_id,
51997
- data.return_occurrence,
51998
51554
  void 0
51999
51555
  ]));
52000
51556
  }
@@ -52014,11 +51570,7 @@ const generatedFocusOperations = [
52014
51570
  interactive: "default"
52015
51571
  },
52016
51572
  mcp: { entityTool: "time-entries" },
52017
- inputSchema: /* @__PURE__ */ looseObject({
52018
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52019
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52020
- time_entry_id: /* @__PURE__ */ number$2()
52021
- }),
51573
+ inputSchema: /* @__PURE__ */ looseObject({ time_entry_id: /* @__PURE__ */ number$2() }),
52022
51574
  execute: (input, { client }) => {
52023
51575
  const data = input;
52024
51576
  return client.runGeneratedRequest("deleteTimeEntryWithOrg", () => callGeneratedRequest(deleteTimeEntryWithOrg, [
@@ -52026,8 +51578,6 @@ const generatedFocusOperations = [
52026
51578
  client.organizationId,
52027
51579
  client.workspaceIdNumber,
52028
51580
  data.time_entry_id,
52029
- data.from_recurring_task_id,
52030
- data.return_occurrence,
52031
51581
  void 0
52032
51582
  ]));
52033
51583
  }
@@ -52108,7 +51658,6 @@ const generatedFocusOperations = [
52108
51658
  expand_calendar_event: /* @__PURE__ */ unknown$1(),
52109
51659
  include_taskless: /* @__PURE__ */ unknown$1(),
52110
51660
  order_by: /* @__PURE__ */ unknown$1(),
52111
- project_id: /* @__PURE__ */ number$2(),
52112
51661
  status_id: /* @__PURE__ */ number$2(),
52113
51662
  task_id: /* @__PURE__ */ number$2(),
52114
51663
  type: /* @__PURE__ */ unknown$1()
@@ -52124,6 +51673,33 @@ const generatedFocusOperations = [
52124
51673
  ]));
52125
51674
  }
52126
51675
  },
51676
+ {
51677
+ id: "focus.time-entries.get-stream-time-entries-time-block-ids",
51678
+ family: "focus",
51679
+ resource: "time-entries",
51680
+ action: "get-stream-time-entries-time-block-ids",
51681
+ title: "Get Stream Time Entries Time Block Ids Time Entries",
51682
+ description: "Get Stream Time Entries Time Block Ids Time Entries.",
51683
+ safety: "read",
51684
+ destructive: false,
51685
+ cli: {
51686
+ group: ["time-entries"],
51687
+ command: "get-stream-time-entries-time-block-ids",
51688
+ interactive: "available"
51689
+ },
51690
+ mcp: { entityTool: "time-entries" },
51691
+ inputSchema: /* @__PURE__ */ looseObject({ time_block_id: /* @__PURE__ */ number$2() }),
51692
+ execute: (input, { client }) => {
51693
+ const data = input;
51694
+ return client.runGeneratedRequest("getStreamTimeEntriesTimeBlockIdsWithOrg", () => callGeneratedRequest(getStreamTimeEntriesTimeBlockIdsWithOrg, [
51695
+ client.httpClient,
51696
+ client.organizationId,
51697
+ client.workspaceIdNumber,
51698
+ data,
51699
+ void 0
51700
+ ]));
51701
+ }
51702
+ },
52127
51703
  {
52128
51704
  id: "focus.time-entries.get-task-time-entries",
52129
51705
  family: "focus",
@@ -52145,6 +51721,7 @@ const generatedFocusOperations = [
52145
51721
  page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52146
51722
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
52147
51723
  task_id: /* @__PURE__ */ number$2(),
51724
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52148
51725
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
52149
51726
  }),
52150
51727
  execute: (input, { client }) => {
@@ -52257,14 +51834,12 @@ const generatedFocusOperations = [
52257
51834
  },
52258
51835
  mcp: { entityTool: "time-entries" },
52259
51836
  inputSchema: /* @__PURE__ */ looseObject({
52260
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52261
51837
  payload: /* @__PURE__ */ looseObject({
52262
51838
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52263
51839
  duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52264
51840
  reset_billable_to_default: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52265
51841
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]))
52266
51842
  }),
52267
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52268
51843
  time_entry_id: /* @__PURE__ */ number$2()
52269
51844
  }),
52270
51845
  execute: (input, { client }) => {
@@ -52275,8 +51850,6 @@ const generatedFocusOperations = [
52275
51850
  client.workspaceIdNumber,
52276
51851
  data.time_entry_id,
52277
51852
  data.payload ?? data.data ?? data,
52278
- data.from_recurring_task_id,
52279
- data.return_occurrence,
52280
51853
  void 0
52281
51854
  ]));
52282
51855
  }
@@ -52534,7 +52107,6 @@ const generatedFocusOperations = [
52534
52107
  },
52535
52108
  mcp: { entityTool: "time-entries" },
52536
52109
  inputSchema: /* @__PURE__ */ looseObject({
52537
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52538
52110
  payload: /* @__PURE__ */ looseObject({
52539
52111
  type: /* @__PURE__ */ picklist$1(["activity", "break"]),
52540
52112
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -52544,9 +52116,9 @@ const generatedFocusOperations = [
52544
52116
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52545
52117
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
52546
52118
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
52119
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52547
52120
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
52548
52121
  }),
52549
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
52550
52122
  time_entry_id: /* @__PURE__ */ number$2()
52551
52123
  }),
52552
52124
  execute: (input, { client }) => {
@@ -52557,8 +52129,6 @@ const generatedFocusOperations = [
52557
52129
  client.workspaceIdNumber,
52558
52130
  data.time_entry_id,
52559
52131
  data.payload ?? data.data ?? data,
52560
- data.from_recurring_task_id,
52561
- data.return_occurrence,
52562
52132
  void 0
52563
52133
  ]));
52564
52134
  }
@@ -52623,118 +52193,6 @@ const generatedFocusOperations = [
52623
52193
  ]));
52624
52194
  }
52625
52195
  },
52626
- {
52627
- id: "focus.time-off.get-timeoff-balance-changes-for-user",
52628
- family: "focus",
52629
- resource: "time-off",
52630
- action: "get-timeoff-balance-changes-for-user",
52631
- title: "Get Timeoff Balance Changes For User Time Off",
52632
- description: "Get Timeoff Balance Changes For User Time Off.",
52633
- safety: "read",
52634
- destructive: false,
52635
- cli: {
52636
- group: ["time-off"],
52637
- command: "get-timeoff-balance-changes-for-user",
52638
- interactive: "hidden"
52639
- },
52640
- mcp: { entityTool: "time-off" },
52641
- inputSchema: /* @__PURE__ */ looseObject({
52642
- category_id: /* @__PURE__ */ number$2(),
52643
- page: /* @__PURE__ */ number$2(),
52644
- rows: /* @__PURE__ */ unknown$1(),
52645
- user_id: /* @__PURE__ */ number$2(),
52646
- year: /* @__PURE__ */ unknown$1()
52647
- }),
52648
- execute: (input, { client }) => {
52649
- const data = input;
52650
- return client.runGeneratedRequest("getTimeoffBalanceChangesForUserClassic", () => callGeneratedRequest(getTimeoffBalanceChangesForUserClassic, [
52651
- client.httpClient,
52652
- client.organizationId,
52653
- data.user_id,
52654
- data,
52655
- void 0
52656
- ]));
52657
- }
52658
- },
52659
- {
52660
- id: "focus.time-off.get-timeoff-balances-for-user",
52661
- family: "focus",
52662
- resource: "time-off",
52663
- action: "get-timeoff-balances-for-user",
52664
- title: "Get Timeoff Balances For User Time Off",
52665
- description: "Get Timeoff Balances For User Time Off.",
52666
- safety: "read",
52667
- destructive: false,
52668
- cli: {
52669
- group: ["time-off"],
52670
- command: "get-timeoff-balances-for-user",
52671
- interactive: "available"
52672
- },
52673
- mcp: { entityTool: "time-off" },
52674
- inputSchema: /* @__PURE__ */ looseObject({
52675
- category_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
52676
- date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
52677
- user_id: /* @__PURE__ */ number$2()
52678
- }),
52679
- execute: (input, { client }) => {
52680
- const data = input;
52681
- return client.runGeneratedRequest("getTimeoffBalancesForUser", () => callGeneratedRequest(getTimeoffBalancesForUser, [
52682
- client.httpClient,
52683
- client.organizationId,
52684
- data.user_id,
52685
- data,
52686
- void 0
52687
- ]));
52688
- }
52689
- },
52690
- {
52691
- id: "focus.time-off.get-timeoff-categories",
52692
- family: "focus",
52693
- resource: "time-off",
52694
- action: "get-timeoff-categories",
52695
- title: "Get Timeoff Categories Time Off",
52696
- description: "Get Timeoff Categories Time Off.",
52697
- safety: "read",
52698
- destructive: false,
52699
- cli: {
52700
- group: ["time-off"],
52701
- command: "get-timeoff-categories",
52702
- interactive: "hidden"
52703
- },
52704
- mcp: { entityTool: "time-off" },
52705
- inputSchema: /* @__PURE__ */ looseObject({}),
52706
- execute: (_input, { client }) => client.runGeneratedRequest("getTimeoffCategories", () => callGeneratedRequest(getTimeoffCategories, [
52707
- client.httpClient,
52708
- client.organizationId,
52709
- void 0
52710
- ]))
52711
- },
52712
- {
52713
- id: "focus.time-off.get-timeoff-category",
52714
- family: "focus",
52715
- resource: "time-off",
52716
- action: "get-timeoff-category",
52717
- title: "Get Timeoff Category Time Off",
52718
- description: "Get Timeoff Category Time Off.",
52719
- safety: "read",
52720
- destructive: false,
52721
- cli: {
52722
- group: ["time-off"],
52723
- command: "get-timeoff-category",
52724
- interactive: "available"
52725
- },
52726
- mcp: { entityTool: "time-off" },
52727
- inputSchema: /* @__PURE__ */ looseObject({ category_id: /* @__PURE__ */ number$2() }),
52728
- execute: (input, { client }) => {
52729
- const data = input;
52730
- return client.runGeneratedRequest("getTimeoffCategory", () => callGeneratedRequest(getTimeoffCategory, [
52731
- client.httpClient,
52732
- client.organizationId,
52733
- data.category_id,
52734
- void 0
52735
- ]));
52736
- }
52737
- },
52738
52196
  {
52739
52197
  id: "focus.time-off.get-timeoff-for-user",
52740
52198
  family: "focus",
@@ -53186,40 +52644,6 @@ const generatedFocusOperations = [
53186
52644
  ]));
53187
52645
  }
53188
52646
  },
53189
- {
53190
- id: "focus.timesheets.get-status-counts",
53191
- family: "focus",
53192
- resource: "timesheets",
53193
- action: "get-status-counts",
53194
- title: "Get Status Counts Timesheets",
53195
- description: "Get Status Counts Timesheets.",
53196
- safety: "read",
53197
- destructive: false,
53198
- cli: {
53199
- group: ["timesheets"],
53200
- command: "get-status-counts",
53201
- interactive: "hidden"
53202
- },
53203
- mcp: { entityTool: "timesheets" },
53204
- inputSchema: /* @__PURE__ */ looseObject({
53205
- approver_user_account_ids: /* @__PURE__ */ unknown$1(),
53206
- date_from: /* @__PURE__ */ unknown$1(),
53207
- date_to: /* @__PURE__ */ unknown$1(),
53208
- setup_id: /* @__PURE__ */ number$2(),
53209
- team_ids: /* @__PURE__ */ unknown$1(),
53210
- user_account_ids: /* @__PURE__ */ unknown$1()
53211
- }),
53212
- execute: (input, { client }) => {
53213
- const data = input;
53214
- return client.runGeneratedRequest("getTimesheetStatusCounts", () => callGeneratedRequest(getTimesheetStatusCounts, [
53215
- client.httpClient,
53216
- client.organizationId,
53217
- client.workspaceIdNumber,
53218
- data,
53219
- void 0
53220
- ]));
53221
- }
53222
- },
53223
52647
  {
53224
52648
  id: "focus.timesheets.remove-timesheet-flag",
53225
52649
  family: "focus",
@@ -53769,33 +53193,6 @@ const generatedFocusOperations = [
53769
53193
  ]));
53770
53194
  }
53771
53195
  },
53772
- {
53773
- id: "focus.track-team-invites.post",
53774
- family: "focus",
53775
- resource: "track-team-invites",
53776
- action: "post",
53777
- title: "Post Track Team Invites",
53778
- description: "Post Track Team Invites.",
53779
- safety: "create",
53780
- destructive: false,
53781
- cli: {
53782
- group: ["track-team-invites"],
53783
- command: "post",
53784
- interactive: "default"
53785
- },
53786
- mcp: { entityTool: "track-team-invites" },
53787
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ organization_user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
53788
- execute: (input, { client }) => {
53789
- const data = input;
53790
- return client.runGeneratedRequest("postTrackTeamInvites", () => callGeneratedRequest(postTrackTeamInvites, [
53791
- client.httpClient,
53792
- client.organizationId,
53793
- client.workspaceIdNumber,
53794
- data.payload ?? data.data ?? data,
53795
- void 0
53796
- ]));
53797
- }
53798
- },
53799
53196
  {
53800
53197
  id: "focus.users.list",
53801
53198
  family: "focus",
@@ -53817,56 +53214,6 @@ const generatedFocusOperations = [
53817
53214
  return client.listOrgUsers(data);
53818
53215
  }
53819
53216
  },
53820
- {
53821
- id: "focus.users.settings-email-unsubscribe",
53822
- family: "focus",
53823
- resource: "users",
53824
- action: "settings-email-unsubscribe",
53825
- title: "Settings Email Unsubscribe Users",
53826
- description: "Settings Email Unsubscribe Users.",
53827
- safety: "update",
53828
- destructive: false,
53829
- cli: {
53830
- group: ["users", "settings"],
53831
- command: "email-unsubscribe",
53832
- interactive: "default"
53833
- },
53834
- mcp: { entityTool: "users" },
53835
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
53836
- execute: (input, { client }) => {
53837
- const data = input;
53838
- return client.runGeneratedRequest("emailUnsubscribe", () => callGeneratedRequest(emailUnsubscribe, [
53839
- client.httpClient,
53840
- data.token,
53841
- void 0
53842
- ]));
53843
- }
53844
- },
53845
- {
53846
- id: "focus.users.settings-email-unsubscribe-page",
53847
- family: "focus",
53848
- resource: "users",
53849
- action: "settings-email-unsubscribe-page",
53850
- title: "Settings Email Unsubscribe Page Users",
53851
- description: "Settings Email Unsubscribe Page Users.",
53852
- safety: "read",
53853
- destructive: false,
53854
- cli: {
53855
- group: ["users", "settings"],
53856
- command: "email-unsubscribe-page",
53857
- interactive: "available"
53858
- },
53859
- mcp: { entityTool: "users" },
53860
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
53861
- execute: (input, { client }) => {
53862
- const data = input;
53863
- return client.runGeneratedRequest("emailUnsubscribePage", () => callGeneratedRequest(emailUnsubscribePage, [
53864
- client.httpClient,
53865
- data.token,
53866
- void 0
53867
- ]));
53868
- }
53869
- },
53870
53217
  {
53871
53218
  id: "focus.users.settings-list",
53872
53219
  family: "focus",
@@ -53928,9 +53275,6 @@ const generatedFocusOperations = [
53928
53275
  has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53929
53276
  import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53930
53277
  new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53931
- notify_project_alerts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53932
- notify_project_member_added: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53933
- notify_task_assigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53934
53278
  onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53935
53279
  onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
53936
53280
  onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -54129,38 +53473,6 @@ const generatedFocusOperations = [
54129
53473
  ]));
54130
53474
  }
54131
53475
  },
54132
- {
54133
- id: "focus.working-hours.replace-working-hours-for-users",
54134
- family: "focus",
54135
- resource: "working-hours",
54136
- action: "replace-working-hours-for-users",
54137
- title: "Replace Working Hours For Users Working Hours",
54138
- description: "Replace Working Hours For Users Working Hours.",
54139
- safety: "update",
54140
- destructive: false,
54141
- cli: {
54142
- group: ["working-hours"],
54143
- command: "replace-working-hours-for-users",
54144
- interactive: "default"
54145
- },
54146
- mcp: { entityTool: "working-hours" },
54147
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
54148
- schedule: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
54149
- working_hours: /* @__PURE__ */ number$2(),
54150
- weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
54151
- })),
54152
- user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2())
54153
- }) }),
54154
- execute: (input, { client }) => {
54155
- const data = input;
54156
- return client.runGeneratedRequest("replaceWorkingHoursForUsers", () => callGeneratedRequest(replaceWorkingHoursForUsers, [
54157
- client.httpClient,
54158
- client.organizationId,
54159
- data.payload ?? data.data ?? data,
54160
- void 0
54161
- ]));
54162
- }
54163
- },
54164
53476
  {
54165
53477
  id: "focus.working-hours.update-for-user",
54166
53478
  family: "focus",
@@ -55505,7 +54817,7 @@ function registerWorkspaceTools(server) {
55505
54817
  //#region src/package-version.ts
55506
54818
  function mcpPackageVersion() {
55507
54819
  try {
55508
- return "1.11.95";
54820
+ return "1.11.96";
55509
54821
  } catch {
55510
54822
  return "unknown";
55511
54823
  }
@@ -55680,7 +54992,7 @@ import_main.default.config({
55680
54992
  quiet: true,
55681
54993
  ignore: ["MISSING_ENV_FILE"]
55682
54994
  });
55683
- const packageVersion = "1.11.95";
54995
+ const packageVersion = "1.11.96";
55684
54996
  function resolvePublicUrls() {
55685
54997
  return {
55686
54998
  focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
@@ -55745,4 +55057,4 @@ function bootstrapServer(options = {}) {
55745
55057
  //#endregion
55746
55058
  export { getProductAnalyticsDistinctId as a, resolvePublicSentryDsn as c, captureToolInvocation as i, shutdownProductAnalytics as l, runMcpCli as n, initProductAnalytics as o, PUBLIC_SENTRY_PRIVACY_OPTIONS as r, resolveProductAnalyticsDistinctId as s, bootstrapServer as t };
55747
55059
 
55748
- //# sourceMappingURL=src-BWlws-dv.js.map
55060
+ //# sourceMappingURL=src-DhF9Z1Zq.js.map