@togglhq/cli 1.11.92 → 1.11.94

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,6 +5495,10 @@ 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
+ /**
5498
5502
  * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
5499
5503
  * space as a date/time separator and an optional space before the UTC offset.
5500
5504
  */
@@ -5548,6 +5552,22 @@ function isoDate$1(message$1) {
5548
5552
  };
5549
5553
  }
5550
5554
  /* @__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__ */
5551
5571
  function isoTimestamp(message$1) {
5552
5572
  return {
5553
5573
  kind: "validation",
@@ -7254,7 +7274,6 @@ const ProjectLiteSchema = /* @__PURE__ */ object({
7254
7274
  name: /* @__PURE__ */ string(),
7255
7275
  permissions: /* @__PURE__ */ array(/* @__PURE__ */ string()),
7256
7276
  archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7257
- billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7258
7277
  client: /* @__PURE__ */ optional(ClientLiteSchema),
7259
7278
  color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7260
7279
  custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
@@ -7341,7 +7360,6 @@ const TaskSchema = /* @__PURE__ */ object({
7341
7360
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7342
7361
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7343
7362
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7344
- 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."))),
7345
7363
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
7346
7364
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7347
7365
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -7403,7 +7421,6 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
7403
7421
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7404
7422
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7405
7423
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7406
- 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."))),
7407
7424
  metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
7408
7425
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7409
7426
  parent: /* @__PURE__ */ optional(TaskSchema),
@@ -7564,8 +7581,6 @@ const TimeEntrySchema = /* @__PURE__ */ object({
7564
7581
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7565
7582
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7566
7583
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7567
- 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."))),
7568
- 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."))),
7569
7584
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7570
7585
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7571
7586
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -7580,21 +7595,21 @@ const TimeEntrySchema = /* @__PURE__ */ object({
7580
7595
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
7581
7596
  });
7582
7597
  const DtoAggregationFilterRequestSchema = /* @__PURE__ */ object({
7583
- aggregation: /* @__PURE__ */ optional(/* @__PURE__ */ object({
7598
+ aggregation: /* @__PURE__ */ object({
7584
7599
  function: /* @__PURE__ */ string(),
7585
7600
  property: /* @__PURE__ */ string()
7586
- })),
7587
- conditions: /* @__PURE__ */ optional(/* @__PURE__ */ lazy(() => DtoAggregationsFilterRequestSchema)),
7588
- operator: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7589
- property: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7590
- value: /* @__PURE__ */ optional(/* @__PURE__ */ unknown())
7601
+ }),
7602
+ conditions: /* @__PURE__ */ lazy(() => DtoAggregationsFilterRequestSchema),
7603
+ operator: /* @__PURE__ */ string(),
7604
+ property: /* @__PURE__ */ string(),
7605
+ value: /* @__PURE__ */ unknown()
7591
7606
  });
7592
7607
  const DtoAggregationsFilterRequestSchema = /* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoAggregationFilterRequestSchema));
7593
7608
  const DtoFilterRequestSchema = /* @__PURE__ */ object({
7594
- conditions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoFilterRequestSchema))),
7595
- operator: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7596
- property: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7597
- value: /* @__PURE__ */ optional(/* @__PURE__ */ unknown())
7609
+ conditions: /* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoFilterRequestSchema)),
7610
+ operator: /* @__PURE__ */ string(),
7611
+ property: /* @__PURE__ */ string(),
7612
+ value: /* @__PURE__ */ unknown()
7598
7613
  });
7599
7614
  const ClientSchema = /* @__PURE__ */ object({
7600
7615
  active: /* @__PURE__ */ boolean(),
@@ -7651,10 +7666,8 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
7651
7666
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7652
7667
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7653
7668
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7654
- filtered_task_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7655
7669
  fixed_fee: /* @__PURE__ */ optional(ProjectFixedFeeSchema),
7656
7670
  parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7657
- picker_parent_group_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7658
7671
  rate: /* @__PURE__ */ optional(EffectiveProjectRatesSummarySchema),
7659
7672
  recurring_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7660
7673
  rollover_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RolloverMins is the cumulative under/over budget carried into this instance from earlier instances in its recurring chain, in minutes. Positive = surplus (prior periods went under estimate, time carries forward); negative = debt (prior periods went over). Only populated for recurring instances; nil for templates and standalone projects. See service.HydrateRollover for the per-instance contribution rules driven by RolloverMode (expire / carry_over / carry_all)."))),
@@ -7710,8 +7723,6 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
7710
7723
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7711
7724
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7712
7725
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7713
- 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."))),
7714
- 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."))),
7715
7726
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7716
7727
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7717
7728
  planned_start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
@@ -7884,6 +7895,8 @@ const TaskCreatePayloadSchema = /* @__PURE__ */ object({
7884
7895
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7885
7896
  estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
7886
7897
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
7898
+ integration_ext_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7899
+ integration_source: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7887
7900
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7888
7901
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7889
7902
  pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -7940,7 +7953,6 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
7940
7953
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7941
7954
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7942
7955
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7943
- 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."))),
7944
7956
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7945
7957
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7946
7958
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -7977,7 +7989,6 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
7977
7989
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7978
7990
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7979
7991
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7980
- 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."))),
7981
7992
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7982
7993
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7983
7994
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
@@ -7998,6 +8009,7 @@ const TimeEntryBulkCreatePayloadSchema = /* @__PURE__ */ object({
7998
8009
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7999
8010
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
8000
8011
  task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8012
+ time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8001
8013
  tracked_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
8002
8014
  user_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
8003
8015
  });
@@ -8026,7 +8038,8 @@ const TimeEntryStartTrackingPayloadSchema = /* @__PURE__ */ object({
8026
8038
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8027
8039
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
8028
8040
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
8029
- task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
8041
+ task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8042
+ time_block_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
8030
8043
  });
8031
8044
  const TimeEntryStopTrackingPayloadSchema = /* @__PURE__ */ object({ end: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()) });
8032
8045
  //#endregion
@@ -9900,7 +9913,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
9900
9913
  })
9901
9914
  }).json();
9902
9915
  }
9903
- async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
9916
+ async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
9904
9917
  const response = await httpClient.get(`organizations/${organization_id}/users`, {
9905
9918
  signal,
9906
9919
  searchParams: buildSearchParams$2({
@@ -9921,7 +9934,6 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
9921
9934
  include_rates,
9922
9935
  pinned_ids,
9923
9936
  has_group,
9924
- track_without_focus,
9925
9937
  cf_filter,
9926
9938
  include_custom_fields,
9927
9939
  include_calendar_integration
@@ -10023,20 +10035,10 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
10023
10035
  }
10024
10036
  //#endregion
10025
10037
  //#region ../focus-queries/dist/projects/requests.ts
10026
- async function getProjectsClassic(httpClient, organization_id, workspace_id, { include_task_counts, include_picker_parent_group_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
10038
+ async function getProjectsClassic(httpClient, organization_id, workspace_id, { page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
10027
10039
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
10028
10040
  signal,
10029
10041
  searchParams: buildSearchParams$2({
10030
- include_task_counts,
10031
- include_picker_parent_group_counts,
10032
- task_archived,
10033
- task_recurring,
10034
- task_state,
10035
- task_source,
10036
- task_assignee_user_id,
10037
- task_assignee_team_id,
10038
- task_include_unassigned,
10039
- task_name,
10040
10042
  page,
10041
10043
  per_page,
10042
10044
  order_by,
@@ -10286,7 +10288,7 @@ async function restoreStatuses(httpClient, workspace_id, status_id, signal) {
10286
10288
  }
10287
10289
  //#endregion
10288
10290
  //#region ../focus-queries/dist/tasks/requests.ts
10289
- async function getTasksClassic(httpClient, organization_id, workspace_id, { page, per_page, with_entries, pinned, order_by, status_id, toggl_user_id, name, has_time_entries, has_dates, private: private_, archived, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_rates, include_assignees, include_parent_matches, disable_aggregations, cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
10291
+ async function getTasksClassic(httpClient, organization_id, workspace_id, { page, per_page, with_entries, pinned, order_by, status_id, toggl_user_id, name, has_time_entries, has_time_blocks, has_dates, private: private_, archived, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, timeblock_start_from, timeblock_start_until, time_block_id, time_block_completed, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_rates, include_assignees, include_parent_matches, disable_aggregations, cf_filter } = {}, signal) {
10290
10292
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks`, {
10291
10293
  signal,
10292
10294
  searchParams: buildSearchParams$2({
@@ -10299,6 +10301,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
10299
10301
  toggl_user_id,
10300
10302
  name,
10301
10303
  has_time_entries,
10304
+ has_time_blocks,
10302
10305
  has_dates,
10303
10306
  private: private_,
10304
10307
  archived,
@@ -10321,6 +10324,10 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
10321
10324
  priority,
10322
10325
  is_priority,
10323
10326
  state,
10327
+ timeblock_start_from,
10328
+ timeblock_start_until,
10329
+ time_block_id,
10330
+ time_block_completed,
10324
10331
  team_id,
10325
10332
  assignee_team_id,
10326
10333
  assignee_user_id,
@@ -10332,11 +10339,7 @@ async function getTasksClassic(httpClient, organization_id, workspace_id, { page
10332
10339
  include_assignees,
10333
10340
  include_parent_matches,
10334
10341
  disable_aggregations,
10335
- cf_filter,
10336
- recurring_occurrences_after,
10337
- max_recurring_occurrences_after,
10338
- recurring_task_read,
10339
- include_projected_occurrences
10342
+ cf_filter
10340
10343
  })
10341
10344
  }).json();
10342
10345
  }
@@ -10411,46 +10414,16 @@ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id,
10411
10414
  })
10412
10415
  }).json();
10413
10416
  }
10414
- async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, skip_provider_refresh, signal) {
10417
+ async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, signal) {
10415
10418
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
10416
10419
  signal,
10417
10420
  searchParams: buildSearchParams$2({
10418
10421
  date_from,
10419
- date_to,
10420
- skip_provider_refresh
10421
- })
10422
- }).json();
10423
- }
10424
- async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, search, only_me, page, per_page } = {}, signal) {
10425
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
10426
- signal,
10427
- searchParams: buildSearchParams$2({
10428
- project_id,
10429
- without_project,
10430
- pinned_only,
10431
- include_unassigned,
10432
- search,
10433
- only_me,
10434
- page,
10435
- per_page
10436
- })
10437
- }).json();
10438
- }
10439
- async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, search, only_me, page, per_page } = {}, signal) {
10440
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
10441
- signal,
10442
- searchParams: buildSearchParams$2({
10443
- project_id,
10444
- without_project,
10445
- include_unassigned,
10446
- search,
10447
- only_me,
10448
- page,
10449
- per_page
10422
+ date_to
10450
10423
  })
10451
10424
  }).json();
10452
10425
  }
10453
- async function getTasksRecurringInstancesClassic(httpClient, organization_id, workspace_id, { page, per_page, archived, start_date, end_date, dates_overlap_start, dates_overlap_end, recurring_task_ids, team_id, assignee_team_id, assignee_user_id, tag_id, include_assignees, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
10426
+ async function getTasksRecurringInstancesClassic(httpClient, organization_id, workspace_id, { page, per_page, archived, start_date, end_date, dates_overlap_start, dates_overlap_end, recurring_task_ids, team_id, assignee_team_id, assignee_user_id, tag_id, include_assignees } = {}, signal) {
10454
10427
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/recurring`, {
10455
10428
  signal,
10456
10429
  searchParams: buildSearchParams$2({
@@ -10466,15 +10439,11 @@ async function getTasksRecurringInstancesClassic(httpClient, organization_id, wo
10466
10439
  assignee_team_id,
10467
10440
  assignee_user_id,
10468
10441
  tag_id,
10469
- include_assignees,
10470
- recurring_occurrences_after,
10471
- max_recurring_occurrences_after,
10472
- recurring_task_read,
10473
- include_projected_occurrences
10442
+ include_assignees
10474
10443
  })
10475
10444
  }).json();
10476
10445
  }
10477
- async function getStreamTasks(httpClient, organization_id, workspace_id, { with_entries, pinned, order_by, status_id, toggl_user_id, name, include_parent_matches, has_time_entries, has_dates, private: private_, archived, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_assignees, cf_filter, recurring_occurrences_after, max_recurring_occurrences_after, recurring_task_read, include_projected_occurrences } = {}, signal) {
10446
+ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_entries, pinned, order_by, status_id, toggl_user_id, name, include_parent_matches, has_time_entries, has_time_blocks, has_dates, private: private_, archived, include_project_completed, include_drafts, project_id, parent_task_id, start_date, end_date, active_by_date, start_date_from, start_date_to, end_date_from, end_date_to, dates_overlap_start, dates_overlap_end, estimated_mins_min, estimated_mins_max, source, priority, is_priority, state, time_block_id, time_block_completed, team_id, assignee_team_id, assignee_user_id, tag_id, recurring, recurring_task_ids, client_id, include_assignees, cf_filter } = {}, signal) {
10478
10447
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/stream`, {
10479
10448
  signal,
10480
10449
  searchParams: buildSearchParams$2({
@@ -10486,6 +10455,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
10486
10455
  name,
10487
10456
  include_parent_matches,
10488
10457
  has_time_entries,
10458
+ has_time_blocks,
10489
10459
  has_dates,
10490
10460
  private: private_,
10491
10461
  archived,
@@ -10508,6 +10478,8 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
10508
10478
  priority,
10509
10479
  is_priority,
10510
10480
  state,
10481
+ time_block_id,
10482
+ time_block_completed,
10511
10483
  team_id,
10512
10484
  assignee_team_id,
10513
10485
  assignee_user_id,
@@ -10516,11 +10488,7 @@ async function getStreamTasks(httpClient, organization_id, workspace_id, { with_
10516
10488
  recurring_task_ids,
10517
10489
  client_id,
10518
10490
  include_assignees,
10519
- cf_filter,
10520
- recurring_occurrences_after,
10521
- max_recurring_occurrences_after,
10522
- recurring_task_read,
10523
- include_projected_occurrences
10491
+ cf_filter
10524
10492
  })
10525
10493
  }).json();
10526
10494
  }
@@ -10575,12 +10543,6 @@ async function getTaskWithChildrenClassic(httpClient, organization_id, workspace
10575
10543
  })
10576
10544
  }).json();
10577
10545
  }
10578
- async function createRecurringOccurrence(httpClient, organization_id, workspace_id, task_id, return_occurrence, signal) {
10579
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/occurrences`, {
10580
- signal,
10581
- searchParams: buildSearchParams$2({ return_occurrence })
10582
- }).json();
10583
- }
10584
10546
  async function getTaskWithParentsClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, status_id, archived, source, team_id, assignee_user_id, tag_id, include_assignees } = {}, signal) {
10585
10547
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/parents`, {
10586
10548
  signal,
@@ -10606,7 +10568,7 @@ async function unarchiveTask(httpClient, organization_id, workspace_id, task_id,
10606
10568
  }
10607
10569
  //#endregion
10608
10570
  //#region ../focus-queries/dist/time-entries/requests.ts
10609
- async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived } = {}, signal) {
10571
+ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived, time_block_id } = {}, signal) {
10610
10572
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
10611
10573
  signal,
10612
10574
  searchParams: buildSearchParams$2({
@@ -10614,28 +10576,21 @@ async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, wor
10614
10576
  per_page,
10615
10577
  order_by,
10616
10578
  type,
10617
- archived
10579
+ archived,
10580
+ time_block_id
10618
10581
  })
10619
10582
  }).json();
10620
10583
  }
10621
- async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, return_occurrence, signal) {
10584
+ async function createTimeEntryWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
10622
10585
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
10623
10586
  signal,
10624
- json: data,
10625
- searchParams: buildSearchParams$2({
10626
- from_recurring_task_id,
10627
- return_occurrence
10628
- })
10587
+ json: data
10629
10588
  }).json();
10630
10589
  }
10631
- async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, from_recurring_task_id, return_occurrence, signal) {
10590
+ async function createTasklessTimeEntryWithOrg(httpClient, organization_id, workspace_id, data, signal) {
10632
10591
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries`, {
10633
10592
  signal,
10634
- json: data,
10635
- searchParams: buildSearchParams$2({
10636
- from_recurring_task_id,
10637
- return_occurrence
10638
- })
10593
+ json: data
10639
10594
  }).json();
10640
10595
  }
10641
10596
  async function getBatchTimeEntriesWithOrg(httpClient, organization_id, workspace_id, { ids }, signal) {
@@ -10686,7 +10641,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
10686
10641
  json: data
10687
10642
  }).json();
10688
10643
  }
10689
- async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, project_id, type, order_by, archived, include_taskless, expand_calendar_event }, signal) {
10644
+ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, type, order_by, archived, include_taskless, expand_calendar_event }, signal) {
10690
10645
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
10691
10646
  signal,
10692
10647
  searchParams: buildSearchParams$2({
@@ -10694,7 +10649,6 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
10694
10649
  date_to,
10695
10650
  task_id,
10696
10651
  status_id,
10697
- project_id,
10698
10652
  type,
10699
10653
  order_by,
10700
10654
  archived,
@@ -10709,36 +10663,28 @@ async function syncTimeEntry(httpClient, organization_id, workspace_id, client_u
10709
10663
  json: data
10710
10664
  }).json();
10711
10665
  }
10666
+ async function getStreamTimeEntriesTimeBlockIdsWithOrg(httpClient, organization_id, workspace_id, { time_block_id }, signal) {
10667
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/time-block-ids/stream`, {
10668
+ signal,
10669
+ searchParams: buildSearchParams$2({ time_block_id })
10670
+ }).json();
10671
+ }
10712
10672
  async function getTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
10713
10673
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
10714
10674
  }
10715
- async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
10675
+ async function updateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
10716
10676
  return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
10717
10677
  signal,
10718
- json: data,
10719
- searchParams: buildSearchParams$2({
10720
- from_recurring_task_id,
10721
- return_occurrence
10722
- })
10678
+ json: data
10723
10679
  }).json();
10724
10680
  }
10725
- async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, from_recurring_task_id, return_occurrence, signal) {
10726
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
10727
- signal,
10728
- searchParams: buildSearchParams$2({
10729
- from_recurring_task_id,
10730
- return_occurrence
10731
- })
10732
- }).json();
10681
+ async function deleteTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
10682
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, { signal }).json();
10733
10683
  }
10734
- async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, from_recurring_task_id, return_occurrence, signal) {
10684
+ async function partialUpdateTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
10735
10685
  return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/${time_entry_id}`, {
10736
10686
  signal,
10737
- json: data,
10738
- searchParams: buildSearchParams$2({
10739
- from_recurring_task_id,
10740
- return_occurrence
10741
- })
10687
+ json: data
10742
10688
  }).json();
10743
10689
  }
10744
10690
  async function archiveTimeEntryWithOrg(httpClient, organization_id, workspace_id, time_entry_id, signal) {
@@ -10853,7 +10799,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10853
10799
  ]))
10854
10800
  });
10855
10801
  //#endregion
10856
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10802
+ //#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
10857
10803
  async function getInvitations(httpClient, signal) {
10858
10804
  return (await httpClient.get(`invitations`, { signal })).json();
10859
10805
  }
@@ -10870,7 +10816,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10870
10816
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10871
10817
  }
10872
10818
  //#endregion
10873
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10819
+ //#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
10874
10820
  function buildSearchParams(params, flattenArrays = false) {
10875
10821
  const searchParams = new URLSearchParams();
10876
10822
  Object.entries(params).forEach(([key, value]) => {
@@ -10882,7 +10828,7 @@ function buildSearchParams(params, flattenArrays = false) {
10882
10828
  return searchParams;
10883
10829
  }
10884
10830
  //#endregion
10885
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10831
+ //#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
10886
10832
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10887
10833
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10888
10834
  }
@@ -10896,7 +10842,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10896
10842
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10897
10843
  }
10898
10844
  //#endregion
10899
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10845
+ //#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
10900
10846
  async function getWorkspaces(httpClient, organization_id, signal) {
10901
10847
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10902
10848
  }
@@ -10905,7 +10851,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
10905
10851
  }
10906
10852
  const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
10907
10853
  working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
10908
- starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
10854
+ starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(24))),
10909
10855
  weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
10910
10856
  });
10911
10857
  const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
@@ -10916,7 +10862,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
10916
10862
  });
10917
10863
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
10918
10864
  //#endregion
10919
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
10865
+ //#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
10920
10866
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
10921
10867
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
10922
10868
  signal,
@@ -10927,12 +10873,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
10927
10873
  })).json();
10928
10874
  }
10929
10875
  //#endregion
10930
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
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/shared-data/status/requests.mjs
10931
10877
  async function getStatus(httpClient, signal) {
10932
10878
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
10933
10879
  }
10934
10880
  //#endregion
10935
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10881
+ //#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
10936
10882
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
10937
10883
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
10938
10884
  signal,
@@ -10960,7 +10906,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
10960
10906
  return response.json();
10961
10907
  }
10962
10908
  //#endregion
10963
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10909
+ //#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
10964
10910
  async function getMyWorkingHours(httpClient, organization_id, signal) {
10965
10911
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
10966
10912
  }
@@ -14537,15 +14483,13 @@ async function getWorkspaceAttachmentStorage(httpClient, organization_id, worksp
14537
14483
  }
14538
14484
  //#endregion
14539
14485
  //#region ../focus-queries/dist/audit-log/requests.ts
14540
- 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) {
14486
+ async function getOrganizationAuditLog(httpClient, organization_id, from, to, { workspace_id, entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
14541
14487
  return await httpClient.get(`organizations/${organization_id}/audit-log/${from}/${to}`, {
14542
14488
  signal,
14543
14489
  searchParams: buildSearchParams$2({
14544
14490
  workspace_id,
14545
14491
  entity_type,
14546
14492
  entity_id,
14547
- project_id,
14548
- custom_field_id,
14549
14493
  action,
14550
14494
  user_id,
14551
14495
  page_size,
@@ -14554,14 +14498,12 @@ async function getOrganizationAuditLog(httpClient, organization_id, from, to, {
14554
14498
  })
14555
14499
  }).json();
14556
14500
  }
14557
- 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) {
14501
+ async function getAuditLog(httpClient, organization_id, workspace_id, from, to, { entity_type, entity_id, action, user_id, page_size, page_number, export: export_ } = {}, signal) {
14558
14502
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/audit-log/${from}/${to}`, {
14559
14503
  signal,
14560
14504
  searchParams: buildSearchParams$2({
14561
14505
  entity_type,
14562
14506
  entity_id,
14563
- project_id,
14564
- custom_field_id,
14565
14507
  action,
14566
14508
  user_id,
14567
14509
  page_size,
@@ -14714,14 +14656,13 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
14714
14656
  }
14715
14657
  //#endregion
14716
14658
  //#region ../focus-queries/dist/capacities/requests.ts
14717
- 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) {
14659
+ 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) {
14718
14660
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
14719
14661
  signal,
14720
14662
  searchParams: buildSearchParams$2({
14663
+ user_id,
14721
14664
  start_date,
14722
14665
  end_date,
14723
- user_id,
14724
- team_id,
14725
14666
  private: private_,
14726
14667
  task_source,
14727
14668
  unit,
@@ -14781,15 +14722,6 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
14781
14722
  async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
14782
14723
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
14783
14724
  }
14784
- async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
14785
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
14786
- }
14787
- async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
14788
- return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
14789
- signal,
14790
- json: data
14791
- }).json();
14792
- }
14793
14725
  async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
14794
14726
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
14795
14727
  signal,
@@ -14829,61 +14761,6 @@ async function patchUserCustomFieldValues(httpClient, organization_id, workspace
14829
14761
  }).json();
14830
14762
  }
14831
14763
  //#endregion
14832
- //#region ../focus-queries/dist/designations/requests.ts
14833
- async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { name, page, per_page, order_by } = {}, signal) {
14834
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
14835
- signal,
14836
- searchParams: buildSearchParams$2({
14837
- name,
14838
- page,
14839
- per_page,
14840
- order_by
14841
- })
14842
- }).json();
14843
- }
14844
- async function createWorkspaceDesignation(httpClient, organization_id, workspace_id, data, signal) {
14845
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
14846
- signal,
14847
- json: data
14848
- }).json();
14849
- }
14850
- async function bulkCreateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
14851
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
14852
- signal,
14853
- json: data
14854
- }).json();
14855
- }
14856
- async function bulkDeleteWorkspaceDesignations(httpClient, organization_id, workspace_id, ids, all_or_none, signal) {
14857
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
14858
- signal,
14859
- searchParams: buildSearchParams$2({
14860
- ids,
14861
- all_or_none
14862
- })
14863
- }).json();
14864
- }
14865
- async function bulkUpdateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
14866
- return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
14867
- signal,
14868
- json: data
14869
- }).json();
14870
- }
14871
- async function updateWorkspaceDesignationMembers(httpClient, organization_id, workspace_id, data, signal) {
14872
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/members`, {
14873
- signal,
14874
- json: data
14875
- }).json();
14876
- }
14877
- async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
14878
- return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal }).json();
14879
- }
14880
- async function updateWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, data, signal) {
14881
- return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, {
14882
- signal,
14883
- json: data
14884
- }).json();
14885
- }
14886
- //#endregion
14887
14764
  //#region ../focus-queries/dist/goals/requests.ts
14888
14765
  async function createGoal(httpClient, organization_id, workspace_id, data, signal) {
14889
14766
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals`, {
@@ -15108,7 +14985,7 @@ async function restoreMilestone(httpClient, workspace_id, milestone_id, signal)
15108
14985
  }
15109
14986
  //#endregion
15110
14987
  //#region ../focus-queries/dist/project-groups/requests.ts
15111
- 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) {
14988
+ 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) {
15112
14989
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
15113
14990
  signal,
15114
14991
  searchParams: buildSearchParams$2({
@@ -15134,7 +15011,6 @@ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id
15134
15011
  user_id,
15135
15012
  only_me,
15136
15013
  include_drafts,
15137
- include_recurring_series,
15138
15014
  cf_filter
15139
15015
  })
15140
15016
  }).json();
@@ -15153,6 +15029,9 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
15153
15029
  json: data
15154
15030
  }).json();
15155
15031
  }
15032
+ async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
15033
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
15034
+ }
15156
15035
  async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
15157
15036
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
15158
15037
  }
@@ -15178,37 +15057,6 @@ async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id
15178
15057
  }).json();
15179
15058
  }
15180
15059
  //#endregion
15181
- //#region ../focus-queries/dist/publicsharedreports/requests.ts
15182
- async function openPublicSharedReport(httpClient, token, signal) {
15183
- return await httpClient.get(`shared/${token}`, { signal }).json();
15184
- }
15185
- async function profitabilityPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
15186
- return await httpClient.post(`shared/${token}/profitability`, {
15187
- signal,
15188
- json: data,
15189
- searchParams: buildSearchParams$2({
15190
- response_format,
15191
- include_dicts
15192
- })
15193
- }).json();
15194
- }
15195
- async function queryPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
15196
- return await httpClient.post(`shared/${token}/query`, {
15197
- signal,
15198
- json: data,
15199
- searchParams: buildSearchParams$2({
15200
- response_format,
15201
- include_dicts
15202
- })
15203
- }).json();
15204
- }
15205
- async function workloadPublicSharedReport(httpClient, token, data, signal) {
15206
- return await httpClient.post(`shared/${token}/workload`, {
15207
- signal,
15208
- json: data
15209
- }).json();
15210
- }
15211
- //#endregion
15212
15060
  //#region ../focus-queries/dist/rates/requests.ts
15213
15061
  async function getProjectRatesSummary(httpClient, organization_id, workspace_id, { page, rows, order_by, search } = {}, signal) {
15214
15062
  const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/rates`, {
@@ -15370,7 +15218,7 @@ async function updateASavedView(httpClient, workspace_id, id, data, signal) {
15370
15218
  }
15371
15219
  //#endregion
15372
15220
  //#region ../focus-queries/dist/search/requests.ts
15373
- 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) {
15221
+ 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) {
15374
15222
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
15375
15223
  signal,
15376
15224
  searchParams: buildSearchParams$2({
@@ -15378,7 +15226,6 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
15378
15226
  per_group,
15379
15227
  assignee_user_id,
15380
15228
  assignee_team_id,
15381
- include_unassigned,
15382
15229
  project_id,
15383
15230
  task_id,
15384
15231
  include_drafts,
@@ -15423,18 +15270,6 @@ async function getSharedReportsSharedWithMe(httpClient, workspace_id, signal) {
15423
15270
  async function getSharedReportForViewer(httpClient, workspace_id, id, signal) {
15424
15271
  return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
15425
15272
  }
15426
- async function unshareSharedReport(httpClient, workspace_id, id, signal) {
15427
- return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
15428
- }
15429
- async function getSharedReportDates(httpClient, workspace_id, id, signal) {
15430
- return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}/dates`, { signal }).json();
15431
- }
15432
- async function setSharedReportDatesLock(httpClient, workspace_id, id, data, signal) {
15433
- return await httpClient.put(`workspaces/${workspace_id}/shared-reports/${id}/dates`, {
15434
- signal,
15435
- json: data
15436
- }).json();
15437
- }
15438
15273
  async function addSharedReportGrants(httpClient, workspace_id, id, data, signal) {
15439
15274
  return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
15440
15275
  signal,
@@ -15444,21 +15279,6 @@ async function addSharedReportGrants(httpClient, workspace_id, id, data, signal)
15444
15279
  async function revokeSharedReportGrant(httpClient, workspace_id, id, grant_id, signal) {
15445
15280
  return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/grants/${grant_id}`, { signal }).json();
15446
15281
  }
15447
- async function mintSharedReportLink(httpClient, workspace_id, id, data, signal) {
15448
- return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
15449
- signal,
15450
- json: data
15451
- }).json();
15452
- }
15453
- async function revokeSharedReportLink(httpClient, workspace_id, id, signal) {
15454
- return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/link`, { signal }).json();
15455
- }
15456
- async function rotateSharedReportLink(httpClient, workspace_id, id, data, signal) {
15457
- return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
15458
- signal,
15459
- json: data
15460
- }).json();
15461
- }
15462
15282
  //#endregion
15463
15283
  //#region ../focus-queries/dist/subscriptions/requests.ts
15464
15284
  async function getCurrentSubscription(httpClient, organization_id, signal) {
@@ -15515,10 +15335,9 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
15515
15335
  }
15516
15336
  //#endregion
15517
15337
  //#region ../focus-queries/dist/task-groups/requests.ts
15518
- 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) {
15338
+ 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) {
15519
15339
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
15520
15340
  signal,
15521
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
15522
15341
  searchParams: buildSearchParams$2({
15523
15342
  project_id,
15524
15343
  source,
@@ -15547,18 +15366,13 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
15547
15366
  min_days,
15548
15367
  include_drafts,
15549
15368
  cf_filter,
15550
- user_cf_filter,
15551
- recurring_occurrences_after,
15552
- max_recurring_occurrences_after,
15553
- recurring_task_read,
15554
- include_projected_occurrences
15369
+ user_cf_filter
15555
15370
  })
15556
15371
  }).json();
15557
15372
  }
15558
- 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) {
15373
+ 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) {
15559
15374
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
15560
15375
  signal,
15561
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
15562
15376
  searchParams: buildSearchParams$2({
15563
15377
  team_id,
15564
15378
  project_id,
@@ -15587,18 +15401,13 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
15587
15401
  min_days,
15588
15402
  include_drafts,
15589
15403
  cf_filter,
15590
- user_cf_filter,
15591
- recurring_occurrences_after,
15592
- max_recurring_occurrences_after,
15593
- recurring_task_read,
15594
- include_projected_occurrences
15404
+ user_cf_filter
15595
15405
  })
15596
15406
  }).json();
15597
15407
  }
15598
- 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) {
15408
+ 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) {
15599
15409
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
15600
15410
  signal,
15601
- headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
15602
15411
  searchParams: buildSearchParams$2({
15603
15412
  source,
15604
15413
  priority,
@@ -15628,10 +15437,6 @@ async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, g
15628
15437
  include_drafts,
15629
15438
  cf_filter,
15630
15439
  user_cf_filter,
15631
- recurring_occurrences_after,
15632
- max_recurring_occurrences_after,
15633
- recurring_task_read,
15634
- include_projected_occurrences,
15635
15440
  page,
15636
15441
  per_page,
15637
15442
  order_by
@@ -15659,6 +15464,104 @@ async function getProjectSuggestionsForMultipleTasks(httpClient, organization_id
15659
15464
  }).json();
15660
15465
  }
15661
15466
  //#endregion
15467
+ //#region ../focus-queries/dist/time-blocks/requests.ts
15468
+ async function getTaskTimeBlocksWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, archived } = {}, signal) {
15469
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
15470
+ signal,
15471
+ searchParams: buildSearchParams$2({
15472
+ page,
15473
+ per_page,
15474
+ order_by,
15475
+ archived
15476
+ })
15477
+ }).json();
15478
+ }
15479
+ async function createTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, data, signal) {
15480
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks`, {
15481
+ signal,
15482
+ json: data
15483
+ }).json();
15484
+ }
15485
+ async function getTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15486
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, { signal }).json();
15487
+ }
15488
+ async function updateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
15489
+ return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
15490
+ signal,
15491
+ json: data
15492
+ }).json();
15493
+ }
15494
+ async function deleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, outbound_sync, signal) {
15495
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
15496
+ signal,
15497
+ searchParams: buildSearchParams$2({ outbound_sync })
15498
+ }).json();
15499
+ }
15500
+ async function partialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, data, signal) {
15501
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}`, {
15502
+ signal,
15503
+ json: data
15504
+ }).json();
15505
+ }
15506
+ async function archiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15507
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/archive`, { signal }).json();
15508
+ }
15509
+ async function restoreTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15510
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/restore`, { signal }).json();
15511
+ }
15512
+ async function unarchiveTimeBlockWithOrg(httpClient, organization_id, workspace_id, task_id, time_block_id, signal) {
15513
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-blocks/${time_block_id}/unarchive`, { signal }).json();
15514
+ }
15515
+ async function getTimeBlocksRangeWithOrgClassic(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, page, per_page, archived, order_by }, signal) {
15516
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks`, {
15517
+ signal,
15518
+ searchParams: buildSearchParams$2({
15519
+ date_from,
15520
+ date_to,
15521
+ task_id,
15522
+ status_id,
15523
+ page,
15524
+ per_page,
15525
+ archived,
15526
+ order_by
15527
+ })
15528
+ }).json();
15529
+ }
15530
+ async function bulkCreateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
15531
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
15532
+ signal,
15533
+ json: data
15534
+ }).json();
15535
+ }
15536
+ async function bulkDeleteTimeBlockWithOrg(httpClient, organization_id, workspace_id, ids, outbound_sync, signal) {
15537
+ return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
15538
+ signal,
15539
+ searchParams: buildSearchParams$2({
15540
+ ids,
15541
+ outbound_sync
15542
+ })
15543
+ }).json();
15544
+ }
15545
+ async function bulkPartialUpdateTimeBlockWithOrg(httpClient, organization_id, workspace_id, data, signal) {
15546
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/bulk`, {
15547
+ signal,
15548
+ json: data
15549
+ }).json();
15550
+ }
15551
+ async function getTimeBlocksRangeStreamWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, archived, order_by }, signal) {
15552
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-blocks/stream`, {
15553
+ signal,
15554
+ searchParams: buildSearchParams$2({
15555
+ date_from,
15556
+ date_to,
15557
+ task_id,
15558
+ status_id,
15559
+ archived,
15560
+ order_by
15561
+ })
15562
+ }).json();
15563
+ }
15564
+ //#endregion
15662
15565
  //#region ../focus-queries/dist/time-entry-constraints/requests.ts
15663
15566
  async function getTimeEntryConstraints(httpClient, workspace_id, signal) {
15664
15567
  return await httpClient.get(`workspaces/${workspace_id}/time-entry-constraints`, { signal }).json();
@@ -15696,12 +15599,6 @@ async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, star
15696
15599
  })
15697
15600
  }).json();
15698
15601
  }
15699
- async function getTimeoffCategories(httpClient, organization_id, signal) {
15700
- return await httpClient.get(`organizations/${organization_id}/timeoff/categories`, { signal }).json();
15701
- }
15702
- async function getTimeoffCategory(httpClient, organization_id, category_id, signal) {
15703
- return await httpClient.get(`organizations/${organization_id}/timeoff/categories/${category_id}`, { signal }).json();
15704
- }
15705
15602
  async function getTimeoffForUser(httpClient, organization_id, user_id, { from, to }, signal) {
15706
15603
  return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}`, {
15707
15604
  signal,
@@ -15729,40 +15626,20 @@ async function deleteTimeoffForUser(httpClient, organization_id, user_id, data,
15729
15626
  json: data
15730
15627
  }).json();
15731
15628
  }
15732
- async function getTimeoffBalancesForUser(httpClient, organization_id, user_id, { category_id, date } = {}, signal) {
15733
- return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances`, {
15629
+ //#endregion
15630
+ //#region ../focus-queries/dist/timesheet-setups/requests.ts
15631
+ async function getTimesheetSetups(httpClient, organization_id, workspace_id, { include_discontinued, user_account_id, approver_user_account_id } = {}, signal) {
15632
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
15734
15633
  signal,
15735
15634
  searchParams: buildSearchParams$2({
15736
- category_id,
15737
- date
15635
+ include_discontinued,
15636
+ user_account_id,
15637
+ approver_user_account_id
15738
15638
  })
15739
15639
  }).json();
15740
15640
  }
15741
- async function getTimeoffBalanceChangesForUserClassic(httpClient, organization_id, user_id, { category_id, year, page, rows }, signal) {
15742
- return await httpClient.get(`organizations/${organization_id}/timeoff/users/${user_id}/balances/changes`, {
15743
- signal,
15744
- searchParams: buildSearchParams$2({
15745
- category_id,
15746
- year,
15747
- page,
15748
- rows
15749
- })
15750
- }).json();
15751
- }
15752
- //#endregion
15753
- //#region ../focus-queries/dist/timesheet-setups/requests.ts
15754
- async function getTimesheetSetups(httpClient, organization_id, workspace_id, { include_discontinued, user_account_id, approver_user_account_id } = {}, signal) {
15755
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
15756
- signal,
15757
- searchParams: buildSearchParams$2({
15758
- include_discontinued,
15759
- user_account_id,
15760
- approver_user_account_id
15761
- })
15762
- }).json();
15763
- }
15764
- async function createTimesheetSetup(httpClient, organization_id, workspace_id, data, signal) {
15765
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
15641
+ async function createTimesheetSetup(httpClient, organization_id, workspace_id, data, signal) {
15642
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups`, {
15766
15643
  signal,
15767
15644
  json: data
15768
15645
  }).json();
@@ -15849,19 +15726,6 @@ async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id,
15849
15726
  json: data
15850
15727
  }).json();
15851
15728
  }
15852
- async function getTimesheetStatusCounts(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids }, signal) {
15853
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
15854
- signal,
15855
- searchParams: buildSearchParams$2({
15856
- date_from,
15857
- date_to,
15858
- setup_id,
15859
- user_account_ids,
15860
- approver_user_account_ids,
15861
- team_ids
15862
- })
15863
- }).json();
15864
- }
15865
15729
  async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
15866
15730
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal }).json();
15867
15731
  }
@@ -15905,21 +15769,7 @@ async function withdrawTimesheet(httpClient, organization_id, workspace_id, setu
15905
15769
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal }).json();
15906
15770
  }
15907
15771
  //#endregion
15908
- //#region ../focus-queries/dist/track-team-invites/requests.ts
15909
- async function postTrackTeamInvites(httpClient, organization_id, workspace_id, data, signal) {
15910
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
15911
- signal,
15912
- json: data
15913
- }).json();
15914
- }
15915
- //#endregion
15916
15772
  //#region ../focus-queries/dist/user-settings/requests.ts
15917
- async function emailUnsubscribePage(httpClient, token, signal) {
15918
- return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
15919
- }
15920
- async function emailUnsubscribe(httpClient, token, signal) {
15921
- return await httpClient.post(`email/unsubscribe/${token}`, { signal }).json();
15922
- }
15923
15773
  async function getUserSettings(httpClient, signal) {
15924
15774
  return await httpClient.get(`users/me/settings`, { signal }).json();
15925
15775
  }
@@ -15947,12 +15797,6 @@ async function serviceVersion(httpClient, signal) {
15947
15797
  }
15948
15798
  //#endregion
15949
15799
  //#region ../focus-queries/dist/working-hours/requests.ts
15950
- async function replaceWorkingHoursForUsers(httpClient, organization_id, data, signal) {
15951
- return await httpClient.put(`organizations/${organization_id}/workinghours/users`, {
15952
- signal,
15953
- json: data
15954
- }).json();
15955
- }
15956
15800
  async function getWorkingHoursForUser(httpClient, organization_id, user_id, signal) {
15957
15801
  return await httpClient.get(`organizations/${organization_id}/workinghours/users/${user_id}`, { signal }).json();
15958
15802
  }
@@ -16165,7 +16009,6 @@ const generatedFocusOperations = [
16165
16009
  mcp: { entityTool: "audit-log" },
16166
16010
  inputSchema: /* @__PURE__ */ looseObject({
16167
16011
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16168
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16169
16012
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16170
16013
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16171
16014
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -16173,7 +16016,6 @@ const generatedFocusOperations = [
16173
16016
  from: /* @__PURE__ */ string$1(),
16174
16017
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16175
16018
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16176
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16177
16019
  to: /* @__PURE__ */ string$1(),
16178
16020
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16179
16021
  workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -16207,7 +16049,6 @@ const generatedFocusOperations = [
16207
16049
  mcp: { entityTool: "audit-log" },
16208
16050
  inputSchema: /* @__PURE__ */ looseObject({
16209
16051
  action: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16210
- custom_field_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16211
16052
  entity_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16212
16053
  entity_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16213
16054
  export: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -16215,7 +16056,6 @@ const generatedFocusOperations = [
16215
16056
  from: /* @__PURE__ */ string$1(),
16216
16057
  page_number: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16217
16058
  page_size: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16218
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16219
16059
  to: /* @__PURE__ */ string$1(),
16220
16060
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
16221
16061
  }),
@@ -16255,7 +16095,6 @@ const generatedFocusOperations = [
16255
16095
  private_: /* @__PURE__ */ unknown$1(),
16256
16096
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16257
16097
  task_source: /* @__PURE__ */ unknown$1(),
16258
- team_id: /* @__PURE__ */ number$2(),
16259
16098
  unit: /* @__PURE__ */ unknown$1(),
16260
16099
  user_id: /* @__PURE__ */ number$2()
16261
16100
  }),
@@ -16505,6 +16344,8 @@ const generatedFocusOperations = [
16505
16344
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
16506
16345
  estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
16507
16346
  estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16347
+ integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16348
+ integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16508
16349
  notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16509
16350
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16510
16351
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -16538,6 +16379,8 @@ const generatedFocusOperations = [
16538
16379
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
16539
16380
  estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
16540
16381
  estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16382
+ integration_ext_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16383
+ integration_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16541
16384
  notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16542
16385
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
16543
16386
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
@@ -16553,6 +16396,12 @@ const generatedFocusOperations = [
16553
16396
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
16554
16397
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
16555
16398
  }))),
16399
+ time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
16400
+ start: apiDateTimeString,
16401
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
16402
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16403
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
16404
+ }))),
16556
16405
  time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
16557
16406
  type: /* @__PURE__ */ picklist$1(["activity", "break"]),
16558
16407
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -16562,6 +16411,13 @@ const generatedFocusOperations = [
16562
16411
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16563
16412
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
16564
16413
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
16414
+ time_block: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
16415
+ start: apiDateTimeString,
16416
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
16417
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16418
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
16419
+ })),
16420
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16565
16421
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
16566
16422
  }))
16567
16423
  }) }),
@@ -16679,33 +16535,6 @@ const generatedFocusOperations = [
16679
16535
  ]));
16680
16536
  }
16681
16537
  },
16682
- {
16683
- id: "focus.custom-fields.get-allowed-users",
16684
- family: "focus",
16685
- resource: "custom-fields",
16686
- action: "get-allowed-users",
16687
- title: "Get Allowed Users Custom Fields",
16688
- description: "Get Allowed Users Custom Fields.",
16689
- safety: "read",
16690
- destructive: false,
16691
- cli: {
16692
- group: ["custom-fields"],
16693
- command: "get-allowed-users",
16694
- interactive: "available"
16695
- },
16696
- mcp: { entityTool: "custom-fields" },
16697
- inputSchema: /* @__PURE__ */ looseObject({ custom_field_id: /* @__PURE__ */ number$2() }),
16698
- execute: (input, { client }) => {
16699
- const data = input;
16700
- return client.runGeneratedRequest("getCustomFieldAllowedUsers", () => callGeneratedRequest(getCustomFieldAllowedUsers, [
16701
- client.httpClient,
16702
- client.organizationId,
16703
- client.workspaceIdNumber,
16704
- data.custom_field_id,
16705
- void 0
16706
- ]));
16707
- }
16708
- },
16709
16538
  {
16710
16539
  id: "focus.custom-fields.list",
16711
16540
  family: "focus",
@@ -16875,37 +16704,6 @@ const generatedFocusOperations = [
16875
16704
  ]));
16876
16705
  }
16877
16706
  },
16878
- {
16879
- id: "focus.custom-fields.replace-custom-field-allowed-users",
16880
- family: "focus",
16881
- resource: "custom-fields",
16882
- action: "replace-custom-field-allowed-users",
16883
- title: "Replace Custom Field Allowed Users Custom Fields",
16884
- description: "Replace Custom Field Allowed Users Custom Fields.",
16885
- safety: "update",
16886
- destructive: false,
16887
- cli: {
16888
- group: ["custom-fields"],
16889
- command: "replace-custom-field-allowed-users",
16890
- interactive: "default"
16891
- },
16892
- mcp: { entityTool: "custom-fields" },
16893
- inputSchema: /* @__PURE__ */ looseObject({
16894
- custom_field_id: /* @__PURE__ */ number$2(),
16895
- payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) })
16896
- }),
16897
- execute: (input, { client }) => {
16898
- const data = input;
16899
- return client.runGeneratedRequest("replaceCustomFieldAllowedUsers", () => callGeneratedRequest(replaceCustomFieldAllowedUsers, [
16900
- client.httpClient,
16901
- client.organizationId,
16902
- client.workspaceIdNumber,
16903
- data.custom_field_id,
16904
- data.payload ?? data.data ?? data,
16905
- void 0
16906
- ]));
16907
- }
16908
- },
16909
16707
  {
16910
16708
  id: "focus.custom-fields.update",
16911
16709
  family: "focus",
@@ -17037,27 +16835,45 @@ const generatedFocusOperations = [
17037
16835
  }
17038
16836
  },
17039
16837
  {
17040
- id: "focus.designations.bulk-create-workspace",
16838
+ id: "focus.goals.create",
17041
16839
  family: "focus",
17042
- resource: "designations",
17043
- action: "bulk-create-workspace",
17044
- title: "Bulk Create Workspace Designations",
17045
- description: "Bulk Create Workspace Designations.",
16840
+ resource: "goals",
16841
+ action: "create",
16842
+ title: "Create Goals",
16843
+ description: "Create Goals.",
17046
16844
  safety: "create",
17047
16845
  destructive: false,
17048
16846
  cli: {
17049
- group: ["designations", "bulk"],
17050
- command: "create-workspace",
16847
+ group: ["goals"],
16848
+ command: "create",
17051
16849
  interactive: "default"
17052
16850
  },
17053
- mcp: { entityTool: "designations" },
17054
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
16851
+ mcp: { entityTool: "goals" },
16852
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
16853
+ billable: /* @__PURE__ */ boolean$1(),
16854
+ comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
16855
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16856
+ icon: /* @__PURE__ */ string$1(),
16857
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
17055
16858
  name: /* @__PURE__ */ string$1(),
17056
- member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17057
- })) }) }),
16859
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16860
+ recurrence: /* @__PURE__ */ picklist$1([
16861
+ "daily",
16862
+ "weekly",
16863
+ "daily_workdays",
16864
+ "monthly"
16865
+ ]),
16866
+ start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16867
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16868
+ target_seconds: /* @__PURE__ */ number$2(),
16869
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16870
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16871
+ client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
16872
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
16873
+ }) }),
17058
16874
  execute: (input, { client }) => {
17059
16875
  const data = input;
17060
- return client.runGeneratedRequest("bulkCreateWorkspaceDesignations", () => callGeneratedRequest(bulkCreateWorkspaceDesignations, [
16876
+ return client.runGeneratedRequest("createGoal", () => callGeneratedRequest(createGoal, [
17061
16877
  client.httpClient,
17062
16878
  client.organizationId,
17063
16879
  client.workspaceIdNumber,
@@ -17067,91 +16883,122 @@ const generatedFocusOperations = [
17067
16883
  }
17068
16884
  },
17069
16885
  {
17070
- id: "focus.designations.bulk-delete-workspace",
16886
+ id: "focus.goals.delete",
17071
16887
  family: "focus",
17072
- resource: "designations",
17073
- action: "bulk-delete-workspace",
17074
- title: "Bulk Delete Workspace Designations",
17075
- description: "Bulk Delete Workspace Designations.",
16888
+ resource: "goals",
16889
+ action: "delete",
16890
+ title: "Delete Goals",
16891
+ description: "Delete Goals.",
17076
16892
  safety: "delete",
17077
16893
  destructive: true,
17078
16894
  cli: {
17079
- group: ["designations", "bulk"],
17080
- command: "delete-workspace",
16895
+ group: ["goals"],
16896
+ command: "delete",
17081
16897
  interactive: "default"
17082
16898
  },
17083
- mcp: { entityTool: "designations" },
17084
- inputSchema: /* @__PURE__ */ looseObject({
17085
- all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17086
- ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2())
17087
- }),
16899
+ mcp: { entityTool: "goals" },
16900
+ inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
17088
16901
  execute: (input, { client }) => {
17089
16902
  const data = input;
17090
- return client.runGeneratedRequest("bulkDeleteWorkspaceDesignations", () => callGeneratedRequest(bulkDeleteWorkspaceDesignations, [
16903
+ return client.runGeneratedRequest("deleteGoal", () => callGeneratedRequest(deleteGoal, [
17091
16904
  client.httpClient,
17092
16905
  client.organizationId,
17093
16906
  client.workspaceIdNumber,
17094
- data.ids,
17095
- data.all_or_none,
16907
+ data.goal_id,
17096
16908
  void 0
17097
16909
  ]));
17098
16910
  }
17099
16911
  },
17100
16912
  {
17101
- id: "focus.designations.bulk-update-workspace",
16913
+ id: "focus.goals.get",
17102
16914
  family: "focus",
17103
- resource: "designations",
17104
- action: "bulk-update-workspace",
17105
- title: "Bulk Update Workspace Designations",
17106
- description: "Bulk Update Workspace Designations.",
17107
- safety: "update",
16915
+ resource: "goals",
16916
+ action: "get",
16917
+ title: "Get Goals",
16918
+ description: "Get Goals.",
16919
+ safety: "read",
17108
16920
  destructive: false,
17109
16921
  cli: {
17110
- group: ["designations", "bulk"],
17111
- command: "update-workspace",
17112
- interactive: "default"
16922
+ group: ["goals"],
16923
+ command: "get",
16924
+ interactive: "available"
17113
16925
  },
17114
- mcp: { entityTool: "designations" },
17115
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
17116
- designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
17117
- id: /* @__PURE__ */ number$2(),
17118
- name: /* @__PURE__ */ string$1()
17119
- })),
17120
- all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
17121
- }) }),
16926
+ mcp: { entityTool: "goals" },
16927
+ inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
17122
16928
  execute: (input, { client }) => {
17123
16929
  const data = input;
17124
- return client.runGeneratedRequest("bulkUpdateWorkspaceDesignations", () => callGeneratedRequest(bulkUpdateWorkspaceDesignations, [
16930
+ return client.runGeneratedRequest("getGoal", () => callGeneratedRequest(getGoal, [
17125
16931
  client.httpClient,
17126
16932
  client.organizationId,
17127
16933
  client.workspaceIdNumber,
17128
- data.payload ?? data.data ?? data,
16934
+ data.goal_id,
17129
16935
  void 0
17130
16936
  ]));
17131
16937
  }
17132
16938
  },
17133
16939
  {
17134
- id: "focus.designations.create-workspace",
16940
+ id: "focus.goals.list",
17135
16941
  family: "focus",
17136
- resource: "designations",
17137
- action: "create-workspace",
17138
- title: "Create Workspace Designations",
17139
- description: "Create Workspace Designations.",
17140
- safety: "create",
16942
+ resource: "goals",
16943
+ action: "list",
16944
+ title: "List Goals",
16945
+ description: "List Goals.",
16946
+ safety: "read",
16947
+ destructive: false,
16948
+ cli: {
16949
+ group: ["goals"],
16950
+ command: "list",
16951
+ interactive: "hidden"
16952
+ },
16953
+ mcp: { entityTool: "goals" },
16954
+ inputSchema: /* @__PURE__ */ looseObject({}),
16955
+ execute: (_input, { client }) => client.runGeneratedRequest("getGoals", () => callGeneratedRequest(getGoals, [
16956
+ client.httpClient,
16957
+ client.organizationId,
16958
+ client.workspaceIdNumber,
16959
+ void 0
16960
+ ]))
16961
+ },
16962
+ {
16963
+ id: "focus.goals.preview-goal-tracked-time",
16964
+ family: "focus",
16965
+ resource: "goals",
16966
+ action: "preview-goal-tracked-time",
16967
+ title: "Preview Goal Tracked Time Goals",
16968
+ description: "Preview Goal Tracked Time Goals.",
16969
+ safety: "update",
17141
16970
  destructive: false,
17142
16971
  cli: {
17143
- group: ["designations"],
17144
- command: "create-workspace",
16972
+ group: ["goals"],
16973
+ command: "preview-goal-tracked-time",
17145
16974
  interactive: "default"
17146
16975
  },
17147
- mcp: { entityTool: "designations" },
16976
+ mcp: { entityTool: "goals" },
17148
16977
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
16978
+ billable: /* @__PURE__ */ boolean$1(),
16979
+ comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
16980
+ end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16981
+ icon: /* @__PURE__ */ string$1(),
16982
+ monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
17149
16983
  name: /* @__PURE__ */ string$1(),
17150
- member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
16984
+ project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16985
+ recurrence: /* @__PURE__ */ picklist$1([
16986
+ "daily",
16987
+ "weekly",
16988
+ "daily_workdays",
16989
+ "monthly"
16990
+ ]),
16991
+ start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
16992
+ tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16993
+ target_seconds: /* @__PURE__ */ number$2(),
16994
+ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16995
+ weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
16996
+ client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
16997
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
17151
16998
  }) }),
17152
16999
  execute: (input, { client }) => {
17153
17000
  const data = input;
17154
- return client.runGeneratedRequest("createWorkspaceDesignation", () => callGeneratedRequest(createWorkspaceDesignation, [
17001
+ return client.runGeneratedRequest("previewGoalTrackedTime", () => callGeneratedRequest(previewGoalTrackedTime, [
17155
17002
  client.httpClient,
17156
17003
  client.organizationId,
17157
17004
  client.workspaceIdNumber,
@@ -17161,173 +17008,108 @@ const generatedFocusOperations = [
17161
17008
  }
17162
17009
  },
17163
17010
  {
17164
- id: "focus.designations.delete-workspace",
17011
+ id: "focus.goals.reorder",
17165
17012
  family: "focus",
17166
- resource: "designations",
17167
- action: "delete-workspace",
17168
- title: "Delete Workspace Designations",
17169
- description: "Delete Workspace Designations.",
17170
- safety: "delete",
17171
- destructive: true,
17013
+ resource: "goals",
17014
+ action: "reorder",
17015
+ title: "Reorder Goals",
17016
+ description: "Reorder Goals.",
17017
+ safety: "update",
17018
+ destructive: false,
17172
17019
  cli: {
17173
- group: ["designations"],
17174
- command: "delete-workspace",
17020
+ group: ["goals"],
17021
+ command: "reorder",
17175
17022
  interactive: "default"
17176
17023
  },
17177
- mcp: { entityTool: "designations" },
17178
- inputSchema: /* @__PURE__ */ looseObject({ designation_id: /* @__PURE__ */ number$2() }),
17024
+ mcp: { entityTool: "goals" },
17025
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ goal_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
17179
17026
  execute: (input, { client }) => {
17180
17027
  const data = input;
17181
- return client.runGeneratedRequest("deleteWorkspaceDesignation", () => callGeneratedRequest(deleteWorkspaceDesignation, [
17028
+ return client.runGeneratedRequest("reorderGoals", () => callGeneratedRequest(reorderGoals, [
17182
17029
  client.httpClient,
17183
17030
  client.organizationId,
17184
17031
  client.workspaceIdNumber,
17185
- data.designation_id,
17032
+ data.payload ?? data.data ?? data,
17186
17033
  void 0
17187
17034
  ]));
17188
17035
  }
17189
17036
  },
17190
17037
  {
17191
- id: "focus.designations.get-workspace-designations",
17038
+ id: "focus.goals.update",
17192
17039
  family: "focus",
17193
- resource: "designations",
17194
- action: "get-workspace-designations",
17195
- title: "Get Workspace Designations Designations",
17196
- description: "Get Workspace Designations Designations.",
17197
- safety: "read",
17040
+ resource: "goals",
17041
+ action: "update",
17042
+ title: "Update Goals",
17043
+ description: "Update Goals.",
17044
+ safety: "update",
17198
17045
  destructive: false,
17199
17046
  cli: {
17200
- group: ["designations"],
17201
- command: "get-workspace-designations",
17202
- interactive: "hidden"
17047
+ group: ["goals"],
17048
+ command: "update",
17049
+ interactive: "default"
17203
17050
  },
17204
- mcp: { entityTool: "designations" },
17051
+ mcp: { entityTool: "goals" },
17205
17052
  inputSchema: /* @__PURE__ */ looseObject({
17206
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17207
- order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17208
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17209
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
17053
+ goal_id: /* @__PURE__ */ number$2(),
17054
+ payload: /* @__PURE__ */ looseObject({
17055
+ active: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17056
+ client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17057
+ comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17058
+ icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17059
+ name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17060
+ project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17061
+ recurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
17062
+ "daily",
17063
+ "weekly",
17064
+ "daily_workdays",
17065
+ "monthly"
17066
+ ])),
17067
+ start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17068
+ tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17069
+ target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17070
+ task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17071
+ weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17072
+ })
17210
17073
  }),
17211
17074
  execute: (input, { client }) => {
17212
17075
  const data = input;
17213
- return client.runGeneratedRequest("getWorkspaceDesignationsClassic", () => callGeneratedRequest(getWorkspaceDesignationsClassic, [
17076
+ return client.runGeneratedRequest("updateGoal", () => callGeneratedRequest(updateGoal, [
17214
17077
  client.httpClient,
17215
17078
  client.organizationId,
17216
17079
  client.workspaceIdNumber,
17217
- data,
17080
+ data.goal_id,
17081
+ data.payload ?? data.data ?? data,
17218
17082
  void 0
17219
17083
  ]));
17220
17084
  }
17221
17085
  },
17222
17086
  {
17223
- id: "focus.designations.update-workspace",
17087
+ id: "focus.milestones.create",
17224
17088
  family: "focus",
17225
- resource: "designations",
17226
- action: "update-workspace",
17227
- title: "Update Workspace Designations",
17228
- description: "Update Workspace Designations.",
17229
- safety: "update",
17230
- destructive: false,
17231
- cli: {
17232
- group: ["designations"],
17233
- command: "update-workspace",
17234
- interactive: "default"
17235
- },
17236
- mcp: { entityTool: "designations" },
17237
- inputSchema: /* @__PURE__ */ looseObject({
17238
- designation_id: /* @__PURE__ */ number$2(),
17239
- payload: /* @__PURE__ */ looseObject({ name: /* @__PURE__ */ string$1() })
17240
- }),
17241
- execute: (input, { client }) => {
17242
- const data = input;
17243
- return client.runGeneratedRequest("updateWorkspaceDesignation", () => callGeneratedRequest(updateWorkspaceDesignation, [
17244
- client.httpClient,
17245
- client.organizationId,
17246
- client.workspaceIdNumber,
17247
- data.designation_id,
17248
- data.payload ?? data.data ?? data,
17249
- void 0
17250
- ]));
17251
- }
17252
- },
17253
- {
17254
- id: "focus.designations.update-workspace-designation-members",
17255
- family: "focus",
17256
- resource: "designations",
17257
- action: "update-workspace-designation-members",
17258
- title: "Update Workspace Designation Members Designations",
17259
- description: "Update Workspace Designation Members Designations.",
17260
- safety: "update",
17261
- destructive: false,
17262
- cli: {
17263
- group: ["designations"],
17264
- command: "update-workspace-designation-members",
17265
- interactive: "default"
17266
- },
17267
- mcp: { entityTool: "designations" },
17268
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
17269
- add: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
17270
- designation_id: /* @__PURE__ */ number$2(),
17271
- toggl_user_id: /* @__PURE__ */ number$2()
17272
- }))),
17273
- remove: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
17274
- designation_id: /* @__PURE__ */ number$2(),
17275
- toggl_user_id: /* @__PURE__ */ number$2()
17276
- })))
17277
- }) }),
17278
- execute: (input, { client }) => {
17279
- const data = input;
17280
- return client.runGeneratedRequest("updateWorkspaceDesignationMembers", () => callGeneratedRequest(updateWorkspaceDesignationMembers, [
17281
- client.httpClient,
17282
- client.organizationId,
17283
- client.workspaceIdNumber,
17284
- data.payload ?? data.data ?? data,
17285
- void 0
17286
- ]));
17287
- }
17288
- },
17289
- {
17290
- id: "focus.goals.create",
17291
- family: "focus",
17292
- resource: "goals",
17089
+ resource: "milestones",
17293
17090
  action: "create",
17294
- title: "Create Goals",
17295
- description: "Create Goals.",
17091
+ title: "Create Milestones",
17092
+ description: "Create Milestones.",
17296
17093
  safety: "create",
17297
17094
  destructive: false,
17298
17095
  cli: {
17299
- group: ["goals"],
17096
+ group: ["milestones"],
17300
17097
  command: "create",
17301
17098
  interactive: "default"
17302
17099
  },
17303
- mcp: { entityTool: "goals" },
17100
+ mcp: { entityTool: "milestones" },
17304
17101
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
17305
- comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
17306
- recurrence: /* @__PURE__ */ picklist$1([
17307
- "daily",
17308
- "weekly",
17309
- "daily_workdays",
17310
- "monthly"
17311
- ]),
17312
- start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
17313
- target_seconds: /* @__PURE__ */ number$2(),
17314
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17315
- client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17316
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17317
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17318
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17319
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
17320
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17102
+ color: /* @__PURE__ */ string$1(),
17103
+ due_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
17104
+ name: /* @__PURE__ */ string$1(),
17105
+ completed_at: /* @__PURE__ */ optional$1(apiDateTimeString),
17321
17106
  project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17322
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17323
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17324
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17107
+ team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17325
17108
  }) }),
17326
17109
  execute: (input, { client }) => {
17327
17110
  const data = input;
17328
- return client.runGeneratedRequest("createGoal", () => callGeneratedRequest(createGoal, [
17111
+ return client.runGeneratedRequest("createMilestone", () => callGeneratedRequest(createMilestone, [
17329
17112
  client.httpClient,
17330
- client.organizationId,
17331
17113
  client.workspaceIdNumber,
17332
17114
  data.payload ?? data.data ?? data,
17333
17115
  void 0
@@ -17335,400 +17117,166 @@ const generatedFocusOperations = [
17335
17117
  }
17336
17118
  },
17337
17119
  {
17338
- id: "focus.goals.delete",
17120
+ id: "focus.milestones.delete",
17339
17121
  family: "focus",
17340
- resource: "goals",
17122
+ resource: "milestones",
17341
17123
  action: "delete",
17342
- title: "Delete Goals",
17343
- description: "Delete Goals.",
17124
+ title: "Delete Milestones",
17125
+ description: "Delete Milestones.",
17344
17126
  safety: "delete",
17345
17127
  destructive: true,
17346
17128
  cli: {
17347
- group: ["goals"],
17129
+ group: ["milestones"],
17348
17130
  command: "delete",
17349
17131
  interactive: "default"
17350
17132
  },
17351
- mcp: { entityTool: "goals" },
17352
- inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
17133
+ mcp: { entityTool: "milestones" },
17134
+ inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
17353
17135
  execute: (input, { client }) => {
17354
17136
  const data = input;
17355
- return client.runGeneratedRequest("deleteGoal", () => callGeneratedRequest(deleteGoal, [
17137
+ return client.runGeneratedRequest("deleteMilestone", () => callGeneratedRequest(deleteMilestone, [
17356
17138
  client.httpClient,
17357
- client.organizationId,
17358
17139
  client.workspaceIdNumber,
17359
- data.goal_id,
17140
+ data.milestone_id,
17360
17141
  void 0
17361
17142
  ]));
17362
17143
  }
17363
17144
  },
17364
17145
  {
17365
- id: "focus.goals.get",
17146
+ id: "focus.milestones.get",
17366
17147
  family: "focus",
17367
- resource: "goals",
17148
+ resource: "milestones",
17368
17149
  action: "get",
17369
- title: "Get Goals",
17370
- description: "Get Goals.",
17150
+ title: "Get Milestones",
17151
+ description: "Get Milestones.",
17371
17152
  safety: "read",
17372
17153
  destructive: false,
17373
17154
  cli: {
17374
- group: ["goals"],
17155
+ group: ["milestones"],
17375
17156
  command: "get",
17376
17157
  interactive: "available"
17377
17158
  },
17378
- mcp: { entityTool: "goals" },
17379
- inputSchema: /* @__PURE__ */ looseObject({ goal_id: /* @__PURE__ */ number$2() }),
17159
+ mcp: { entityTool: "milestones" },
17160
+ inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
17380
17161
  execute: (input, { client }) => {
17381
17162
  const data = input;
17382
- return client.runGeneratedRequest("getGoal", () => callGeneratedRequest(getGoal, [
17163
+ return client.runGeneratedRequest("getMilestone", () => callGeneratedRequest(getMilestone, [
17383
17164
  client.httpClient,
17384
- client.organizationId,
17385
17165
  client.workspaceIdNumber,
17386
- data.goal_id,
17166
+ data.milestone_id,
17387
17167
  void 0
17388
17168
  ]));
17389
17169
  }
17390
17170
  },
17391
17171
  {
17392
- id: "focus.goals.list",
17172
+ id: "focus.milestones.get-classic",
17393
17173
  family: "focus",
17394
- resource: "goals",
17395
- action: "list",
17396
- title: "List Goals",
17397
- description: "List Goals.",
17174
+ resource: "milestones",
17175
+ action: "get-classic",
17176
+ title: "Get Classic Milestones",
17177
+ description: "Get Classic Milestones.",
17398
17178
  safety: "read",
17399
17179
  destructive: false,
17400
17180
  cli: {
17401
- group: ["goals"],
17402
- command: "list",
17181
+ group: ["milestones"],
17182
+ command: "get-classic",
17403
17183
  interactive: "hidden"
17404
17184
  },
17405
- mcp: { entityTool: "goals" },
17406
- inputSchema: /* @__PURE__ */ looseObject({}),
17407
- execute: (_input, { client }) => client.runGeneratedRequest("getGoals", () => callGeneratedRequest(getGoals, [
17408
- client.httpClient,
17409
- client.organizationId,
17410
- client.workspaceIdNumber,
17411
- void 0
17412
- ]))
17413
- },
17414
- {
17415
- id: "focus.goals.preview-goal-tracked-time",
17416
- family: "focus",
17417
- resource: "goals",
17418
- action: "preview-goal-tracked-time",
17419
- title: "Preview Goal Tracked Time Goals",
17420
- description: "Preview Goal Tracked Time Goals.",
17421
- safety: "update",
17422
- destructive: false,
17423
- cli: {
17424
- group: ["goals"],
17425
- command: "preview-goal-tracked-time",
17426
- interactive: "default"
17427
- },
17428
- mcp: { entityTool: "goals" },
17429
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
17430
- recurrence: /* @__PURE__ */ picklist$1([
17431
- "daily",
17432
- "weekly",
17433
- "daily_workdays",
17434
- "monthly"
17435
- ]),
17436
- start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
17437
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17438
- client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17439
- comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["more_than", "less_than"])),
17440
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17441
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17442
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17443
- monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
17444
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17445
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17446
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17447
- target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17448
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17449
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17450
- }) }),
17185
+ mcp: { entityTool: "milestones" },
17186
+ inputSchema: /* @__PURE__ */ looseObject({
17187
+ due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17188
+ due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17189
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17190
+ page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17191
+ per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17192
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17193
+ team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
17194
+ }),
17451
17195
  execute: (input, { client }) => {
17452
17196
  const data = input;
17453
- return client.runGeneratedRequest("previewGoalTrackedTime", () => callGeneratedRequest(previewGoalTrackedTime, [
17197
+ return client.runGeneratedRequest("getMilestonesClassic", () => callGeneratedRequest(getMilestonesClassic, [
17454
17198
  client.httpClient,
17455
- client.organizationId,
17456
17199
  client.workspaceIdNumber,
17457
- data.payload ?? data.data ?? data,
17200
+ data,
17458
17201
  void 0
17459
17202
  ]));
17460
17203
  }
17461
17204
  },
17462
17205
  {
17463
- id: "focus.goals.reorder",
17206
+ id: "focus.milestones.get-stream",
17464
17207
  family: "focus",
17465
- resource: "goals",
17466
- action: "reorder",
17467
- title: "Reorder Goals",
17468
- description: "Reorder Goals.",
17469
- safety: "update",
17208
+ resource: "milestones",
17209
+ action: "get-stream",
17210
+ title: "Get Stream Milestones",
17211
+ description: "Get Stream Milestones.",
17212
+ safety: "read",
17470
17213
  destructive: false,
17471
17214
  cli: {
17472
- group: ["goals"],
17473
- command: "reorder",
17474
- interactive: "default"
17215
+ group: ["milestones"],
17216
+ command: "get-stream",
17217
+ interactive: "hidden"
17475
17218
  },
17476
- mcp: { entityTool: "goals" },
17477
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ goal_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
17219
+ mcp: { entityTool: "milestones" },
17220
+ inputSchema: /* @__PURE__ */ looseObject({
17221
+ due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17222
+ due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17223
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17224
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17225
+ team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
17226
+ }),
17478
17227
  execute: (input, { client }) => {
17479
17228
  const data = input;
17480
- return client.runGeneratedRequest("reorderGoals", () => callGeneratedRequest(reorderGoals, [
17229
+ return client.runGeneratedRequest("getMilestonesStream", () => callGeneratedRequest(getMilestonesStream, [
17481
17230
  client.httpClient,
17482
- client.organizationId,
17483
17231
  client.workspaceIdNumber,
17484
- data.payload ?? data.data ?? data,
17232
+ data,
17485
17233
  void 0
17486
17234
  ]));
17487
17235
  }
17488
17236
  },
17489
17237
  {
17490
- id: "focus.goals.update",
17238
+ id: "focus.milestones.partial-update",
17491
17239
  family: "focus",
17492
- resource: "goals",
17493
- action: "update",
17494
- title: "Update Goals",
17495
- description: "Update Goals.",
17240
+ resource: "milestones",
17241
+ action: "partial-update",
17242
+ title: "Partial Update Milestones",
17243
+ description: "Partial Update Milestones.",
17496
17244
  safety: "update",
17497
17245
  destructive: false,
17498
17246
  cli: {
17499
- group: ["goals"],
17500
- command: "update",
17247
+ group: ["milestones"],
17248
+ command: "partial-update",
17501
17249
  interactive: "default"
17502
17250
  },
17503
- mcp: { entityTool: "goals" },
17251
+ mcp: { entityTool: "milestones" },
17504
17252
  inputSchema: /* @__PURE__ */ looseObject({
17505
- goal_id: /* @__PURE__ */ number$2(),
17253
+ milestone_id: /* @__PURE__ */ number$2(),
17506
17254
  payload: /* @__PURE__ */ looseObject({
17507
- active: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
17508
- client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17509
- comparison: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17510
- icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17255
+ due_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17511
17256
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17512
17257
  project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17513
- recurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
17514
- "daily",
17515
- "weekly",
17516
- "daily_workdays",
17517
- "monthly"
17518
- ])),
17519
- start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17520
- tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17521
- target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17522
- task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17523
- weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17258
+ team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17524
17259
  })
17525
17260
  }),
17526
17261
  execute: (input, { client }) => {
17527
17262
  const data = input;
17528
- return client.runGeneratedRequest("updateGoal", () => callGeneratedRequest(updateGoal, [
17263
+ return client.runGeneratedRequest("partialUpdateMilestone", () => callGeneratedRequest(partialUpdateMilestone, [
17529
17264
  client.httpClient,
17530
- client.organizationId,
17531
17265
  client.workspaceIdNumber,
17532
- data.goal_id,
17266
+ data.milestone_id,
17533
17267
  data.payload ?? data.data ?? data,
17534
17268
  void 0
17535
17269
  ]));
17536
17270
  }
17537
17271
  },
17538
17272
  {
17539
- id: "focus.milestones.create",
17273
+ id: "focus.milestones.restore",
17540
17274
  family: "focus",
17541
17275
  resource: "milestones",
17542
- action: "create",
17543
- title: "Create Milestones",
17544
- description: "Create Milestones.",
17545
- safety: "create",
17546
- destructive: false,
17547
- cli: {
17548
- group: ["milestones"],
17549
- command: "create",
17550
- interactive: "default"
17551
- },
17552
- mcp: { entityTool: "milestones" },
17553
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
17554
- color: /* @__PURE__ */ string$1(),
17555
- due_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
17556
- name: /* @__PURE__ */ string$1(),
17557
- completed_at: /* @__PURE__ */ optional$1(apiDateTimeString),
17558
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17559
- team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17560
- }) }),
17561
- execute: (input, { client }) => {
17562
- const data = input;
17563
- return client.runGeneratedRequest("createMilestone", () => callGeneratedRequest(createMilestone, [
17564
- client.httpClient,
17565
- client.workspaceIdNumber,
17566
- data.payload ?? data.data ?? data,
17567
- void 0
17568
- ]));
17569
- }
17570
- },
17571
- {
17572
- id: "focus.milestones.delete",
17573
- family: "focus",
17574
- resource: "milestones",
17575
- action: "delete",
17576
- title: "Delete Milestones",
17577
- description: "Delete Milestones.",
17578
- safety: "delete",
17579
- destructive: true,
17580
- cli: {
17581
- group: ["milestones"],
17582
- command: "delete",
17583
- interactive: "default"
17584
- },
17585
- mcp: { entityTool: "milestones" },
17586
- inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
17587
- execute: (input, { client }) => {
17588
- const data = input;
17589
- return client.runGeneratedRequest("deleteMilestone", () => callGeneratedRequest(deleteMilestone, [
17590
- client.httpClient,
17591
- client.workspaceIdNumber,
17592
- data.milestone_id,
17593
- void 0
17594
- ]));
17595
- }
17596
- },
17597
- {
17598
- id: "focus.milestones.get",
17599
- family: "focus",
17600
- resource: "milestones",
17601
- action: "get",
17602
- title: "Get Milestones",
17603
- description: "Get Milestones.",
17604
- safety: "read",
17605
- destructive: false,
17606
- cli: {
17607
- group: ["milestones"],
17608
- command: "get",
17609
- interactive: "available"
17610
- },
17611
- mcp: { entityTool: "milestones" },
17612
- inputSchema: /* @__PURE__ */ looseObject({ milestone_id: /* @__PURE__ */ number$2() }),
17613
- execute: (input, { client }) => {
17614
- const data = input;
17615
- return client.runGeneratedRequest("getMilestone", () => callGeneratedRequest(getMilestone, [
17616
- client.httpClient,
17617
- client.workspaceIdNumber,
17618
- data.milestone_id,
17619
- void 0
17620
- ]));
17621
- }
17622
- },
17623
- {
17624
- id: "focus.milestones.get-classic",
17625
- family: "focus",
17626
- resource: "milestones",
17627
- action: "get-classic",
17628
- title: "Get Classic Milestones",
17629
- description: "Get Classic Milestones.",
17630
- safety: "read",
17631
- destructive: false,
17632
- cli: {
17633
- group: ["milestones"],
17634
- command: "get-classic",
17635
- interactive: "hidden"
17636
- },
17637
- mcp: { entityTool: "milestones" },
17638
- inputSchema: /* @__PURE__ */ looseObject({
17639
- due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17640
- due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17641
- order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17642
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17643
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17644
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17645
- team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
17646
- }),
17647
- execute: (input, { client }) => {
17648
- const data = input;
17649
- return client.runGeneratedRequest("getMilestonesClassic", () => callGeneratedRequest(getMilestonesClassic, [
17650
- client.httpClient,
17651
- client.workspaceIdNumber,
17652
- data,
17653
- void 0
17654
- ]));
17655
- }
17656
- },
17657
- {
17658
- id: "focus.milestones.get-stream",
17659
- family: "focus",
17660
- resource: "milestones",
17661
- action: "get-stream",
17662
- title: "Get Stream Milestones",
17663
- description: "Get Stream Milestones.",
17664
- safety: "read",
17665
- destructive: false,
17666
- cli: {
17667
- group: ["milestones"],
17668
- command: "get-stream",
17669
- interactive: "hidden"
17670
- },
17671
- mcp: { entityTool: "milestones" },
17672
- inputSchema: /* @__PURE__ */ looseObject({
17673
- due_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17674
- due_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17675
- order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17676
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17677
- team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
17678
- }),
17679
- execute: (input, { client }) => {
17680
- const data = input;
17681
- return client.runGeneratedRequest("getMilestonesStream", () => callGeneratedRequest(getMilestonesStream, [
17682
- client.httpClient,
17683
- client.workspaceIdNumber,
17684
- data,
17685
- void 0
17686
- ]));
17687
- }
17688
- },
17689
- {
17690
- id: "focus.milestones.partial-update",
17691
- family: "focus",
17692
- resource: "milestones",
17693
- action: "partial-update",
17694
- title: "Partial Update Milestones",
17695
- description: "Partial Update Milestones.",
17696
- safety: "update",
17697
- destructive: false,
17698
- cli: {
17699
- group: ["milestones"],
17700
- command: "partial-update",
17701
- interactive: "default"
17702
- },
17703
- mcp: { entityTool: "milestones" },
17704
- inputSchema: /* @__PURE__ */ looseObject({
17705
- milestone_id: /* @__PURE__ */ number$2(),
17706
- payload: /* @__PURE__ */ looseObject({
17707
- due_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17708
- name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17709
- project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17710
- team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
17711
- })
17712
- }),
17713
- execute: (input, { client }) => {
17714
- const data = input;
17715
- return client.runGeneratedRequest("partialUpdateMilestone", () => callGeneratedRequest(partialUpdateMilestone, [
17716
- client.httpClient,
17717
- client.workspaceIdNumber,
17718
- data.milestone_id,
17719
- data.payload ?? data.data ?? data,
17720
- void 0
17721
- ]));
17722
- }
17723
- },
17724
- {
17725
- id: "focus.milestones.restore",
17726
- family: "focus",
17727
- resource: "milestones",
17728
- action: "restore",
17729
- title: "Restore Milestones",
17730
- description: "Restore Milestones.",
17731
- safety: "update",
17276
+ action: "restore",
17277
+ title: "Restore Milestones",
17278
+ description: "Restore Milestones.",
17279
+ safety: "update",
17732
17280
  destructive: false,
17733
17281
  cli: {
17734
17282
  group: ["milestones"],
@@ -18413,17 +17961,9 @@ const generatedFocusOperations = [
18413
17961
  mcp: { entityTool: "projects" },
18414
17962
  inputSchema: /* @__PURE__ */ looseObject({
18415
17963
  payload: /* @__PURE__ */ looseObject({
18416
- auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
18417
- completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
18418
17964
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
18419
17965
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
18420
17966
  pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
18421
- rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
18422
- "expire",
18423
- "carry_all",
18424
- "carry_over"
18425
- ])),
18426
- rrule: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
18427
17967
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
18428
17968
  }),
18429
17969
  project_id: /* @__PURE__ */ number$2()
@@ -18867,7 +18407,6 @@ const generatedFocusOperations = [
18867
18407
  group: /* @__PURE__ */ string$1(),
18868
18408
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18869
18409
  include_group_totals: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18870
- include_recurring_series: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18871
18410
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18872
18411
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
18873
18412
  only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -18970,6 +18509,29 @@ const generatedFocusOperations = [
18970
18509
  ]));
18971
18510
  }
18972
18511
  },
18512
+ {
18513
+ id: "focus.projects.margin-targets-clear-workspace",
18514
+ family: "focus",
18515
+ resource: "projects",
18516
+ action: "margin-targets-clear-workspace",
18517
+ title: "Margin Targets Clear Workspace Projects",
18518
+ description: "Margin Targets Clear Workspace Projects.",
18519
+ safety: "delete",
18520
+ destructive: true,
18521
+ cli: {
18522
+ group: ["projects", "margin-targets"],
18523
+ command: "clear-workspace",
18524
+ interactive: "default"
18525
+ },
18526
+ mcp: { entityTool: "projects" },
18527
+ inputSchema: /* @__PURE__ */ looseObject({}),
18528
+ execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
18529
+ client.httpClient,
18530
+ client.organizationId,
18531
+ client.workspaceIdNumber,
18532
+ void 0
18533
+ ]))
18534
+ },
18973
18535
  {
18974
18536
  id: "focus.projects.margin-targets-get",
18975
18537
  family: "focus",
@@ -19415,200 +18977,76 @@ const generatedFocusOperations = [
19415
18977
  }
19416
18978
  },
19417
18979
  {
19418
- id: "focus.publicsharedreports.open-public-shared-report",
18980
+ id: "focus.rates.billable-check-project-billable-rate-conflicts",
19419
18981
  family: "focus",
19420
- resource: "publicsharedreports",
19421
- action: "open-public-shared-report",
19422
- title: "Open Public Shared Report Publicsharedreports",
19423
- description: "Open Public Shared Report Publicsharedreports.",
19424
- safety: "read",
18982
+ resource: "rates",
18983
+ action: "billable-check-project-billable-rate-conflicts",
18984
+ title: "Billable Check Project Billable Rate Conflicts Rates",
18985
+ description: "Billable Check Project Billable Rate Conflicts Rates.",
18986
+ safety: "update",
19425
18987
  destructive: false,
19426
18988
  cli: {
19427
- group: ["publicsharedreports"],
19428
- command: "open-public-shared-report",
19429
- interactive: "available"
18989
+ group: ["rates", "billable"],
18990
+ command: "check-project-billable-rate-conflicts",
18991
+ interactive: "default"
19430
18992
  },
19431
- mcp: { entityTool: "publicsharedreports" },
19432
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
18993
+ mcp: { entityTool: "rates" },
18994
+ inputSchema: /* @__PURE__ */ looseObject({
18995
+ payload: rateSchedulePayloadSchema,
18996
+ project_id: /* @__PURE__ */ number$2()
18997
+ }),
19433
18998
  execute: (input, { client }) => {
19434
18999
  const data = input;
19435
- return client.runGeneratedRequest("openPublicSharedReport", () => callGeneratedRequest(openPublicSharedReport, [
19000
+ return client.runGeneratedRequest("checkProjectBillableRateConflicts", () => callGeneratedRequest(checkProjectBillableRateConflicts, [
19436
19001
  client.httpClient,
19437
- data.token,
19002
+ client.organizationId,
19003
+ client.workspaceIdNumber,
19004
+ data.project_id,
19005
+ data.payload ?? data.data ?? data,
19438
19006
  void 0
19439
19007
  ]));
19440
19008
  }
19441
19009
  },
19442
19010
  {
19443
- id: "focus.publicsharedreports.profitability-public-shared-report",
19011
+ id: "focus.rates.billable-check-project-user-billable-rate-conflicts",
19444
19012
  family: "focus",
19445
- resource: "publicsharedreports",
19446
- action: "profitability-public-shared-report",
19447
- title: "Profitability Public Shared Report Publicsharedreports",
19448
- description: "Profitability Public Shared Report Publicsharedreports.",
19013
+ resource: "rates",
19014
+ action: "billable-check-project-user-billable-rate-conflicts",
19015
+ title: "Billable Check Project User Billable Rate Conflicts Rates",
19016
+ description: "Billable Check Project User Billable Rate Conflicts Rates.",
19449
19017
  safety: "update",
19450
19018
  destructive: false,
19451
19019
  cli: {
19452
- group: ["publicsharedreports"],
19453
- command: "profitability-public-shared-report",
19020
+ group: ["rates", "billable"],
19021
+ command: "check-project-user-billable-rate-conflicts",
19454
19022
  interactive: "default"
19455
19023
  },
19456
- mcp: { entityTool: "publicsharedreports" },
19024
+ mcp: { entityTool: "rates" },
19457
19025
  inputSchema: /* @__PURE__ */ looseObject({
19458
- include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
19459
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
19460
- response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["json_row", "hierarchical"])),
19461
- token: /* @__PURE__ */ string$1()
19026
+ payload: rateSchedulePayloadSchema,
19027
+ project_id: /* @__PURE__ */ number$2(),
19028
+ user_id: /* @__PURE__ */ number$2()
19462
19029
  }),
19463
19030
  execute: (input, { client }) => {
19464
19031
  const data = input;
19465
- return client.runGeneratedRequest("profitabilityPublicSharedReport", () => callGeneratedRequest(profitabilityPublicSharedReport, [
19032
+ return client.runGeneratedRequest("checkProjectUserBillableRateConflicts", () => callGeneratedRequest(checkProjectUserBillableRateConflicts, [
19466
19033
  client.httpClient,
19467
- data.token,
19034
+ client.organizationId,
19035
+ client.workspaceIdNumber,
19036
+ data.project_id,
19037
+ data.user_id,
19468
19038
  data.payload ?? data.data ?? data,
19469
- data.response_format,
19470
- data.include_dicts,
19471
19039
  void 0
19472
19040
  ]));
19473
19041
  }
19474
19042
  },
19475
19043
  {
19476
- id: "focus.publicsharedreports.query-public-shared-report",
19044
+ id: "focus.rates.billable-check-workspace-billable-rate-conflicts",
19477
19045
  family: "focus",
19478
- resource: "publicsharedreports",
19479
- action: "query-public-shared-report",
19480
- title: "Query Public Shared Report Publicsharedreports",
19481
- description: "Query Public Shared Report Publicsharedreports.",
19482
- safety: "update",
19483
- destructive: false,
19484
- cli: {
19485
- group: ["publicsharedreports"],
19486
- command: "query-public-shared-report",
19487
- interactive: "default"
19488
- },
19489
- mcp: { entityTool: "publicsharedreports" },
19490
- inputSchema: /* @__PURE__ */ looseObject({
19491
- include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
19492
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
19493
- response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
19494
- "json_row",
19495
- "table",
19496
- "hierarchical"
19497
- ])),
19498
- token: /* @__PURE__ */ string$1()
19499
- }),
19500
- execute: (input, { client }) => {
19501
- const data = input;
19502
- return client.runGeneratedRequest("queryPublicSharedReport", () => callGeneratedRequest(queryPublicSharedReport, [
19503
- client.httpClient,
19504
- data.token,
19505
- data.payload ?? data.data ?? data,
19506
- data.response_format,
19507
- data.include_dicts,
19508
- void 0
19509
- ]));
19510
- }
19511
- },
19512
- {
19513
- id: "focus.publicsharedreports.workload-public-shared-report",
19514
- family: "focus",
19515
- resource: "publicsharedreports",
19516
- action: "workload-public-shared-report",
19517
- title: "Workload Public Shared Report Publicsharedreports",
19518
- description: "Workload Public Shared Report Publicsharedreports.",
19519
- safety: "update",
19520
- destructive: false,
19521
- cli: {
19522
- group: ["publicsharedreports"],
19523
- command: "workload-public-shared-report",
19524
- interactive: "default"
19525
- },
19526
- mcp: { entityTool: "publicsharedreports" },
19527
- inputSchema: /* @__PURE__ */ looseObject({
19528
- payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
19529
- token: /* @__PURE__ */ string$1()
19530
- }),
19531
- execute: (input, { client }) => {
19532
- const data = input;
19533
- return client.runGeneratedRequest("workloadPublicSharedReport", () => callGeneratedRequest(workloadPublicSharedReport, [
19534
- client.httpClient,
19535
- data.token,
19536
- data.payload ?? data.data ?? data,
19537
- void 0
19538
- ]));
19539
- }
19540
- },
19541
- {
19542
- id: "focus.rates.billable-check-project-billable-rate-conflicts",
19543
- family: "focus",
19544
- resource: "rates",
19545
- action: "billable-check-project-billable-rate-conflicts",
19546
- title: "Billable Check Project Billable Rate Conflicts Rates",
19547
- description: "Billable Check Project Billable Rate Conflicts Rates.",
19548
- safety: "update",
19549
- destructive: false,
19550
- cli: {
19551
- group: ["rates", "billable"],
19552
- command: "check-project-billable-rate-conflicts",
19553
- interactive: "default"
19554
- },
19555
- mcp: { entityTool: "rates" },
19556
- inputSchema: /* @__PURE__ */ looseObject({
19557
- payload: rateSchedulePayloadSchema,
19558
- project_id: /* @__PURE__ */ number$2()
19559
- }),
19560
- execute: (input, { client }) => {
19561
- const data = input;
19562
- return client.runGeneratedRequest("checkProjectBillableRateConflicts", () => callGeneratedRequest(checkProjectBillableRateConflicts, [
19563
- client.httpClient,
19564
- client.organizationId,
19565
- client.workspaceIdNumber,
19566
- data.project_id,
19567
- data.payload ?? data.data ?? data,
19568
- void 0
19569
- ]));
19570
- }
19571
- },
19572
- {
19573
- id: "focus.rates.billable-check-project-user-billable-rate-conflicts",
19574
- family: "focus",
19575
- resource: "rates",
19576
- action: "billable-check-project-user-billable-rate-conflicts",
19577
- title: "Billable Check Project User Billable Rate Conflicts Rates",
19578
- description: "Billable Check Project User Billable Rate Conflicts Rates.",
19579
- safety: "update",
19580
- destructive: false,
19581
- cli: {
19582
- group: ["rates", "billable"],
19583
- command: "check-project-user-billable-rate-conflicts",
19584
- interactive: "default"
19585
- },
19586
- mcp: { entityTool: "rates" },
19587
- inputSchema: /* @__PURE__ */ looseObject({
19588
- payload: rateSchedulePayloadSchema,
19589
- project_id: /* @__PURE__ */ number$2(),
19590
- user_id: /* @__PURE__ */ number$2()
19591
- }),
19592
- execute: (input, { client }) => {
19593
- const data = input;
19594
- return client.runGeneratedRequest("checkProjectUserBillableRateConflicts", () => callGeneratedRequest(checkProjectUserBillableRateConflicts, [
19595
- client.httpClient,
19596
- client.organizationId,
19597
- client.workspaceIdNumber,
19598
- data.project_id,
19599
- data.user_id,
19600
- data.payload ?? data.data ?? data,
19601
- void 0
19602
- ]));
19603
- }
19604
- },
19605
- {
19606
- id: "focus.rates.billable-check-workspace-billable-rate-conflicts",
19607
- family: "focus",
19608
- resource: "rates",
19609
- action: "billable-check-workspace-billable-rate-conflicts",
19610
- title: "Billable Check Workspace Billable Rate Conflicts Rates",
19611
- description: "Billable Check Workspace Billable Rate Conflicts Rates.",
19046
+ resource: "rates",
19047
+ action: "billable-check-workspace-billable-rate-conflicts",
19048
+ title: "Billable Check Workspace Billable Rate Conflicts Rates",
19049
+ description: "Billable Check Workspace Billable Rate Conflicts Rates.",
19612
19050
  safety: "update",
19613
19051
  destructive: false,
19614
19052
  cli: {
@@ -21115,51 +20553,51 @@ const generatedFocusOperations = [
21115
20553
  mcp: { entityTool: "reports" },
21116
20554
  inputSchema: /* @__PURE__ */ looseObject({
21117
20555
  payload: /* @__PURE__ */ looseObject({
21118
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21119
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
20556
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20557
+ aggregation: /* @__PURE__ */ looseObject({
21120
20558
  function: /* @__PURE__ */ string$1(),
21121
20559
  property: /* @__PURE__ */ string$1()
21122
- })),
21123
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21124
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21125
- }))),
21126
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20560
+ }),
20561
+ operator: /* @__PURE__ */ string$1(),
20562
+ property: /* @__PURE__ */ string$1()
20563
+ })),
20564
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21127
20565
  function: /* @__PURE__ */ string$1(),
21128
20566
  property: /* @__PURE__ */ string$1()
21129
- }))),
21130
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
21131
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21132
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21133
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21134
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
21135
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21136
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21137
- }))),
21138
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21139
- property: /* @__PURE__ */ string$1(),
21140
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
21141
- }))),
21142
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21143
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20567
+ })),
20568
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
20569
+ currency: /* @__PURE__ */ string$1(),
20570
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20571
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
20572
+ operator: /* @__PURE__ */ string$1(),
20573
+ property: /* @__PURE__ */ string$1()
20574
+ })),
20575
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21144
20576
  property: /* @__PURE__ */ string$1(),
21145
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21146
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21147
- }))),
21148
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21149
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21150
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
20577
+ show_empty: /* @__PURE__ */ boolean$1()
21151
20578
  })),
21152
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21153
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21154
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21155
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
20579
+ limit: /* @__PURE__ */ number$2(),
20580
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20581
+ direction: /* @__PURE__ */ string$1(),
20582
+ nulls: /* @__PURE__ */ string$1(),
20583
+ property: /* @__PURE__ */ string$1()
21156
20584
  })),
21157
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21158
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20585
+ pagination: /* @__PURE__ */ looseObject({
20586
+ page: /* @__PURE__ */ number$2(),
20587
+ per_page: /* @__PURE__ */ number$2()
20588
+ }),
20589
+ period: /* @__PURE__ */ looseObject({
20590
+ from: /* @__PURE__ */ string$1(),
20591
+ preset: /* @__PURE__ */ string$1(),
20592
+ to: /* @__PURE__ */ string$1()
20593
+ }),
20594
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21159
20595
  name: /* @__PURE__ */ string$1(),
21160
20596
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
21161
- }))),
21162
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
20597
+ })),
20598
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
20599
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
20600
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
21163
20601
  }),
21164
20602
  response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
21165
20603
  }),
@@ -21240,51 +20678,51 @@ const generatedFocusOperations = [
21240
20678
  inputSchema: /* @__PURE__ */ looseObject({
21241
20679
  include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
21242
20680
  payload: /* @__PURE__ */ looseObject({
21243
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21244
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
20681
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20682
+ aggregation: /* @__PURE__ */ looseObject({
21245
20683
  function: /* @__PURE__ */ string$1(),
21246
20684
  property: /* @__PURE__ */ string$1()
21247
- })),
21248
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21249
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21250
- }))),
21251
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20685
+ }),
20686
+ operator: /* @__PURE__ */ string$1(),
20687
+ property: /* @__PURE__ */ string$1()
20688
+ })),
20689
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21252
20690
  function: /* @__PURE__ */ string$1(),
21253
20691
  property: /* @__PURE__ */ string$1()
21254
- }))),
21255
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
21256
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21257
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21258
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21259
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
21260
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21261
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21262
- }))),
21263
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21264
- property: /* @__PURE__ */ string$1(),
21265
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
21266
- }))),
21267
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21268
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20692
+ })),
20693
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
20694
+ currency: /* @__PURE__ */ string$1(),
20695
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20696
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
20697
+ operator: /* @__PURE__ */ string$1(),
20698
+ property: /* @__PURE__ */ string$1()
20699
+ })),
20700
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21269
20701
  property: /* @__PURE__ */ string$1(),
21270
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21271
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21272
- }))),
21273
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21274
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21275
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
20702
+ show_empty: /* @__PURE__ */ boolean$1()
21276
20703
  })),
21277
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21278
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21279
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21280
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
20704
+ limit: /* @__PURE__ */ number$2(),
20705
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20706
+ direction: /* @__PURE__ */ string$1(),
20707
+ nulls: /* @__PURE__ */ string$1(),
20708
+ property: /* @__PURE__ */ string$1()
21281
20709
  })),
21282
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21283
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20710
+ pagination: /* @__PURE__ */ looseObject({
20711
+ page: /* @__PURE__ */ number$2(),
20712
+ per_page: /* @__PURE__ */ number$2()
20713
+ }),
20714
+ period: /* @__PURE__ */ looseObject({
20715
+ from: /* @__PURE__ */ string$1(),
20716
+ preset: /* @__PURE__ */ string$1(),
20717
+ to: /* @__PURE__ */ string$1()
20718
+ }),
20719
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21284
20720
  name: /* @__PURE__ */ string$1(),
21285
20721
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
21286
- }))),
21287
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
20722
+ })),
20723
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
20724
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
20725
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
21288
20726
  }),
21289
20727
  response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["json_row", "hierarchical"])),
21290
20728
  xTogglReportExport: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
@@ -21322,51 +20760,51 @@ const generatedFocusOperations = [
21322
20760
  },
21323
20761
  mcp: { entityTool: "reports" },
21324
20762
  inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
21325
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21326
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
20763
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20764
+ aggregation: /* @__PURE__ */ looseObject({
21327
20765
  function: /* @__PURE__ */ string$1(),
21328
20766
  property: /* @__PURE__ */ string$1()
21329
- })),
21330
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21331
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21332
- }))),
21333
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20767
+ }),
20768
+ operator: /* @__PURE__ */ string$1(),
20769
+ property: /* @__PURE__ */ string$1()
20770
+ })),
20771
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21334
20772
  function: /* @__PURE__ */ string$1(),
21335
20773
  property: /* @__PURE__ */ string$1()
21336
- }))),
21337
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
21338
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21339
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21340
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21341
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
21342
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21343
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21344
- }))),
21345
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21346
- property: /* @__PURE__ */ string$1(),
21347
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
21348
- }))),
21349
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21350
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20774
+ })),
20775
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
20776
+ currency: /* @__PURE__ */ string$1(),
20777
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20778
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
20779
+ operator: /* @__PURE__ */ string$1(),
20780
+ property: /* @__PURE__ */ string$1()
20781
+ })),
20782
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21351
20783
  property: /* @__PURE__ */ string$1(),
21352
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21353
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21354
- }))),
21355
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21356
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21357
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
20784
+ show_empty: /* @__PURE__ */ boolean$1()
21358
20785
  })),
21359
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21360
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21361
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21362
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
20786
+ limit: /* @__PURE__ */ number$2(),
20787
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20788
+ direction: /* @__PURE__ */ string$1(),
20789
+ nulls: /* @__PURE__ */ string$1(),
20790
+ property: /* @__PURE__ */ string$1()
21363
20791
  })),
21364
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21365
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20792
+ pagination: /* @__PURE__ */ looseObject({
20793
+ page: /* @__PURE__ */ number$2(),
20794
+ per_page: /* @__PURE__ */ number$2()
20795
+ }),
20796
+ period: /* @__PURE__ */ looseObject({
20797
+ from: /* @__PURE__ */ string$1(),
20798
+ preset: /* @__PURE__ */ string$1(),
20799
+ to: /* @__PURE__ */ string$1()
20800
+ }),
20801
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21366
20802
  name: /* @__PURE__ */ string$1(),
21367
20803
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
21368
- }))),
21369
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
20804
+ })),
20805
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
20806
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
20807
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
21370
20808
  }) }),
21371
20809
  execute: (input, { client }) => {
21372
20810
  const data = input;
@@ -21395,51 +20833,51 @@ const generatedFocusOperations = [
21395
20833
  mcp: { entityTool: "reports" },
21396
20834
  inputSchema: /* @__PURE__ */ looseObject({
21397
20835
  payload: /* @__PURE__ */ looseObject({
21398
- aggregation_filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21399
- aggregation: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
20836
+ aggregation_filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20837
+ aggregation: /* @__PURE__ */ looseObject({
21400
20838
  function: /* @__PURE__ */ string$1(),
21401
20839
  property: /* @__PURE__ */ string$1()
21402
- })),
21403
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21404
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21405
- }))),
21406
- aggregations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20840
+ }),
20841
+ operator: /* @__PURE__ */ string$1(),
20842
+ property: /* @__PURE__ */ string$1()
20843
+ })),
20844
+ aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21407
20845
  function: /* @__PURE__ */ string$1(),
21408
20846
  property: /* @__PURE__ */ string$1()
21409
- }))),
21410
- attributes: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() }))),
21411
- chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21412
- currency: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21413
- filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21414
- conditions: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
21415
- operator: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21416
- property: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21417
- }))),
21418
- groupings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21419
- property: /* @__PURE__ */ string$1(),
21420
- show_empty: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
21421
- }))),
21422
- limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21423
- ordinations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20847
+ })),
20848
+ attributes: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ property: /* @__PURE__ */ string$1() })),
20849
+ currency: /* @__PURE__ */ string$1(),
20850
+ filters: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20851
+ conditions: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
20852
+ operator: /* @__PURE__ */ string$1(),
20853
+ property: /* @__PURE__ */ string$1()
20854
+ })),
20855
+ groupings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21424
20856
  property: /* @__PURE__ */ string$1(),
21425
- direction: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21426
- nulls: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
21427
- }))),
21428
- pagination: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21429
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21430
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
20857
+ show_empty: /* @__PURE__ */ boolean$1()
21431
20858
  })),
21432
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
21433
- from: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21434
- preset: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
21435
- to: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
20859
+ limit: /* @__PURE__ */ number$2(),
20860
+ ordinations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20861
+ direction: /* @__PURE__ */ string$1(),
20862
+ nulls: /* @__PURE__ */ string$1(),
20863
+ property: /* @__PURE__ */ string$1()
21436
20864
  })),
21437
- shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21438
- transformations: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
20865
+ pagination: /* @__PURE__ */ looseObject({
20866
+ page: /* @__PURE__ */ number$2(),
20867
+ per_page: /* @__PURE__ */ number$2()
20868
+ }),
20869
+ period: /* @__PURE__ */ looseObject({
20870
+ from: /* @__PURE__ */ string$1(),
20871
+ preset: /* @__PURE__ */ string$1(),
20872
+ to: /* @__PURE__ */ string$1()
20873
+ }),
20874
+ transformations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
21439
20875
  name: /* @__PURE__ */ string$1(),
21440
20876
  parameters: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())
21441
- }))),
21442
- view_in_my_timezone: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
20877
+ })),
20878
+ view_in_my_timezone: /* @__PURE__ */ boolean$1(),
20879
+ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
20880
+ shared_report_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
21443
20881
  }),
21444
20882
  xTogglReportExport: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
21445
20883
  "csv",
@@ -21496,7 +20934,7 @@ const generatedFocusOperations = [
21496
20934
  cli: {
21497
20935
  group: ["reportschedules"],
21498
20936
  command: "upsert-saved-view-schedule",
21499
- interactive: "hidden"
20937
+ interactive: "default"
21500
20938
  },
21501
20939
  mcp: { entityTool: "reportschedules" },
21502
20940
  inputSchema: /* @__PURE__ */ looseObject({
@@ -21507,10 +20945,8 @@ const generatedFocusOperations = [
21507
20945
  "weekly",
21508
20946
  "monthly"
21509
20947
  ]),
21510
- charts: /* @__PURE__ */ unknown$1(),
21511
20948
  time: /* @__PURE__ */ string$1(),
21512
20949
  day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21513
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
21514
20950
  recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
21515
20951
  recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
21516
20952
  recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
@@ -21843,32 +21279,6 @@ const generatedFocusOperations = [
21843
21279
  ]));
21844
21280
  }
21845
21281
  },
21846
- {
21847
- id: "focus.sharedreports.get-shared-report-dates",
21848
- family: "focus",
21849
- resource: "sharedreports",
21850
- action: "get-shared-report-dates",
21851
- title: "Get Shared Report Dates Sharedreports",
21852
- description: "Get Shared Report Dates Sharedreports.",
21853
- safety: "read",
21854
- destructive: false,
21855
- cli: {
21856
- group: ["sharedreports"],
21857
- command: "get-shared-report-dates",
21858
- interactive: "available"
21859
- },
21860
- mcp: { entityTool: "sharedreports" },
21861
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
21862
- execute: (input, { client }) => {
21863
- const data = input;
21864
- return client.runGeneratedRequest("getSharedReportDates", () => callGeneratedRequest(getSharedReportDates, [
21865
- client.httpClient,
21866
- client.workspaceIdNumber,
21867
- data.id,
21868
- void 0
21869
- ]));
21870
- }
21871
- },
21872
21282
  {
21873
21283
  id: "focus.sharedreports.get-shared-report-for-viewer",
21874
21284
  family: "focus",
@@ -21939,36 +21349,6 @@ const generatedFocusOperations = [
21939
21349
  void 0
21940
21350
  ]))
21941
21351
  },
21942
- {
21943
- id: "focus.sharedreports.mint-shared-report-link",
21944
- family: "focus",
21945
- resource: "sharedreports",
21946
- action: "mint-shared-report-link",
21947
- title: "Mint Shared Report Link Sharedreports",
21948
- description: "Mint Shared Report Link Sharedreports.",
21949
- safety: "update",
21950
- destructive: false,
21951
- cli: {
21952
- group: ["sharedreports"],
21953
- command: "mint-shared-report-link",
21954
- interactive: "default"
21955
- },
21956
- mcp: { entityTool: "sharedreports" },
21957
- inputSchema: /* @__PURE__ */ looseObject({
21958
- id: /* @__PURE__ */ number$2(),
21959
- payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
21960
- }),
21961
- execute: (input, { client }) => {
21962
- const data = input;
21963
- return client.runGeneratedRequest("mintSharedReportLink", () => callGeneratedRequest(mintSharedReportLink, [
21964
- client.httpClient,
21965
- client.workspaceIdNumber,
21966
- data.id,
21967
- data.payload ?? data.data ?? data,
21968
- void 0
21969
- ]));
21970
- }
21971
- },
21972
21352
  {
21973
21353
  id: "focus.sharedreports.revoke-shared-report-grant",
21974
21354
  family: "focus",
@@ -22000,140 +21380,54 @@ const generatedFocusOperations = [
22000
21380
  }
22001
21381
  },
22002
21382
  {
22003
- id: "focus.sharedreports.revoke-shared-report-link",
21383
+ id: "focus.sharedreports.share-saved-view",
22004
21384
  family: "focus",
22005
21385
  resource: "sharedreports",
22006
- action: "revoke-shared-report-link",
22007
- title: "Revoke Shared Report Link Sharedreports",
22008
- description: "Revoke Shared Report Link Sharedreports.",
22009
- safety: "delete",
22010
- destructive: true,
21386
+ action: "share-saved-view",
21387
+ title: "Share Saved View Sharedreports",
21388
+ description: "Share Saved View Sharedreports.",
21389
+ safety: "update",
21390
+ destructive: false,
22011
21391
  cli: {
22012
21392
  group: ["sharedreports"],
22013
- command: "revoke-shared-report-link",
22014
- interactive: "default"
21393
+ command: "share-saved-view",
21394
+ interactive: "hidden"
22015
21395
  },
22016
21396
  mcp: { entityTool: "sharedreports" },
22017
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
21397
+ inputSchema: /* @__PURE__ */ looseObject({
21398
+ id: /* @__PURE__ */ number$2(),
21399
+ payload: /* @__PURE__ */ looseObject({
21400
+ charts: /* @__PURE__ */ unknown$1(),
21401
+ period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
21402
+ team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21403
+ user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
21404
+ workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
21405
+ })
21406
+ }),
22018
21407
  execute: (input, { client }) => {
22019
21408
  const data = input;
22020
- return client.runGeneratedRequest("revokeSharedReportLink", () => callGeneratedRequest(revokeSharedReportLink, [
21409
+ return client.runGeneratedRequest("shareSavedView", () => callGeneratedRequest(shareSavedView, [
22021
21410
  client.httpClient,
22022
21411
  client.workspaceIdNumber,
22023
21412
  data.id,
21413
+ data.payload ?? data.data ?? data,
22024
21414
  void 0
22025
21415
  ]));
22026
21416
  }
22027
21417
  },
22028
21418
  {
22029
- id: "focus.sharedreports.rotate-shared-report-link",
21419
+ id: "focus.sharedreports.share-saved-view-many",
22030
21420
  family: "focus",
22031
21421
  resource: "sharedreports",
22032
- action: "rotate-shared-report-link",
22033
- title: "Rotate Shared Report Link Sharedreports",
22034
- description: "Rotate Shared Report Link Sharedreports.",
21422
+ action: "share-saved-view-many",
21423
+ title: "Share Saved View Many Sharedreports",
21424
+ description: "Share Saved View Many Sharedreports.",
22035
21425
  safety: "update",
22036
21426
  destructive: false,
22037
21427
  cli: {
22038
21428
  group: ["sharedreports"],
22039
- command: "rotate-shared-report-link",
22040
- interactive: "default"
22041
- },
22042
- mcp: { entityTool: "sharedreports" },
22043
- inputSchema: /* @__PURE__ */ looseObject({
22044
- id: /* @__PURE__ */ number$2(),
22045
- payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
22046
- }),
22047
- execute: (input, { client }) => {
22048
- const data = input;
22049
- return client.runGeneratedRequest("rotateSharedReportLink", () => callGeneratedRequest(rotateSharedReportLink, [
22050
- client.httpClient,
22051
- client.workspaceIdNumber,
22052
- data.id,
22053
- data.payload ?? data.data ?? data,
22054
- void 0
22055
- ]));
22056
- }
22057
- },
22058
- {
22059
- id: "focus.sharedreports.set-shared-report-dates-lock",
22060
- family: "focus",
22061
- resource: "sharedreports",
22062
- action: "set-shared-report-dates-lock",
22063
- title: "Set Shared Report Dates Lock Sharedreports",
22064
- description: "Set Shared Report Dates Lock Sharedreports.",
22065
- safety: "update",
22066
- destructive: false,
22067
- cli: {
22068
- group: ["sharedreports"],
22069
- command: "set-shared-report-dates-lock",
22070
- interactive: "default"
22071
- },
22072
- mcp: { entityTool: "sharedreports" },
22073
- inputSchema: /* @__PURE__ */ looseObject({
22074
- id: /* @__PURE__ */ number$2(),
22075
- payload: /* @__PURE__ */ looseObject({ locked: /* @__PURE__ */ boolean$1() })
22076
- }),
22077
- execute: (input, { client }) => {
22078
- const data = input;
22079
- return client.runGeneratedRequest("setSharedReportDatesLock", () => callGeneratedRequest(setSharedReportDatesLock, [
22080
- client.httpClient,
22081
- client.workspaceIdNumber,
22082
- data.id,
22083
- data.payload ?? data.data ?? data,
22084
- void 0
22085
- ]));
22086
- }
22087
- },
22088
- {
22089
- id: "focus.sharedreports.share-saved-view",
22090
- family: "focus",
22091
- resource: "sharedreports",
22092
- action: "share-saved-view",
22093
- title: "Share Saved View Sharedreports",
22094
- description: "Share Saved View Sharedreports.",
22095
- safety: "update",
22096
- destructive: false,
22097
- cli: {
22098
- group: ["sharedreports"],
22099
- command: "share-saved-view",
22100
- interactive: "hidden"
22101
- },
22102
- mcp: { entityTool: "sharedreports" },
22103
- inputSchema: /* @__PURE__ */ looseObject({
22104
- id: /* @__PURE__ */ number$2(),
22105
- payload: /* @__PURE__ */ looseObject({
22106
- charts: /* @__PURE__ */ unknown$1(),
22107
- period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
22108
- team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
22109
- user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
22110
- workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
22111
- })
22112
- }),
22113
- execute: (input, { client }) => {
22114
- const data = input;
22115
- return client.runGeneratedRequest("shareSavedView", () => callGeneratedRequest(shareSavedView, [
22116
- client.httpClient,
22117
- client.workspaceIdNumber,
22118
- data.id,
22119
- data.payload ?? data.data ?? data,
22120
- void 0
22121
- ]));
22122
- }
22123
- },
22124
- {
22125
- id: "focus.sharedreports.share-saved-view-many",
22126
- family: "focus",
22127
- resource: "sharedreports",
22128
- action: "share-saved-view-many",
22129
- title: "Share Saved View Many Sharedreports",
22130
- description: "Share Saved View Many Sharedreports.",
22131
- safety: "update",
22132
- destructive: false,
22133
- cli: {
22134
- group: ["sharedreports"],
22135
- command: "share-saved-view-many",
22136
- interactive: "hidden"
21429
+ command: "share-saved-view-many",
21430
+ interactive: "hidden"
22137
21431
  },
22138
21432
  mcp: { entityTool: "sharedreports" },
22139
21433
  inputSchema: /* @__PURE__ */ looseObject({
@@ -22159,32 +21453,6 @@ const generatedFocusOperations = [
22159
21453
  ]));
22160
21454
  }
22161
21455
  },
22162
- {
22163
- id: "focus.sharedreports.unshare-shared-report",
22164
- family: "focus",
22165
- resource: "sharedreports",
22166
- action: "unshare-shared-report",
22167
- title: "Unshare Shared Report Sharedreports",
22168
- description: "Unshare Shared Report Sharedreports.",
22169
- safety: "delete",
22170
- destructive: true,
22171
- cli: {
22172
- group: ["sharedreports"],
22173
- command: "unshare-shared-report",
22174
- interactive: "default"
22175
- },
22176
- mcp: { entityTool: "sharedreports" },
22177
- inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
22178
- execute: (input, { client }) => {
22179
- const data = input;
22180
- return client.runGeneratedRequest("unshareSharedReport", () => callGeneratedRequest(unshareSharedReport, [
22181
- client.httpClient,
22182
- client.workspaceIdNumber,
22183
- data.id,
22184
- void 0
22185
- ]));
22186
- }
22187
- },
22188
21456
  {
22189
21457
  id: "focus.statuses.create-status",
22190
21458
  family: "focus",
@@ -23227,37 +22495,6 @@ const generatedFocusOperations = [
23227
22495
  return client.createTask(data);
23228
22496
  }
23229
22497
  },
23230
- {
23231
- id: "focus.tasks.create-recurring-occurrence",
23232
- family: "focus",
23233
- resource: "tasks",
23234
- action: "create-recurring-occurrence",
23235
- title: "Create Recurring Occurrence Tasks",
23236
- description: "Create Recurring Occurrence Tasks.",
23237
- safety: "create",
23238
- destructive: false,
23239
- cli: {
23240
- group: ["tasks"],
23241
- command: "create-recurring-occurrence",
23242
- interactive: "default"
23243
- },
23244
- mcp: { entityTool: "tasks" },
23245
- inputSchema: /* @__PURE__ */ looseObject({
23246
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23247
- task_id: /* @__PURE__ */ number$2()
23248
- }),
23249
- execute: (input, { client }) => {
23250
- const data = input;
23251
- return client.runGeneratedRequest("createRecurringOccurrence", () => callGeneratedRequest(createRecurringOccurrence, [
23252
- client.httpClient,
23253
- client.organizationId,
23254
- client.workspaceIdNumber,
23255
- data.task_id,
23256
- data.return_occurrence,
23257
- void 0
23258
- ]));
23259
- }
23260
- },
23261
22498
  {
23262
22499
  id: "focus.tasks.delete",
23263
22500
  family: "focus",
@@ -23482,79 +22719,6 @@ const generatedFocusOperations = [
23482
22719
  ]));
23483
22720
  }
23484
22721
  },
23485
- {
23486
- id: "focus.tasks.get-picker-task-children",
23487
- family: "focus",
23488
- resource: "tasks",
23489
- action: "get-picker-task-children",
23490
- title: "Get Picker Task Children Tasks",
23491
- description: "Get Picker Task Children Tasks.",
23492
- safety: "read",
23493
- destructive: false,
23494
- cli: {
23495
- group: ["tasks"],
23496
- command: "get-picker-task-children",
23497
- interactive: "hidden"
23498
- },
23499
- mcp: { entityTool: "tasks" },
23500
- inputSchema: /* @__PURE__ */ looseObject({
23501
- include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23502
- only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23503
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23504
- parent_task_id: /* @__PURE__ */ number$2(),
23505
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23506
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23507
- search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23508
- without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23509
- }),
23510
- execute: (input, { client }) => {
23511
- const data = input;
23512
- return client.runGeneratedRequest("getPickerTaskChildrenClassic", () => callGeneratedRequest(getPickerTaskChildrenClassic, [
23513
- client.httpClient,
23514
- client.organizationId,
23515
- client.workspaceIdNumber,
23516
- data.parent_task_id,
23517
- data,
23518
- void 0
23519
- ]));
23520
- }
23521
- },
23522
- {
23523
- id: "focus.tasks.get-picker-task-groups",
23524
- family: "focus",
23525
- resource: "tasks",
23526
- action: "get-picker-task-groups",
23527
- title: "Get Picker Task Groups Tasks",
23528
- description: "Get Picker Task Groups Tasks.",
23529
- safety: "read",
23530
- destructive: false,
23531
- cli: {
23532
- group: ["tasks"],
23533
- command: "get-picker-task-groups",
23534
- interactive: "hidden"
23535
- },
23536
- mcp: { entityTool: "tasks" },
23537
- inputSchema: /* @__PURE__ */ looseObject({
23538
- include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23539
- only_me: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23540
- page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23541
- per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23542
- pinned_only: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23543
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23544
- search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23545
- without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23546
- }),
23547
- execute: (input, { client }) => {
23548
- const data = input;
23549
- return client.runGeneratedRequest("getPickerTaskGroupsClassic", () => callGeneratedRequest(getPickerTaskGroupsClassic, [
23550
- client.httpClient,
23551
- client.organizationId,
23552
- client.workspaceIdNumber,
23553
- data,
23554
- void 0
23555
- ]));
23556
- }
23557
- },
23558
22722
  {
23559
22723
  id: "focus.tasks.get-recurring-instances",
23560
22724
  family: "focus",
@@ -23578,13 +22742,9 @@ const generatedFocusOperations = [
23578
22742
  dates_overlap_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23579
22743
  end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23580
22744
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23581
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23582
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23583
22745
  page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23584
22746
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23585
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23586
22747
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23587
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23588
22748
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23589
22749
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
23590
22750
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
@@ -23630,14 +22790,13 @@ const generatedFocusOperations = [
23630
22790
  estimated_mins_max: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23631
22791
  estimated_mins_min: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23632
22792
  has_dates: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
22793
+ has_time_blocks: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23633
22794
  has_time_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23634
22795
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23635
22796
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23636
22797
  include_parent_matches: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23637
22798
  include_project_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23638
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23639
22799
  is_priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23640
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23641
22800
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23642
22801
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23643
22802
  parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -23646,9 +22805,7 @@ const generatedFocusOperations = [
23646
22805
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23647
22806
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23648
22807
  recurring: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23649
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23650
22808
  recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23651
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23652
22809
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23653
22810
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23654
22811
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23657,6 +22814,8 @@ const generatedFocusOperations = [
23657
22814
  status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23658
22815
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
23659
22816
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
22817
+ time_block_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
22818
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23660
22819
  toggl_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23661
22820
  with_entries: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23662
22821
  }),
@@ -23784,10 +22943,8 @@ const generatedFocusOperations = [
23784
22943
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23785
22944
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23786
22945
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23787
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23788
22946
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23789
22947
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23790
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23791
22948
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23792
22949
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23793
22950
  order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23796,8 +22953,6 @@ const generatedFocusOperations = [
23796
22953
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23797
22954
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23798
22955
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23799
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23800
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23801
22956
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23802
22957
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23803
22958
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23806,8 +22961,7 @@ const generatedFocusOperations = [
23806
22961
  tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
23807
22962
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23808
22963
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23809
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23810
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
22964
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
23811
22965
  }),
23812
22966
  execute: (input, { client }) => {
23813
22967
  const data = input;
@@ -23849,17 +23003,13 @@ const generatedFocusOperations = [
23849
23003
  group_id: /* @__PURE__ */ number$2(),
23850
23004
  include_assignees: /* @__PURE__ */ unknown$1(),
23851
23005
  include_drafts: /* @__PURE__ */ unknown$1(),
23852
- include_projected_occurrences: /* @__PURE__ */ unknown$1(),
23853
23006
  include_unassigned: /* @__PURE__ */ unknown$1(),
23854
23007
  include_unmaterialized: /* @__PURE__ */ unknown$1(),
23855
- max_recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
23856
23008
  min_days: /* @__PURE__ */ unknown$1(),
23857
23009
  name: /* @__PURE__ */ unknown$1(),
23858
23010
  priority: /* @__PURE__ */ unknown$1(),
23859
23011
  private_: /* @__PURE__ */ unknown$1(),
23860
23012
  project_id: /* @__PURE__ */ number$2(),
23861
- recurring_occurrences_after: /* @__PURE__ */ unknown$1(),
23862
- recurring_task_read: /* @__PURE__ */ unknown$1(),
23863
23013
  source: /* @__PURE__ */ unknown$1(),
23864
23014
  start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
23865
23015
  start_date_from: /* @__PURE__ */ unknown$1(),
@@ -23868,8 +23018,7 @@ const generatedFocusOperations = [
23868
23018
  tag_id: /* @__PURE__ */ number$2(),
23869
23019
  team_id: /* @__PURE__ */ number$2(),
23870
23020
  user_cf_filter: /* @__PURE__ */ unknown$1(),
23871
- user_tag_id: /* @__PURE__ */ number$2(),
23872
- xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
23021
+ user_tag_id: /* @__PURE__ */ number$2()
23873
23022
  }),
23874
23023
  execute: (input, { client }) => {
23875
23024
  const data = input;
@@ -23910,17 +23059,13 @@ const generatedFocusOperations = [
23910
23059
  group_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23911
23060
  include_assignees: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23912
23061
  include_drafts: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23913
- include_projected_occurrences: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23914
23062
  include_unassigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23915
23063
  include_unmaterialized: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23916
- max_recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23917
23064
  min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23918
23065
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23919
23066
  priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23920
23067
  private_: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23921
23068
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23922
- recurring_occurrences_after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23923
- recurring_task_read: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23924
23069
  source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23925
23070
  start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23926
23071
  start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
@@ -23929,290 +23074,752 @@ const generatedFocusOperations = [
23929
23074
  tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23930
23075
  team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23931
23076
  user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23932
- user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23933
- xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23077
+ user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
23078
+ }),
23079
+ execute: (input, { client }) => {
23080
+ const data = input;
23081
+ return client.runGeneratedRequest("getUserTaskGroupsByTeam", () => callGeneratedRequest(getUserTaskGroupsByTeam, [
23082
+ client.httpClient,
23083
+ client.organizationId,
23084
+ client.workspaceIdNumber,
23085
+ data,
23086
+ void 0
23087
+ ]));
23088
+ }
23089
+ },
23090
+ {
23091
+ id: "focus.tasks.groups-update",
23092
+ family: "focus",
23093
+ resource: "tasks",
23094
+ action: "groups-update",
23095
+ title: "Groups Update Tasks",
23096
+ description: "Groups Update Tasks.",
23097
+ safety: "update",
23098
+ destructive: false,
23099
+ cli: {
23100
+ group: ["tasks", "groups"],
23101
+ command: "update",
23102
+ interactive: "hidden"
23103
+ },
23104
+ mcp: { entityTool: "tasks" },
23105
+ inputSchema: /* @__PURE__ */ looseObject({
23106
+ group: /* @__PURE__ */ picklist$1([
23107
+ "projects",
23108
+ "users",
23109
+ "tags"
23110
+ ]),
23111
+ payload: /* @__PURE__ */ unknown$1()
23112
+ }),
23113
+ execute: (input, { client }) => {
23114
+ const data = input;
23115
+ return client.runGeneratedRequest("updateTaskGroups", () => callGeneratedRequest(updateTaskGroups, [
23116
+ client.httpClient,
23117
+ client.organizationId,
23118
+ client.workspaceIdNumber,
23119
+ data.group,
23120
+ data.payload ?? data.data ?? data,
23121
+ void 0
23122
+ ]));
23123
+ }
23124
+ },
23125
+ {
23126
+ id: "focus.tasks.list",
23127
+ family: "focus",
23128
+ resource: "tasks",
23129
+ action: "list",
23130
+ title: "List Tasks",
23131
+ description: "List Tasks.",
23132
+ safety: "read",
23133
+ destructive: false,
23134
+ cli: {
23135
+ group: ["tasks"],
23136
+ command: "list",
23137
+ interactive: "available"
23138
+ },
23139
+ mcp: { entityTool: "tasks" },
23140
+ inputSchema: taskListSchema,
23141
+ execute: (input, { client }) => {
23142
+ const data = input;
23143
+ return client.listTasks(data);
23144
+ }
23145
+ },
23146
+ {
23147
+ id: "focus.tasks.restore",
23148
+ family: "focus",
23149
+ resource: "tasks",
23150
+ action: "restore",
23151
+ title: "Restore Tasks",
23152
+ description: "Restore Tasks.",
23153
+ safety: "update",
23154
+ destructive: false,
23155
+ cli: {
23156
+ group: ["tasks"],
23157
+ command: "restore",
23158
+ interactive: "default"
23159
+ },
23160
+ mcp: { entityTool: "tasks" },
23161
+ inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
23162
+ execute: (input, { client }) => {
23163
+ const data = input;
23164
+ return client.runGeneratedRequest("restoreTask", () => callGeneratedRequest(restoreTask, [
23165
+ client.httpClient,
23166
+ client.organizationId,
23167
+ client.workspaceIdNumber,
23168
+ data.task_id,
23169
+ void 0
23170
+ ]));
23171
+ }
23172
+ },
23173
+ {
23174
+ id: "focus.tasks.suggestions-get-project-suggestion-for-atask",
23175
+ family: "focus",
23176
+ resource: "tasks",
23177
+ action: "suggestions-get-project-suggestion-for-atask",
23178
+ title: "Suggestions Get Project Suggestion For Atask Tasks",
23179
+ description: "Suggestions Get Project Suggestion For Atask Tasks.",
23180
+ safety: "update",
23181
+ destructive: false,
23182
+ cli: {
23183
+ group: ["tasks", "suggestions"],
23184
+ command: "get-project-suggestion-for-atask",
23185
+ interactive: "default"
23186
+ },
23187
+ mcp: { entityTool: "tasks" },
23188
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }) }),
23189
+ execute: (input, { client }) => {
23190
+ const data = input;
23191
+ return client.runGeneratedRequest("getProjectSuggestionForATask", () => callGeneratedRequest(getProjectSuggestionForATask, [
23192
+ client.httpClient,
23193
+ client.organizationId,
23194
+ client.workspaceIdNumber,
23195
+ data.payload ?? data.data ?? data,
23196
+ void 0
23197
+ ]));
23198
+ }
23199
+ },
23200
+ {
23201
+ id: "focus.tasks.suggestions-get-project-suggestions-for-multiple-tasks",
23202
+ family: "focus",
23203
+ resource: "tasks",
23204
+ action: "suggestions-get-project-suggestions-for-multiple-tasks",
23205
+ title: "Suggestions Get Project Suggestions For Multiple Tasks Tasks",
23206
+ description: "Suggestions Get Project Suggestions For Multiple Tasks Tasks.",
23207
+ safety: "update",
23208
+ destructive: false,
23209
+ cli: {
23210
+ group: ["tasks", "suggestions"],
23211
+ command: "get-project-suggestions-for-multiple-tasks",
23212
+ interactive: "default"
23213
+ },
23214
+ mcp: { entityTool: "tasks" },
23215
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
23216
+ execute: (input, { client }) => {
23217
+ const data = input;
23218
+ return client.runGeneratedRequest("getProjectSuggestionsForMultipleTasks", () => callGeneratedRequest(getProjectSuggestionsForMultipleTasks, [
23219
+ client.httpClient,
23220
+ client.organizationId,
23221
+ client.workspaceIdNumber,
23222
+ data.payload ?? data.data ?? data,
23223
+ void 0
23224
+ ]));
23225
+ }
23226
+ },
23227
+ {
23228
+ id: "focus.tasks.unarchive",
23229
+ family: "focus",
23230
+ resource: "tasks",
23231
+ action: "unarchive",
23232
+ title: "Unarchive Tasks",
23233
+ description: "Unarchive Tasks.",
23234
+ safety: "update",
23235
+ destructive: false,
23236
+ cli: {
23237
+ group: ["tasks"],
23238
+ command: "unarchive",
23239
+ interactive: "default"
23240
+ },
23241
+ mcp: { entityTool: "tasks" },
23242
+ inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
23243
+ execute: (input, { client }) => {
23244
+ const data = input;
23245
+ return client.runGeneratedRequest("unarchiveTask", () => callGeneratedRequest(unarchiveTask, [
23246
+ client.httpClient,
23247
+ client.organizationId,
23248
+ client.workspaceIdNumber,
23249
+ data.task_id,
23250
+ void 0
23251
+ ]));
23252
+ }
23253
+ },
23254
+ {
23255
+ id: "focus.tasks.update",
23256
+ family: "focus",
23257
+ resource: "tasks",
23258
+ action: "update",
23259
+ title: "Update Tasks",
23260
+ description: "Update Tasks.",
23261
+ safety: "update",
23262
+ destructive: false,
23263
+ cli: {
23264
+ group: ["tasks"],
23265
+ command: "update",
23266
+ interactive: "default"
23267
+ },
23268
+ mcp: { entityTool: "tasks" },
23269
+ inputSchema: taskUpdateSchema,
23270
+ execute: (input, { client }) => {
23271
+ const data = input;
23272
+ return client.updateTask(data.task_id, data.payload);
23273
+ }
23274
+ },
23275
+ {
23276
+ id: "focus.tasks.full-update",
23277
+ family: "focus",
23278
+ resource: "tasks",
23279
+ action: "full-update",
23280
+ title: "Full Update Tasks",
23281
+ description: "Full Update Tasks.",
23282
+ safety: "update",
23283
+ destructive: false,
23284
+ cli: {
23285
+ group: ["tasks"],
23286
+ command: "full-update",
23287
+ interactive: "hidden"
23288
+ },
23289
+ mcp: { entityTool: "tasks" },
23290
+ inputSchema: /* @__PURE__ */ looseObject({
23291
+ payload: /* @__PURE__ */ looseObject({
23292
+ name: /* @__PURE__ */ string$1(),
23293
+ status_id: /* @__PURE__ */ number$2(),
23294
+ auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23295
+ color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23296
+ custom_fields: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23297
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23298
+ end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
23299
+ estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
23300
+ estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23301
+ notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
23302
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23303
+ parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23304
+ pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23305
+ priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
23306
+ "none",
23307
+ "low",
23308
+ "medium",
23309
+ "high"
23310
+ ])),
23311
+ private: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23312
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23313
+ recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23314
+ rollup_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23315
+ start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
23316
+ }),
23317
+ task_id: /* @__PURE__ */ number$2()
23318
+ }),
23319
+ execute: (input, { client }) => {
23320
+ const data = input;
23321
+ return client.runGeneratedRequest("updateTask", () => callGeneratedRequest(updateTask, [
23322
+ client.httpClient,
23323
+ client.organizationId,
23324
+ client.workspaceIdNumber,
23325
+ data.task_id,
23326
+ data.payload ?? data.data ?? data,
23327
+ void 0
23328
+ ]));
23329
+ }
23330
+ },
23331
+ {
23332
+ id: "focus.tasks.update-calendar-range",
23333
+ family: "focus",
23334
+ resource: "tasks",
23335
+ action: "update-calendar-range",
23336
+ title: "Update Calendar Range Tasks",
23337
+ description: "Update Calendar Range Tasks.",
23338
+ safety: "update",
23339
+ destructive: false,
23340
+ cli: {
23341
+ group: ["tasks"],
23342
+ command: "update-calendar-range",
23343
+ interactive: "default"
23344
+ },
23345
+ mcp: { entityTool: "tasks" },
23346
+ inputSchema: /* @__PURE__ */ looseObject({
23347
+ date_from: /* @__PURE__ */ string$1(),
23348
+ date_to: /* @__PURE__ */ string$1()
23349
+ }),
23350
+ execute: (input, { client }) => {
23351
+ const data = input;
23352
+ return client.runGeneratedRequest("putTasksCalendarRange", () => callGeneratedRequest(putTasksCalendarRange, [
23353
+ client.httpClient,
23354
+ client.organizationId,
23355
+ client.workspaceIdNumber,
23356
+ data.date_from,
23357
+ data.date_to,
23358
+ void 0
23359
+ ]));
23360
+ }
23361
+ },
23362
+ {
23363
+ id: "focus.time-blocks.archive",
23364
+ family: "focus",
23365
+ resource: "time-blocks",
23366
+ action: "archive",
23367
+ title: "Archive Time Blocks",
23368
+ description: "Archive Time Blocks.",
23369
+ safety: "update",
23370
+ destructive: false,
23371
+ cli: {
23372
+ group: ["time-blocks"],
23373
+ command: "archive",
23374
+ interactive: "default"
23375
+ },
23376
+ mcp: { entityTool: "time-blocks" },
23377
+ inputSchema: /* @__PURE__ */ looseObject({
23378
+ task_id: /* @__PURE__ */ number$2(),
23379
+ time_block_id: /* @__PURE__ */ number$2()
23380
+ }),
23381
+ execute: (input, { client }) => {
23382
+ const data = input;
23383
+ return client.runGeneratedRequest("archiveTimeBlockWithOrg", () => callGeneratedRequest(archiveTimeBlockWithOrg, [
23384
+ client.httpClient,
23385
+ client.organizationId,
23386
+ client.workspaceIdNumber,
23387
+ data.task_id,
23388
+ data.time_block_id,
23389
+ void 0
23390
+ ]));
23391
+ }
23392
+ },
23393
+ {
23394
+ id: "focus.time-blocks.bulk-create",
23395
+ family: "focus",
23396
+ resource: "time-blocks",
23397
+ action: "bulk-create",
23398
+ title: "Bulk Create Time Blocks",
23399
+ description: "Bulk Create Time Blocks.",
23400
+ safety: "create",
23401
+ destructive: false,
23402
+ cli: {
23403
+ group: ["time-blocks", "bulk"],
23404
+ command: "create",
23405
+ interactive: "default"
23406
+ },
23407
+ mcp: { entityTool: "time-blocks" },
23408
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ time_blocks: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
23409
+ start: apiDateTimeString,
23410
+ task_id: /* @__PURE__ */ number$2(),
23411
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23412
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23413
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23414
+ })) }) }),
23415
+ execute: (input, { client }) => {
23416
+ const data = input;
23417
+ return client.runGeneratedRequest("bulkCreateTimeBlockWithOrg", () => callGeneratedRequest(bulkCreateTimeBlockWithOrg, [
23418
+ client.httpClient,
23419
+ client.organizationId,
23420
+ client.workspaceIdNumber,
23421
+ data.payload ?? data.data ?? data,
23422
+ void 0
23423
+ ]));
23424
+ }
23425
+ },
23426
+ {
23427
+ id: "focus.time-blocks.bulk-delete",
23428
+ family: "focus",
23429
+ resource: "time-blocks",
23430
+ action: "bulk-delete",
23431
+ title: "Bulk Delete Time Blocks",
23432
+ description: "Bulk Delete Time Blocks.",
23433
+ safety: "delete",
23434
+ destructive: true,
23435
+ cli: {
23436
+ group: ["time-blocks", "bulk"],
23437
+ command: "delete",
23438
+ interactive: "default"
23439
+ },
23440
+ mcp: { entityTool: "time-blocks" },
23441
+ inputSchema: /* @__PURE__ */ looseObject({
23442
+ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
23443
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23934
23444
  }),
23935
23445
  execute: (input, { client }) => {
23936
23446
  const data = input;
23937
- return client.runGeneratedRequest("getUserTaskGroupsByTeam", () => callGeneratedRequest(getUserTaskGroupsByTeam, [
23447
+ return client.runGeneratedRequest("bulkDeleteTimeBlockWithOrg", () => callGeneratedRequest(bulkDeleteTimeBlockWithOrg, [
23938
23448
  client.httpClient,
23939
23449
  client.organizationId,
23940
23450
  client.workspaceIdNumber,
23941
- data,
23451
+ data.ids,
23452
+ data.outbound_sync,
23942
23453
  void 0
23943
23454
  ]));
23944
23455
  }
23945
23456
  },
23946
23457
  {
23947
- id: "focus.tasks.groups-update",
23458
+ id: "focus.time-blocks.bulk-partial-update",
23948
23459
  family: "focus",
23949
- resource: "tasks",
23950
- action: "groups-update",
23951
- title: "Groups Update Tasks",
23952
- description: "Groups Update Tasks.",
23460
+ resource: "time-blocks",
23461
+ action: "bulk-partial-update",
23462
+ title: "Bulk Partial Update Time Blocks",
23463
+ description: "Bulk Partial Update Time Blocks.",
23953
23464
  safety: "update",
23954
23465
  destructive: false,
23955
23466
  cli: {
23956
- group: ["tasks", "groups"],
23957
- command: "update",
23467
+ group: ["time-blocks", "bulk"],
23468
+ command: "partial-update",
23958
23469
  interactive: "hidden"
23959
23470
  },
23960
- mcp: { entityTool: "tasks" },
23471
+ mcp: { entityTool: "time-blocks" },
23472
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ unknown$1() }),
23473
+ execute: (input, { client }) => {
23474
+ const data = input;
23475
+ return client.runGeneratedRequest("bulkPartialUpdateTimeBlockWithOrg", () => callGeneratedRequest(bulkPartialUpdateTimeBlockWithOrg, [
23476
+ client.httpClient,
23477
+ client.organizationId,
23478
+ client.workspaceIdNumber,
23479
+ data.payload ?? data.data ?? data,
23480
+ void 0
23481
+ ]));
23482
+ }
23483
+ },
23484
+ {
23485
+ id: "focus.time-blocks.create",
23486
+ family: "focus",
23487
+ resource: "time-blocks",
23488
+ action: "create",
23489
+ title: "Create Time Blocks",
23490
+ description: "Create Time Blocks.",
23491
+ safety: "create",
23492
+ destructive: false,
23493
+ cli: {
23494
+ group: ["time-blocks"],
23495
+ command: "create",
23496
+ interactive: "default"
23497
+ },
23498
+ mcp: { entityTool: "time-blocks" },
23961
23499
  inputSchema: /* @__PURE__ */ looseObject({
23962
- group: /* @__PURE__ */ picklist$1([
23963
- "projects",
23964
- "users",
23965
- "tags"
23966
- ]),
23967
- payload: /* @__PURE__ */ unknown$1()
23500
+ payload: /* @__PURE__ */ looseObject({
23501
+ start: apiDateTimeString,
23502
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23503
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23504
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23505
+ }),
23506
+ task_id: /* @__PURE__ */ number$2()
23968
23507
  }),
23969
23508
  execute: (input, { client }) => {
23970
23509
  const data = input;
23971
- return client.runGeneratedRequest("updateTaskGroups", () => callGeneratedRequest(updateTaskGroups, [
23510
+ return client.runGeneratedRequest("createTimeBlockWithOrg", () => callGeneratedRequest(createTimeBlockWithOrg, [
23972
23511
  client.httpClient,
23973
23512
  client.organizationId,
23974
23513
  client.workspaceIdNumber,
23975
- data.group,
23514
+ data.task_id,
23976
23515
  data.payload ?? data.data ?? data,
23977
23516
  void 0
23978
23517
  ]));
23979
23518
  }
23980
23519
  },
23981
23520
  {
23982
- id: "focus.tasks.list",
23521
+ id: "focus.time-blocks.delete",
23983
23522
  family: "focus",
23984
- resource: "tasks",
23985
- action: "list",
23986
- title: "List Tasks",
23987
- description: "List Tasks.",
23523
+ resource: "time-blocks",
23524
+ action: "delete",
23525
+ title: "Delete Time Blocks",
23526
+ description: "Delete Time Blocks.",
23527
+ safety: "delete",
23528
+ destructive: true,
23529
+ cli: {
23530
+ group: ["time-blocks"],
23531
+ command: "delete",
23532
+ interactive: "default"
23533
+ },
23534
+ mcp: { entityTool: "time-blocks" },
23535
+ inputSchema: /* @__PURE__ */ looseObject({
23536
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23537
+ task_id: /* @__PURE__ */ number$2(),
23538
+ time_block_id: /* @__PURE__ */ number$2()
23539
+ }),
23540
+ execute: (input, { client }) => {
23541
+ const data = input;
23542
+ return client.runGeneratedRequest("deleteTimeBlockWithOrg", () => callGeneratedRequest(deleteTimeBlockWithOrg, [
23543
+ client.httpClient,
23544
+ client.organizationId,
23545
+ client.workspaceIdNumber,
23546
+ data.task_id,
23547
+ data.time_block_id,
23548
+ data.outbound_sync,
23549
+ void 0
23550
+ ]));
23551
+ }
23552
+ },
23553
+ {
23554
+ id: "focus.time-blocks.get",
23555
+ family: "focus",
23556
+ resource: "time-blocks",
23557
+ action: "get",
23558
+ title: "Get Time Blocks",
23559
+ description: "Get Time Blocks.",
23988
23560
  safety: "read",
23989
23561
  destructive: false,
23990
23562
  cli: {
23991
- group: ["tasks"],
23992
- command: "list",
23563
+ group: ["time-blocks"],
23564
+ command: "get",
23993
23565
  interactive: "available"
23994
23566
  },
23995
- mcp: { entityTool: "tasks" },
23996
- inputSchema: taskListSchema,
23567
+ mcp: { entityTool: "time-blocks" },
23568
+ inputSchema: /* @__PURE__ */ looseObject({
23569
+ task_id: /* @__PURE__ */ number$2(),
23570
+ time_block_id: /* @__PURE__ */ number$2()
23571
+ }),
23997
23572
  execute: (input, { client }) => {
23998
23573
  const data = input;
23999
- return client.listTasks(data);
23574
+ return client.runGeneratedRequest("getTimeBlockWithOrg", () => callGeneratedRequest(getTimeBlockWithOrg, [
23575
+ client.httpClient,
23576
+ client.organizationId,
23577
+ client.workspaceIdNumber,
23578
+ data.task_id,
23579
+ data.time_block_id,
23580
+ void 0
23581
+ ]));
24000
23582
  }
24001
23583
  },
24002
23584
  {
24003
- id: "focus.tasks.restore",
23585
+ id: "focus.time-blocks.get-range",
24004
23586
  family: "focus",
24005
- resource: "tasks",
24006
- action: "restore",
24007
- title: "Restore Tasks",
24008
- description: "Restore Tasks.",
24009
- safety: "update",
23587
+ resource: "time-blocks",
23588
+ action: "get-range",
23589
+ title: "Get Range Time Blocks",
23590
+ description: "Get Range Time Blocks.",
23591
+ safety: "read",
24010
23592
  destructive: false,
24011
23593
  cli: {
24012
- group: ["tasks"],
24013
- command: "restore",
24014
- interactive: "default"
23594
+ group: ["time-blocks"],
23595
+ command: "get-range",
23596
+ interactive: "hidden"
24015
23597
  },
24016
- mcp: { entityTool: "tasks" },
24017
- inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
23598
+ mcp: { entityTool: "time-blocks" },
23599
+ inputSchema: /* @__PURE__ */ looseObject({
23600
+ archived: /* @__PURE__ */ unknown$1(),
23601
+ date_from: /* @__PURE__ */ unknown$1(),
23602
+ date_to: /* @__PURE__ */ unknown$1(),
23603
+ order_by: /* @__PURE__ */ unknown$1(),
23604
+ page: /* @__PURE__ */ number$2(),
23605
+ per_page: /* @__PURE__ */ unknown$1(),
23606
+ status_id: /* @__PURE__ */ number$2(),
23607
+ task_id: /* @__PURE__ */ number$2()
23608
+ }),
24018
23609
  execute: (input, { client }) => {
24019
23610
  const data = input;
24020
- return client.runGeneratedRequest("restoreTask", () => callGeneratedRequest(restoreTask, [
23611
+ return client.runGeneratedRequest("getTimeBlocksRangeWithOrgClassic", () => callGeneratedRequest(getTimeBlocksRangeWithOrgClassic, [
24021
23612
  client.httpClient,
24022
23613
  client.organizationId,
24023
23614
  client.workspaceIdNumber,
24024
- data.task_id,
23615
+ data,
24025
23616
  void 0
24026
23617
  ]));
24027
23618
  }
24028
23619
  },
24029
23620
  {
24030
- id: "focus.tasks.suggestions-get-project-suggestion-for-atask",
23621
+ id: "focus.time-blocks.get-range-stream",
24031
23622
  family: "focus",
24032
- resource: "tasks",
24033
- action: "suggestions-get-project-suggestion-for-atask",
24034
- title: "Suggestions Get Project Suggestion For Atask Tasks",
24035
- description: "Suggestions Get Project Suggestion For Atask Tasks.",
24036
- safety: "update",
23623
+ resource: "time-blocks",
23624
+ action: "get-range-stream",
23625
+ title: "Get Range Stream Time Blocks",
23626
+ description: "Get Range Stream Time Blocks.",
23627
+ safety: "read",
24037
23628
  destructive: false,
24038
23629
  cli: {
24039
- group: ["tasks", "suggestions"],
24040
- command: "get-project-suggestion-for-atask",
24041
- interactive: "default"
23630
+ group: ["time-blocks"],
23631
+ command: "get-range-stream",
23632
+ interactive: "hidden"
24042
23633
  },
24043
- mcp: { entityTool: "tasks" },
24044
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }) }),
23634
+ mcp: { entityTool: "time-blocks" },
23635
+ inputSchema: /* @__PURE__ */ looseObject({
23636
+ archived: /* @__PURE__ */ unknown$1(),
23637
+ date_from: /* @__PURE__ */ unknown$1(),
23638
+ date_to: /* @__PURE__ */ unknown$1(),
23639
+ order_by: /* @__PURE__ */ unknown$1(),
23640
+ status_id: /* @__PURE__ */ number$2(),
23641
+ task_id: /* @__PURE__ */ number$2()
23642
+ }),
24045
23643
  execute: (input, { client }) => {
24046
23644
  const data = input;
24047
- return client.runGeneratedRequest("getProjectSuggestionForATask", () => callGeneratedRequest(getProjectSuggestionForATask, [
23645
+ return client.runGeneratedRequest("getTimeBlocksRangeStreamWithOrg", () => callGeneratedRequest(getTimeBlocksRangeStreamWithOrg, [
24048
23646
  client.httpClient,
24049
23647
  client.organizationId,
24050
23648
  client.workspaceIdNumber,
24051
- data.payload ?? data.data ?? data,
23649
+ data,
24052
23650
  void 0
24053
23651
  ]));
24054
23652
  }
24055
23653
  },
24056
23654
  {
24057
- id: "focus.tasks.suggestions-get-project-suggestions-for-multiple-tasks",
23655
+ id: "focus.time-blocks.get-task-time-blocks",
24058
23656
  family: "focus",
24059
- resource: "tasks",
24060
- action: "suggestions-get-project-suggestions-for-multiple-tasks",
24061
- title: "Suggestions Get Project Suggestions For Multiple Tasks Tasks",
24062
- description: "Suggestions Get Project Suggestions For Multiple Tasks Tasks.",
24063
- safety: "update",
23657
+ resource: "time-blocks",
23658
+ action: "get-task-time-blocks",
23659
+ title: "Get Task Time Blocks Time Blocks",
23660
+ description: "Get Task Time Blocks Time Blocks.",
23661
+ safety: "read",
24064
23662
  destructive: false,
24065
23663
  cli: {
24066
- group: ["tasks", "suggestions"],
24067
- command: "get-project-suggestions-for-multiple-tasks",
24068
- interactive: "default"
23664
+ group: ["time-blocks"],
23665
+ command: "get-task-time-blocks",
23666
+ interactive: "hidden"
24069
23667
  },
24070
- mcp: { entityTool: "tasks" },
24071
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
23668
+ mcp: { entityTool: "time-blocks" },
23669
+ inputSchema: /* @__PURE__ */ looseObject({
23670
+ archived: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23671
+ order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23672
+ page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23673
+ per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23674
+ task_id: /* @__PURE__ */ number$2()
23675
+ }),
24072
23676
  execute: (input, { client }) => {
24073
23677
  const data = input;
24074
- return client.runGeneratedRequest("getProjectSuggestionsForMultipleTasks", () => callGeneratedRequest(getProjectSuggestionsForMultipleTasks, [
23678
+ return client.runGeneratedRequest("getTaskTimeBlocksWithOrgClassic", () => callGeneratedRequest(getTaskTimeBlocksWithOrgClassic, [
24075
23679
  client.httpClient,
24076
23680
  client.organizationId,
24077
23681
  client.workspaceIdNumber,
24078
- data.payload ?? data.data ?? data,
23682
+ data.task_id,
23683
+ data,
24079
23684
  void 0
24080
23685
  ]));
24081
23686
  }
24082
23687
  },
24083
23688
  {
24084
- id: "focus.tasks.unarchive",
23689
+ id: "focus.time-blocks.partial-update",
24085
23690
  family: "focus",
24086
- resource: "tasks",
24087
- action: "unarchive",
24088
- title: "Unarchive Tasks",
24089
- description: "Unarchive Tasks.",
23691
+ resource: "time-blocks",
23692
+ action: "partial-update",
23693
+ title: "Partial Update Time Blocks",
23694
+ description: "Partial Update Time Blocks.",
24090
23695
  safety: "update",
24091
23696
  destructive: false,
24092
23697
  cli: {
24093
- group: ["tasks"],
24094
- command: "unarchive",
23698
+ group: ["time-blocks"],
23699
+ command: "partial-update",
24095
23700
  interactive: "default"
24096
23701
  },
24097
- mcp: { entityTool: "tasks" },
24098
- inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
23702
+ mcp: { entityTool: "time-blocks" },
23703
+ inputSchema: /* @__PURE__ */ looseObject({
23704
+ payload: /* @__PURE__ */ looseObject({
23705
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23706
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23707
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23708
+ start: /* @__PURE__ */ optional$1(apiDateTimeString),
23709
+ task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
23710
+ }),
23711
+ task_id: /* @__PURE__ */ number$2(),
23712
+ time_block_id: /* @__PURE__ */ number$2()
23713
+ }),
24099
23714
  execute: (input, { client }) => {
24100
23715
  const data = input;
24101
- return client.runGeneratedRequest("unarchiveTask", () => callGeneratedRequest(unarchiveTask, [
23716
+ return client.runGeneratedRequest("partialUpdateTimeBlockWithOrg", () => callGeneratedRequest(partialUpdateTimeBlockWithOrg, [
24102
23717
  client.httpClient,
24103
23718
  client.organizationId,
24104
23719
  client.workspaceIdNumber,
24105
23720
  data.task_id,
23721
+ data.time_block_id,
23722
+ data.payload ?? data.data ?? data,
24106
23723
  void 0
24107
23724
  ]));
24108
23725
  }
24109
23726
  },
24110
23727
  {
24111
- id: "focus.tasks.update",
23728
+ id: "focus.time-blocks.restore",
24112
23729
  family: "focus",
24113
- resource: "tasks",
24114
- action: "update",
24115
- title: "Update Tasks",
24116
- description: "Update Tasks.",
23730
+ resource: "time-blocks",
23731
+ action: "restore",
23732
+ title: "Restore Time Blocks",
23733
+ description: "Restore Time Blocks.",
24117
23734
  safety: "update",
24118
23735
  destructive: false,
24119
23736
  cli: {
24120
- group: ["tasks"],
24121
- command: "update",
23737
+ group: ["time-blocks"],
23738
+ command: "restore",
24122
23739
  interactive: "default"
24123
23740
  },
24124
- mcp: { entityTool: "tasks" },
24125
- inputSchema: taskUpdateSchema,
23741
+ mcp: { entityTool: "time-blocks" },
23742
+ inputSchema: /* @__PURE__ */ looseObject({
23743
+ task_id: /* @__PURE__ */ number$2(),
23744
+ time_block_id: /* @__PURE__ */ number$2()
23745
+ }),
24126
23746
  execute: (input, { client }) => {
24127
23747
  const data = input;
24128
- return client.updateTask(data.task_id, data.payload);
23748
+ return client.runGeneratedRequest("restoreTimeBlockWithOrg", () => callGeneratedRequest(restoreTimeBlockWithOrg, [
23749
+ client.httpClient,
23750
+ client.organizationId,
23751
+ client.workspaceIdNumber,
23752
+ data.task_id,
23753
+ data.time_block_id,
23754
+ void 0
23755
+ ]));
24129
23756
  }
24130
23757
  },
24131
23758
  {
24132
- id: "focus.tasks.full-update",
23759
+ id: "focus.time-blocks.unarchive",
24133
23760
  family: "focus",
24134
- resource: "tasks",
24135
- action: "full-update",
24136
- title: "Full Update Tasks",
24137
- description: "Full Update Tasks.",
23761
+ resource: "time-blocks",
23762
+ action: "unarchive",
23763
+ title: "Unarchive Time Blocks",
23764
+ description: "Unarchive Time Blocks.",
24138
23765
  safety: "update",
24139
23766
  destructive: false,
24140
23767
  cli: {
24141
- group: ["tasks"],
24142
- command: "full-update",
24143
- interactive: "hidden"
23768
+ group: ["time-blocks"],
23769
+ command: "unarchive",
23770
+ interactive: "default"
24144
23771
  },
24145
- mcp: { entityTool: "tasks" },
23772
+ mcp: { entityTool: "time-blocks" },
24146
23773
  inputSchema: /* @__PURE__ */ looseObject({
24147
- payload: /* @__PURE__ */ looseObject({
24148
- name: /* @__PURE__ */ string$1(),
24149
- status_id: /* @__PURE__ */ number$2(),
24150
- auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24151
- color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24152
- custom_fields: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
24153
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24154
- end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
24155
- estimate_type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["daily", "total"])),
24156
- estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24157
- notes: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24158
- outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24159
- parent_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24160
- pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24161
- priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
24162
- "none",
24163
- "low",
24164
- "medium",
24165
- "high"
24166
- ])),
24167
- private: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24168
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24169
- recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24170
- rollup_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24171
- start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
24172
- }),
24173
- task_id: /* @__PURE__ */ number$2()
23774
+ task_id: /* @__PURE__ */ number$2(),
23775
+ time_block_id: /* @__PURE__ */ number$2()
24174
23776
  }),
24175
23777
  execute: (input, { client }) => {
24176
23778
  const data = input;
24177
- return client.runGeneratedRequest("updateTask", () => callGeneratedRequest(updateTask, [
23779
+ return client.runGeneratedRequest("unarchiveTimeBlockWithOrg", () => callGeneratedRequest(unarchiveTimeBlockWithOrg, [
24178
23780
  client.httpClient,
24179
23781
  client.organizationId,
24180
23782
  client.workspaceIdNumber,
24181
23783
  data.task_id,
24182
- data.payload ?? data.data ?? data,
23784
+ data.time_block_id,
24183
23785
  void 0
24184
23786
  ]));
24185
23787
  }
24186
23788
  },
24187
23789
  {
24188
- id: "focus.tasks.update-calendar-range",
23790
+ id: "focus.time-blocks.update",
24189
23791
  family: "focus",
24190
- resource: "tasks",
24191
- action: "update-calendar-range",
24192
- title: "Update Calendar Range Tasks",
24193
- description: "Update Calendar Range Tasks.",
23792
+ resource: "time-blocks",
23793
+ action: "update",
23794
+ title: "Update Time Blocks",
23795
+ description: "Update Time Blocks.",
24194
23796
  safety: "update",
24195
23797
  destructive: false,
24196
23798
  cli: {
24197
- group: ["tasks"],
24198
- command: "update-calendar-range",
23799
+ group: ["time-blocks"],
23800
+ command: "update",
24199
23801
  interactive: "default"
24200
23802
  },
24201
- mcp: { entityTool: "tasks" },
23803
+ mcp: { entityTool: "time-blocks" },
24202
23804
  inputSchema: /* @__PURE__ */ looseObject({
24203
- date_from: /* @__PURE__ */ string$1(),
24204
- date_to: /* @__PURE__ */ string$1(),
24205
- skip_provider_refresh: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23805
+ payload: /* @__PURE__ */ looseObject({
23806
+ start: apiDateTimeString,
23807
+ completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
23808
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23809
+ outbound_sync: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
23810
+ }),
23811
+ task_id: /* @__PURE__ */ number$2(),
23812
+ time_block_id: /* @__PURE__ */ number$2()
24206
23813
  }),
24207
23814
  execute: (input, { client }) => {
24208
23815
  const data = input;
24209
- return client.runGeneratedRequest("putTasksCalendarRange", () => callGeneratedRequest(putTasksCalendarRange, [
23816
+ return client.runGeneratedRequest("updateTimeBlockWithOrg", () => callGeneratedRequest(updateTimeBlockWithOrg, [
24210
23817
  client.httpClient,
24211
23818
  client.organizationId,
24212
23819
  client.workspaceIdNumber,
24213
- data.date_from,
24214
- data.date_to,
24215
- data.skip_provider_refresh,
23820
+ data.task_id,
23821
+ data.time_block_id,
23822
+ data.payload ?? data.data ?? data,
24216
23823
  void 0
24217
23824
  ]));
24218
23825
  }
@@ -24432,8 +24039,7 @@ const generatedFocusOperations = [
24432
24039
  required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
24433
24040
  "project",
24434
24041
  "task",
24435
- "description",
24436
- "tags"
24042
+ "description"
24437
24043
  ]) })),
24438
24044
  disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
24439
24045
  }) }),
@@ -24463,7 +24069,6 @@ const generatedFocusOperations = [
24463
24069
  },
24464
24070
  mcp: { entityTool: "time-entries" },
24465
24071
  inputSchema: /* @__PURE__ */ looseObject({
24466
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24467
24072
  payload: /* @__PURE__ */ looseObject({
24468
24073
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
24469
24074
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -24474,12 +24079,11 @@ const generatedFocusOperations = [
24474
24079
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24475
24080
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24476
24081
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24477
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24478
24082
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
24083
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24479
24084
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24480
24085
  user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
24481
24086
  }),
24482
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24483
24087
  task_id: /* @__PURE__ */ number$2()
24484
24088
  }),
24485
24089
  execute: (input, { client }) => {
@@ -24490,8 +24094,6 @@ const generatedFocusOperations = [
24490
24094
  client.workspaceIdNumber,
24491
24095
  data.task_id,
24492
24096
  data.payload ?? data.data ?? data,
24493
- data.from_recurring_task_id,
24494
- data.return_occurrence,
24495
24097
  void 0
24496
24098
  ]));
24497
24099
  }
@@ -24511,25 +24113,21 @@ const generatedFocusOperations = [
24511
24113
  interactive: "default"
24512
24114
  },
24513
24115
  mcp: { entityTool: "time-entries" },
24514
- inputSchema: /* @__PURE__ */ looseObject({
24515
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24516
- payload: /* @__PURE__ */ looseObject({
24517
- type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
24518
- billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24519
- calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24520
- description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24521
- duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24522
- planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24523
- planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24524
- planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24525
- project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24526
- repeat_time_entry: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24527
- start: /* @__PURE__ */ optional$1(apiDateTimeString),
24528
- tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24529
- user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
24530
- }),
24531
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
24532
- }),
24116
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
24117
+ type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]), "activity"),
24118
+ billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24119
+ calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24120
+ description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24121
+ duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24122
+ planned_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24123
+ planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24124
+ planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
24125
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24126
+ start: /* @__PURE__ */ optional$1(apiDateTimeString),
24127
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24128
+ tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString),
24129
+ user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
24130
+ }) }),
24533
24131
  execute: (input, { client }) => {
24534
24132
  const data = input;
24535
24133
  return client.runGeneratedRequest("createTasklessTimeEntryWithOrg", () => callGeneratedRequest(createTasklessTimeEntryWithOrg, [
@@ -24537,8 +24135,6 @@ const generatedFocusOperations = [
24537
24135
  client.organizationId,
24538
24136
  client.workspaceIdNumber,
24539
24137
  data.payload ?? data.data ?? data,
24540
- data.from_recurring_task_id,
24541
- data.return_occurrence,
24542
24138
  void 0
24543
24139
  ]));
24544
24140
  }
@@ -24558,11 +24154,7 @@ const generatedFocusOperations = [
24558
24154
  interactive: "default"
24559
24155
  },
24560
24156
  mcp: { entityTool: "time-entries" },
24561
- inputSchema: /* @__PURE__ */ looseObject({
24562
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24563
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24564
- time_entry_id: /* @__PURE__ */ number$2()
24565
- }),
24157
+ inputSchema: /* @__PURE__ */ looseObject({ time_entry_id: /* @__PURE__ */ number$2() }),
24566
24158
  execute: (input, { client }) => {
24567
24159
  const data = input;
24568
24160
  return client.runGeneratedRequest("deleteTimeEntryWithOrg", () => callGeneratedRequest(deleteTimeEntryWithOrg, [
@@ -24570,8 +24162,6 @@ const generatedFocusOperations = [
24570
24162
  client.organizationId,
24571
24163
  client.workspaceIdNumber,
24572
24164
  data.time_entry_id,
24573
- data.from_recurring_task_id,
24574
- data.return_occurrence,
24575
24165
  void 0
24576
24166
  ]));
24577
24167
  }
@@ -24652,7 +24242,6 @@ const generatedFocusOperations = [
24652
24242
  expand_calendar_event: /* @__PURE__ */ unknown$1(),
24653
24243
  include_taskless: /* @__PURE__ */ unknown$1(),
24654
24244
  order_by: /* @__PURE__ */ unknown$1(),
24655
- project_id: /* @__PURE__ */ number$2(),
24656
24245
  status_id: /* @__PURE__ */ number$2(),
24657
24246
  task_id: /* @__PURE__ */ number$2(),
24658
24247
  type: /* @__PURE__ */ unknown$1()
@@ -24668,6 +24257,33 @@ const generatedFocusOperations = [
24668
24257
  ]));
24669
24258
  }
24670
24259
  },
24260
+ {
24261
+ id: "focus.time-entries.get-stream-time-entries-time-block-ids",
24262
+ family: "focus",
24263
+ resource: "time-entries",
24264
+ action: "get-stream-time-entries-time-block-ids",
24265
+ title: "Get Stream Time Entries Time Block Ids Time Entries",
24266
+ description: "Get Stream Time Entries Time Block Ids Time Entries.",
24267
+ safety: "read",
24268
+ destructive: false,
24269
+ cli: {
24270
+ group: ["time-entries"],
24271
+ command: "get-stream-time-entries-time-block-ids",
24272
+ interactive: "available"
24273
+ },
24274
+ mcp: { entityTool: "time-entries" },
24275
+ inputSchema: /* @__PURE__ */ looseObject({ time_block_id: /* @__PURE__ */ number$2() }),
24276
+ execute: (input, { client }) => {
24277
+ const data = input;
24278
+ return client.runGeneratedRequest("getStreamTimeEntriesTimeBlockIdsWithOrg", () => callGeneratedRequest(getStreamTimeEntriesTimeBlockIdsWithOrg, [
24279
+ client.httpClient,
24280
+ client.organizationId,
24281
+ client.workspaceIdNumber,
24282
+ data,
24283
+ void 0
24284
+ ]));
24285
+ }
24286
+ },
24671
24287
  {
24672
24288
  id: "focus.time-entries.get-task-time-entries",
24673
24289
  family: "focus",
@@ -24689,6 +24305,7 @@ const generatedFocusOperations = [
24689
24305
  page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24690
24306
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
24691
24307
  task_id: /* @__PURE__ */ number$2(),
24308
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24692
24309
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
24693
24310
  }),
24694
24311
  execute: (input, { client }) => {
@@ -24801,14 +24418,12 @@ const generatedFocusOperations = [
24801
24418
  },
24802
24419
  mcp: { entityTool: "time-entries" },
24803
24420
  inputSchema: /* @__PURE__ */ looseObject({
24804
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24805
24421
  payload: /* @__PURE__ */ looseObject({
24806
24422
  billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24807
24423
  duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
24808
24424
  reset_billable_to_default: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24809
24425
  type: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["activity", "break"]))
24810
24426
  }),
24811
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
24812
24427
  time_entry_id: /* @__PURE__ */ number$2()
24813
24428
  }),
24814
24429
  execute: (input, { client }) => {
@@ -24819,8 +24434,6 @@ const generatedFocusOperations = [
24819
24434
  client.workspaceIdNumber,
24820
24435
  data.time_entry_id,
24821
24436
  data.payload ?? data.data ?? data,
24822
- data.from_recurring_task_id,
24823
- data.return_occurrence,
24824
24437
  void 0
24825
24438
  ]));
24826
24439
  }
@@ -25078,7 +24691,6 @@ const generatedFocusOperations = [
25078
24691
  },
25079
24692
  mcp: { entityTool: "time-entries" },
25080
24693
  inputSchema: /* @__PURE__ */ looseObject({
25081
- from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
25082
24694
  payload: /* @__PURE__ */ looseObject({
25083
24695
  type: /* @__PURE__ */ picklist$1(["activity", "break"]),
25084
24696
  calendar_event_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
@@ -25088,9 +24700,9 @@ const generatedFocusOperations = [
25088
24700
  planned_duration: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
25089
24701
  planned_start: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
25090
24702
  start: /* @__PURE__ */ optional$1(apiDateTimeString),
24703
+ time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
25091
24704
  tracked_at: /* @__PURE__ */ optional$1(apiDateTimeString)
25092
24705
  }),
25093
- return_occurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
25094
24706
  time_entry_id: /* @__PURE__ */ number$2()
25095
24707
  }),
25096
24708
  execute: (input, { client }) => {
@@ -25101,8 +24713,6 @@ const generatedFocusOperations = [
25101
24713
  client.workspaceIdNumber,
25102
24714
  data.time_entry_id,
25103
24715
  data.payload ?? data.data ?? data,
25104
- data.from_recurring_task_id,
25105
- data.return_occurrence,
25106
24716
  void 0
25107
24717
  ]));
25108
24718
  }
@@ -25167,118 +24777,6 @@ const generatedFocusOperations = [
25167
24777
  ]));
25168
24778
  }
25169
24779
  },
25170
- {
25171
- id: "focus.time-off.get-timeoff-balance-changes-for-user",
25172
- family: "focus",
25173
- resource: "time-off",
25174
- action: "get-timeoff-balance-changes-for-user",
25175
- title: "Get Timeoff Balance Changes For User Time Off",
25176
- description: "Get Timeoff Balance Changes For User Time Off.",
25177
- safety: "read",
25178
- destructive: false,
25179
- cli: {
25180
- group: ["time-off"],
25181
- command: "get-timeoff-balance-changes-for-user",
25182
- interactive: "hidden"
25183
- },
25184
- mcp: { entityTool: "time-off" },
25185
- inputSchema: /* @__PURE__ */ looseObject({
25186
- category_id: /* @__PURE__ */ number$2(),
25187
- page: /* @__PURE__ */ number$2(),
25188
- rows: /* @__PURE__ */ unknown$1(),
25189
- user_id: /* @__PURE__ */ number$2(),
25190
- year: /* @__PURE__ */ unknown$1()
25191
- }),
25192
- execute: (input, { client }) => {
25193
- const data = input;
25194
- return client.runGeneratedRequest("getTimeoffBalanceChangesForUserClassic", () => callGeneratedRequest(getTimeoffBalanceChangesForUserClassic, [
25195
- client.httpClient,
25196
- client.organizationId,
25197
- data.user_id,
25198
- data,
25199
- void 0
25200
- ]));
25201
- }
25202
- },
25203
- {
25204
- id: "focus.time-off.get-timeoff-balances-for-user",
25205
- family: "focus",
25206
- resource: "time-off",
25207
- action: "get-timeoff-balances-for-user",
25208
- title: "Get Timeoff Balances For User Time Off",
25209
- description: "Get Timeoff Balances For User Time Off.",
25210
- safety: "read",
25211
- destructive: false,
25212
- cli: {
25213
- group: ["time-off"],
25214
- command: "get-timeoff-balances-for-user",
25215
- interactive: "available"
25216
- },
25217
- mcp: { entityTool: "time-off" },
25218
- inputSchema: /* @__PURE__ */ looseObject({
25219
- category_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
25220
- date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
25221
- user_id: /* @__PURE__ */ number$2()
25222
- }),
25223
- execute: (input, { client }) => {
25224
- const data = input;
25225
- return client.runGeneratedRequest("getTimeoffBalancesForUser", () => callGeneratedRequest(getTimeoffBalancesForUser, [
25226
- client.httpClient,
25227
- client.organizationId,
25228
- data.user_id,
25229
- data,
25230
- void 0
25231
- ]));
25232
- }
25233
- },
25234
- {
25235
- id: "focus.time-off.get-timeoff-categories",
25236
- family: "focus",
25237
- resource: "time-off",
25238
- action: "get-timeoff-categories",
25239
- title: "Get Timeoff Categories Time Off",
25240
- description: "Get Timeoff Categories Time Off.",
25241
- safety: "read",
25242
- destructive: false,
25243
- cli: {
25244
- group: ["time-off"],
25245
- command: "get-timeoff-categories",
25246
- interactive: "hidden"
25247
- },
25248
- mcp: { entityTool: "time-off" },
25249
- inputSchema: /* @__PURE__ */ looseObject({}),
25250
- execute: (_input, { client }) => client.runGeneratedRequest("getTimeoffCategories", () => callGeneratedRequest(getTimeoffCategories, [
25251
- client.httpClient,
25252
- client.organizationId,
25253
- void 0
25254
- ]))
25255
- },
25256
- {
25257
- id: "focus.time-off.get-timeoff-category",
25258
- family: "focus",
25259
- resource: "time-off",
25260
- action: "get-timeoff-category",
25261
- title: "Get Timeoff Category Time Off",
25262
- description: "Get Timeoff Category Time Off.",
25263
- safety: "read",
25264
- destructive: false,
25265
- cli: {
25266
- group: ["time-off"],
25267
- command: "get-timeoff-category",
25268
- interactive: "available"
25269
- },
25270
- mcp: { entityTool: "time-off" },
25271
- inputSchema: /* @__PURE__ */ looseObject({ category_id: /* @__PURE__ */ number$2() }),
25272
- execute: (input, { client }) => {
25273
- const data = input;
25274
- return client.runGeneratedRequest("getTimeoffCategory", () => callGeneratedRequest(getTimeoffCategory, [
25275
- client.httpClient,
25276
- client.organizationId,
25277
- data.category_id,
25278
- void 0
25279
- ]));
25280
- }
25281
- },
25282
24780
  {
25283
24781
  id: "focus.time-off.get-timeoff-for-user",
25284
24782
  family: "focus",
@@ -25730,40 +25228,6 @@ const generatedFocusOperations = [
25730
25228
  ]));
25731
25229
  }
25732
25230
  },
25733
- {
25734
- id: "focus.timesheets.get-status-counts",
25735
- family: "focus",
25736
- resource: "timesheets",
25737
- action: "get-status-counts",
25738
- title: "Get Status Counts Timesheets",
25739
- description: "Get Status Counts Timesheets.",
25740
- safety: "read",
25741
- destructive: false,
25742
- cli: {
25743
- group: ["timesheets"],
25744
- command: "get-status-counts",
25745
- interactive: "hidden"
25746
- },
25747
- mcp: { entityTool: "timesheets" },
25748
- inputSchema: /* @__PURE__ */ looseObject({
25749
- approver_user_account_ids: /* @__PURE__ */ unknown$1(),
25750
- date_from: /* @__PURE__ */ unknown$1(),
25751
- date_to: /* @__PURE__ */ unknown$1(),
25752
- setup_id: /* @__PURE__ */ number$2(),
25753
- team_ids: /* @__PURE__ */ unknown$1(),
25754
- user_account_ids: /* @__PURE__ */ unknown$1()
25755
- }),
25756
- execute: (input, { client }) => {
25757
- const data = input;
25758
- return client.runGeneratedRequest("getTimesheetStatusCounts", () => callGeneratedRequest(getTimesheetStatusCounts, [
25759
- client.httpClient,
25760
- client.organizationId,
25761
- client.workspaceIdNumber,
25762
- data,
25763
- void 0
25764
- ]));
25765
- }
25766
- },
25767
25231
  {
25768
25232
  id: "focus.timesheets.remove-timesheet-flag",
25769
25233
  family: "focus",
@@ -26313,33 +25777,6 @@ const generatedFocusOperations = [
26313
25777
  ]));
26314
25778
  }
26315
25779
  },
26316
- {
26317
- id: "focus.track-team-invites.post",
26318
- family: "focus",
26319
- resource: "track-team-invites",
26320
- action: "post",
26321
- title: "Post Track Team Invites",
26322
- description: "Post Track Team Invites.",
26323
- safety: "create",
26324
- destructive: false,
26325
- cli: {
26326
- group: ["track-team-invites"],
26327
- command: "post",
26328
- interactive: "default"
26329
- },
26330
- mcp: { entityTool: "track-team-invites" },
26331
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ organization_user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
26332
- execute: (input, { client }) => {
26333
- const data = input;
26334
- return client.runGeneratedRequest("postTrackTeamInvites", () => callGeneratedRequest(postTrackTeamInvites, [
26335
- client.httpClient,
26336
- client.organizationId,
26337
- client.workspaceIdNumber,
26338
- data.payload ?? data.data ?? data,
26339
- void 0
26340
- ]));
26341
- }
26342
- },
26343
25780
  {
26344
25781
  id: "focus.users.list",
26345
25782
  family: "focus",
@@ -26361,56 +25798,6 @@ const generatedFocusOperations = [
26361
25798
  return client.listOrgUsers(data);
26362
25799
  }
26363
25800
  },
26364
- {
26365
- id: "focus.users.settings-email-unsubscribe",
26366
- family: "focus",
26367
- resource: "users",
26368
- action: "settings-email-unsubscribe",
26369
- title: "Settings Email Unsubscribe Users",
26370
- description: "Settings Email Unsubscribe Users.",
26371
- safety: "update",
26372
- destructive: false,
26373
- cli: {
26374
- group: ["users", "settings"],
26375
- command: "email-unsubscribe",
26376
- interactive: "default"
26377
- },
26378
- mcp: { entityTool: "users" },
26379
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
26380
- execute: (input, { client }) => {
26381
- const data = input;
26382
- return client.runGeneratedRequest("emailUnsubscribe", () => callGeneratedRequest(emailUnsubscribe, [
26383
- client.httpClient,
26384
- data.token,
26385
- void 0
26386
- ]));
26387
- }
26388
- },
26389
- {
26390
- id: "focus.users.settings-email-unsubscribe-page",
26391
- family: "focus",
26392
- resource: "users",
26393
- action: "settings-email-unsubscribe-page",
26394
- title: "Settings Email Unsubscribe Page Users",
26395
- description: "Settings Email Unsubscribe Page Users.",
26396
- safety: "read",
26397
- destructive: false,
26398
- cli: {
26399
- group: ["users", "settings"],
26400
- command: "email-unsubscribe-page",
26401
- interactive: "available"
26402
- },
26403
- mcp: { entityTool: "users" },
26404
- inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
26405
- execute: (input, { client }) => {
26406
- const data = input;
26407
- return client.runGeneratedRequest("emailUnsubscribePage", () => callGeneratedRequest(emailUnsubscribePage, [
26408
- client.httpClient,
26409
- data.token,
26410
- void 0
26411
- ]));
26412
- }
26413
- },
26414
25801
  {
26415
25802
  id: "focus.users.settings-list",
26416
25803
  family: "focus",
@@ -26472,9 +25859,6 @@ const generatedFocusOperations = [
26472
25859
  has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26473
25860
  import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26474
25861
  new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26475
- notify_project_alerts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26476
- notify_project_member_added: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26477
- notify_task_assigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26478
25862
  onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26479
25863
  onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
26480
25864
  onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
@@ -26673,38 +26057,6 @@ const generatedFocusOperations = [
26673
26057
  ]));
26674
26058
  }
26675
26059
  },
26676
- {
26677
- id: "focus.working-hours.replace-working-hours-for-users",
26678
- family: "focus",
26679
- resource: "working-hours",
26680
- action: "replace-working-hours-for-users",
26681
- title: "Replace Working Hours For Users Working Hours",
26682
- description: "Replace Working Hours For Users Working Hours.",
26683
- safety: "update",
26684
- destructive: false,
26685
- cli: {
26686
- group: ["working-hours"],
26687
- command: "replace-working-hours-for-users",
26688
- interactive: "default"
26689
- },
26690
- mcp: { entityTool: "working-hours" },
26691
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
26692
- schedule: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
26693
- working_hours: /* @__PURE__ */ number$2(),
26694
- weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
26695
- })),
26696
- user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2())
26697
- }) }),
26698
- execute: (input, { client }) => {
26699
- const data = input;
26700
- return client.runGeneratedRequest("replaceWorkingHoursForUsers", () => callGeneratedRequest(replaceWorkingHoursForUsers, [
26701
- client.httpClient,
26702
- client.organizationId,
26703
- data.payload ?? data.data ?? data,
26704
- void 0
26705
- ]));
26706
- }
26707
- },
26708
26060
  {
26709
26061
  id: "focus.working-hours.update-for-user",
26710
26062
  family: "focus",
@@ -28562,4 +27914,4 @@ Common commands:
28562
27914
  //#endregion
28563
27915
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
28564
27916
 
28565
- //# sourceMappingURL=program-DZRPb9Vl.js.map
27917
+ //# sourceMappingURL=program-DvYstJ4t.js.map