@togglhq/cli 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.
@@ -5495,10 +5495,6 @@ function _joinExpects$1(values$1, separator) {
5495
5495
  */
5496
5496
  const ISO_DATE_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
5497
5497
  /**
5498
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time regex.
5499
- */
5500
- 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;
5501
- /**
5502
5498
  * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
5503
5499
  * space as a date/time separator and an optional space before the UTC offset.
5504
5500
  */
@@ -5552,22 +5548,6 @@ function isoDate$1(message$1) {
5552
5548
  };
5553
5549
  }
5554
5550
  /* @__NO_SIDE_EFFECTS__ */
5555
- function isoDateTime$1(message$1) {
5556
- return {
5557
- kind: "validation",
5558
- type: "iso_date_time",
5559
- reference: isoDateTime$1,
5560
- async: false,
5561
- expects: null,
5562
- requirement: ISO_DATE_TIME_REGEX$1,
5563
- message: message$1,
5564
- "~run"(dataset, config$1) {
5565
- if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue$1(this, "date-time", dataset, config$1);
5566
- return dataset;
5567
- }
5568
- };
5569
- }
5570
- /* @__NO_SIDE_EFFECTS__ */
5571
5551
  function isoTimestamp(message$1) {
5572
5552
  return {
5573
5553
  kind: "validation",
@@ -7274,7 +7254,6 @@ const ProjectLiteSchema = /* @__PURE__ */ object({
7274
7254
  name: /* @__PURE__ */ string(),
7275
7255
  permissions: /* @__PURE__ */ array(/* @__PURE__ */ string()),
7276
7256
  archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7277
- billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7278
7257
  client: /* @__PURE__ */ optional(ClientLiteSchema),
7279
7258
  color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7280
7259
  custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
@@ -7361,7 +7340,6 @@ const TaskSchema = /* @__PURE__ */ object({
7361
7340
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7362
7341
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7363
7342
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7364
- is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
7365
7343
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
7366
7344
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7367
7345
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -7423,7 +7401,6 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
7423
7401
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7424
7402
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7425
7403
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7426
- is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
7427
7404
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
7428
7405
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7429
7406
  parent: /* @__PURE__ */ optional(TaskSchema),
@@ -7584,8 +7561,6 @@ const TimeEntrySchema = /* @__PURE__ */ object({
7584
7561
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7585
7562
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7586
7563
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7587
- pattern_generated: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternGenerated is the response-facing derivative of GeneratedByTaskID: true when the entry was materialized by a series pattern."))),
7588
- pattern_managed: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternManaged reports that the pattern engine owns this entry. Server-owned; present in responses, never bindable from a payload."))),
7589
7564
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7590
7565
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7591
7566
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -7600,21 +7575,21 @@ const TimeEntrySchema = /* @__PURE__ */ object({
7600
7575
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
7601
7576
  });
7602
7577
  const DtoAggregationFilterRequestSchema = /* @__PURE__ */ object({
7603
- aggregation: /* @__PURE__ */ optional(/* @__PURE__ */ object({
7578
+ aggregation: /* @__PURE__ */ object({
7604
7579
  function: /* @__PURE__ */ string(),
7605
7580
  property: /* @__PURE__ */ string()
7606
- })),
7607
- conditions: /* @__PURE__ */ optional(/* @__PURE__ */ lazy(() => DtoAggregationsFilterRequestSchema)),
7608
- operator: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7609
- property: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7610
- value: /* @__PURE__ */ optional(/* @__PURE__ */ unknown())
7581
+ }),
7582
+ conditions: /* @__PURE__ */ lazy(() => DtoAggregationsFilterRequestSchema),
7583
+ operator: /* @__PURE__ */ string(),
7584
+ property: /* @__PURE__ */ string(),
7585
+ value: /* @__PURE__ */ unknown()
7611
7586
  });
7612
7587
  const DtoAggregationsFilterRequestSchema = /* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoAggregationFilterRequestSchema));
7613
7588
  const DtoFilterRequestSchema = /* @__PURE__ */ object({
7614
- conditions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoFilterRequestSchema))),
7615
- operator: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7616
- property: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7617
- value: /* @__PURE__ */ optional(/* @__PURE__ */ unknown())
7589
+ conditions: /* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoFilterRequestSchema)),
7590
+ operator: /* @__PURE__ */ string(),
7591
+ property: /* @__PURE__ */ string(),
7592
+ value: /* @__PURE__ */ unknown()
7618
7593
  });
7619
7594
  const ClientSchema = /* @__PURE__ */ object({
7620
7595
  active: /* @__PURE__ */ boolean(),
@@ -7671,10 +7646,8 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
7671
7646
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7672
7647
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7673
7648
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7674
- filtered_task_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7675
7649
  fixed_fee: /* @__PURE__ */ optional(ProjectFixedFeeSchema),
7676
7650
  parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7677
- picker_parent_group_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7678
7651
  rate: /* @__PURE__ */ optional(EffectiveProjectRatesSummarySchema),
7679
7652
  recurring_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7680
7653
  rollover_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RolloverMins is the cumulative under/over budget carried into this instance from earlier instances in its recurring chain, in minutes. Positive = surplus (prior periods went under estimate, time carries forward); negative = debt (prior periods went over). Only populated for recurring instances; nil for templates and standalone projects. See service.HydrateRollover for the per-instance contribution rules driven by RolloverMode (expire / carry_over / carry_all)."))),
@@ -7730,8 +7703,6 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
7730
7703
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7731
7704
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7732
7705
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7733
- pattern_generated: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternGenerated is the response-facing derivative of GeneratedByTaskID: true when the entry was materialized by a series pattern."))),
7734
- pattern_managed: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternManaged reports that the pattern engine owns this entry. Server-owned; present in responses, never bindable from a payload."))),
7735
7706
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7736
7707
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7737
7708
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -7904,6 +7875,8 @@ const TaskCreatePayloadSchema = /* @__PURE__ */ object({
7904
7875
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7905
7876
  estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
7906
7877
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
7878
+ integration_ext_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7879
+ integration_source: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7907
7880
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7908
7881
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7909
7882
  pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -7960,7 +7933,6 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
7960
7933
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7961
7934
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7962
7935
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7963
- repeat_planned_time_entry_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RepeatPlannedTimeEntryID is the declared initial-selection input that will start a series from an existing planned entry (PR 11). Any supplied value — an ID or JSON null — is rejected until then; the contract is declared in docs/recurring-pr2a-additive-schema.md. json.RawMessage keeps absent distinguishable from explicit null on decode and is omitted on marshal when never set."))),
7964
7936
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7965
7937
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7966
7938
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -7997,7 +7969,6 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
7997
7969
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7998
7970
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7999
7971
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
8000
- repeat_planned_time_entry_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RepeatPlannedTimeEntryID is the declared initial-selection input that will start a series from an existing planned entry (PR 11). Any supplied value — an ID or JSON null — is rejected until then; the contract is declared in docs/recurring-pr2a-additive-schema.md. json.RawMessage keeps absent distinguishable from explicit null on decode and is omitted on marshal when never set."))),
8001
7972
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
8002
7973
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
8003
7974
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -8018,6 +7989,7 @@ const TimeEntryBulkCreatePayloadSchema = /* @__PURE__ */ object({
8018
7989
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
8019
7990
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
8020
7991
  task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7992
+ time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8021
7993
  tracked_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
8022
7994
  user_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
8023
7995
  });
@@ -8046,7 +8018,8 @@ const TimeEntryStartTrackingPayloadSchema = /* @__PURE__ */ object({
8046
8018
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8047
8019
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
8048
8020
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
8049
- task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
8021
+ task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8022
+ time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
8050
8023
  });
8051
8024
  const TimeEntryStopTrackingPayloadSchema = /* @__PURE__ */ object({ end: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()) });
8052
8025
  //#endregion
@@ -9920,7 +9893,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
9920
9893
  })
9921
9894
  }).json();
9922
9895
  }
9923
- async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
9896
+ async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
9924
9897
  const response = await httpClient.get(`organizations/${organization_id}/users`, {
9925
9898
  signal,
9926
9899
  searchParams: buildSearchParams$2({
@@ -9941,7 +9914,6 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
9941
9914
  include_rates,
9942
9915
  pinned_ids,
9943
9916
  has_group,
9944
- track_without_focus,
9945
9917
  cf_filter,
9946
9918
  include_custom_fields,
9947
9919
  include_calendar_integration
@@ -10043,20 +10015,10 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
10043
10015
  }
10044
10016
  //#endregion
10045
10017
  //#region ../focus-queries/dist/projects/requests.ts
10046
- async function getProjectsClassic(httpClient, organization_id, workspace_id, { include_task_counts, include_picker_parent_group_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
10018
+ async function getProjectsClassic(httpClient, organization_id, workspace_id, { page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
10047
10019
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
10048
10020
  signal,
10049
10021
  searchParams: buildSearchParams$2({
10050
- include_task_counts,
10051
- include_picker_parent_group_counts,
10052
- task_archived,
10053
- task_recurring,
10054
- task_state,
10055
- task_source,
10056
- task_assignee_user_id,
10057
- task_assignee_team_id,
10058
- task_include_unassigned,
10059
- task_name,
10060
10022
  page,
10061
10023
  per_page,
10062
10024
  order_by,
@@ -10306,7 +10268,7 @@ async function restoreStatuses(httpClient, workspace_id, status_id, signal) {
10306
10268
  }
10307
10269
  //#endregion
10308
10270
  //#region ../focus-queries/dist/tasks/requests.ts
10309
- async function getTasksClassic(httpClient, organization_id, workspace_id, { page, per_page, with_entries, pinned, order_by, status_id, toggl_user_id, name, has_time_entries, has_dates, private: private_, archived, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_rates, include_assignees, include_parent_matches, disable_aggregations, cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
10271
+ async function getTasksClassic(httpClient, organization_id, workspace_id, { page, per_page, with_entries, pinned, order_by, status_id, toggl_user_id, name, has_time_entries, has_time_blocks, has_dates, private: private_, archived, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, timeblock_start_from, timeblock_start_until, time_block_id, time_block_completed, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_rates, include_assignees, include_parent_matches, disable_aggregations, cf_filter } = {}, signal) {
10310
10272
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
10311
10273
  signal,
10312
10274
  searchParams: buildSearchParams$2({
@@ -10319,6 +10281,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
10319
10281
  toggl_user_id,
10320
10282
  name,
10321
10283
  has_time_entries,
10284
+ has_time_blocks,
10322
10285
  has_dates,
10323
10286
  private: private_,
10324
10287
  archived,
@@ -10341,6 +10304,10 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
10341
10304
  priority,
10342
10305
  is_priority,
10343
10306
  state,
10307
+ timeblock_start_from,
10308
+ timeblock_start_until,
10309
+ time_block_id,
10310
+ time_block_completed,
10344
10311
  team_id,
10345
10312
  assignee_team_id,
10346
10313
  assignee_user_id,
@@ -10352,11 +10319,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
10352
10319
  include_assignees,
10353
10320
  include_parent_matches,
10354
10321
  disable_aggregations,
10355
- cf_filter,
10356
- recurring_occurrences_after,
10357
- max_recurring_occurrences_after,
10358
- recurring_task_read,
10359
- include_projected_occurrences
10322
+ cf_filter
10360
10323
  })
10361
10324
  }).json();
10362
10325
  }
@@ -10431,46 +10394,16 @@ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id,
10431
10394
  })
10432
10395
  }).json();
10433
10396
  }
10434
- async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, skip_provider_refresh, signal) {
10397
+ async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, signal) {
10435
10398
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
10436
10399
  signal,
10437
10400
  searchParams: buildSearchParams$2({
10438
10401
  date_from,
10439
- date_to,
10440
- skip_provider_refresh
10441
- })
10442
- }).json();
10443
- }
10444
- async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, search, only_me, page, per_page } = {}, signal) {
10445
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
10446
- signal,
10447
- searchParams: buildSearchParams$2({
10448
- project_id,
10449
- without_project,
10450
- pinned_only,
10451
- include_unassigned,
10452
- search,
10453
- only_me,
10454
- page,
10455
- per_page
10456
- })
10457
- }).json();
10458
- }
10459
- async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, search, only_me, page, per_page } = {}, signal) {
10460
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
10461
- signal,
10462
- searchParams: buildSearchParams$2({
10463
- project_id,
10464
- without_project,
10465
- include_unassigned,
10466
- search,
10467
- only_me,
10468
- page,
10469
- per_page
10402
+ date_to
10470
10403
  })
10471
10404
  }).json();
10472
10405
  }
10473
- 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) {
10406
+ 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) {
10474
10407
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
10475
10408
  signal,
10476
10409
  searchParams: buildSearchParams$2({
@@ -10486,15 +10419,11 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
10486
10419
  assignee_team_id,
10487
10420
  assignee_user_id,
10488
10421
  tag_id,
10489
- include_assignees,
10490
- recurring_occurrences_after,
10491
- max_recurring_occurrences_after,
10492
- recurring_task_read,
10493
- include_projected_occurrences
10422
+ include_assignees
10494
10423
  })
10495
10424
  }).json();
10496
10425
  }
10497
- 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) {
10426
+ 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) {
10498
10427
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
10499
10428
  signal,
10500
10429
  searchParams: buildSearchParams$2({
@@ -10506,6 +10435,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
10506
10435
  name,
10507
10436
  include_parent_matches,
10508
10437
  has_time_entries,
10438
+ has_time_blocks,
10509
10439
  has_dates,
10510
10440
  private: private_,
10511
10441
  archived,
@@ -10528,6 +10458,8 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
10528
10458
  priority,
10529
10459
  is_priority,
10530
10460
  state,
10461
+ time_block_id,
10462
+ time_block_completed,
10531
10463
  team_id,
10532
10464
  assignee_team_id,
10533
10465
  assignee_user_id,
@@ -10536,11 +10468,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
10536
10468
  recurring_task_ids,
10537
10469
  client_id,
10538
10470
  include_assignees,
10539
- cf_filter,
10540
- recurring_occurrences_after,
10541
- max_recurring_occurrences_after,
10542
- recurring_task_read,
10543
- include_projected_occurrences
10471
+ cf_filter
10544
10472
  })
10545
10473
  }).json();
10546
10474
  }
@@ -10595,12 +10523,6 @@ async function getTaskWithChildrenClassic(httpClient, organization_id, workspace
10595
10523
  })
10596
10524
  }).json();
10597
10525
  }
10598
- async function createRecurringOccurrence(httpClient, organization_id, workspace_id, task_id, return_occurrence, signal) {
10599
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/occurrences`, {
10600
- signal,
10601
- searchParams: buildSearchParams$2({ return_occurrence })
10602
- }).json();
10603
- }
10604
10526
  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) {
10605
10527
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
10606
10528
  signal,
@@ -10626,7 +10548,7 @@ async function unarchiveTask(httpClient, organization_id, workspace_id, task_id,
10626
10548
  }
10627
10549
  //#endregion
10628
10550
  //#region ../focus-queries/dist/time-entries/requests.ts
10629
- async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived } = {}, signal) {
10551
+ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived, time_block_id } = {}, signal) {
10630
10552
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
10631
10553
  signal,
10632
10554
  searchParams: buildSearchParams$2({
@@ -10634,28 +10556,21 @@ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, wor
10634
10556
  per_page,
10635
10557
  order_by,
10636
10558
  type,
10637
- archived
10559
+ archived,
10560
+ time_block_id
10638
10561
  })
10639
10562
  }).json();
10640
10563
  }
10641
- async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, return_occurrence, signal) {
10564
+ async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
10642
10565
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
10643
10566
  signal,
10644
- json: data,
10645
- searchParams: buildSearchParams$2({
10646
- from_recurring_task_id,
10647
- return_occurrence
10648
- })
10567
+ json: data
10649
10568
  }).json();
10650
10569
  }
10651
- async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, from_recurring_task_id, return_occurrence, signal) {
10570
+ async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
10652
10571
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
10653
10572
  signal,
10654
- json: data,
10655
- searchParams: buildSearchParams$2({
10656
- from_recurring_task_id,
10657
- return_occurrence
10658
- })
10573
+ json: data
10659
10574
  }).json();
10660
10575
  }
10661
10576
  async function getBatchTimeEntriesWithOrg(httpClient, organization_id, workspace_id, { ids }, signal) {
@@ -10706,7 +10621,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
10706
10621
  json: data
10707
10622
  }).json();
10708
10623
  }
10709
- 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) {
10624
+ 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) {
10710
10625
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
10711
10626
  signal,
10712
10627
  searchParams: buildSearchParams$2({
@@ -10714,7 +10629,6 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
10714
10629
  date_to,
10715
10630
  task_id,
10716
10631
  status_id,
10717
- project_id,
10718
10632
  type,
10719
10633
  order_by,
10720
10634
  archived,
@@ -10729,36 +10643,28 @@ async function syncTimeEntry(httpClient, organization_id, workspace_id, client_u
10729
10643
  json: data
10730
10644
  }).json();
10731
10645
  }
10646
+ async function getStreamTimeEntriesTimeBlockIdsWithOrg(httpClient, organization_id, workspace_id, { time_block_id }, signal) {
10647
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/time-block-ids/stream`, {
10648
+ signal,
10649
+ searchParams: buildSearchParams$2({ time_block_id })
10650
+ }).json();
10651
+ }
10732
10652
  async function getTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
10733
10653
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
10734
10654
  }
10735
- async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
10655
+ async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
10736
10656
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
10737
10657
  signal,
10738
- json: data,
10739
- searchParams: buildSearchParams$2({
10740
- from_recurring_task_id,
10741
- return_occurrence
10742
- })
10658
+ json: data
10743
10659
  }).json();
10744
10660
  }
10745
- async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, from_recurring_task_id, return_occurrence, signal) {
10746
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
10747
- signal,
10748
- searchParams: buildSearchParams$2({
10749
- from_recurring_task_id,
10750
- return_occurrence
10751
- })
10752
- }).json();
10661
+ async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
10662
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
10753
10663
  }
10754
- async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
10664
+ async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
10755
10665
  return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
10756
10666
  signal,
10757
- json: data,
10758
- searchParams: buildSearchParams$2({
10759
- from_recurring_task_id,
10760
- return_occurrence
10761
- })
10667
+ json: data
10762
10668
  }).json();
10763
10669
  }
10764
10670
  async function archiveTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
@@ -10873,7 +10779,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10873
10779
  ]))
10874
10780
  });
10875
10781
  //#endregion
10876
- //#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
10782
+ //#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
10877
10783
  async function getInvitations(httpClient, signal) {
10878
10784
  return (await httpClient.get(`invitations`, { signal })).json();
10879
10785
  }
@@ -10890,7 +10796,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10890
10796
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10891
10797
  }
10892
10798
  //#endregion
10893
- //#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
10799
+ //#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
10894
10800
  function buildSearchParams(params, flattenArrays = false) {
10895
10801
  const searchParams = new URLSearchParams();
10896
10802
  Object.entries(params).forEach(([key, value]) => {
@@ -10902,7 +10808,7 @@ function buildSearchParams(params, flattenArrays = false) {
10902
10808
  return searchParams;
10903
10809
  }
10904
10810
  //#endregion
10905
- //#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
10811
+ //#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
10906
10812
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10907
10813
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10908
10814
  }
@@ -10916,7 +10822,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10916
10822
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10917
10823
  }
10918
10824
  //#endregion
10919
- //#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
10825
+ //#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
10920
10826
  async function getWorkspaces(httpClient, organization_id, signal) {
10921
10827
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10922
10828
  }
@@ -10925,7 +10831,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
10925
10831
  }
10926
10832
  const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
10927
10833
  working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
10928
- starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(24))),
10834
+ starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
10929
10835
  weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
10930
10836
  });
10931
10837
  const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
@@ -10936,7 +10842,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
10936
10842
  });
10937
10843
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
10938
10844
  //#endregion
10939
- //#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
10845
+ //#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
10940
10846
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
10941
10847
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
10942
10848
  signal,
@@ -10947,12 +10853,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
10947
10853
  })).json();
10948
10854
  }
10949
10855
  //#endregion
10950
- //#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
10856
+ //#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
10951
10857
  async function getStatus(httpClient, signal) {
10952
10858
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
10953
10859
  }
10954
10860
  //#endregion
10955
- //#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
10861
+ //#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
10956
10862
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
10957
10863
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
10958
10864
  signal,
@@ -10980,7 +10886,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
10980
10886
  return response.json();
10981
10887
  }
10982
10888
  //#endregion
10983
- //#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
10889
+ //#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
10984
10890
  async function getMyWorkingHours(httpClient, organization_id, signal) {
10985
10891
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
10986
10892
  }
@@ -14557,15 +14463,13 @@ async function getWorkspaceAttachmentStorage(httpClient, organization_id, worksp
14557
14463
  }
14558
14464
  //#endregion
14559
14465
  //#region ../focus-queries/dist/audit-log/requests.ts
14560
- 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) {
14466
+ async function getOrganizationAuditLog(httpClient, organization_id, from, to, { workspace_id, entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
14561
14467
  return await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
14562
14468
  signal,
14563
14469
  searchParams: buildSearchParams$2({
14564
14470
  workspace_id,
14565
14471
  entity_type,
14566
14472
  entity_id,
14567
- project_id,
14568
- custom_field_id,
14569
14473
  action,
14570
14474
  user_id,
14571
14475
  page_size,
@@ -14574,14 +14478,12 @@ async function getOrganizationAuditLog(httpClient, organization_id, from, to, {
14574
14478
  })
14575
14479
  }).json();
14576
14480
  }
14577
- 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) {
14481
+ async function getAuditLog(httpClient, organization_id, workspace_id, from, to, { entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
14578
14482
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
14579
14483
  signal,
14580
14484
  searchParams: buildSearchParams$2({
14581
14485
  entity_type,
14582
14486
  entity_id,
14583
- project_id,
14584
- custom_field_id,
14585
14487
  action,
14586
14488
  user_id,
14587
14489
  page_size,
@@ -14734,14 +14636,13 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
14734
14636
  }
14735
14637
  //#endregion
14736
14638
  //#region ../focus-queries/dist/capacities/requests.ts
14737
- 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) {
14639
+ 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) {
14738
14640
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
14739
14641
  signal,
14740
14642
  searchParams: buildSearchParams$2({
14643
+ user_id,
14741
14644
  start_date,
14742
14645
  end_date,
14743
- user_id,
14744
- team_id,
14745
14646
  private: private_,
14746
14647
  task_source,
14747
14648
  unit,
@@ -14801,15 +14702,6 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
14801
14702
  async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
14802
14703
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
14803
14704
  }
14804
- async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
14805
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
14806
- }
14807
- async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
14808
- return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
14809
- signal,
14810
- json: data
14811
- }).json();
14812
- }
14813
14705
  async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
14814
14706
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
14815
14707
  signal,
@@ -14849,61 +14741,6 @@ async function patchUserCustomFieldValues(httpClient, organization_id, workspace
14849
14741
  }).json();
14850
14742
  }
14851
14743
  //#endregion
14852
- //#region ../focus-queries/dist/designations/requests.ts
14853
- async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { name, page, per_page, order_by } = {}, signal) {
14854
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
14855
- signal,
14856
- searchParams: buildSearchParams$2({
14857
- name,
14858
- page,
14859
- per_page,
14860
- order_by
14861
- })
14862
- }).json();
14863
- }
14864
- async function createWorkspaceDesignation(httpClient, organization_id, workspace_id, data, signal) {
14865
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
14866
- signal,
14867
- json: data
14868
- }).json();
14869
- }
14870
- async function bulkCreateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
14871
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
14872
- signal,
14873
- json: data
14874
- }).json();
14875
- }
14876
- async function bulkDeleteWorkspaceDesignations(httpClient, organization_id, workspace_id, ids, all_or_none, signal) {
14877
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
14878
- signal,
14879
- searchParams: buildSearchParams$2({
14880
- ids,
14881
- all_or_none
14882
- })
14883
- }).json();
14884
- }
14885
- async function bulkUpdateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
14886
- return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
14887
- signal,
14888
- json: data
14889
- }).json();
14890
- }
14891
- async function updateWorkspaceDesignationMembers(httpClient, organization_id, workspace_id, data, signal) {
14892
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/members`, {
14893
- signal,
14894
- json: data
14895
- }).json();
14896
- }
14897
- async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
14898
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal }).json();
14899
- }
14900
- async function updateWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, data, signal) {
14901
- return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, {
14902
- signal,
14903
- json: data
14904
- }).json();
14905
- }
14906
- //#endregion
14907
14744
  //#region ../focus-queries/dist/goals/requests.ts
14908
14745
  async function createGoal(httpClient, organization_id, workspace_id, data, signal) {
14909
14746
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals`, {
@@ -15128,7 +14965,7 @@ async function restoreMilestone(httpClient, workspace_id, milestone_id, signal)
15128
14965
  }
15129
14966
  //#endregion
15130
14967
  //#region ../focus-queries/dist/project-groups/requests.ts
15131
- 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) {
14968
+ 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) {
15132
14969
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
15133
14970
  signal,
15134
14971
  searchParams: buildSearchParams$2({
@@ -15154,7 +14991,6 @@ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id
15154
14991
  user_id,
15155
14992
  only_me,
15156
14993
  include_drafts,
15157
- include_recurring_series,
15158
14994
  cf_filter
15159
14995
  })
15160
14996
  }).json();
@@ -15173,6 +15009,9 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
15173
15009
  json: data
15174
15010
  }).json();
15175
15011
  }
15012
+ async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
15013
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
15014
+ }
15176
15015
  async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
15177
15016
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
15178
15017
  }
@@ -15198,37 +15037,6 @@ async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id
15198
15037
  }).json();
15199
15038
  }
15200
15039
  //#endregion
15201
- //#region ../focus-queries/dist/publicsharedreports/requests.ts
15202
- async function openPublicSharedReport(httpClient, token, signal) {
15203
- return await httpClient.get(`shared/${token}`, { signal }).json();
15204
- }
15205
- async function profitabilityPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
15206
- return await httpClient.post(`shared/${token}/profitability`, {
15207
- signal,
15208
- json: data,
15209
- searchParams: buildSearchParams$2({
15210
- response_format,
15211
- include_dicts
15212
- })
15213
- }).json();
15214
- }
15215
- async function queryPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
15216
- return await httpClient.post(`shared/${token}/query`, {
15217
- signal,
15218
- json: data,
15219
- searchParams: buildSearchParams$2({
15220
- response_format,
15221
- include_dicts
15222
- })
15223
- }).json();
15224
- }
15225
- async function workloadPublicSharedReport(httpClient, token, data, signal) {
15226
- return await httpClient.post(`shared/${token}/workload`, {
15227
- signal,
15228
- json: data
15229
- }).json();
15230
- }
15231
- //#endregion
15232
15040
  //#region ../focus-queries/dist/rates/requests.ts
15233
15041
  async function getProjectRatesSummary(httpClient, organization_id, workspace_id, { page, rows, order_by, search } = {}, signal) {
15234
15042
  const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/rates`, {
@@ -15390,7 +15198,7 @@ async function updateASavedView(httpClient, workspace_id, id, data, signal) {
15390
15198
  }
15391
15199
  //#endregion
15392
15200
  //#region ../focus-queries/dist/search/requests.ts
15393
- 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) {
15201
+ 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) {
15394
15202
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
15395
15203
  signal,
15396
15204
  searchParams: buildSearchParams$2({
@@ -15398,7 +15206,6 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
15398
15206
  per_group,
15399
15207
  assignee_user_id,
15400
15208
  assignee_team_id,
15401
- include_unassigned,
15402
15209
  project_id,
15403
15210
  task_id,
15404
15211
  include_drafts,
@@ -15443,18 +15250,6 @@ async function getSharedReportsSharedWithMe(httpClient, workspace_id, signal) {
15443
15250
  async function getSharedReportForViewer(httpClient, workspace_id, id, signal) {
15444
15251
  return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
15445
15252
  }
15446
- async function unshareSharedReport(httpClient, workspace_id, id, signal) {
15447
- return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
15448
- }
15449
- async function getSharedReportDates(httpClient, workspace_id, id, signal) {
15450
- return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}/dates`, { signal }).json();
15451
- }
15452
- async function setSharedReportDatesLock(httpClient, workspace_id, id, data, signal) {
15453
- return await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/dates`, {
15454
- signal,
15455
- json: data
15456
- }).json();
15457
- }
15458
15253
  async function addSharedReportGrants(httpClient, workspace_id, id, data, signal) {
15459
15254
  return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
15460
15255
  signal,
@@ -15464,21 +15259,6 @@ async function addSharedReportGrants(httpClient, workspace_id, id, data, signal)
15464
15259
  async function revokeSharedReportGrant(httpClient, workspace_id, id, grant_id, signal) {
15465
15260
  return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/grants/${grant_id}`, { signal }).json();
15466
15261
  }
15467
- async function mintSharedReportLink(httpClient, workspace_id, id, data, signal) {
15468
- return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
15469
- signal,
15470
- json: data
15471
- }).json();
15472
- }
15473
- async function revokeSharedReportLink(httpClient, workspace_id, id, signal) {
15474
- return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/link`, { signal }).json();
15475
- }
15476
- async function rotateSharedReportLink(httpClient, workspace_id, id, data, signal) {
15477
- return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
15478
- signal,
15479
- json: data
15480
- }).json();
15481
- }
15482
15262
  //#endregion
15483
15263
  //#region ../focus-queries/dist/subscriptions/requests.ts
15484
15264
  async function getCurrentSubscription(httpClient, organization_id, signal) {
@@ -15535,10 +15315,9 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
15535
15315
  }
15536
15316
  //#endregion
15537
15317
  //#region ../focus-queries/dist/task-groups/requests.ts
15538
- 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) {
15318
+ 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) {
15539
15319
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
15540
15320
  signal,
15541
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
15542
15321
  searchParams: buildSearchParams$2({
15543
15322
  project_id,
15544
15323
  source,
@@ -15567,18 +15346,13 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
15567
15346
  min_days,
15568
15347
  include_drafts,
15569
15348
  cf_filter,
15570
- user_cf_filter,
15571
- recurring_occurrences_after,
15572
- max_recurring_occurrences_after,
15573
- recurring_task_read,
15574
- include_projected_occurrences
15349
+ user_cf_filter
15575
15350
  })
15576
15351
  }).json();
15577
15352
  }
15578
- 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) {
15353
+ 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) {
15579
15354
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
15580
15355
  signal,
15581
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
15582
15356
  searchParams: buildSearchParams$2({
15583
15357
  team_id,
15584
15358
  project_id,
@@ -15607,18 +15381,13 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
15607
15381
  min_days,
15608
15382
  include_drafts,
15609
15383
  cf_filter,
15610
- user_cf_filter,
15611
- recurring_occurrences_after,
15612
- max_recurring_occurrences_after,
15613
- recurring_task_read,
15614
- include_projected_occurrences
15384
+ user_cf_filter
15615
15385
  })
15616
15386
  }).json();
15617
15387
  }
15618
- 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) {
15388
+ 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) {
15619
15389
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
15620
15390
  signal,
15621
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
15622
15391
  searchParams: buildSearchParams$2({
15623
15392
  source,
15624
15393
  priority,
@@ -15648,10 +15417,6 @@ async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, g
15648
15417
  include_drafts,
15649
15418
  cf_filter,
15650
15419
  user_cf_filter,
15651
- recurring_occurrences_after,
15652
- max_recurring_occurrences_after,
15653
- recurring_task_read,
15654
- include_projected_occurrences,
15655
15420
  page,
15656
15421
  per_page,
15657
15422
  order_by
@@ -15679,6 +15444,104 @@ async function getProjectSuggestionsForMultipleTasks(httpClient, organization_id
15679
15444
  }).json();
15680
15445
  }
15681
15446
  //#endregion
15447
+ //#region ../focus-queries/dist/time-blocks/requests.ts
15448
+ async function getTaskTimeBlocksWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, archived } = {}, signal) {
15449
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
15450
+ signal,
15451
+ searchParams: buildSearchParams$2({
15452
+ page,
15453
+ per_page,
15454
+ order_by,
15455
+ archived
15456
+ })
15457
+ }).json();
15458
+ }
15459
+ async function createTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
15460
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
15461
+ signal,
15462
+ json: data
15463
+ }).json();
15464
+ }
15465
+ async function getTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15466
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, { signal }).json();
15467
+ }
15468
+ async function updateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
15469
+ return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
15470
+ signal,
15471
+ json: data
15472
+ }).json();
15473
+ }
15474
+ async function deleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, outbound_sync, signal) {
15475
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
15476
+ signal,
15477
+ searchParams: buildSearchParams$2({ outbound_sync })
15478
+ }).json();
15479
+ }
15480
+ async function partialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
15481
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
15482
+ signal,
15483
+ json: data
15484
+ }).json();
15485
+ }
15486
+ async function archiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15487
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/archive`, { signal }).json();
15488
+ }
15489
+ async function restoreTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15490
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/restore`, { signal }).json();
15491
+ }
15492
+ async function unarchiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15493
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/unarchive`, { signal }).json();
15494
+ }
15495
+ async function getTimeBlocksRangeWithOrgClassic(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, page, per_page, archived, order_by }, signal) {
15496
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks`, {
15497
+ signal,
15498
+ searchParams: buildSearchParams$2({
15499
+ date_from,
15500
+ date_to,
15501
+ task_id,
15502
+ status_id,
15503
+ page,
15504
+ per_page,
15505
+ archived,
15506
+ order_by
15507
+ })
15508
+ }).json();
15509
+ }
15510
+ async function bulkCreateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
15511
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
15512
+ signal,
15513
+ json: data
15514
+ }).json();
15515
+ }
15516
+ async function bulkDeleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, ids, outbound_sync, signal) {
15517
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
15518
+ signal,
15519
+ searchParams: buildSearchParams$2({
15520
+ ids,
15521
+ outbound_sync
15522
+ })
15523
+ }).json();
15524
+ }
15525
+ async function bulkPartialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
15526
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
15527
+ signal,
15528
+ json: data
15529
+ }).json();
15530
+ }
15531
+ async function getTimeBlocksRangeStreamWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, archived, order_by }, signal) {
15532
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/stream`, {
15533
+ signal,
15534
+ searchParams: buildSearchParams$2({
15535
+ date_from,
15536
+ date_to,
15537
+ task_id,
15538
+ status_id,
15539
+ archived,
15540
+ order_by
15541
+ })
15542
+ }).json();
15543
+ }
15544
+ //#endregion
15682
15545
  //#region ../focus-queries/dist/time-entry-constraints/requests.ts
15683
15546
  async function getTimeEntryConstraints(httpClient, workspace_id, signal) {
15684
15547
  return await httpClient.get(`workspaces/${workspace_id}/time-entry-constraints`, { signal }).json();
@@ -15716,12 +15579,6 @@ async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, star
15716
15579
  })
15717
15580
  }).json();
15718
15581
  }
15719
- async function getTimeoffCategories(httpClient, organization_id, signal) {
15720
- return await httpClient.get(`organizations/${organization_id}/timeoff/categories`, { signal }).json();
15721
- }
15722
- async function getTimeoffCategory(httpClient, organization_id, category_id, signal) {
15723
- return await httpClient.get(`organizations/${organization_id}/timeoff/categories/${category_id}`, { signal }).json();
15724
- }
15725
15582
  async function getTimeoffForUser(httpClient, organization_id, user_id, { from, to }, signal) {
15726
15583
  return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}`, {
15727
15584
  signal,
@@ -15749,40 +15606,20 @@ async function deleteTimeoffForUser(httpClient, organization_id, user_id, data,
15749
15606
  json: data
15750
15607
  }).json();
15751
15608
  }
15752
- async function getTimeoffBalancesForUser(httpClient, organization_id, user_id, { category_id, date } = {}, signal) {
15753
- return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances`, {
15609
+ //#endregion
15610
+ //#region ../focus-queries/dist/timesheet-setups/requests.ts
15611
+ async function getTimesheetSetups(httpClient, organization_id, workspace_id, { include_discontinued, user_account_id, approver_user_account_id } = {}, signal) {
15612
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
15754
15613
  signal,
15755
15614
  searchParams: buildSearchParams$2({
15756
- category_id,
15757
- date
15615
+ include_discontinued,
15616
+ user_account_id,
15617
+ approver_user_account_id
15758
15618
  })
15759
15619
  }).json();
15760
15620
  }
15761
- async function getTimeoffBalanceChangesForUserClassic(httpClient, organization_id, user_id, { category_id, year, page, rows }, signal) {
15762
- return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances/changes`, {
15763
- signal,
15764
- searchParams: buildSearchParams$2({
15765
- category_id,
15766
- year,
15767
- page,
15768
- rows
15769
- })
15770
- }).json();
15771
- }
15772
- //#endregion
15773
- //#region ../focus-queries/dist/timesheet-setups/requests.ts
15774
- async function getTimesheetSetups(httpClient, organization_id, workspace_id, { include_discontinued, user_account_id, approver_user_account_id } = {}, signal) {
15775
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
15776
- signal,
15777
- searchParams: buildSearchParams$2({
15778
- include_discontinued,
15779
- user_account_id,
15780
- approver_user_account_id
15781
- })
15782
- }).json();
15783
- }
15784
- async function createTimesheetSetup(httpClient, organization_id, workspace_id, data, signal) {
15785
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
15621
+ async function createTimesheetSetup(httpClient, organization_id, workspace_id, data, signal) {
15622
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
15786
15623
  signal,
15787
15624
  json: data
15788
15625
  }).json();
@@ -15869,19 +15706,6 @@ async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id,
15869
15706
  json: data
15870
15707
  }).json();
15871
15708
  }
15872
- async function getTimesheetStatusCounts(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids }, signal) {
15873
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
15874
- signal,
15875
- searchParams: buildSearchParams$2({
15876
- date_from,
15877
- date_to,
15878
- setup_id,
15879
- user_account_ids,
15880
- approver_user_account_ids,
15881
- team_ids
15882
- })
15883
- }).json();
15884
- }
15885
15709
  async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
15886
15710
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal }).json();
15887
15711
  }
@@ -15925,21 +15749,7 @@ async function withdrawTimesheet(httpClient, organization_id, workspace_id, setu
15925
15749
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal }).json();
15926
15750
  }
15927
15751
  //#endregion
15928
- //#region ../focus-queries/dist/track-team-invites/requests.ts
15929
- async function postTrackTeamInvites(httpClient, organization_id, workspace_id, data, signal) {
15930
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
15931
- signal,
15932
- json: data
15933
- }).json();
15934
- }
15935
- //#endregion
15936
15752
  //#region ../focus-queries/dist/user-settings/requests.ts
15937
- async function emailUnsubscribePage(httpClient, token, signal) {
15938
- return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
15939
- }
15940
- async function emailUnsubscribe(httpClient, token, signal) {
15941
- return await httpClient.post(`email/unsubscribe/${token}`, { signal }).json();
15942
- }
15943
15753
  async function getUserSettings(httpClient, signal) {
15944
15754
  return await httpClient.get(`users/me/settings`, { signal }).json();
15945
15755
  }
@@ -15967,12 +15777,6 @@ async function serviceVersion(httpClient, signal) {
15967
15777
  }
15968
15778
  //#endregion
15969
15779
  //#region ../focus-queries/dist/working-hours/requests.ts
15970
- async function replaceWorkingHoursForUsers(httpClient, organization_id, data, signal) {
15971
- return await httpClient.put(`organizations/${organization_id}/workinghours/users`, {
15972
- signal,
15973
- json: data
15974
- }).json();
15975
- }
15976
15780
  async function getWorkingHoursForUser(httpClient, organization_id, user_id, signal) {
15977
15781
  return await httpClient.get(`organizations/${organization_id}/workinghours/users/${user_id}`, { signal }).json();
15978
15782
  }
@@ -16185,7 +15989,6 @@ const generatedFocusOperations = [
16185
15989
  mcp: { entityTool: "audit-log" },
16186
15990
  inputSchema: /* @__PURE__ */ looseObject({
16187
15991
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16188
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16189
15992
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16190
15993
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16191
15994
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -16193,7 +15996,6 @@ const generatedFocusOperations = [
16193
15996
  from: /* @__PURE__ */ string$1(),
16194
15997
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16195
15998
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16196
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16197
15999
  to: /* @__PURE__ */ string$1(),
16198
16000
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16199
16001
  workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -16227,7 +16029,6 @@ const generatedFocusOperations = [
16227
16029
  mcp: { entityTool: "audit-log" },
16228
16030
  inputSchema: /* @__PURE__ */ looseObject({
16229
16031
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16230
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16231
16032
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16232
16033
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16233
16034
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -16235,7 +16036,6 @@ const generatedFocusOperations = [
16235
16036
  from: /* @__PURE__ */ string$1(),
16236
16037
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16237
16038
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16238
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16239
16039
  to: /* @__PURE__ */ string$1(),
16240
16040
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
16241
16041
  }),
@@ -16275,7 +16075,6 @@ const generatedFocusOperations = [
16275
16075
  private_: /* @__PURE__ */ unknown$1(),
16276
16076
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16277
16077
  task_source: /* @__PURE__ */ unknown$1(),
16278
- team_id: /* @__PURE__ */ number$2(),
16279
16078
  unit: /* @__PURE__ */ unknown$1(),
16280
16079
  user_id: /* @__PURE__ */ number$2()
16281
16080
  }),
@@ -16525,6 +16324,8 @@ const generatedFocusOperations = [
16525
16324
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
16526
16325
  estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
16527
16326
  estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16327
+ integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16328
+ integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16528
16329
  notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16529
16330
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16530
16331
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -16558,6 +16359,8 @@ const generatedFocusOperations = [
16558
16359
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
16559
16360
  estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
16560
16361
  estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16362
+ integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16363
+ integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16561
16364
  notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16562
16365
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
16563
16366
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
@@ -16573,6 +16376,12 @@ const generatedFocusOperations = [
16573
16376
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
16574
16377
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
16575
16378
  }))),
16379
+ time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
16380
+ start: apiDateTimeString,
16381
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
16382
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16383
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
16384
+ }))),
16576
16385
  time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
16577
16386
  type: /* @__PURE__ */ picklist$1(["activity", "break"]),
16578
16387
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -16582,6 +16391,13 @@ const generatedFocusOperations = [
16582
16391
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16583
16392
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16584
16393
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
16394
+ time_block: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
16395
+ start: apiDateTimeString,
16396
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
16397
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16398
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
16399
+ })),
16400
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16585
16401
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
16586
16402
  }))
16587
16403
  }) }),
@@ -16699,33 +16515,6 @@ const generatedFocusOperations = [
16699
16515
  ]));
16700
16516
  }
16701
16517
  },
16702
- {
16703
- id: "focus.custom-fields.get-allowed-users",
16704
- family: "focus",
16705
- resource: "custom-fields",
16706
- action: "get-allowed-users",
16707
- title: "Get Allowed Users Custom Fields",
16708
- description: "Get Allowed Users Custom Fields.",
16709
- safety: "read",
16710
- destructive: false,
16711
- cli: {
16712
- group: ["custom-fields"],
16713
- command: "get-allowed-users",
16714
- interactive: "available"
16715
- },
16716
- mcp: { entityTool: "custom-fields" },
16717
- inputSchema: /* @__PURE__ */ looseObject({ custom_field_id: /* @__PURE__ */ number$2() }),
16718
- execute: (input, { client }) => {
16719
- const data = input;
16720
- return client.runGeneratedRequest("getCustomFieldAllowedUsers", () => callGeneratedRequest(getCustomFieldAllowedUsers, [
16721
- client.httpClient,
16722
- client.organizationId,
16723
- client.workspaceIdNumber,
16724
- data.custom_field_id,
16725
- void 0
16726
- ]));
16727
- }
16728
- },
16729
16518
  {
16730
16519
  id: "focus.custom-fields.list",
16731
16520
  family: "focus",
@@ -16895,37 +16684,6 @@ const generatedFocusOperations = [
16895
16684
  ]));
16896
16685
  }
16897
16686
  },
16898
- {
16899
- id: "focus.custom-fields.replace-custom-field-allowed-users",
16900
- family: "focus",
16901
- resource: "custom-fields",
16902
- action: "replace-custom-field-allowed-users",
16903
- title: "Replace Custom Field Allowed Users Custom Fields",
16904
- description: "Replace Custom Field Allowed Users Custom Fields.",
16905
- safety: "update",
16906
- destructive: false,
16907
- cli: {
16908
- group: ["custom-fields"],
16909
- command: "replace-custom-field-allowed-users",
16910
- interactive: "default"
16911
- },
16912
- mcp: { entityTool: "custom-fields" },
16913
- inputSchema: /* @__PURE__ */ looseObject({
16914
- custom_field_id: /* @__PURE__ */ number$2(),
16915
- payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) })
16916
- }),
16917
- execute: (input, { client }) => {
16918
- const data = input;
16919
- return client.runGeneratedRequest("replaceCustomFieldAllowedUsers", () => callGeneratedRequest(replaceCustomFieldAllowedUsers, [
16920
- client.httpClient,
16921
- client.organizationId,
16922
- client.workspaceIdNumber,
16923
- data.custom_field_id,
16924
- data.payload ?? data.data ?? data,
16925
- void 0
16926
- ]));
16927
- }
16928
- },
16929
16687
  {
16930
16688
  id: "focus.custom-fields.update",
16931
16689
  family: "focus",
@@ -17057,27 +16815,45 @@ const generatedFocusOperations = [
17057
16815
  }
17058
16816
  },
17059
16817
  {
17060
- id: "focus.designations.bulk-create-workspace",
16818
+ id: "focus.goals.create",
17061
16819
  family: "focus",
17062
- resource: "designations",
17063
- action: "bulk-create-workspace",
17064
- title: "Bulk Create Workspace Designations",
17065
- description: "Bulk Create Workspace Designations.",
16820
+ resource: "goals",
16821
+ action: "create",
16822
+ title: "Create Goals",
16823
+ description: "Create Goals.",
17066
16824
  safety: "create",
17067
16825
  destructive: false,
17068
16826
  cli: {
17069
- group: ["designations", "bulk"],
17070
- command: "create-workspace",
16827
+ group: ["goals"],
16828
+ command: "create",
17071
16829
  interactive: "default"
17072
16830
  },
17073
- mcp: { entityTool: "designations" },
17074
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
16831
+ mcp: { entityTool: "goals" },
16832
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
16833
+ billable: /* @__PURE__ */ boolean$1(),
16834
+ comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
16835
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16836
+ icon: /* @__PURE__ */ string$1(),
16837
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
17075
16838
  name: /* @__PURE__ */ string$1(),
17076
- member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17077
- })) }) }),
16839
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16840
+ recurrence: /* @__PURE__ */ picklist$1([
16841
+ "daily",
16842
+ "weekly",
16843
+ "daily_workdays",
16844
+ "monthly"
16845
+ ]),
16846
+ start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16847
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16848
+ target_seconds: /* @__PURE__ */ number$2(),
16849
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16850
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16851
+ client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
16852
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
16853
+ }) }),
17078
16854
  execute: (input, { client }) => {
17079
16855
  const data = input;
17080
- return client.runGeneratedRequest("bulkCreateWorkspaceDesignations", () => callGeneratedRequest(bulkCreateWorkspaceDesignations, [
16856
+ return client.runGeneratedRequest("createGoal", () => callGeneratedRequest(createGoal, [
17081
16857
  client.httpClient,
17082
16858
  client.organizationId,
17083
16859
  client.workspaceIdNumber,
@@ -17087,91 +16863,122 @@ const generatedFocusOperations = [
17087
16863
  }
17088
16864
  },
17089
16865
  {
17090
- id: "focus.designations.bulk-delete-workspace",
16866
+ id: "focus.goals.delete",
17091
16867
  family: "focus",
17092
- resource: "designations",
17093
- action: "bulk-delete-workspace",
17094
- title: "Bulk Delete Workspace Designations",
17095
- description: "Bulk Delete Workspace Designations.",
16868
+ resource: "goals",
16869
+ action: "delete",
16870
+ title: "Delete Goals",
16871
+ description: "Delete Goals.",
17096
16872
  safety: "delete",
17097
16873
  destructive: true,
17098
16874
  cli: {
17099
- group: ["designations", "bulk"],
17100
- command: "delete-workspace",
16875
+ group: ["goals"],
16876
+ command: "delete",
17101
16877
  interactive: "default"
17102
16878
  },
17103
- mcp: { entityTool: "designations" },
17104
- inputSchema: /* @__PURE__ */ looseObject({
17105
- all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17106
- ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2())
17107
- }),
16879
+ mcp: { entityTool: "goals" },
16880
+ inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
17108
16881
  execute: (input, { client }) => {
17109
16882
  const data = input;
17110
- return client.runGeneratedRequest("bulkDeleteWorkspaceDesignations", () => callGeneratedRequest(bulkDeleteWorkspaceDesignations, [
16883
+ return client.runGeneratedRequest("deleteGoal", () => callGeneratedRequest(deleteGoal, [
17111
16884
  client.httpClient,
17112
16885
  client.organizationId,
17113
16886
  client.workspaceIdNumber,
17114
- data.ids,
17115
- data.all_or_none,
16887
+ data.goal_id,
17116
16888
  void 0
17117
16889
  ]));
17118
16890
  }
17119
16891
  },
17120
16892
  {
17121
- id: "focus.designations.bulk-update-workspace",
16893
+ id: "focus.goals.get",
17122
16894
  family: "focus",
17123
- resource: "designations",
17124
- action: "bulk-update-workspace",
17125
- title: "Bulk Update Workspace Designations",
17126
- description: "Bulk Update Workspace Designations.",
17127
- safety: "update",
16895
+ resource: "goals",
16896
+ action: "get",
16897
+ title: "Get Goals",
16898
+ description: "Get Goals.",
16899
+ safety: "read",
17128
16900
  destructive: false,
17129
16901
  cli: {
17130
- group: ["designations", "bulk"],
17131
- command: "update-workspace",
17132
- interactive: "default"
16902
+ group: ["goals"],
16903
+ command: "get",
16904
+ interactive: "available"
17133
16905
  },
17134
- mcp: { entityTool: "designations" },
17135
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
17136
- designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
17137
- id: /* @__PURE__ */ number$2(),
17138
- name: /* @__PURE__ */ string$1()
17139
- })),
17140
- all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
17141
- }) }),
16906
+ mcp: { entityTool: "goals" },
16907
+ inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
17142
16908
  execute: (input, { client }) => {
17143
16909
  const data = input;
17144
- return client.runGeneratedRequest("bulkUpdateWorkspaceDesignations", () => callGeneratedRequest(bulkUpdateWorkspaceDesignations, [
16910
+ return client.runGeneratedRequest("getGoal", () => callGeneratedRequest(getGoal, [
17145
16911
  client.httpClient,
17146
16912
  client.organizationId,
17147
16913
  client.workspaceIdNumber,
17148
- data.payload ?? data.data ?? data,
16914
+ data.goal_id,
17149
16915
  void 0
17150
16916
  ]));
17151
16917
  }
17152
16918
  },
17153
16919
  {
17154
- id: "focus.designations.create-workspace",
16920
+ id: "focus.goals.list",
17155
16921
  family: "focus",
17156
- resource: "designations",
17157
- action: "create-workspace",
17158
- title: "Create Workspace Designations",
17159
- description: "Create Workspace Designations.",
17160
- safety: "create",
16922
+ resource: "goals",
16923
+ action: "list",
16924
+ title: "List Goals",
16925
+ description: "List Goals.",
16926
+ safety: "read",
16927
+ destructive: false,
16928
+ cli: {
16929
+ group: ["goals"],
16930
+ command: "list",
16931
+ interactive: "hidden"
16932
+ },
16933
+ mcp: { entityTool: "goals" },
16934
+ inputSchema: /* @__PURE__ */ looseObject({}),
16935
+ execute: (_input, { client }) => client.runGeneratedRequest("getGoals", () => callGeneratedRequest(getGoals, [
16936
+ client.httpClient,
16937
+ client.organizationId,
16938
+ client.workspaceIdNumber,
16939
+ void 0
16940
+ ]))
16941
+ },
16942
+ {
16943
+ id: "focus.goals.preview-goal-tracked-time",
16944
+ family: "focus",
16945
+ resource: "goals",
16946
+ action: "preview-goal-tracked-time",
16947
+ title: "Preview Goal Tracked Time Goals",
16948
+ description: "Preview Goal Tracked Time Goals.",
16949
+ safety: "update",
17161
16950
  destructive: false,
17162
16951
  cli: {
17163
- group: ["designations"],
17164
- command: "create-workspace",
16952
+ group: ["goals"],
16953
+ command: "preview-goal-tracked-time",
17165
16954
  interactive: "default"
17166
16955
  },
17167
- mcp: { entityTool: "designations" },
16956
+ mcp: { entityTool: "goals" },
17168
16957
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
16958
+ billable: /* @__PURE__ */ boolean$1(),
16959
+ comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
16960
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16961
+ icon: /* @__PURE__ */ string$1(),
16962
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
17169
16963
  name: /* @__PURE__ */ string$1(),
17170
- member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
16964
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16965
+ recurrence: /* @__PURE__ */ picklist$1([
16966
+ "daily",
16967
+ "weekly",
16968
+ "daily_workdays",
16969
+ "monthly"
16970
+ ]),
16971
+ start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16972
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16973
+ target_seconds: /* @__PURE__ */ number$2(),
16974
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16975
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16976
+ client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
16977
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
17171
16978
  }) }),
17172
16979
  execute: (input, { client }) => {
17173
16980
  const data = input;
17174
- return client.runGeneratedRequest("createWorkspaceDesignation", () => callGeneratedRequest(createWorkspaceDesignation, [
16981
+ return client.runGeneratedRequest("previewGoalTrackedTime", () => callGeneratedRequest(previewGoalTrackedTime, [
17175
16982
  client.httpClient,
17176
16983
  client.organizationId,
17177
16984
  client.workspaceIdNumber,
@@ -17181,173 +16988,108 @@ const generatedFocusOperations = [
17181
16988
  }
17182
16989
  },
17183
16990
  {
17184
- id: "focus.designations.delete-workspace",
16991
+ id: "focus.goals.reorder",
17185
16992
  family: "focus",
17186
- resource: "designations",
17187
- action: "delete-workspace",
17188
- title: "Delete Workspace Designations",
17189
- description: "Delete Workspace Designations.",
17190
- safety: "delete",
17191
- destructive: true,
16993
+ resource: "goals",
16994
+ action: "reorder",
16995
+ title: "Reorder Goals",
16996
+ description: "Reorder Goals.",
16997
+ safety: "update",
16998
+ destructive: false,
17192
16999
  cli: {
17193
- group: ["designations"],
17194
- command: "delete-workspace",
17000
+ group: ["goals"],
17001
+ command: "reorder",
17195
17002
  interactive: "default"
17196
17003
  },
17197
- mcp: { entityTool: "designations" },
17198
- inputSchema: /* @__PURE__ */ looseObject({ designation_id: /* @__PURE__ */ number$2() }),
17004
+ mcp: { entityTool: "goals" },
17005
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ goal_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
17199
17006
  execute: (input, { client }) => {
17200
17007
  const data = input;
17201
- return client.runGeneratedRequest("deleteWorkspaceDesignation", () => callGeneratedRequest(deleteWorkspaceDesignation, [
17008
+ return client.runGeneratedRequest("reorderGoals", () => callGeneratedRequest(reorderGoals, [
17202
17009
  client.httpClient,
17203
17010
  client.organizationId,
17204
17011
  client.workspaceIdNumber,
17205
- data.designation_id,
17012
+ data.payload ?? data.data ?? data,
17206
17013
  void 0
17207
17014
  ]));
17208
17015
  }
17209
17016
  },
17210
17017
  {
17211
- id: "focus.designations.get-workspace-designations",
17018
+ id: "focus.goals.update",
17212
17019
  family: "focus",
17213
- resource: "designations",
17214
- action: "get-workspace-designations",
17215
- title: "Get Workspace Designations Designations",
17216
- description: "Get Workspace Designations Designations.",
17217
- safety: "read",
17020
+ resource: "goals",
17021
+ action: "update",
17022
+ title: "Update Goals",
17023
+ description: "Update Goals.",
17024
+ safety: "update",
17218
17025
  destructive: false,
17219
17026
  cli: {
17220
- group: ["designations"],
17221
- command: "get-workspace-designations",
17222
- interactive: "hidden"
17027
+ group: ["goals"],
17028
+ command: "update",
17029
+ interactive: "default"
17223
17030
  },
17224
- mcp: { entityTool: "designations" },
17031
+ mcp: { entityTool: "goals" },
17225
17032
  inputSchema: /* @__PURE__ */ looseObject({
17226
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17227
- order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17228
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17229
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
17033
+ goal_id: /* @__PURE__ */ number$2(),
17034
+ payload: /* @__PURE__ */ looseObject({
17035
+ active: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17036
+ client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17037
+ comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17038
+ icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17039
+ name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17040
+ project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17041
+ recurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
17042
+ "daily",
17043
+ "weekly",
17044
+ "daily_workdays",
17045
+ "monthly"
17046
+ ])),
17047
+ start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17048
+ tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17049
+ target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17050
+ task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17051
+ weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17052
+ })
17230
17053
  }),
17231
17054
  execute: (input, { client }) => {
17232
17055
  const data = input;
17233
- return client.runGeneratedRequest("getWorkspaceDesignationsClassic", () => callGeneratedRequest(getWorkspaceDesignationsClassic, [
17056
+ return client.runGeneratedRequest("updateGoal", () => callGeneratedRequest(updateGoal, [
17234
17057
  client.httpClient,
17235
17058
  client.organizationId,
17236
17059
  client.workspaceIdNumber,
17237
- data,
17060
+ data.goal_id,
17061
+ data.payload ?? data.data ?? data,
17238
17062
  void 0
17239
17063
  ]));
17240
17064
  }
17241
17065
  },
17242
17066
  {
17243
- id: "focus.designations.update-workspace",
17067
+ id: "focus.milestones.create",
17244
17068
  family: "focus",
17245
- resource: "designations",
17246
- action: "update-workspace",
17247
- title: "Update Workspace Designations",
17248
- description: "Update Workspace Designations.",
17249
- safety: "update",
17250
- destructive: false,
17251
- cli: {
17252
- group: ["designations"],
17253
- command: "update-workspace",
17254
- interactive: "default"
17255
- },
17256
- mcp: { entityTool: "designations" },
17257
- inputSchema: /* @__PURE__ */ looseObject({
17258
- designation_id: /* @__PURE__ */ number$2(),
17259
- payload: /* @__PURE__ */ looseObject({ name: /* @__PURE__ */ string$1() })
17260
- }),
17261
- execute: (input, { client }) => {
17262
- const data = input;
17263
- return client.runGeneratedRequest("updateWorkspaceDesignation", () => callGeneratedRequest(updateWorkspaceDesignation, [
17264
- client.httpClient,
17265
- client.organizationId,
17266
- client.workspaceIdNumber,
17267
- data.designation_id,
17268
- data.payload ?? data.data ?? data,
17269
- void 0
17270
- ]));
17271
- }
17272
- },
17273
- {
17274
- id: "focus.designations.update-workspace-designation-members",
17275
- family: "focus",
17276
- resource: "designations",
17277
- action: "update-workspace-designation-members",
17278
- title: "Update Workspace Designation Members Designations",
17279
- description: "Update Workspace Designation Members Designations.",
17280
- safety: "update",
17281
- destructive: false,
17282
- cli: {
17283
- group: ["designations"],
17284
- command: "update-workspace-designation-members",
17285
- interactive: "default"
17286
- },
17287
- mcp: { entityTool: "designations" },
17288
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
17289
- add: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
17290
- designation_id: /* @__PURE__ */ number$2(),
17291
- toggl_user_id: /* @__PURE__ */ number$2()
17292
- }))),
17293
- remove: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
17294
- designation_id: /* @__PURE__ */ number$2(),
17295
- toggl_user_id: /* @__PURE__ */ number$2()
17296
- })))
17297
- }) }),
17298
- execute: (input, { client }) => {
17299
- const data = input;
17300
- return client.runGeneratedRequest("updateWorkspaceDesignationMembers", () => callGeneratedRequest(updateWorkspaceDesignationMembers, [
17301
- client.httpClient,
17302
- client.organizationId,
17303
- client.workspaceIdNumber,
17304
- data.payload ?? data.data ?? data,
17305
- void 0
17306
- ]));
17307
- }
17308
- },
17309
- {
17310
- id: "focus.goals.create",
17311
- family: "focus",
17312
- resource: "goals",
17069
+ resource: "milestones",
17313
17070
  action: "create",
17314
- title: "Create Goals",
17315
- description: "Create Goals.",
17071
+ title: "Create Milestones",
17072
+ description: "Create Milestones.",
17316
17073
  safety: "create",
17317
17074
  destructive: false,
17318
17075
  cli: {
17319
- group: ["goals"],
17076
+ group: ["milestones"],
17320
17077
  command: "create",
17321
17078
  interactive: "default"
17322
17079
  },
17323
- mcp: { entityTool: "goals" },
17080
+ mcp: { entityTool: "milestones" },
17324
17081
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
17325
- comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
17326
- recurrence: /* @__PURE__ */ picklist$1([
17327
- "daily",
17328
- "weekly",
17329
- "daily_workdays",
17330
- "monthly"
17331
- ]),
17332
- start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
17333
- target_seconds: /* @__PURE__ */ number$2(),
17334
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17335
- client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17336
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17337
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17338
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17339
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
17340
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17082
+ color: /* @__PURE__ */ string$1(),
17083
+ due_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
17084
+ name: /* @__PURE__ */ string$1(),
17085
+ completed_at: /* @__PURE__ */ optional$1(apiDateTimeString),
17341
17086
  project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17342
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17343
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17344
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17087
+ team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17345
17088
  }) }),
17346
17089
  execute: (input, { client }) => {
17347
17090
  const data = input;
17348
- return client.runGeneratedRequest("createGoal", () => callGeneratedRequest(createGoal, [
17091
+ return client.runGeneratedRequest("createMilestone", () => callGeneratedRequest(createMilestone, [
17349
17092
  client.httpClient,
17350
- client.organizationId,
17351
17093
  client.workspaceIdNumber,
17352
17094
  data.payload ?? data.data ?? data,
17353
17095
  void 0
@@ -17355,400 +17097,166 @@ const generatedFocusOperations = [
17355
17097
  }
17356
17098
  },
17357
17099
  {
17358
- id: "focus.goals.delete",
17100
+ id: "focus.milestones.delete",
17359
17101
  family: "focus",
17360
- resource: "goals",
17102
+ resource: "milestones",
17361
17103
  action: "delete",
17362
- title: "Delete Goals",
17363
- description: "Delete Goals.",
17104
+ title: "Delete Milestones",
17105
+ description: "Delete Milestones.",
17364
17106
  safety: "delete",
17365
17107
  destructive: true,
17366
17108
  cli: {
17367
- group: ["goals"],
17109
+ group: ["milestones"],
17368
17110
  command: "delete",
17369
17111
  interactive: "default"
17370
17112
  },
17371
- mcp: { entityTool: "goals" },
17372
- inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
17113
+ mcp: { entityTool: "milestones" },
17114
+ inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
17373
17115
  execute: (input, { client }) => {
17374
17116
  const data = input;
17375
- return client.runGeneratedRequest("deleteGoal", () => callGeneratedRequest(deleteGoal, [
17117
+ return client.runGeneratedRequest("deleteMilestone", () => callGeneratedRequest(deleteMilestone, [
17376
17118
  client.httpClient,
17377
- client.organizationId,
17378
17119
  client.workspaceIdNumber,
17379
- data.goal_id,
17120
+ data.milestone_id,
17380
17121
  void 0
17381
17122
  ]));
17382
17123
  }
17383
17124
  },
17384
17125
  {
17385
- id: "focus.goals.get",
17126
+ id: "focus.milestones.get",
17386
17127
  family: "focus",
17387
- resource: "goals",
17128
+ resource: "milestones",
17388
17129
  action: "get",
17389
- title: "Get Goals",
17390
- description: "Get Goals.",
17130
+ title: "Get Milestones",
17131
+ description: "Get Milestones.",
17391
17132
  safety: "read",
17392
17133
  destructive: false,
17393
17134
  cli: {
17394
- group: ["goals"],
17135
+ group: ["milestones"],
17395
17136
  command: "get",
17396
17137
  interactive: "available"
17397
17138
  },
17398
- mcp: { entityTool: "goals" },
17399
- inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
17139
+ mcp: { entityTool: "milestones" },
17140
+ inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
17400
17141
  execute: (input, { client }) => {
17401
17142
  const data = input;
17402
- return client.runGeneratedRequest("getGoal", () => callGeneratedRequest(getGoal, [
17143
+ return client.runGeneratedRequest("getMilestone", () => callGeneratedRequest(getMilestone, [
17403
17144
  client.httpClient,
17404
- client.organizationId,
17405
17145
  client.workspaceIdNumber,
17406
- data.goal_id,
17146
+ data.milestone_id,
17407
17147
  void 0
17408
17148
  ]));
17409
17149
  }
17410
17150
  },
17411
17151
  {
17412
- id: "focus.goals.list",
17152
+ id: "focus.milestones.get-classic",
17413
17153
  family: "focus",
17414
- resource: "goals",
17415
- action: "list",
17416
- title: "List Goals",
17417
- description: "List Goals.",
17154
+ resource: "milestones",
17155
+ action: "get-classic",
17156
+ title: "Get Classic Milestones",
17157
+ description: "Get Classic Milestones.",
17418
17158
  safety: "read",
17419
17159
  destructive: false,
17420
17160
  cli: {
17421
- group: ["goals"],
17422
- command: "list",
17161
+ group: ["milestones"],
17162
+ command: "get-classic",
17423
17163
  interactive: "hidden"
17424
17164
  },
17425
- mcp: { entityTool: "goals" },
17426
- inputSchema: /* @__PURE__ */ looseObject({}),
17427
- execute: (_input, { client }) => client.runGeneratedRequest("getGoals", () => callGeneratedRequest(getGoals, [
17428
- client.httpClient,
17429
- client.organizationId,
17430
- client.workspaceIdNumber,
17431
- void 0
17432
- ]))
17433
- },
17434
- {
17435
- id: "focus.goals.preview-goal-tracked-time",
17436
- family: "focus",
17437
- resource: "goals",
17438
- action: "preview-goal-tracked-time",
17439
- title: "Preview Goal Tracked Time Goals",
17440
- description: "Preview Goal Tracked Time Goals.",
17441
- safety: "update",
17442
- destructive: false,
17443
- cli: {
17444
- group: ["goals"],
17445
- command: "preview-goal-tracked-time",
17446
- interactive: "default"
17447
- },
17448
- mcp: { entityTool: "goals" },
17449
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
17450
- recurrence: /* @__PURE__ */ picklist$1([
17451
- "daily",
17452
- "weekly",
17453
- "daily_workdays",
17454
- "monthly"
17455
- ]),
17456
- start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
17457
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17458
- client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17459
- comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["more_than", "less_than"])),
17460
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17461
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17462
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17463
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
17464
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17465
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17466
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17467
- target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17468
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17469
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17470
- }) }),
17165
+ mcp: { entityTool: "milestones" },
17166
+ inputSchema: /* @__PURE__ */ looseObject({
17167
+ due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17168
+ due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17169
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17170
+ page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17171
+ per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17172
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17173
+ team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
17174
+ }),
17471
17175
  execute: (input, { client }) => {
17472
17176
  const data = input;
17473
- return client.runGeneratedRequest("previewGoalTrackedTime", () => callGeneratedRequest(previewGoalTrackedTime, [
17177
+ return client.runGeneratedRequest("getMilestonesClassic", () => callGeneratedRequest(getMilestonesClassic, [
17474
17178
  client.httpClient,
17475
- client.organizationId,
17476
17179
  client.workspaceIdNumber,
17477
- data.payload ?? data.data ?? data,
17180
+ data,
17478
17181
  void 0
17479
17182
  ]));
17480
17183
  }
17481
17184
  },
17482
17185
  {
17483
- id: "focus.goals.reorder",
17186
+ id: "focus.milestones.get-stream",
17484
17187
  family: "focus",
17485
- resource: "goals",
17486
- action: "reorder",
17487
- title: "Reorder Goals",
17488
- description: "Reorder Goals.",
17489
- safety: "update",
17188
+ resource: "milestones",
17189
+ action: "get-stream",
17190
+ title: "Get Stream Milestones",
17191
+ description: "Get Stream Milestones.",
17192
+ safety: "read",
17490
17193
  destructive: false,
17491
17194
  cli: {
17492
- group: ["goals"],
17493
- command: "reorder",
17494
- interactive: "default"
17195
+ group: ["milestones"],
17196
+ command: "get-stream",
17197
+ interactive: "hidden"
17495
17198
  },
17496
- mcp: { entityTool: "goals" },
17497
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ goal_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
17199
+ mcp: { entityTool: "milestones" },
17200
+ inputSchema: /* @__PURE__ */ looseObject({
17201
+ due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17202
+ due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17203
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17204
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17205
+ team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
17206
+ }),
17498
17207
  execute: (input, { client }) => {
17499
17208
  const data = input;
17500
- return client.runGeneratedRequest("reorderGoals", () => callGeneratedRequest(reorderGoals, [
17209
+ return client.runGeneratedRequest("getMilestonesStream", () => callGeneratedRequest(getMilestonesStream, [
17501
17210
  client.httpClient,
17502
- client.organizationId,
17503
17211
  client.workspaceIdNumber,
17504
- data.payload ?? data.data ?? data,
17212
+ data,
17505
17213
  void 0
17506
17214
  ]));
17507
17215
  }
17508
17216
  },
17509
17217
  {
17510
- id: "focus.goals.update",
17218
+ id: "focus.milestones.partial-update",
17511
17219
  family: "focus",
17512
- resource: "goals",
17513
- action: "update",
17514
- title: "Update Goals",
17515
- description: "Update Goals.",
17220
+ resource: "milestones",
17221
+ action: "partial-update",
17222
+ title: "Partial Update Milestones",
17223
+ description: "Partial Update Milestones.",
17516
17224
  safety: "update",
17517
17225
  destructive: false,
17518
17226
  cli: {
17519
- group: ["goals"],
17520
- command: "update",
17227
+ group: ["milestones"],
17228
+ command: "partial-update",
17521
17229
  interactive: "default"
17522
17230
  },
17523
- mcp: { entityTool: "goals" },
17231
+ mcp: { entityTool: "milestones" },
17524
17232
  inputSchema: /* @__PURE__ */ looseObject({
17525
- goal_id: /* @__PURE__ */ number$2(),
17233
+ milestone_id: /* @__PURE__ */ number$2(),
17526
17234
  payload: /* @__PURE__ */ looseObject({
17527
- active: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17528
- client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17529
- comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17530
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17235
+ due_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17531
17236
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17532
17237
  project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17533
- recurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
17534
- "daily",
17535
- "weekly",
17536
- "daily_workdays",
17537
- "monthly"
17538
- ])),
17539
- start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17540
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17541
- target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17542
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17543
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17238
+ team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17544
17239
  })
17545
17240
  }),
17546
17241
  execute: (input, { client }) => {
17547
17242
  const data = input;
17548
- return client.runGeneratedRequest("updateGoal", () => callGeneratedRequest(updateGoal, [
17243
+ return client.runGeneratedRequest("partialUpdateMilestone", () => callGeneratedRequest(partialUpdateMilestone, [
17549
17244
  client.httpClient,
17550
- client.organizationId,
17551
17245
  client.workspaceIdNumber,
17552
- data.goal_id,
17246
+ data.milestone_id,
17553
17247
  data.payload ?? data.data ?? data,
17554
17248
  void 0
17555
17249
  ]));
17556
17250
  }
17557
17251
  },
17558
17252
  {
17559
- id: "focus.milestones.create",
17253
+ id: "focus.milestones.restore",
17560
17254
  family: "focus",
17561
17255
  resource: "milestones",
17562
- action: "create",
17563
- title: "Create Milestones",
17564
- description: "Create Milestones.",
17565
- safety: "create",
17566
- destructive: false,
17567
- cli: {
17568
- group: ["milestones"],
17569
- command: "create",
17570
- interactive: "default"
17571
- },
17572
- mcp: { entityTool: "milestones" },
17573
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
17574
- color: /* @__PURE__ */ string$1(),
17575
- due_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
17576
- name: /* @__PURE__ */ string$1(),
17577
- completed_at: /* @__PURE__ */ optional$1(apiDateTimeString),
17578
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17579
- team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17580
- }) }),
17581
- execute: (input, { client }) => {
17582
- const data = input;
17583
- return client.runGeneratedRequest("createMilestone", () => callGeneratedRequest(createMilestone, [
17584
- client.httpClient,
17585
- client.workspaceIdNumber,
17586
- data.payload ?? data.data ?? data,
17587
- void 0
17588
- ]));
17589
- }
17590
- },
17591
- {
17592
- id: "focus.milestones.delete",
17593
- family: "focus",
17594
- resource: "milestones",
17595
- action: "delete",
17596
- title: "Delete Milestones",
17597
- description: "Delete Milestones.",
17598
- safety: "delete",
17599
- destructive: true,
17600
- cli: {
17601
- group: ["milestones"],
17602
- command: "delete",
17603
- interactive: "default"
17604
- },
17605
- mcp: { entityTool: "milestones" },
17606
- inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
17607
- execute: (input, { client }) => {
17608
- const data = input;
17609
- return client.runGeneratedRequest("deleteMilestone", () => callGeneratedRequest(deleteMilestone, [
17610
- client.httpClient,
17611
- client.workspaceIdNumber,
17612
- data.milestone_id,
17613
- void 0
17614
- ]));
17615
- }
17616
- },
17617
- {
17618
- id: "focus.milestones.get",
17619
- family: "focus",
17620
- resource: "milestones",
17621
- action: "get",
17622
- title: "Get Milestones",
17623
- description: "Get Milestones.",
17624
- safety: "read",
17625
- destructive: false,
17626
- cli: {
17627
- group: ["milestones"],
17628
- command: "get",
17629
- interactive: "available"
17630
- },
17631
- mcp: { entityTool: "milestones" },
17632
- inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
17633
- execute: (input, { client }) => {
17634
- const data = input;
17635
- return client.runGeneratedRequest("getMilestone", () => callGeneratedRequest(getMilestone, [
17636
- client.httpClient,
17637
- client.workspaceIdNumber,
17638
- data.milestone_id,
17639
- void 0
17640
- ]));
17641
- }
17642
- },
17643
- {
17644
- id: "focus.milestones.get-classic",
17645
- family: "focus",
17646
- resource: "milestones",
17647
- action: "get-classic",
17648
- title: "Get Classic Milestones",
17649
- description: "Get Classic Milestones.",
17650
- safety: "read",
17651
- destructive: false,
17652
- cli: {
17653
- group: ["milestones"],
17654
- command: "get-classic",
17655
- interactive: "hidden"
17656
- },
17657
- mcp: { entityTool: "milestones" },
17658
- inputSchema: /* @__PURE__ */ looseObject({
17659
- due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17660
- due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17661
- order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17662
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17663
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17664
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17665
- team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
17666
- }),
17667
- execute: (input, { client }) => {
17668
- const data = input;
17669
- return client.runGeneratedRequest("getMilestonesClassic", () => callGeneratedRequest(getMilestonesClassic, [
17670
- client.httpClient,
17671
- client.workspaceIdNumber,
17672
- data,
17673
- void 0
17674
- ]));
17675
- }
17676
- },
17677
- {
17678
- id: "focus.milestones.get-stream",
17679
- family: "focus",
17680
- resource: "milestones",
17681
- action: "get-stream",
17682
- title: "Get Stream Milestones",
17683
- description: "Get Stream Milestones.",
17684
- safety: "read",
17685
- destructive: false,
17686
- cli: {
17687
- group: ["milestones"],
17688
- command: "get-stream",
17689
- interactive: "hidden"
17690
- },
17691
- mcp: { entityTool: "milestones" },
17692
- inputSchema: /* @__PURE__ */ looseObject({
17693
- due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17694
- due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17695
- order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17696
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17697
- team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
17698
- }),
17699
- execute: (input, { client }) => {
17700
- const data = input;
17701
- return client.runGeneratedRequest("getMilestonesStream", () => callGeneratedRequest(getMilestonesStream, [
17702
- client.httpClient,
17703
- client.workspaceIdNumber,
17704
- data,
17705
- void 0
17706
- ]));
17707
- }
17708
- },
17709
- {
17710
- id: "focus.milestones.partial-update",
17711
- family: "focus",
17712
- resource: "milestones",
17713
- action: "partial-update",
17714
- title: "Partial Update Milestones",
17715
- description: "Partial Update Milestones.",
17716
- safety: "update",
17717
- destructive: false,
17718
- cli: {
17719
- group: ["milestones"],
17720
- command: "partial-update",
17721
- interactive: "default"
17722
- },
17723
- mcp: { entityTool: "milestones" },
17724
- inputSchema: /* @__PURE__ */ looseObject({
17725
- milestone_id: /* @__PURE__ */ number$2(),
17726
- payload: /* @__PURE__ */ looseObject({
17727
- due_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17728
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17729
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17730
- team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17731
- })
17732
- }),
17733
- execute: (input, { client }) => {
17734
- const data = input;
17735
- return client.runGeneratedRequest("partialUpdateMilestone", () => callGeneratedRequest(partialUpdateMilestone, [
17736
- client.httpClient,
17737
- client.workspaceIdNumber,
17738
- data.milestone_id,
17739
- data.payload ?? data.data ?? data,
17740
- void 0
17741
- ]));
17742
- }
17743
- },
17744
- {
17745
- id: "focus.milestones.restore",
17746
- family: "focus",
17747
- resource: "milestones",
17748
- action: "restore",
17749
- title: "Restore Milestones",
17750
- description: "Restore Milestones.",
17751
- safety: "update",
17256
+ action: "restore",
17257
+ title: "Restore Milestones",
17258
+ description: "Restore Milestones.",
17259
+ safety: "update",
17752
17260
  destructive: false,
17753
17261
  cli: {
17754
17262
  group: ["milestones"],
@@ -18433,17 +17941,9 @@ const generatedFocusOperations = [
18433
17941
  mcp: { entityTool: "projects" },
18434
17942
  inputSchema: /* @__PURE__ */ looseObject({
18435
17943
  payload: /* @__PURE__ */ looseObject({
18436
- auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
18437
- completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
18438
17944
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
18439
17945
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
18440
17946
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
18441
- rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
18442
- "expire",
18443
- "carry_all",
18444
- "carry_over"
18445
- ])),
18446
- rrule: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
18447
17947
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
18448
17948
  }),
18449
17949
  project_id: /* @__PURE__ */ number$2()
@@ -18887,7 +18387,6 @@ const generatedFocusOperations = [
18887
18387
  group: /* @__PURE__ */ string$1(),
18888
18388
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18889
18389
  include_group_totals: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18890
- include_recurring_series: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18891
18390
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18892
18391
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18893
18392
  only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -18990,6 +18489,29 @@ const generatedFocusOperations = [
18990
18489
  ]));
18991
18490
  }
18992
18491
  },
18492
+ {
18493
+ id: "focus.projects.margin-targets-clear-workspace",
18494
+ family: "focus",
18495
+ resource: "projects",
18496
+ action: "margin-targets-clear-workspace",
18497
+ title: "Margin Targets Clear Workspace Projects",
18498
+ description: "Margin Targets Clear Workspace Projects.",
18499
+ safety: "delete",
18500
+ destructive: true,
18501
+ cli: {
18502
+ group: ["projects", "margin-targets"],
18503
+ command: "clear-workspace",
18504
+ interactive: "default"
18505
+ },
18506
+ mcp: { entityTool: "projects" },
18507
+ inputSchema: /* @__PURE__ */ looseObject({}),
18508
+ execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
18509
+ client.httpClient,
18510
+ client.organizationId,
18511
+ client.workspaceIdNumber,
18512
+ void 0
18513
+ ]))
18514
+ },
18993
18515
  {
18994
18516
  id: "focus.projects.margin-targets-get",
18995
18517
  family: "focus",
@@ -19435,200 +18957,76 @@ const generatedFocusOperations = [
19435
18957
  }
19436
18958
  },
19437
18959
  {
19438
- id: "focus.publicsharedreports.open-public-shared-report",
18960
+ id: "focus.rates.billable-check-project-billable-rate-conflicts",
19439
18961
  family: "focus",
19440
- resource: "publicsharedreports",
19441
- action: "open-public-shared-report",
19442
- title: "Open Public Shared Report Publicsharedreports",
19443
- description: "Open Public Shared Report Publicsharedreports.",
19444
- safety: "read",
18962
+ resource: "rates",
18963
+ action: "billable-check-project-billable-rate-conflicts",
18964
+ title: "Billable Check Project Billable Rate Conflicts Rates",
18965
+ description: "Billable Check Project Billable Rate Conflicts Rates.",
18966
+ safety: "update",
19445
18967
  destructive: false,
19446
18968
  cli: {
19447
- group: ["publicsharedreports"],
19448
- command: "open-public-shared-report",
19449
- interactive: "available"
18969
+ group: ["rates", "billable"],
18970
+ command: "check-project-billable-rate-conflicts",
18971
+ interactive: "default"
19450
18972
  },
19451
- mcp: { entityTool: "publicsharedreports" },
19452
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
18973
+ mcp: { entityTool: "rates" },
18974
+ inputSchema: /* @__PURE__ */ looseObject({
18975
+ payload: rateSchedulePayloadSchema,
18976
+ project_id: /* @__PURE__ */ number$2()
18977
+ }),
19453
18978
  execute: (input, { client }) => {
19454
18979
  const data = input;
19455
- return client.runGeneratedRequest("openPublicSharedReport", () => callGeneratedRequest(openPublicSharedReport, [
18980
+ return client.runGeneratedRequest("checkProjectBillableRateConflicts", () => callGeneratedRequest(checkProjectBillableRateConflicts, [
19456
18981
  client.httpClient,
19457
- data.token,
18982
+ client.organizationId,
18983
+ client.workspaceIdNumber,
18984
+ data.project_id,
18985
+ data.payload ?? data.data ?? data,
19458
18986
  void 0
19459
18987
  ]));
19460
18988
  }
19461
18989
  },
19462
18990
  {
19463
- id: "focus.publicsharedreports.profitability-public-shared-report",
18991
+ id: "focus.rates.billable-check-project-user-billable-rate-conflicts",
19464
18992
  family: "focus",
19465
- resource: "publicsharedreports",
19466
- action: "profitability-public-shared-report",
19467
- title: "Profitability Public Shared Report Publicsharedreports",
19468
- description: "Profitability Public Shared Report Publicsharedreports.",
18993
+ resource: "rates",
18994
+ action: "billable-check-project-user-billable-rate-conflicts",
18995
+ title: "Billable Check Project User Billable Rate Conflicts Rates",
18996
+ description: "Billable Check Project User Billable Rate Conflicts Rates.",
19469
18997
  safety: "update",
19470
18998
  destructive: false,
19471
18999
  cli: {
19472
- group: ["publicsharedreports"],
19473
- command: "profitability-public-shared-report",
19000
+ group: ["rates", "billable"],
19001
+ command: "check-project-user-billable-rate-conflicts",
19474
19002
  interactive: "default"
19475
19003
  },
19476
- mcp: { entityTool: "publicsharedreports" },
19004
+ mcp: { entityTool: "rates" },
19477
19005
  inputSchema: /* @__PURE__ */ looseObject({
19478
- include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
19479
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
19480
- response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["json_row", "hierarchical"])),
19481
- token: /* @__PURE__ */ string$1()
19006
+ payload: rateSchedulePayloadSchema,
19007
+ project_id: /* @__PURE__ */ number$2(),
19008
+ user_id: /* @__PURE__ */ number$2()
19482
19009
  }),
19483
19010
  execute: (input, { client }) => {
19484
19011
  const data = input;
19485
- return client.runGeneratedRequest("profitabilityPublicSharedReport", () => callGeneratedRequest(profitabilityPublicSharedReport, [
19012
+ return client.runGeneratedRequest("checkProjectUserBillableRateConflicts", () => callGeneratedRequest(checkProjectUserBillableRateConflicts, [
19486
19013
  client.httpClient,
19487
- data.token,
19014
+ client.organizationId,
19015
+ client.workspaceIdNumber,
19016
+ data.project_id,
19017
+ data.user_id,
19488
19018
  data.payload ?? data.data ?? data,
19489
- data.response_format,
19490
- data.include_dicts,
19491
19019
  void 0
19492
19020
  ]));
19493
19021
  }
19494
19022
  },
19495
19023
  {
19496
- id: "focus.publicsharedreports.query-public-shared-report",
19024
+ id: "focus.rates.billable-check-workspace-billable-rate-conflicts",
19497
19025
  family: "focus",
19498
- resource: "publicsharedreports",
19499
- action: "query-public-shared-report",
19500
- title: "Query Public Shared Report Publicsharedreports",
19501
- description: "Query Public Shared Report Publicsharedreports.",
19502
- safety: "update",
19503
- destructive: false,
19504
- cli: {
19505
- group: ["publicsharedreports"],
19506
- command: "query-public-shared-report",
19507
- interactive: "default"
19508
- },
19509
- mcp: { entityTool: "publicsharedreports" },
19510
- inputSchema: /* @__PURE__ */ looseObject({
19511
- include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
19512
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
19513
- response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
19514
- "json_row",
19515
- "table",
19516
- "hierarchical"
19517
- ])),
19518
- token: /* @__PURE__ */ string$1()
19519
- }),
19520
- execute: (input, { client }) => {
19521
- const data = input;
19522
- return client.runGeneratedRequest("queryPublicSharedReport", () => callGeneratedRequest(queryPublicSharedReport, [
19523
- client.httpClient,
19524
- data.token,
19525
- data.payload ?? data.data ?? data,
19526
- data.response_format,
19527
- data.include_dicts,
19528
- void 0
19529
- ]));
19530
- }
19531
- },
19532
- {
19533
- id: "focus.publicsharedreports.workload-public-shared-report",
19534
- family: "focus",
19535
- resource: "publicsharedreports",
19536
- action: "workload-public-shared-report",
19537
- title: "Workload Public Shared Report Publicsharedreports",
19538
- description: "Workload Public Shared Report Publicsharedreports.",
19539
- safety: "update",
19540
- destructive: false,
19541
- cli: {
19542
- group: ["publicsharedreports"],
19543
- command: "workload-public-shared-report",
19544
- interactive: "default"
19545
- },
19546
- mcp: { entityTool: "publicsharedreports" },
19547
- inputSchema: /* @__PURE__ */ looseObject({
19548
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
19549
- token: /* @__PURE__ */ string$1()
19550
- }),
19551
- execute: (input, { client }) => {
19552
- const data = input;
19553
- return client.runGeneratedRequest("workloadPublicSharedReport", () => callGeneratedRequest(workloadPublicSharedReport, [
19554
- client.httpClient,
19555
- data.token,
19556
- data.payload ?? data.data ?? data,
19557
- void 0
19558
- ]));
19559
- }
19560
- },
19561
- {
19562
- id: "focus.rates.billable-check-project-billable-rate-conflicts",
19563
- family: "focus",
19564
- resource: "rates",
19565
- action: "billable-check-project-billable-rate-conflicts",
19566
- title: "Billable Check Project Billable Rate Conflicts Rates",
19567
- description: "Billable Check Project Billable Rate Conflicts Rates.",
19568
- safety: "update",
19569
- destructive: false,
19570
- cli: {
19571
- group: ["rates", "billable"],
19572
- command: "check-project-billable-rate-conflicts",
19573
- interactive: "default"
19574
- },
19575
- mcp: { entityTool: "rates" },
19576
- inputSchema: /* @__PURE__ */ looseObject({
19577
- payload: rateSchedulePayloadSchema,
19578
- project_id: /* @__PURE__ */ number$2()
19579
- }),
19580
- execute: (input, { client }) => {
19581
- const data = input;
19582
- return client.runGeneratedRequest("checkProjectBillableRateConflicts", () => callGeneratedRequest(checkProjectBillableRateConflicts, [
19583
- client.httpClient,
19584
- client.organizationId,
19585
- client.workspaceIdNumber,
19586
- data.project_id,
19587
- data.payload ?? data.data ?? data,
19588
- void 0
19589
- ]));
19590
- }
19591
- },
19592
- {
19593
- id: "focus.rates.billable-check-project-user-billable-rate-conflicts",
19594
- family: "focus",
19595
- resource: "rates",
19596
- action: "billable-check-project-user-billable-rate-conflicts",
19597
- title: "Billable Check Project User Billable Rate Conflicts Rates",
19598
- description: "Billable Check Project User Billable Rate Conflicts Rates.",
19599
- safety: "update",
19600
- destructive: false,
19601
- cli: {
19602
- group: ["rates", "billable"],
19603
- command: "check-project-user-billable-rate-conflicts",
19604
- interactive: "default"
19605
- },
19606
- mcp: { entityTool: "rates" },
19607
- inputSchema: /* @__PURE__ */ looseObject({
19608
- payload: rateSchedulePayloadSchema,
19609
- project_id: /* @__PURE__ */ number$2(),
19610
- user_id: /* @__PURE__ */ number$2()
19611
- }),
19612
- execute: (input, { client }) => {
19613
- const data = input;
19614
- return client.runGeneratedRequest("checkProjectUserBillableRateConflicts", () => callGeneratedRequest(checkProjectUserBillableRateConflicts, [
19615
- client.httpClient,
19616
- client.organizationId,
19617
- client.workspaceIdNumber,
19618
- data.project_id,
19619
- data.user_id,
19620
- data.payload ?? data.data ?? data,
19621
- void 0
19622
- ]));
19623
- }
19624
- },
19625
- {
19626
- id: "focus.rates.billable-check-workspace-billable-rate-conflicts",
19627
- family: "focus",
19628
- resource: "rates",
19629
- action: "billable-check-workspace-billable-rate-conflicts",
19630
- title: "Billable Check Workspace Billable Rate Conflicts Rates",
19631
- description: "Billable Check Workspace Billable Rate Conflicts Rates.",
19026
+ resource: "rates",
19027
+ action: "billable-check-workspace-billable-rate-conflicts",
19028
+ title: "Billable Check Workspace Billable Rate Conflicts Rates",
19029
+ description: "Billable Check Workspace Billable Rate Conflicts Rates.",
19632
19030
  safety: "update",
19633
19031
  destructive: false,
19634
19032
  cli: {
@@ -21135,51 +20533,51 @@ const generatedFocusOperations = [
21135
20533
  mcp: { entityTool: "reports" },
21136
20534
  inputSchema: /* @__PURE__ */ looseObject({
21137
20535
  payload: /* @__PURE__ */ looseObject({
21138
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21139
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
20536
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20537
+ aggregation: /* @__PURE__ */ looseObject({
21140
20538
  function: /* @__PURE__ */ string$1(),
21141
20539
  property: /* @__PURE__ */ string$1()
21142
- })),
21143
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21144
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21145
- }))),
21146
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20540
+ }),
20541
+ operator: /* @__PURE__ */ string$1(),
20542
+ property: /* @__PURE__ */ string$1()
20543
+ })),
20544
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21147
20545
  function: /* @__PURE__ */ string$1(),
21148
20546
  property: /* @__PURE__ */ string$1()
21149
- }))),
21150
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
21151
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21152
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21153
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21154
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
21155
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21156
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21157
- }))),
21158
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21159
- property: /* @__PURE__ */ string$1(),
21160
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
21161
- }))),
21162
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21163
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20547
+ })),
20548
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
20549
+ currency: /* @__PURE__ */ string$1(),
20550
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20551
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
20552
+ operator: /* @__PURE__ */ string$1(),
20553
+ property: /* @__PURE__ */ string$1()
20554
+ })),
20555
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21164
20556
  property: /* @__PURE__ */ string$1(),
21165
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21166
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21167
- }))),
21168
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21169
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21170
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
20557
+ show_empty: /* @__PURE__ */ boolean$1()
21171
20558
  })),
21172
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21173
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21174
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21175
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
20559
+ limit: /* @__PURE__ */ number$2(),
20560
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20561
+ direction: /* @__PURE__ */ string$1(),
20562
+ nulls: /* @__PURE__ */ string$1(),
20563
+ property: /* @__PURE__ */ string$1()
21176
20564
  })),
21177
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21178
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20565
+ pagination: /* @__PURE__ */ looseObject({
20566
+ page: /* @__PURE__ */ number$2(),
20567
+ per_page: /* @__PURE__ */ number$2()
20568
+ }),
20569
+ period: /* @__PURE__ */ looseObject({
20570
+ from: /* @__PURE__ */ string$1(),
20571
+ preset: /* @__PURE__ */ string$1(),
20572
+ to: /* @__PURE__ */ string$1()
20573
+ }),
20574
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21179
20575
  name: /* @__PURE__ */ string$1(),
21180
20576
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
21181
- }))),
21182
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
20577
+ })),
20578
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
20579
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
20580
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
21183
20581
  }),
21184
20582
  response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
21185
20583
  }),
@@ -21260,51 +20658,51 @@ const generatedFocusOperations = [
21260
20658
  inputSchema: /* @__PURE__ */ looseObject({
21261
20659
  include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
21262
20660
  payload: /* @__PURE__ */ looseObject({
21263
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21264
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
20661
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20662
+ aggregation: /* @__PURE__ */ looseObject({
21265
20663
  function: /* @__PURE__ */ string$1(),
21266
20664
  property: /* @__PURE__ */ string$1()
21267
- })),
21268
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21269
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21270
- }))),
21271
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20665
+ }),
20666
+ operator: /* @__PURE__ */ string$1(),
20667
+ property: /* @__PURE__ */ string$1()
20668
+ })),
20669
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21272
20670
  function: /* @__PURE__ */ string$1(),
21273
20671
  property: /* @__PURE__ */ string$1()
21274
- }))),
21275
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
21276
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21277
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21278
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21279
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
21280
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21281
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21282
- }))),
21283
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21284
- property: /* @__PURE__ */ string$1(),
21285
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
21286
- }))),
21287
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21288
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20672
+ })),
20673
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
20674
+ currency: /* @__PURE__ */ string$1(),
20675
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20676
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
20677
+ operator: /* @__PURE__ */ string$1(),
20678
+ property: /* @__PURE__ */ string$1()
20679
+ })),
20680
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21289
20681
  property: /* @__PURE__ */ string$1(),
21290
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21291
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21292
- }))),
21293
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21294
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21295
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
20682
+ show_empty: /* @__PURE__ */ boolean$1()
21296
20683
  })),
21297
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21298
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21299
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21300
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
20684
+ limit: /* @__PURE__ */ number$2(),
20685
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20686
+ direction: /* @__PURE__ */ string$1(),
20687
+ nulls: /* @__PURE__ */ string$1(),
20688
+ property: /* @__PURE__ */ string$1()
21301
20689
  })),
21302
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21303
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20690
+ pagination: /* @__PURE__ */ looseObject({
20691
+ page: /* @__PURE__ */ number$2(),
20692
+ per_page: /* @__PURE__ */ number$2()
20693
+ }),
20694
+ period: /* @__PURE__ */ looseObject({
20695
+ from: /* @__PURE__ */ string$1(),
20696
+ preset: /* @__PURE__ */ string$1(),
20697
+ to: /* @__PURE__ */ string$1()
20698
+ }),
20699
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21304
20700
  name: /* @__PURE__ */ string$1(),
21305
20701
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
21306
- }))),
21307
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
20702
+ })),
20703
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
20704
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
20705
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
21308
20706
  }),
21309
20707
  response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["json_row", "hierarchical"])),
21310
20708
  xTogglReportExport: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
@@ -21342,51 +20740,51 @@ const generatedFocusOperations = [
21342
20740
  },
21343
20741
  mcp: { entityTool: "reports" },
21344
20742
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
21345
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21346
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
20743
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20744
+ aggregation: /* @__PURE__ */ looseObject({
21347
20745
  function: /* @__PURE__ */ string$1(),
21348
20746
  property: /* @__PURE__ */ string$1()
21349
- })),
21350
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21351
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21352
- }))),
21353
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20747
+ }),
20748
+ operator: /* @__PURE__ */ string$1(),
20749
+ property: /* @__PURE__ */ string$1()
20750
+ })),
20751
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21354
20752
  function: /* @__PURE__ */ string$1(),
21355
20753
  property: /* @__PURE__ */ string$1()
21356
- }))),
21357
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
21358
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21359
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21360
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21361
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
21362
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21363
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21364
- }))),
21365
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21366
- property: /* @__PURE__ */ string$1(),
21367
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
21368
- }))),
21369
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21370
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20754
+ })),
20755
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
20756
+ currency: /* @__PURE__ */ string$1(),
20757
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20758
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
20759
+ operator: /* @__PURE__ */ string$1(),
20760
+ property: /* @__PURE__ */ string$1()
20761
+ })),
20762
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21371
20763
  property: /* @__PURE__ */ string$1(),
21372
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21373
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21374
- }))),
21375
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21376
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21377
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
20764
+ show_empty: /* @__PURE__ */ boolean$1()
21378
20765
  })),
21379
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21380
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21381
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21382
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
20766
+ limit: /* @__PURE__ */ number$2(),
20767
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20768
+ direction: /* @__PURE__ */ string$1(),
20769
+ nulls: /* @__PURE__ */ string$1(),
20770
+ property: /* @__PURE__ */ string$1()
21383
20771
  })),
21384
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21385
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20772
+ pagination: /* @__PURE__ */ looseObject({
20773
+ page: /* @__PURE__ */ number$2(),
20774
+ per_page: /* @__PURE__ */ number$2()
20775
+ }),
20776
+ period: /* @__PURE__ */ looseObject({
20777
+ from: /* @__PURE__ */ string$1(),
20778
+ preset: /* @__PURE__ */ string$1(),
20779
+ to: /* @__PURE__ */ string$1()
20780
+ }),
20781
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21386
20782
  name: /* @__PURE__ */ string$1(),
21387
20783
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
21388
- }))),
21389
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
20784
+ })),
20785
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
20786
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
20787
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
21390
20788
  }) }),
21391
20789
  execute: (input, { client }) => {
21392
20790
  const data = input;
@@ -21415,51 +20813,51 @@ const generatedFocusOperations = [
21415
20813
  mcp: { entityTool: "reports" },
21416
20814
  inputSchema: /* @__PURE__ */ looseObject({
21417
20815
  payload: /* @__PURE__ */ looseObject({
21418
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21419
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
20816
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20817
+ aggregation: /* @__PURE__ */ looseObject({
21420
20818
  function: /* @__PURE__ */ string$1(),
21421
20819
  property: /* @__PURE__ */ string$1()
21422
- })),
21423
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21424
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21425
- }))),
21426
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20820
+ }),
20821
+ operator: /* @__PURE__ */ string$1(),
20822
+ property: /* @__PURE__ */ string$1()
20823
+ })),
20824
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21427
20825
  function: /* @__PURE__ */ string$1(),
21428
20826
  property: /* @__PURE__ */ string$1()
21429
- }))),
21430
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
21431
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21432
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21433
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21434
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
21435
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21436
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21437
- }))),
21438
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21439
- property: /* @__PURE__ */ string$1(),
21440
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
21441
- }))),
21442
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21443
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20827
+ })),
20828
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
20829
+ currency: /* @__PURE__ */ string$1(),
20830
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20831
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
20832
+ operator: /* @__PURE__ */ string$1(),
20833
+ property: /* @__PURE__ */ string$1()
20834
+ })),
20835
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21444
20836
  property: /* @__PURE__ */ string$1(),
21445
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21446
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21447
- }))),
21448
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21449
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21450
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
20837
+ show_empty: /* @__PURE__ */ boolean$1()
21451
20838
  })),
21452
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21453
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21454
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21455
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
20839
+ limit: /* @__PURE__ */ number$2(),
20840
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20841
+ direction: /* @__PURE__ */ string$1(),
20842
+ nulls: /* @__PURE__ */ string$1(),
20843
+ property: /* @__PURE__ */ string$1()
21456
20844
  })),
21457
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21458
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20845
+ pagination: /* @__PURE__ */ looseObject({
20846
+ page: /* @__PURE__ */ number$2(),
20847
+ per_page: /* @__PURE__ */ number$2()
20848
+ }),
20849
+ period: /* @__PURE__ */ looseObject({
20850
+ from: /* @__PURE__ */ string$1(),
20851
+ preset: /* @__PURE__ */ string$1(),
20852
+ to: /* @__PURE__ */ string$1()
20853
+ }),
20854
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21459
20855
  name: /* @__PURE__ */ string$1(),
21460
20856
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
21461
- }))),
21462
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
20857
+ })),
20858
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
20859
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
20860
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
21463
20861
  }),
21464
20862
  xTogglReportExport: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
21465
20863
  "csv",
@@ -21516,7 +20914,7 @@ const generatedFocusOperations = [
21516
20914
  cli: {
21517
20915
  group: ["reportschedules"],
21518
20916
  command: "upsert-saved-view-schedule",
21519
- interactive: "hidden"
20917
+ interactive: "default"
21520
20918
  },
21521
20919
  mcp: { entityTool: "reportschedules" },
21522
20920
  inputSchema: /* @__PURE__ */ looseObject({
@@ -21527,10 +20925,8 @@ const generatedFocusOperations = [
21527
20925
  "weekly",
21528
20926
  "monthly"
21529
20927
  ]),
21530
- charts: /* @__PURE__ */ unknown$1(),
21531
20928
  time: /* @__PURE__ */ string$1(),
21532
20929
  day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21533
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
21534
20930
  recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
21535
20931
  recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
21536
20932
  recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
@@ -21863,32 +21259,6 @@ const generatedFocusOperations = [
21863
21259
  ]));
21864
21260
  }
21865
21261
  },
21866
- {
21867
- id: "focus.sharedreports.get-shared-report-dates",
21868
- family: "focus",
21869
- resource: "sharedreports",
21870
- action: "get-shared-report-dates",
21871
- title: "Get Shared Report Dates Sharedreports",
21872
- description: "Get Shared Report Dates Sharedreports.",
21873
- safety: "read",
21874
- destructive: false,
21875
- cli: {
21876
- group: ["sharedreports"],
21877
- command: "get-shared-report-dates",
21878
- interactive: "available"
21879
- },
21880
- mcp: { entityTool: "sharedreports" },
21881
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
21882
- execute: (input, { client }) => {
21883
- const data = input;
21884
- return client.runGeneratedRequest("getSharedReportDates", () => callGeneratedRequest(getSharedReportDates, [
21885
- client.httpClient,
21886
- client.workspaceIdNumber,
21887
- data.id,
21888
- void 0
21889
- ]));
21890
- }
21891
- },
21892
21262
  {
21893
21263
  id: "focus.sharedreports.get-shared-report-for-viewer",
21894
21264
  family: "focus",
@@ -21959,36 +21329,6 @@ const generatedFocusOperations = [
21959
21329
  void 0
21960
21330
  ]))
21961
21331
  },
21962
- {
21963
- id: "focus.sharedreports.mint-shared-report-link",
21964
- family: "focus",
21965
- resource: "sharedreports",
21966
- action: "mint-shared-report-link",
21967
- title: "Mint Shared Report Link Sharedreports",
21968
- description: "Mint Shared Report Link Sharedreports.",
21969
- safety: "update",
21970
- destructive: false,
21971
- cli: {
21972
- group: ["sharedreports"],
21973
- command: "mint-shared-report-link",
21974
- interactive: "default"
21975
- },
21976
- mcp: { entityTool: "sharedreports" },
21977
- inputSchema: /* @__PURE__ */ looseObject({
21978
- id: /* @__PURE__ */ number$2(),
21979
- payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
21980
- }),
21981
- execute: (input, { client }) => {
21982
- const data = input;
21983
- return client.runGeneratedRequest("mintSharedReportLink", () => callGeneratedRequest(mintSharedReportLink, [
21984
- client.httpClient,
21985
- client.workspaceIdNumber,
21986
- data.id,
21987
- data.payload ?? data.data ?? data,
21988
- void 0
21989
- ]));
21990
- }
21991
- },
21992
21332
  {
21993
21333
  id: "focus.sharedreports.revoke-shared-report-grant",
21994
21334
  family: "focus",
@@ -22020,140 +21360,54 @@ const generatedFocusOperations = [
22020
21360
  }
22021
21361
  },
22022
21362
  {
22023
- id: "focus.sharedreports.revoke-shared-report-link",
21363
+ id: "focus.sharedreports.share-saved-view",
22024
21364
  family: "focus",
22025
21365
  resource: "sharedreports",
22026
- action: "revoke-shared-report-link",
22027
- title: "Revoke Shared Report Link Sharedreports",
22028
- description: "Revoke Shared Report Link Sharedreports.",
22029
- safety: "delete",
22030
- destructive: true,
21366
+ action: "share-saved-view",
21367
+ title: "Share Saved View Sharedreports",
21368
+ description: "Share Saved View Sharedreports.",
21369
+ safety: "update",
21370
+ destructive: false,
22031
21371
  cli: {
22032
21372
  group: ["sharedreports"],
22033
- command: "revoke-shared-report-link",
22034
- interactive: "default"
21373
+ command: "share-saved-view",
21374
+ interactive: "hidden"
22035
21375
  },
22036
21376
  mcp: { entityTool: "sharedreports" },
22037
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
21377
+ inputSchema: /* @__PURE__ */ looseObject({
21378
+ id: /* @__PURE__ */ number$2(),
21379
+ payload: /* @__PURE__ */ looseObject({
21380
+ charts: /* @__PURE__ */ unknown$1(),
21381
+ period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
21382
+ team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21383
+ user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21384
+ workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
21385
+ })
21386
+ }),
22038
21387
  execute: (input, { client }) => {
22039
21388
  const data = input;
22040
- return client.runGeneratedRequest("revokeSharedReportLink", () => callGeneratedRequest(revokeSharedReportLink, [
21389
+ return client.runGeneratedRequest("shareSavedView", () => callGeneratedRequest(shareSavedView, [
22041
21390
  client.httpClient,
22042
21391
  client.workspaceIdNumber,
22043
21392
  data.id,
21393
+ data.payload ?? data.data ?? data,
22044
21394
  void 0
22045
21395
  ]));
22046
21396
  }
22047
21397
  },
22048
21398
  {
22049
- id: "focus.sharedreports.rotate-shared-report-link",
21399
+ id: "focus.sharedreports.share-saved-view-many",
22050
21400
  family: "focus",
22051
21401
  resource: "sharedreports",
22052
- action: "rotate-shared-report-link",
22053
- title: "Rotate Shared Report Link Sharedreports",
22054
- description: "Rotate Shared Report Link Sharedreports.",
21402
+ action: "share-saved-view-many",
21403
+ title: "Share Saved View Many Sharedreports",
21404
+ description: "Share Saved View Many Sharedreports.",
22055
21405
  safety: "update",
22056
21406
  destructive: false,
22057
21407
  cli: {
22058
21408
  group: ["sharedreports"],
22059
- command: "rotate-shared-report-link",
22060
- interactive: "default"
22061
- },
22062
- mcp: { entityTool: "sharedreports" },
22063
- inputSchema: /* @__PURE__ */ looseObject({
22064
- id: /* @__PURE__ */ number$2(),
22065
- payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
22066
- }),
22067
- execute: (input, { client }) => {
22068
- const data = input;
22069
- return client.runGeneratedRequest("rotateSharedReportLink", () => callGeneratedRequest(rotateSharedReportLink, [
22070
- client.httpClient,
22071
- client.workspaceIdNumber,
22072
- data.id,
22073
- data.payload ?? data.data ?? data,
22074
- void 0
22075
- ]));
22076
- }
22077
- },
22078
- {
22079
- id: "focus.sharedreports.set-shared-report-dates-lock",
22080
- family: "focus",
22081
- resource: "sharedreports",
22082
- action: "set-shared-report-dates-lock",
22083
- title: "Set Shared Report Dates Lock Sharedreports",
22084
- description: "Set Shared Report Dates Lock Sharedreports.",
22085
- safety: "update",
22086
- destructive: false,
22087
- cli: {
22088
- group: ["sharedreports"],
22089
- command: "set-shared-report-dates-lock",
22090
- interactive: "default"
22091
- },
22092
- mcp: { entityTool: "sharedreports" },
22093
- inputSchema: /* @__PURE__ */ looseObject({
22094
- id: /* @__PURE__ */ number$2(),
22095
- payload: /* @__PURE__ */ looseObject({ locked: /* @__PURE__ */ boolean$1() })
22096
- }),
22097
- execute: (input, { client }) => {
22098
- const data = input;
22099
- return client.runGeneratedRequest("setSharedReportDatesLock", () => callGeneratedRequest(setSharedReportDatesLock, [
22100
- client.httpClient,
22101
- client.workspaceIdNumber,
22102
- data.id,
22103
- data.payload ?? data.data ?? data,
22104
- void 0
22105
- ]));
22106
- }
22107
- },
22108
- {
22109
- id: "focus.sharedreports.share-saved-view",
22110
- family: "focus",
22111
- resource: "sharedreports",
22112
- action: "share-saved-view",
22113
- title: "Share Saved View Sharedreports",
22114
- description: "Share Saved View Sharedreports.",
22115
- safety: "update",
22116
- destructive: false,
22117
- cli: {
22118
- group: ["sharedreports"],
22119
- command: "share-saved-view",
22120
- interactive: "hidden"
22121
- },
22122
- mcp: { entityTool: "sharedreports" },
22123
- inputSchema: /* @__PURE__ */ looseObject({
22124
- id: /* @__PURE__ */ number$2(),
22125
- payload: /* @__PURE__ */ looseObject({
22126
- charts: /* @__PURE__ */ unknown$1(),
22127
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
22128
- team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
22129
- user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
22130
- workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
22131
- })
22132
- }),
22133
- execute: (input, { client }) => {
22134
- const data = input;
22135
- return client.runGeneratedRequest("shareSavedView", () => callGeneratedRequest(shareSavedView, [
22136
- client.httpClient,
22137
- client.workspaceIdNumber,
22138
- data.id,
22139
- data.payload ?? data.data ?? data,
22140
- void 0
22141
- ]));
22142
- }
22143
- },
22144
- {
22145
- id: "focus.sharedreports.share-saved-view-many",
22146
- family: "focus",
22147
- resource: "sharedreports",
22148
- action: "share-saved-view-many",
22149
- title: "Share Saved View Many Sharedreports",
22150
- description: "Share Saved View Many Sharedreports.",
22151
- safety: "update",
22152
- destructive: false,
22153
- cli: {
22154
- group: ["sharedreports"],
22155
- command: "share-saved-view-many",
22156
- interactive: "hidden"
21409
+ command: "share-saved-view-many",
21410
+ interactive: "hidden"
22157
21411
  },
22158
21412
  mcp: { entityTool: "sharedreports" },
22159
21413
  inputSchema: /* @__PURE__ */ looseObject({
@@ -22179,32 +21433,6 @@ const generatedFocusOperations = [
22179
21433
  ]));
22180
21434
  }
22181
21435
  },
22182
- {
22183
- id: "focus.sharedreports.unshare-shared-report",
22184
- family: "focus",
22185
- resource: "sharedreports",
22186
- action: "unshare-shared-report",
22187
- title: "Unshare Shared Report Sharedreports",
22188
- description: "Unshare Shared Report Sharedreports.",
22189
- safety: "delete",
22190
- destructive: true,
22191
- cli: {
22192
- group: ["sharedreports"],
22193
- command: "unshare-shared-report",
22194
- interactive: "default"
22195
- },
22196
- mcp: { entityTool: "sharedreports" },
22197
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
22198
- execute: (input, { client }) => {
22199
- const data = input;
22200
- return client.runGeneratedRequest("unshareSharedReport", () => callGeneratedRequest(unshareSharedReport, [
22201
- client.httpClient,
22202
- client.workspaceIdNumber,
22203
- data.id,
22204
- void 0
22205
- ]));
22206
- }
22207
- },
22208
21436
  {
22209
21437
  id: "focus.statuses.create-status",
22210
21438
  family: "focus",
@@ -23247,37 +22475,6 @@ const generatedFocusOperations = [
23247
22475
  return client.createTask(data);
23248
22476
  }
23249
22477
  },
23250
- {
23251
- id: "focus.tasks.create-recurring-occurrence",
23252
- family: "focus",
23253
- resource: "tasks",
23254
- action: "create-recurring-occurrence",
23255
- title: "Create Recurring Occurrence Tasks",
23256
- description: "Create Recurring Occurrence Tasks.",
23257
- safety: "create",
23258
- destructive: false,
23259
- cli: {
23260
- group: ["tasks"],
23261
- command: "create-recurring-occurrence",
23262
- interactive: "default"
23263
- },
23264
- mcp: { entityTool: "tasks" },
23265
- inputSchema: /* @__PURE__ */ looseObject({
23266
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23267
- task_id: /* @__PURE__ */ number$2()
23268
- }),
23269
- execute: (input, { client }) => {
23270
- const data = input;
23271
- return client.runGeneratedRequest("createRecurringOccurrence", () => callGeneratedRequest(createRecurringOccurrence, [
23272
- client.httpClient,
23273
- client.organizationId,
23274
- client.workspaceIdNumber,
23275
- data.task_id,
23276
- data.return_occurrence,
23277
- void 0
23278
- ]));
23279
- }
23280
- },
23281
22478
  {
23282
22479
  id: "focus.tasks.delete",
23283
22480
  family: "focus",
@@ -23502,79 +22699,6 @@ const generatedFocusOperations = [
23502
22699
  ]));
23503
22700
  }
23504
22701
  },
23505
- {
23506
- id: "focus.tasks.get-picker-task-children",
23507
- family: "focus",
23508
- resource: "tasks",
23509
- action: "get-picker-task-children",
23510
- title: "Get Picker Task Children Tasks",
23511
- description: "Get Picker Task Children Tasks.",
23512
- safety: "read",
23513
- destructive: false,
23514
- cli: {
23515
- group: ["tasks"],
23516
- command: "get-picker-task-children",
23517
- interactive: "hidden"
23518
- },
23519
- mcp: { entityTool: "tasks" },
23520
- inputSchema: /* @__PURE__ */ looseObject({
23521
- include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23522
- only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23523
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23524
- parent_task_id: /* @__PURE__ */ number$2(),
23525
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23526
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23527
- search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23528
- without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23529
- }),
23530
- execute: (input, { client }) => {
23531
- const data = input;
23532
- return client.runGeneratedRequest("getPickerTaskChildrenClassic", () => callGeneratedRequest(getPickerTaskChildrenClassic, [
23533
- client.httpClient,
23534
- client.organizationId,
23535
- client.workspaceIdNumber,
23536
- data.parent_task_id,
23537
- data,
23538
- void 0
23539
- ]));
23540
- }
23541
- },
23542
- {
23543
- id: "focus.tasks.get-picker-task-groups",
23544
- family: "focus",
23545
- resource: "tasks",
23546
- action: "get-picker-task-groups",
23547
- title: "Get Picker Task Groups Tasks",
23548
- description: "Get Picker Task Groups Tasks.",
23549
- safety: "read",
23550
- destructive: false,
23551
- cli: {
23552
- group: ["tasks"],
23553
- command: "get-picker-task-groups",
23554
- interactive: "hidden"
23555
- },
23556
- mcp: { entityTool: "tasks" },
23557
- inputSchema: /* @__PURE__ */ looseObject({
23558
- include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23559
- only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23560
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23561
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23562
- pinned_only: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23563
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23564
- search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23565
- without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23566
- }),
23567
- execute: (input, { client }) => {
23568
- const data = input;
23569
- return client.runGeneratedRequest("getPickerTaskGroupsClassic", () => callGeneratedRequest(getPickerTaskGroupsClassic, [
23570
- client.httpClient,
23571
- client.organizationId,
23572
- client.workspaceIdNumber,
23573
- data,
23574
- void 0
23575
- ]));
23576
- }
23577
- },
23578
22702
  {
23579
22703
  id: "focus.tasks.get-recurring-instances",
23580
22704
  family: "focus",
@@ -23598,13 +22722,9 @@ const generatedFocusOperations = [
23598
22722
  dates_overlap_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23599
22723
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23600
22724
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23601
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23602
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23603
22725
  page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23604
22726
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23605
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23606
22727
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23607
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23608
22728
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23609
22729
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
23610
22730
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -23650,14 +22770,13 @@ const generatedFocusOperations = [
23650
22770
  estimated_mins_max: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23651
22771
  estimated_mins_min: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23652
22772
  has_dates: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
22773
+ has_time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23653
22774
  has_time_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23654
22775
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23655
22776
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23656
22777
  include_parent_matches: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23657
22778
  include_project_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23658
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23659
22779
  is_priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23660
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23661
22780
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23662
22781
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23663
22782
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -23666,9 +22785,7 @@ const generatedFocusOperations = [
23666
22785
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23667
22786
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23668
22787
  recurring: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23669
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23670
22788
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23671
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23672
22789
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23673
22790
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23674
22791
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23677,6 +22794,8 @@ const generatedFocusOperations = [
23677
22794
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23678
22795
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
23679
22796
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
22797
+ time_block_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
22798
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23680
22799
  toggl_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23681
22800
  with_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23682
22801
  }),
@@ -23804,10 +22923,8 @@ const generatedFocusOperations = [
23804
22923
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23805
22924
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23806
22925
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23807
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23808
22926
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23809
22927
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23810
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23811
22928
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23812
22929
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23813
22930
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23816,8 +22933,6 @@ const generatedFocusOperations = [
23816
22933
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23817
22934
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23818
22935
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23819
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23820
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23821
22936
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23822
22937
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23823
22938
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23826,8 +22941,7 @@ const generatedFocusOperations = [
23826
22941
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
23827
22942
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23828
22943
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23829
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23830
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
22944
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
23831
22945
  }),
23832
22946
  execute: (input, { client }) => {
23833
22947
  const data = input;
@@ -23869,17 +22983,13 @@ const generatedFocusOperations = [
23869
22983
  group_id: /* @__PURE__ */ number$2(),
23870
22984
  include_assignees: /* @__PURE__ */ unknown$1(),
23871
22985
  include_drafts: /* @__PURE__ */ unknown$1(),
23872
- include_projected_occurrences: /* @__PURE__ */ unknown$1(),
23873
22986
  include_unassigned: /* @__PURE__ */ unknown$1(),
23874
22987
  include_unmaterialized: /* @__PURE__ */ unknown$1(),
23875
- max_recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
23876
22988
  min_days: /* @__PURE__ */ unknown$1(),
23877
22989
  name: /* @__PURE__ */ unknown$1(),
23878
22990
  priority: /* @__PURE__ */ unknown$1(),
23879
22991
  private_: /* @__PURE__ */ unknown$1(),
23880
22992
  project_id: /* @__PURE__ */ number$2(),
23881
- recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
23882
- recurring_task_read: /* @__PURE__ */ unknown$1(),
23883
22993
  source: /* @__PURE__ */ unknown$1(),
23884
22994
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
23885
22995
  start_date_from: /* @__PURE__ */ unknown$1(),
@@ -23888,8 +22998,7 @@ const generatedFocusOperations = [
23888
22998
  tag_id: /* @__PURE__ */ number$2(),
23889
22999
  team_id: /* @__PURE__ */ number$2(),
23890
23000
  user_cf_filter: /* @__PURE__ */ unknown$1(),
23891
- user_tag_id: /* @__PURE__ */ number$2(),
23892
- xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
23001
+ user_tag_id: /* @__PURE__ */ number$2()
23893
23002
  }),
23894
23003
  execute: (input, { client }) => {
23895
23004
  const data = input;
@@ -23930,17 +23039,13 @@ const generatedFocusOperations = [
23930
23039
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23931
23040
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23932
23041
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23933
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23934
23042
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23935
23043
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23936
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23937
23044
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23938
23045
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23939
23046
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23940
23047
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23941
23048
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23942
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23943
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23944
23049
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23945
23050
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23946
23051
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23949,290 +23054,752 @@ const generatedFocusOperations = [
23949
23054
  tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23950
23055
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23951
23056
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23952
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23953
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23057
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
23058
+ }),
23059
+ execute: (input, { client }) => {
23060
+ const data = input;
23061
+ return client.runGeneratedRequest("getUserTaskGroupsByTeam", () => callGeneratedRequest(getUserTaskGroupsByTeam, [
23062
+ client.httpClient,
23063
+ client.organizationId,
23064
+ client.workspaceIdNumber,
23065
+ data,
23066
+ void 0
23067
+ ]));
23068
+ }
23069
+ },
23070
+ {
23071
+ id: "focus.tasks.groups-update",
23072
+ family: "focus",
23073
+ resource: "tasks",
23074
+ action: "groups-update",
23075
+ title: "Groups Update Tasks",
23076
+ description: "Groups Update Tasks.",
23077
+ safety: "update",
23078
+ destructive: false,
23079
+ cli: {
23080
+ group: ["tasks", "groups"],
23081
+ command: "update",
23082
+ interactive: "hidden"
23083
+ },
23084
+ mcp: { entityTool: "tasks" },
23085
+ inputSchema: /* @__PURE__ */ looseObject({
23086
+ group: /* @__PURE__ */ picklist$1([
23087
+ "projects",
23088
+ "users",
23089
+ "tags"
23090
+ ]),
23091
+ payload: /* @__PURE__ */ unknown$1()
23092
+ }),
23093
+ execute: (input, { client }) => {
23094
+ const data = input;
23095
+ return client.runGeneratedRequest("updateTaskGroups", () => callGeneratedRequest(updateTaskGroups, [
23096
+ client.httpClient,
23097
+ client.organizationId,
23098
+ client.workspaceIdNumber,
23099
+ data.group,
23100
+ data.payload ?? data.data ?? data,
23101
+ void 0
23102
+ ]));
23103
+ }
23104
+ },
23105
+ {
23106
+ id: "focus.tasks.list",
23107
+ family: "focus",
23108
+ resource: "tasks",
23109
+ action: "list",
23110
+ title: "List Tasks",
23111
+ description: "List Tasks.",
23112
+ safety: "read",
23113
+ destructive: false,
23114
+ cli: {
23115
+ group: ["tasks"],
23116
+ command: "list",
23117
+ interactive: "available"
23118
+ },
23119
+ mcp: { entityTool: "tasks" },
23120
+ inputSchema: taskListSchema,
23121
+ execute: (input, { client }) => {
23122
+ const data = input;
23123
+ return client.listTasks(data);
23124
+ }
23125
+ },
23126
+ {
23127
+ id: "focus.tasks.restore",
23128
+ family: "focus",
23129
+ resource: "tasks",
23130
+ action: "restore",
23131
+ title: "Restore Tasks",
23132
+ description: "Restore Tasks.",
23133
+ safety: "update",
23134
+ destructive: false,
23135
+ cli: {
23136
+ group: ["tasks"],
23137
+ command: "restore",
23138
+ interactive: "default"
23139
+ },
23140
+ mcp: { entityTool: "tasks" },
23141
+ inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
23142
+ execute: (input, { client }) => {
23143
+ const data = input;
23144
+ return client.runGeneratedRequest("restoreTask", () => callGeneratedRequest(restoreTask, [
23145
+ client.httpClient,
23146
+ client.organizationId,
23147
+ client.workspaceIdNumber,
23148
+ data.task_id,
23149
+ void 0
23150
+ ]));
23151
+ }
23152
+ },
23153
+ {
23154
+ id: "focus.tasks.suggestions-get-project-suggestion-for-atask",
23155
+ family: "focus",
23156
+ resource: "tasks",
23157
+ action: "suggestions-get-project-suggestion-for-atask",
23158
+ title: "Suggestions Get Project Suggestion For Atask Tasks",
23159
+ description: "Suggestions Get Project Suggestion For Atask Tasks.",
23160
+ safety: "update",
23161
+ destructive: false,
23162
+ cli: {
23163
+ group: ["tasks", "suggestions"],
23164
+ command: "get-project-suggestion-for-atask",
23165
+ interactive: "default"
23166
+ },
23167
+ mcp: { entityTool: "tasks" },
23168
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }) }),
23169
+ execute: (input, { client }) => {
23170
+ const data = input;
23171
+ return client.runGeneratedRequest("getProjectSuggestionForATask", () => callGeneratedRequest(getProjectSuggestionForATask, [
23172
+ client.httpClient,
23173
+ client.organizationId,
23174
+ client.workspaceIdNumber,
23175
+ data.payload ?? data.data ?? data,
23176
+ void 0
23177
+ ]));
23178
+ }
23179
+ },
23180
+ {
23181
+ id: "focus.tasks.suggestions-get-project-suggestions-for-multiple-tasks",
23182
+ family: "focus",
23183
+ resource: "tasks",
23184
+ action: "suggestions-get-project-suggestions-for-multiple-tasks",
23185
+ title: "Suggestions Get Project Suggestions For Multiple Tasks Tasks",
23186
+ description: "Suggestions Get Project Suggestions For Multiple Tasks Tasks.",
23187
+ safety: "update",
23188
+ destructive: false,
23189
+ cli: {
23190
+ group: ["tasks", "suggestions"],
23191
+ command: "get-project-suggestions-for-multiple-tasks",
23192
+ interactive: "default"
23193
+ },
23194
+ mcp: { entityTool: "tasks" },
23195
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
23196
+ execute: (input, { client }) => {
23197
+ const data = input;
23198
+ return client.runGeneratedRequest("getProjectSuggestionsForMultipleTasks", () => callGeneratedRequest(getProjectSuggestionsForMultipleTasks, [
23199
+ client.httpClient,
23200
+ client.organizationId,
23201
+ client.workspaceIdNumber,
23202
+ data.payload ?? data.data ?? data,
23203
+ void 0
23204
+ ]));
23205
+ }
23206
+ },
23207
+ {
23208
+ id: "focus.tasks.unarchive",
23209
+ family: "focus",
23210
+ resource: "tasks",
23211
+ action: "unarchive",
23212
+ title: "Unarchive Tasks",
23213
+ description: "Unarchive Tasks.",
23214
+ safety: "update",
23215
+ destructive: false,
23216
+ cli: {
23217
+ group: ["tasks"],
23218
+ command: "unarchive",
23219
+ interactive: "default"
23220
+ },
23221
+ mcp: { entityTool: "tasks" },
23222
+ inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
23223
+ execute: (input, { client }) => {
23224
+ const data = input;
23225
+ return client.runGeneratedRequest("unarchiveTask", () => callGeneratedRequest(unarchiveTask, [
23226
+ client.httpClient,
23227
+ client.organizationId,
23228
+ client.workspaceIdNumber,
23229
+ data.task_id,
23230
+ void 0
23231
+ ]));
23232
+ }
23233
+ },
23234
+ {
23235
+ id: "focus.tasks.update",
23236
+ family: "focus",
23237
+ resource: "tasks",
23238
+ action: "update",
23239
+ title: "Update Tasks",
23240
+ description: "Update Tasks.",
23241
+ safety: "update",
23242
+ destructive: false,
23243
+ cli: {
23244
+ group: ["tasks"],
23245
+ command: "update",
23246
+ interactive: "default"
23247
+ },
23248
+ mcp: { entityTool: "tasks" },
23249
+ inputSchema: taskUpdateSchema,
23250
+ execute: (input, { client }) => {
23251
+ const data = input;
23252
+ return client.updateTask(data.task_id, data.payload);
23253
+ }
23254
+ },
23255
+ {
23256
+ id: "focus.tasks.full-update",
23257
+ family: "focus",
23258
+ resource: "tasks",
23259
+ action: "full-update",
23260
+ title: "Full Update Tasks",
23261
+ description: "Full Update Tasks.",
23262
+ safety: "update",
23263
+ destructive: false,
23264
+ cli: {
23265
+ group: ["tasks"],
23266
+ command: "full-update",
23267
+ interactive: "hidden"
23268
+ },
23269
+ mcp: { entityTool: "tasks" },
23270
+ inputSchema: /* @__PURE__ */ looseObject({
23271
+ payload: /* @__PURE__ */ looseObject({
23272
+ name: /* @__PURE__ */ string$1(),
23273
+ status_id: /* @__PURE__ */ number$2(),
23274
+ auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23275
+ color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23276
+ custom_fields: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23277
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23278
+ end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23279
+ estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
23280
+ estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23281
+ notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23282
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23283
+ parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23284
+ pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23285
+ priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
23286
+ "none",
23287
+ "low",
23288
+ "medium",
23289
+ "high"
23290
+ ])),
23291
+ private: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23292
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23293
+ recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23294
+ rollup_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23295
+ start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
23296
+ }),
23297
+ task_id: /* @__PURE__ */ number$2()
23298
+ }),
23299
+ execute: (input, { client }) => {
23300
+ const data = input;
23301
+ return client.runGeneratedRequest("updateTask", () => callGeneratedRequest(updateTask, [
23302
+ client.httpClient,
23303
+ client.organizationId,
23304
+ client.workspaceIdNumber,
23305
+ data.task_id,
23306
+ data.payload ?? data.data ?? data,
23307
+ void 0
23308
+ ]));
23309
+ }
23310
+ },
23311
+ {
23312
+ id: "focus.tasks.update-calendar-range",
23313
+ family: "focus",
23314
+ resource: "tasks",
23315
+ action: "update-calendar-range",
23316
+ title: "Update Calendar Range Tasks",
23317
+ description: "Update Calendar Range Tasks.",
23318
+ safety: "update",
23319
+ destructive: false,
23320
+ cli: {
23321
+ group: ["tasks"],
23322
+ command: "update-calendar-range",
23323
+ interactive: "default"
23324
+ },
23325
+ mcp: { entityTool: "tasks" },
23326
+ inputSchema: /* @__PURE__ */ looseObject({
23327
+ date_from: /* @__PURE__ */ string$1(),
23328
+ date_to: /* @__PURE__ */ string$1()
23329
+ }),
23330
+ execute: (input, { client }) => {
23331
+ const data = input;
23332
+ return client.runGeneratedRequest("putTasksCalendarRange", () => callGeneratedRequest(putTasksCalendarRange, [
23333
+ client.httpClient,
23334
+ client.organizationId,
23335
+ client.workspaceIdNumber,
23336
+ data.date_from,
23337
+ data.date_to,
23338
+ void 0
23339
+ ]));
23340
+ }
23341
+ },
23342
+ {
23343
+ id: "focus.time-blocks.archive",
23344
+ family: "focus",
23345
+ resource: "time-blocks",
23346
+ action: "archive",
23347
+ title: "Archive Time Blocks",
23348
+ description: "Archive Time Blocks.",
23349
+ safety: "update",
23350
+ destructive: false,
23351
+ cli: {
23352
+ group: ["time-blocks"],
23353
+ command: "archive",
23354
+ interactive: "default"
23355
+ },
23356
+ mcp: { entityTool: "time-blocks" },
23357
+ inputSchema: /* @__PURE__ */ looseObject({
23358
+ task_id: /* @__PURE__ */ number$2(),
23359
+ time_block_id: /* @__PURE__ */ number$2()
23360
+ }),
23361
+ execute: (input, { client }) => {
23362
+ const data = input;
23363
+ return client.runGeneratedRequest("archiveTimeBlockWithOrg", () => callGeneratedRequest(archiveTimeBlockWithOrg, [
23364
+ client.httpClient,
23365
+ client.organizationId,
23366
+ client.workspaceIdNumber,
23367
+ data.task_id,
23368
+ data.time_block_id,
23369
+ void 0
23370
+ ]));
23371
+ }
23372
+ },
23373
+ {
23374
+ id: "focus.time-blocks.bulk-create",
23375
+ family: "focus",
23376
+ resource: "time-blocks",
23377
+ action: "bulk-create",
23378
+ title: "Bulk Create Time Blocks",
23379
+ description: "Bulk Create Time Blocks.",
23380
+ safety: "create",
23381
+ destructive: false,
23382
+ cli: {
23383
+ group: ["time-blocks", "bulk"],
23384
+ command: "create",
23385
+ interactive: "default"
23386
+ },
23387
+ mcp: { entityTool: "time-blocks" },
23388
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ time_blocks: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
23389
+ start: apiDateTimeString,
23390
+ task_id: /* @__PURE__ */ number$2(),
23391
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23392
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23393
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23394
+ })) }) }),
23395
+ execute: (input, { client }) => {
23396
+ const data = input;
23397
+ return client.runGeneratedRequest("bulkCreateTimeBlockWithOrg", () => callGeneratedRequest(bulkCreateTimeBlockWithOrg, [
23398
+ client.httpClient,
23399
+ client.organizationId,
23400
+ client.workspaceIdNumber,
23401
+ data.payload ?? data.data ?? data,
23402
+ void 0
23403
+ ]));
23404
+ }
23405
+ },
23406
+ {
23407
+ id: "focus.time-blocks.bulk-delete",
23408
+ family: "focus",
23409
+ resource: "time-blocks",
23410
+ action: "bulk-delete",
23411
+ title: "Bulk Delete Time Blocks",
23412
+ description: "Bulk Delete Time Blocks.",
23413
+ safety: "delete",
23414
+ destructive: true,
23415
+ cli: {
23416
+ group: ["time-blocks", "bulk"],
23417
+ command: "delete",
23418
+ interactive: "default"
23419
+ },
23420
+ mcp: { entityTool: "time-blocks" },
23421
+ inputSchema: /* @__PURE__ */ looseObject({
23422
+ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
23423
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23954
23424
  }),
23955
23425
  execute: (input, { client }) => {
23956
23426
  const data = input;
23957
- return client.runGeneratedRequest("getUserTaskGroupsByTeam", () => callGeneratedRequest(getUserTaskGroupsByTeam, [
23427
+ return client.runGeneratedRequest("bulkDeleteTimeBlockWithOrg", () => callGeneratedRequest(bulkDeleteTimeBlockWithOrg, [
23958
23428
  client.httpClient,
23959
23429
  client.organizationId,
23960
23430
  client.workspaceIdNumber,
23961
- data,
23431
+ data.ids,
23432
+ data.outbound_sync,
23962
23433
  void 0
23963
23434
  ]));
23964
23435
  }
23965
23436
  },
23966
23437
  {
23967
- id: "focus.tasks.groups-update",
23438
+ id: "focus.time-blocks.bulk-partial-update",
23968
23439
  family: "focus",
23969
- resource: "tasks",
23970
- action: "groups-update",
23971
- title: "Groups Update Tasks",
23972
- description: "Groups Update Tasks.",
23440
+ resource: "time-blocks",
23441
+ action: "bulk-partial-update",
23442
+ title: "Bulk Partial Update Time Blocks",
23443
+ description: "Bulk Partial Update Time Blocks.",
23973
23444
  safety: "update",
23974
23445
  destructive: false,
23975
23446
  cli: {
23976
- group: ["tasks", "groups"],
23977
- command: "update",
23447
+ group: ["time-blocks", "bulk"],
23448
+ command: "partial-update",
23978
23449
  interactive: "hidden"
23979
23450
  },
23980
- mcp: { entityTool: "tasks" },
23451
+ mcp: { entityTool: "time-blocks" },
23452
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ unknown$1() }),
23453
+ execute: (input, { client }) => {
23454
+ const data = input;
23455
+ return client.runGeneratedRequest("bulkPartialUpdateTimeBlockWithOrg", () => callGeneratedRequest(bulkPartialUpdateTimeBlockWithOrg, [
23456
+ client.httpClient,
23457
+ client.organizationId,
23458
+ client.workspaceIdNumber,
23459
+ data.payload ?? data.data ?? data,
23460
+ void 0
23461
+ ]));
23462
+ }
23463
+ },
23464
+ {
23465
+ id: "focus.time-blocks.create",
23466
+ family: "focus",
23467
+ resource: "time-blocks",
23468
+ action: "create",
23469
+ title: "Create Time Blocks",
23470
+ description: "Create Time Blocks.",
23471
+ safety: "create",
23472
+ destructive: false,
23473
+ cli: {
23474
+ group: ["time-blocks"],
23475
+ command: "create",
23476
+ interactive: "default"
23477
+ },
23478
+ mcp: { entityTool: "time-blocks" },
23981
23479
  inputSchema: /* @__PURE__ */ looseObject({
23982
- group: /* @__PURE__ */ picklist$1([
23983
- "projects",
23984
- "users",
23985
- "tags"
23986
- ]),
23987
- payload: /* @__PURE__ */ unknown$1()
23480
+ payload: /* @__PURE__ */ looseObject({
23481
+ start: apiDateTimeString,
23482
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23483
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23484
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23485
+ }),
23486
+ task_id: /* @__PURE__ */ number$2()
23988
23487
  }),
23989
23488
  execute: (input, { client }) => {
23990
23489
  const data = input;
23991
- return client.runGeneratedRequest("updateTaskGroups", () => callGeneratedRequest(updateTaskGroups, [
23490
+ return client.runGeneratedRequest("createTimeBlockWithOrg", () => callGeneratedRequest(createTimeBlockWithOrg, [
23992
23491
  client.httpClient,
23993
23492
  client.organizationId,
23994
23493
  client.workspaceIdNumber,
23995
- data.group,
23494
+ data.task_id,
23996
23495
  data.payload ?? data.data ?? data,
23997
23496
  void 0
23998
23497
  ]));
23999
23498
  }
24000
23499
  },
24001
23500
  {
24002
- id: "focus.tasks.list",
23501
+ id: "focus.time-blocks.delete",
24003
23502
  family: "focus",
24004
- resource: "tasks",
24005
- action: "list",
24006
- title: "List Tasks",
24007
- description: "List Tasks.",
23503
+ resource: "time-blocks",
23504
+ action: "delete",
23505
+ title: "Delete Time Blocks",
23506
+ description: "Delete Time Blocks.",
23507
+ safety: "delete",
23508
+ destructive: true,
23509
+ cli: {
23510
+ group: ["time-blocks"],
23511
+ command: "delete",
23512
+ interactive: "default"
23513
+ },
23514
+ mcp: { entityTool: "time-blocks" },
23515
+ inputSchema: /* @__PURE__ */ looseObject({
23516
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23517
+ task_id: /* @__PURE__ */ number$2(),
23518
+ time_block_id: /* @__PURE__ */ number$2()
23519
+ }),
23520
+ execute: (input, { client }) => {
23521
+ const data = input;
23522
+ return client.runGeneratedRequest("deleteTimeBlockWithOrg", () => callGeneratedRequest(deleteTimeBlockWithOrg, [
23523
+ client.httpClient,
23524
+ client.organizationId,
23525
+ client.workspaceIdNumber,
23526
+ data.task_id,
23527
+ data.time_block_id,
23528
+ data.outbound_sync,
23529
+ void 0
23530
+ ]));
23531
+ }
23532
+ },
23533
+ {
23534
+ id: "focus.time-blocks.get",
23535
+ family: "focus",
23536
+ resource: "time-blocks",
23537
+ action: "get",
23538
+ title: "Get Time Blocks",
23539
+ description: "Get Time Blocks.",
24008
23540
  safety: "read",
24009
23541
  destructive: false,
24010
23542
  cli: {
24011
- group: ["tasks"],
24012
- command: "list",
23543
+ group: ["time-blocks"],
23544
+ command: "get",
24013
23545
  interactive: "available"
24014
23546
  },
24015
- mcp: { entityTool: "tasks" },
24016
- inputSchema: taskListSchema,
23547
+ mcp: { entityTool: "time-blocks" },
23548
+ inputSchema: /* @__PURE__ */ looseObject({
23549
+ task_id: /* @__PURE__ */ number$2(),
23550
+ time_block_id: /* @__PURE__ */ number$2()
23551
+ }),
24017
23552
  execute: (input, { client }) => {
24018
23553
  const data = input;
24019
- return client.listTasks(data);
23554
+ return client.runGeneratedRequest("getTimeBlockWithOrg", () => callGeneratedRequest(getTimeBlockWithOrg, [
23555
+ client.httpClient,
23556
+ client.organizationId,
23557
+ client.workspaceIdNumber,
23558
+ data.task_id,
23559
+ data.time_block_id,
23560
+ void 0
23561
+ ]));
24020
23562
  }
24021
23563
  },
24022
23564
  {
24023
- id: "focus.tasks.restore",
23565
+ id: "focus.time-blocks.get-range",
24024
23566
  family: "focus",
24025
- resource: "tasks",
24026
- action: "restore",
24027
- title: "Restore Tasks",
24028
- description: "Restore Tasks.",
24029
- safety: "update",
23567
+ resource: "time-blocks",
23568
+ action: "get-range",
23569
+ title: "Get Range Time Blocks",
23570
+ description: "Get Range Time Blocks.",
23571
+ safety: "read",
24030
23572
  destructive: false,
24031
23573
  cli: {
24032
- group: ["tasks"],
24033
- command: "restore",
24034
- interactive: "default"
23574
+ group: ["time-blocks"],
23575
+ command: "get-range",
23576
+ interactive: "hidden"
24035
23577
  },
24036
- mcp: { entityTool: "tasks" },
24037
- inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
23578
+ mcp: { entityTool: "time-blocks" },
23579
+ inputSchema: /* @__PURE__ */ looseObject({
23580
+ archived: /* @__PURE__ */ unknown$1(),
23581
+ date_from: /* @__PURE__ */ unknown$1(),
23582
+ date_to: /* @__PURE__ */ unknown$1(),
23583
+ order_by: /* @__PURE__ */ unknown$1(),
23584
+ page: /* @__PURE__ */ number$2(),
23585
+ per_page: /* @__PURE__ */ unknown$1(),
23586
+ status_id: /* @__PURE__ */ number$2(),
23587
+ task_id: /* @__PURE__ */ number$2()
23588
+ }),
24038
23589
  execute: (input, { client }) => {
24039
23590
  const data = input;
24040
- return client.runGeneratedRequest("restoreTask", () => callGeneratedRequest(restoreTask, [
23591
+ return client.runGeneratedRequest("getTimeBlocksRangeWithOrgClassic", () => callGeneratedRequest(getTimeBlocksRangeWithOrgClassic, [
24041
23592
  client.httpClient,
24042
23593
  client.organizationId,
24043
23594
  client.workspaceIdNumber,
24044
- data.task_id,
23595
+ data,
24045
23596
  void 0
24046
23597
  ]));
24047
23598
  }
24048
23599
  },
24049
23600
  {
24050
- id: "focus.tasks.suggestions-get-project-suggestion-for-atask",
23601
+ id: "focus.time-blocks.get-range-stream",
24051
23602
  family: "focus",
24052
- resource: "tasks",
24053
- action: "suggestions-get-project-suggestion-for-atask",
24054
- title: "Suggestions Get Project Suggestion For Atask Tasks",
24055
- description: "Suggestions Get Project Suggestion For Atask Tasks.",
24056
- safety: "update",
23603
+ resource: "time-blocks",
23604
+ action: "get-range-stream",
23605
+ title: "Get Range Stream Time Blocks",
23606
+ description: "Get Range Stream Time Blocks.",
23607
+ safety: "read",
24057
23608
  destructive: false,
24058
23609
  cli: {
24059
- group: ["tasks", "suggestions"],
24060
- command: "get-project-suggestion-for-atask",
24061
- interactive: "default"
23610
+ group: ["time-blocks"],
23611
+ command: "get-range-stream",
23612
+ interactive: "hidden"
24062
23613
  },
24063
- mcp: { entityTool: "tasks" },
24064
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }) }),
23614
+ mcp: { entityTool: "time-blocks" },
23615
+ inputSchema: /* @__PURE__ */ looseObject({
23616
+ archived: /* @__PURE__ */ unknown$1(),
23617
+ date_from: /* @__PURE__ */ unknown$1(),
23618
+ date_to: /* @__PURE__ */ unknown$1(),
23619
+ order_by: /* @__PURE__ */ unknown$1(),
23620
+ status_id: /* @__PURE__ */ number$2(),
23621
+ task_id: /* @__PURE__ */ number$2()
23622
+ }),
24065
23623
  execute: (input, { client }) => {
24066
23624
  const data = input;
24067
- return client.runGeneratedRequest("getProjectSuggestionForATask", () => callGeneratedRequest(getProjectSuggestionForATask, [
23625
+ return client.runGeneratedRequest("getTimeBlocksRangeStreamWithOrg", () => callGeneratedRequest(getTimeBlocksRangeStreamWithOrg, [
24068
23626
  client.httpClient,
24069
23627
  client.organizationId,
24070
23628
  client.workspaceIdNumber,
24071
- data.payload ?? data.data ?? data,
23629
+ data,
24072
23630
  void 0
24073
23631
  ]));
24074
23632
  }
24075
23633
  },
24076
23634
  {
24077
- id: "focus.tasks.suggestions-get-project-suggestions-for-multiple-tasks",
23635
+ id: "focus.time-blocks.get-task-time-blocks",
24078
23636
  family: "focus",
24079
- resource: "tasks",
24080
- action: "suggestions-get-project-suggestions-for-multiple-tasks",
24081
- title: "Suggestions Get Project Suggestions For Multiple Tasks Tasks",
24082
- description: "Suggestions Get Project Suggestions For Multiple Tasks Tasks.",
24083
- safety: "update",
23637
+ resource: "time-blocks",
23638
+ action: "get-task-time-blocks",
23639
+ title: "Get Task Time Blocks Time Blocks",
23640
+ description: "Get Task Time Blocks Time Blocks.",
23641
+ safety: "read",
24084
23642
  destructive: false,
24085
23643
  cli: {
24086
- group: ["tasks", "suggestions"],
24087
- command: "get-project-suggestions-for-multiple-tasks",
24088
- interactive: "default"
23644
+ group: ["time-blocks"],
23645
+ command: "get-task-time-blocks",
23646
+ interactive: "hidden"
24089
23647
  },
24090
- mcp: { entityTool: "tasks" },
24091
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
23648
+ mcp: { entityTool: "time-blocks" },
23649
+ inputSchema: /* @__PURE__ */ looseObject({
23650
+ archived: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23651
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23652
+ page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23653
+ per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23654
+ task_id: /* @__PURE__ */ number$2()
23655
+ }),
24092
23656
  execute: (input, { client }) => {
24093
23657
  const data = input;
24094
- return client.runGeneratedRequest("getProjectSuggestionsForMultipleTasks", () => callGeneratedRequest(getProjectSuggestionsForMultipleTasks, [
23658
+ return client.runGeneratedRequest("getTaskTimeBlocksWithOrgClassic", () => callGeneratedRequest(getTaskTimeBlocksWithOrgClassic, [
24095
23659
  client.httpClient,
24096
23660
  client.organizationId,
24097
23661
  client.workspaceIdNumber,
24098
- data.payload ?? data.data ?? data,
23662
+ data.task_id,
23663
+ data,
24099
23664
  void 0
24100
23665
  ]));
24101
23666
  }
24102
23667
  },
24103
23668
  {
24104
- id: "focus.tasks.unarchive",
23669
+ id: "focus.time-blocks.partial-update",
24105
23670
  family: "focus",
24106
- resource: "tasks",
24107
- action: "unarchive",
24108
- title: "Unarchive Tasks",
24109
- description: "Unarchive Tasks.",
23671
+ resource: "time-blocks",
23672
+ action: "partial-update",
23673
+ title: "Partial Update Time Blocks",
23674
+ description: "Partial Update Time Blocks.",
24110
23675
  safety: "update",
24111
23676
  destructive: false,
24112
23677
  cli: {
24113
- group: ["tasks"],
24114
- command: "unarchive",
23678
+ group: ["time-blocks"],
23679
+ command: "partial-update",
24115
23680
  interactive: "default"
24116
23681
  },
24117
- mcp: { entityTool: "tasks" },
24118
- inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
23682
+ mcp: { entityTool: "time-blocks" },
23683
+ inputSchema: /* @__PURE__ */ looseObject({
23684
+ payload: /* @__PURE__ */ looseObject({
23685
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23686
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23687
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23688
+ start: /* @__PURE__ */ optional$1(apiDateTimeString),
23689
+ task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
23690
+ }),
23691
+ task_id: /* @__PURE__ */ number$2(),
23692
+ time_block_id: /* @__PURE__ */ number$2()
23693
+ }),
24119
23694
  execute: (input, { client }) => {
24120
23695
  const data = input;
24121
- return client.runGeneratedRequest("unarchiveTask", () => callGeneratedRequest(unarchiveTask, [
23696
+ return client.runGeneratedRequest("partialUpdateTimeBlockWithOrg", () => callGeneratedRequest(partialUpdateTimeBlockWithOrg, [
24122
23697
  client.httpClient,
24123
23698
  client.organizationId,
24124
23699
  client.workspaceIdNumber,
24125
23700
  data.task_id,
23701
+ data.time_block_id,
23702
+ data.payload ?? data.data ?? data,
24126
23703
  void 0
24127
23704
  ]));
24128
23705
  }
24129
23706
  },
24130
23707
  {
24131
- id: "focus.tasks.update",
23708
+ id: "focus.time-blocks.restore",
24132
23709
  family: "focus",
24133
- resource: "tasks",
24134
- action: "update",
24135
- title: "Update Tasks",
24136
- description: "Update Tasks.",
23710
+ resource: "time-blocks",
23711
+ action: "restore",
23712
+ title: "Restore Time Blocks",
23713
+ description: "Restore Time Blocks.",
24137
23714
  safety: "update",
24138
23715
  destructive: false,
24139
23716
  cli: {
24140
- group: ["tasks"],
24141
- command: "update",
23717
+ group: ["time-blocks"],
23718
+ command: "restore",
24142
23719
  interactive: "default"
24143
23720
  },
24144
- mcp: { entityTool: "tasks" },
24145
- inputSchema: taskUpdateSchema,
23721
+ mcp: { entityTool: "time-blocks" },
23722
+ inputSchema: /* @__PURE__ */ looseObject({
23723
+ task_id: /* @__PURE__ */ number$2(),
23724
+ time_block_id: /* @__PURE__ */ number$2()
23725
+ }),
24146
23726
  execute: (input, { client }) => {
24147
23727
  const data = input;
24148
- return client.updateTask(data.task_id, data.payload);
23728
+ return client.runGeneratedRequest("restoreTimeBlockWithOrg", () => callGeneratedRequest(restoreTimeBlockWithOrg, [
23729
+ client.httpClient,
23730
+ client.organizationId,
23731
+ client.workspaceIdNumber,
23732
+ data.task_id,
23733
+ data.time_block_id,
23734
+ void 0
23735
+ ]));
24149
23736
  }
24150
23737
  },
24151
23738
  {
24152
- id: "focus.tasks.full-update",
23739
+ id: "focus.time-blocks.unarchive",
24153
23740
  family: "focus",
24154
- resource: "tasks",
24155
- action: "full-update",
24156
- title: "Full Update Tasks",
24157
- description: "Full Update Tasks.",
23741
+ resource: "time-blocks",
23742
+ action: "unarchive",
23743
+ title: "Unarchive Time Blocks",
23744
+ description: "Unarchive Time Blocks.",
24158
23745
  safety: "update",
24159
23746
  destructive: false,
24160
23747
  cli: {
24161
- group: ["tasks"],
24162
- command: "full-update",
24163
- interactive: "hidden"
23748
+ group: ["time-blocks"],
23749
+ command: "unarchive",
23750
+ interactive: "default"
24164
23751
  },
24165
- mcp: { entityTool: "tasks" },
23752
+ mcp: { entityTool: "time-blocks" },
24166
23753
  inputSchema: /* @__PURE__ */ looseObject({
24167
- payload: /* @__PURE__ */ looseObject({
24168
- name: /* @__PURE__ */ string$1(),
24169
- status_id: /* @__PURE__ */ number$2(),
24170
- auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24171
- color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24172
- custom_fields: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
24173
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24174
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
24175
- estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
24176
- estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24177
- notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24178
- outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24179
- parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24180
- pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24181
- priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
24182
- "none",
24183
- "low",
24184
- "medium",
24185
- "high"
24186
- ])),
24187
- private: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24188
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24189
- recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24190
- rollup_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24191
- start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
24192
- }),
24193
- task_id: /* @__PURE__ */ number$2()
23754
+ task_id: /* @__PURE__ */ number$2(),
23755
+ time_block_id: /* @__PURE__ */ number$2()
24194
23756
  }),
24195
23757
  execute: (input, { client }) => {
24196
23758
  const data = input;
24197
- return client.runGeneratedRequest("updateTask", () => callGeneratedRequest(updateTask, [
23759
+ return client.runGeneratedRequest("unarchiveTimeBlockWithOrg", () => callGeneratedRequest(unarchiveTimeBlockWithOrg, [
24198
23760
  client.httpClient,
24199
23761
  client.organizationId,
24200
23762
  client.workspaceIdNumber,
24201
23763
  data.task_id,
24202
- data.payload ?? data.data ?? data,
23764
+ data.time_block_id,
24203
23765
  void 0
24204
23766
  ]));
24205
23767
  }
24206
23768
  },
24207
23769
  {
24208
- id: "focus.tasks.update-calendar-range",
23770
+ id: "focus.time-blocks.update",
24209
23771
  family: "focus",
24210
- resource: "tasks",
24211
- action: "update-calendar-range",
24212
- title: "Update Calendar Range Tasks",
24213
- description: "Update Calendar Range Tasks.",
23772
+ resource: "time-blocks",
23773
+ action: "update",
23774
+ title: "Update Time Blocks",
23775
+ description: "Update Time Blocks.",
24214
23776
  safety: "update",
24215
23777
  destructive: false,
24216
23778
  cli: {
24217
- group: ["tasks"],
24218
- command: "update-calendar-range",
23779
+ group: ["time-blocks"],
23780
+ command: "update",
24219
23781
  interactive: "default"
24220
23782
  },
24221
- mcp: { entityTool: "tasks" },
23783
+ mcp: { entityTool: "time-blocks" },
24222
23784
  inputSchema: /* @__PURE__ */ looseObject({
24223
- date_from: /* @__PURE__ */ string$1(),
24224
- date_to: /* @__PURE__ */ string$1(),
24225
- skip_provider_refresh: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23785
+ payload: /* @__PURE__ */ looseObject({
23786
+ start: apiDateTimeString,
23787
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23788
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23789
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23790
+ }),
23791
+ task_id: /* @__PURE__ */ number$2(),
23792
+ time_block_id: /* @__PURE__ */ number$2()
24226
23793
  }),
24227
23794
  execute: (input, { client }) => {
24228
23795
  const data = input;
24229
- return client.runGeneratedRequest("putTasksCalendarRange", () => callGeneratedRequest(putTasksCalendarRange, [
23796
+ return client.runGeneratedRequest("updateTimeBlockWithOrg", () => callGeneratedRequest(updateTimeBlockWithOrg, [
24230
23797
  client.httpClient,
24231
23798
  client.organizationId,
24232
23799
  client.workspaceIdNumber,
24233
- data.date_from,
24234
- data.date_to,
24235
- data.skip_provider_refresh,
23800
+ data.task_id,
23801
+ data.time_block_id,
23802
+ data.payload ?? data.data ?? data,
24236
23803
  void 0
24237
23804
  ]));
24238
23805
  }
@@ -24452,8 +24019,7 @@ const generatedFocusOperations = [
24452
24019
  required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
24453
24020
  "project",
24454
24021
  "task",
24455
- "description",
24456
- "tags"
24022
+ "description"
24457
24023
  ]) })),
24458
24024
  disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
24459
24025
  }) }),
@@ -24483,7 +24049,6 @@ const generatedFocusOperations = [
24483
24049
  },
24484
24050
  mcp: { entityTool: "time-entries" },
24485
24051
  inputSchema: /* @__PURE__ */ looseObject({
24486
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24487
24052
  payload: /* @__PURE__ */ looseObject({
24488
24053
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
24489
24054
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -24494,12 +24059,11 @@ const generatedFocusOperations = [
24494
24059
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24495
24060
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24496
24061
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24497
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24498
24062
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
24063
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24499
24064
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24500
24065
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
24501
24066
  }),
24502
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24503
24067
  task_id: /* @__PURE__ */ number$2()
24504
24068
  }),
24505
24069
  execute: (input, { client }) => {
@@ -24510,8 +24074,6 @@ const generatedFocusOperations = [
24510
24074
  client.workspaceIdNumber,
24511
24075
  data.task_id,
24512
24076
  data.payload ?? data.data ?? data,
24513
- data.from_recurring_task_id,
24514
- data.return_occurrence,
24515
24077
  void 0
24516
24078
  ]));
24517
24079
  }
@@ -24531,25 +24093,21 @@ const generatedFocusOperations = [
24531
24093
  interactive: "default"
24532
24094
  },
24533
24095
  mcp: { entityTool: "time-entries" },
24534
- inputSchema: /* @__PURE__ */ looseObject({
24535
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24536
- payload: /* @__PURE__ */ looseObject({
24537
- type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
24538
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24539
- calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24540
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24541
- duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24542
- planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24543
- planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24544
- planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24545
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24546
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24547
- start: /* @__PURE__ */ optional$1(apiDateTimeString),
24548
- tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24549
- user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
24550
- }),
24551
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
24552
- }),
24096
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
24097
+ type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
24098
+ billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24099
+ calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24100
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24101
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24102
+ planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24103
+ planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24104
+ planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24105
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24106
+ start: /* @__PURE__ */ optional$1(apiDateTimeString),
24107
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24108
+ tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24109
+ user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
24110
+ }) }),
24553
24111
  execute: (input, { client }) => {
24554
24112
  const data = input;
24555
24113
  return client.runGeneratedRequest("createTasklessTimeEntryWithOrg", () => callGeneratedRequest(createTasklessTimeEntryWithOrg, [
@@ -24557,8 +24115,6 @@ const generatedFocusOperations = [
24557
24115
  client.organizationId,
24558
24116
  client.workspaceIdNumber,
24559
24117
  data.payload ?? data.data ?? data,
24560
- data.from_recurring_task_id,
24561
- data.return_occurrence,
24562
24118
  void 0
24563
24119
  ]));
24564
24120
  }
@@ -24578,11 +24134,7 @@ const generatedFocusOperations = [
24578
24134
  interactive: "default"
24579
24135
  },
24580
24136
  mcp: { entityTool: "time-entries" },
24581
- inputSchema: /* @__PURE__ */ looseObject({
24582
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24583
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24584
- time_entry_id: /* @__PURE__ */ number$2()
24585
- }),
24137
+ inputSchema: /* @__PURE__ */ looseObject({ time_entry_id: /* @__PURE__ */ number$2() }),
24586
24138
  execute: (input, { client }) => {
24587
24139
  const data = input;
24588
24140
  return client.runGeneratedRequest("deleteTimeEntryWithOrg", () => callGeneratedRequest(deleteTimeEntryWithOrg, [
@@ -24590,8 +24142,6 @@ const generatedFocusOperations = [
24590
24142
  client.organizationId,
24591
24143
  client.workspaceIdNumber,
24592
24144
  data.time_entry_id,
24593
- data.from_recurring_task_id,
24594
- data.return_occurrence,
24595
24145
  void 0
24596
24146
  ]));
24597
24147
  }
@@ -24672,7 +24222,6 @@ const generatedFocusOperations = [
24672
24222
  expand_calendar_event: /* @__PURE__ */ unknown$1(),
24673
24223
  include_taskless: /* @__PURE__ */ unknown$1(),
24674
24224
  order_by: /* @__PURE__ */ unknown$1(),
24675
- project_id: /* @__PURE__ */ number$2(),
24676
24225
  status_id: /* @__PURE__ */ number$2(),
24677
24226
  task_id: /* @__PURE__ */ number$2(),
24678
24227
  type: /* @__PURE__ */ unknown$1()
@@ -24688,6 +24237,33 @@ const generatedFocusOperations = [
24688
24237
  ]));
24689
24238
  }
24690
24239
  },
24240
+ {
24241
+ id: "focus.time-entries.get-stream-time-entries-time-block-ids",
24242
+ family: "focus",
24243
+ resource: "time-entries",
24244
+ action: "get-stream-time-entries-time-block-ids",
24245
+ title: "Get Stream Time Entries Time Block Ids Time Entries",
24246
+ description: "Get Stream Time Entries Time Block Ids Time Entries.",
24247
+ safety: "read",
24248
+ destructive: false,
24249
+ cli: {
24250
+ group: ["time-entries"],
24251
+ command: "get-stream-time-entries-time-block-ids",
24252
+ interactive: "available"
24253
+ },
24254
+ mcp: { entityTool: "time-entries" },
24255
+ inputSchema: /* @__PURE__ */ looseObject({ time_block_id: /* @__PURE__ */ number$2() }),
24256
+ execute: (input, { client }) => {
24257
+ const data = input;
24258
+ return client.runGeneratedRequest("getStreamTimeEntriesTimeBlockIdsWithOrg", () => callGeneratedRequest(getStreamTimeEntriesTimeBlockIdsWithOrg, [
24259
+ client.httpClient,
24260
+ client.organizationId,
24261
+ client.workspaceIdNumber,
24262
+ data,
24263
+ void 0
24264
+ ]));
24265
+ }
24266
+ },
24691
24267
  {
24692
24268
  id: "focus.time-entries.get-task-time-entries",
24693
24269
  family: "focus",
@@ -24709,6 +24285,7 @@ const generatedFocusOperations = [
24709
24285
  page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24710
24286
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
24711
24287
  task_id: /* @__PURE__ */ number$2(),
24288
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24712
24289
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
24713
24290
  }),
24714
24291
  execute: (input, { client }) => {
@@ -24821,14 +24398,12 @@ const generatedFocusOperations = [
24821
24398
  },
24822
24399
  mcp: { entityTool: "time-entries" },
24823
24400
  inputSchema: /* @__PURE__ */ looseObject({
24824
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24825
24401
  payload: /* @__PURE__ */ looseObject({
24826
24402
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24827
24403
  duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24828
24404
  reset_billable_to_default: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24829
24405
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]))
24830
24406
  }),
24831
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24832
24407
  time_entry_id: /* @__PURE__ */ number$2()
24833
24408
  }),
24834
24409
  execute: (input, { client }) => {
@@ -24839,8 +24414,6 @@ const generatedFocusOperations = [
24839
24414
  client.workspaceIdNumber,
24840
24415
  data.time_entry_id,
24841
24416
  data.payload ?? data.data ?? data,
24842
- data.from_recurring_task_id,
24843
- data.return_occurrence,
24844
24417
  void 0
24845
24418
  ]));
24846
24419
  }
@@ -25098,7 +24671,6 @@ const generatedFocusOperations = [
25098
24671
  },
25099
24672
  mcp: { entityTool: "time-entries" },
25100
24673
  inputSchema: /* @__PURE__ */ looseObject({
25101
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
25102
24674
  payload: /* @__PURE__ */ looseObject({
25103
24675
  type: /* @__PURE__ */ picklist$1(["activity", "break"]),
25104
24676
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -25108,9 +24680,9 @@ const generatedFocusOperations = [
25108
24680
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
25109
24681
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
25110
24682
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
24683
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
25111
24684
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
25112
24685
  }),
25113
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
25114
24686
  time_entry_id: /* @__PURE__ */ number$2()
25115
24687
  }),
25116
24688
  execute: (input, { client }) => {
@@ -25121,8 +24693,6 @@ const generatedFocusOperations = [
25121
24693
  client.workspaceIdNumber,
25122
24694
  data.time_entry_id,
25123
24695
  data.payload ?? data.data ?? data,
25124
- data.from_recurring_task_id,
25125
- data.return_occurrence,
25126
24696
  void 0
25127
24697
  ]));
25128
24698
  }
@@ -25187,118 +24757,6 @@ const generatedFocusOperations = [
25187
24757
  ]));
25188
24758
  }
25189
24759
  },
25190
- {
25191
- id: "focus.time-off.get-timeoff-balance-changes-for-user",
25192
- family: "focus",
25193
- resource: "time-off",
25194
- action: "get-timeoff-balance-changes-for-user",
25195
- title: "Get Timeoff Balance Changes For User Time Off",
25196
- description: "Get Timeoff Balance Changes For User Time Off.",
25197
- safety: "read",
25198
- destructive: false,
25199
- cli: {
25200
- group: ["time-off"],
25201
- command: "get-timeoff-balance-changes-for-user",
25202
- interactive: "hidden"
25203
- },
25204
- mcp: { entityTool: "time-off" },
25205
- inputSchema: /* @__PURE__ */ looseObject({
25206
- category_id: /* @__PURE__ */ number$2(),
25207
- page: /* @__PURE__ */ number$2(),
25208
- rows: /* @__PURE__ */ unknown$1(),
25209
- user_id: /* @__PURE__ */ number$2(),
25210
- year: /* @__PURE__ */ unknown$1()
25211
- }),
25212
- execute: (input, { client }) => {
25213
- const data = input;
25214
- return client.runGeneratedRequest("getTimeoffBalanceChangesForUserClassic", () => callGeneratedRequest(getTimeoffBalanceChangesForUserClassic, [
25215
- client.httpClient,
25216
- client.organizationId,
25217
- data.user_id,
25218
- data,
25219
- void 0
25220
- ]));
25221
- }
25222
- },
25223
- {
25224
- id: "focus.time-off.get-timeoff-balances-for-user",
25225
- family: "focus",
25226
- resource: "time-off",
25227
- action: "get-timeoff-balances-for-user",
25228
- title: "Get Timeoff Balances For User Time Off",
25229
- description: "Get Timeoff Balances For User Time Off.",
25230
- safety: "read",
25231
- destructive: false,
25232
- cli: {
25233
- group: ["time-off"],
25234
- command: "get-timeoff-balances-for-user",
25235
- interactive: "available"
25236
- },
25237
- mcp: { entityTool: "time-off" },
25238
- inputSchema: /* @__PURE__ */ looseObject({
25239
- category_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
25240
- date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
25241
- user_id: /* @__PURE__ */ number$2()
25242
- }),
25243
- execute: (input, { client }) => {
25244
- const data = input;
25245
- return client.runGeneratedRequest("getTimeoffBalancesForUser", () => callGeneratedRequest(getTimeoffBalancesForUser, [
25246
- client.httpClient,
25247
- client.organizationId,
25248
- data.user_id,
25249
- data,
25250
- void 0
25251
- ]));
25252
- }
25253
- },
25254
- {
25255
- id: "focus.time-off.get-timeoff-categories",
25256
- family: "focus",
25257
- resource: "time-off",
25258
- action: "get-timeoff-categories",
25259
- title: "Get Timeoff Categories Time Off",
25260
- description: "Get Timeoff Categories Time Off.",
25261
- safety: "read",
25262
- destructive: false,
25263
- cli: {
25264
- group: ["time-off"],
25265
- command: "get-timeoff-categories",
25266
- interactive: "hidden"
25267
- },
25268
- mcp: { entityTool: "time-off" },
25269
- inputSchema: /* @__PURE__ */ looseObject({}),
25270
- execute: (_input, { client }) => client.runGeneratedRequest("getTimeoffCategories", () => callGeneratedRequest(getTimeoffCategories, [
25271
- client.httpClient,
25272
- client.organizationId,
25273
- void 0
25274
- ]))
25275
- },
25276
- {
25277
- id: "focus.time-off.get-timeoff-category",
25278
- family: "focus",
25279
- resource: "time-off",
25280
- action: "get-timeoff-category",
25281
- title: "Get Timeoff Category Time Off",
25282
- description: "Get Timeoff Category Time Off.",
25283
- safety: "read",
25284
- destructive: false,
25285
- cli: {
25286
- group: ["time-off"],
25287
- command: "get-timeoff-category",
25288
- interactive: "available"
25289
- },
25290
- mcp: { entityTool: "time-off" },
25291
- inputSchema: /* @__PURE__ */ looseObject({ category_id: /* @__PURE__ */ number$2() }),
25292
- execute: (input, { client }) => {
25293
- const data = input;
25294
- return client.runGeneratedRequest("getTimeoffCategory", () => callGeneratedRequest(getTimeoffCategory, [
25295
- client.httpClient,
25296
- client.organizationId,
25297
- data.category_id,
25298
- void 0
25299
- ]));
25300
- }
25301
- },
25302
24760
  {
25303
24761
  id: "focus.time-off.get-timeoff-for-user",
25304
24762
  family: "focus",
@@ -25750,40 +25208,6 @@ const generatedFocusOperations = [
25750
25208
  ]));
25751
25209
  }
25752
25210
  },
25753
- {
25754
- id: "focus.timesheets.get-status-counts",
25755
- family: "focus",
25756
- resource: "timesheets",
25757
- action: "get-status-counts",
25758
- title: "Get Status Counts Timesheets",
25759
- description: "Get Status Counts Timesheets.",
25760
- safety: "read",
25761
- destructive: false,
25762
- cli: {
25763
- group: ["timesheets"],
25764
- command: "get-status-counts",
25765
- interactive: "hidden"
25766
- },
25767
- mcp: { entityTool: "timesheets" },
25768
- inputSchema: /* @__PURE__ */ looseObject({
25769
- approver_user_account_ids: /* @__PURE__ */ unknown$1(),
25770
- date_from: /* @__PURE__ */ unknown$1(),
25771
- date_to: /* @__PURE__ */ unknown$1(),
25772
- setup_id: /* @__PURE__ */ number$2(),
25773
- team_ids: /* @__PURE__ */ unknown$1(),
25774
- user_account_ids: /* @__PURE__ */ unknown$1()
25775
- }),
25776
- execute: (input, { client }) => {
25777
- const data = input;
25778
- return client.runGeneratedRequest("getTimesheetStatusCounts", () => callGeneratedRequest(getTimesheetStatusCounts, [
25779
- client.httpClient,
25780
- client.organizationId,
25781
- client.workspaceIdNumber,
25782
- data,
25783
- void 0
25784
- ]));
25785
- }
25786
- },
25787
25211
  {
25788
25212
  id: "focus.timesheets.remove-timesheet-flag",
25789
25213
  family: "focus",
@@ -26333,33 +25757,6 @@ const generatedFocusOperations = [
26333
25757
  ]));
26334
25758
  }
26335
25759
  },
26336
- {
26337
- id: "focus.track-team-invites.post",
26338
- family: "focus",
26339
- resource: "track-team-invites",
26340
- action: "post",
26341
- title: "Post Track Team Invites",
26342
- description: "Post Track Team Invites.",
26343
- safety: "create",
26344
- destructive: false,
26345
- cli: {
26346
- group: ["track-team-invites"],
26347
- command: "post",
26348
- interactive: "default"
26349
- },
26350
- mcp: { entityTool: "track-team-invites" },
26351
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ organization_user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
26352
- execute: (input, { client }) => {
26353
- const data = input;
26354
- return client.runGeneratedRequest("postTrackTeamInvites", () => callGeneratedRequest(postTrackTeamInvites, [
26355
- client.httpClient,
26356
- client.organizationId,
26357
- client.workspaceIdNumber,
26358
- data.payload ?? data.data ?? data,
26359
- void 0
26360
- ]));
26361
- }
26362
- },
26363
25760
  {
26364
25761
  id: "focus.users.list",
26365
25762
  family: "focus",
@@ -26381,56 +25778,6 @@ const generatedFocusOperations = [
26381
25778
  return client.listOrgUsers(data);
26382
25779
  }
26383
25780
  },
26384
- {
26385
- id: "focus.users.settings-email-unsubscribe",
26386
- family: "focus",
26387
- resource: "users",
26388
- action: "settings-email-unsubscribe",
26389
- title: "Settings Email Unsubscribe Users",
26390
- description: "Settings Email Unsubscribe Users.",
26391
- safety: "update",
26392
- destructive: false,
26393
- cli: {
26394
- group: ["users", "settings"],
26395
- command: "email-unsubscribe",
26396
- interactive: "default"
26397
- },
26398
- mcp: { entityTool: "users" },
26399
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
26400
- execute: (input, { client }) => {
26401
- const data = input;
26402
- return client.runGeneratedRequest("emailUnsubscribe", () => callGeneratedRequest(emailUnsubscribe, [
26403
- client.httpClient,
26404
- data.token,
26405
- void 0
26406
- ]));
26407
- }
26408
- },
26409
- {
26410
- id: "focus.users.settings-email-unsubscribe-page",
26411
- family: "focus",
26412
- resource: "users",
26413
- action: "settings-email-unsubscribe-page",
26414
- title: "Settings Email Unsubscribe Page Users",
26415
- description: "Settings Email Unsubscribe Page Users.",
26416
- safety: "read",
26417
- destructive: false,
26418
- cli: {
26419
- group: ["users", "settings"],
26420
- command: "email-unsubscribe-page",
26421
- interactive: "available"
26422
- },
26423
- mcp: { entityTool: "users" },
26424
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
26425
- execute: (input, { client }) => {
26426
- const data = input;
26427
- return client.runGeneratedRequest("emailUnsubscribePage", () => callGeneratedRequest(emailUnsubscribePage, [
26428
- client.httpClient,
26429
- data.token,
26430
- void 0
26431
- ]));
26432
- }
26433
- },
26434
25781
  {
26435
25782
  id: "focus.users.settings-list",
26436
25783
  family: "focus",
@@ -26492,9 +25839,6 @@ const generatedFocusOperations = [
26492
25839
  has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26493
25840
  import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26494
25841
  new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26495
- notify_project_alerts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26496
- notify_project_member_added: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26497
- notify_task_assigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26498
25842
  onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26499
25843
  onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26500
25844
  onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -26693,38 +26037,6 @@ const generatedFocusOperations = [
26693
26037
  ]));
26694
26038
  }
26695
26039
  },
26696
- {
26697
- id: "focus.working-hours.replace-working-hours-for-users",
26698
- family: "focus",
26699
- resource: "working-hours",
26700
- action: "replace-working-hours-for-users",
26701
- title: "Replace Working Hours For Users Working Hours",
26702
- description: "Replace Working Hours For Users Working Hours.",
26703
- safety: "update",
26704
- destructive: false,
26705
- cli: {
26706
- group: ["working-hours"],
26707
- command: "replace-working-hours-for-users",
26708
- interactive: "default"
26709
- },
26710
- mcp: { entityTool: "working-hours" },
26711
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
26712
- schedule: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
26713
- working_hours: /* @__PURE__ */ number$2(),
26714
- weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
26715
- })),
26716
- user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2())
26717
- }) }),
26718
- execute: (input, { client }) => {
26719
- const data = input;
26720
- return client.runGeneratedRequest("replaceWorkingHoursForUsers", () => callGeneratedRequest(replaceWorkingHoursForUsers, [
26721
- client.httpClient,
26722
- client.organizationId,
26723
- data.payload ?? data.data ?? data,
26724
- void 0
26725
- ]));
26726
- }
26727
- },
26728
26040
  {
26729
26041
  id: "focus.working-hours.update-for-user",
26730
26042
  family: "focus",
@@ -28582,4 +27894,4 @@ Common commands:
28582
27894
  //#endregion
28583
27895
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
28584
27896
 
28585
- //# sourceMappingURL=program-C_81aiOa.js.map
27897
+ //# sourceMappingURL=program-D6iXOweu.js.map