@togglhq/cli 1.13.293 → 1.13.295
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.
- package/build/cli.js +1 -1
- package/build/index.js +1 -1
- package/build/{program-LGrlKyT3.js → program-DzDYk-aB.js} +747 -345
- package/build/program.js +1 -1
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-
|
|
2
|
+
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-DzDYk-aB.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-DzDYk-aB.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -7531,6 +7531,7 @@ const TimeEntrySchema = /* @__PURE__ */ object({
|
|
|
7531
7531
|
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
7532
7532
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7533
7533
|
designation_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("The workspace designation this entry belongs to."))),
|
|
7534
|
+
draft: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Whether the entry is a draft."))),
|
|
7534
7535
|
duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("Tracked duration in seconds; omitted while the timer is running and for an entry that is only planned."))),
|
|
7535
7536
|
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."))),
|
|
7536
7537
|
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."))),
|
|
@@ -7758,6 +7759,7 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
|
|
|
7758
7759
|
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
7759
7760
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7760
7761
|
designation_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("The workspace designation this entry belongs to."))),
|
|
7762
|
+
draft: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Whether the entry is a draft."))),
|
|
7761
7763
|
duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("Tracked duration in seconds; omitted while the timer is running and for an entry that is only planned."))),
|
|
7762
7764
|
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."))),
|
|
7763
7765
|
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."))),
|
|
@@ -8068,6 +8070,7 @@ const TimeEntryBulkCreatePayloadSchema = /* @__PURE__ */ object({
|
|
|
8068
8070
|
calendar_event_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
8069
8071
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
8070
8072
|
designation_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("The workspace designation this entry belongs to."))),
|
|
8073
|
+
draft: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Creates the entry as a draft. Defaults to false."))),
|
|
8071
8074
|
duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
|
|
8072
8075
|
planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
8073
8076
|
planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
|
|
@@ -11149,7 +11152,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
11149
11152
|
]))
|
|
11150
11153
|
});
|
|
11151
11154
|
//#endregion
|
|
11152
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11155
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.389_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_93b6312d5a00baec4fd6361cf7b684d1/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
11153
11156
|
async function getInvitations(httpClient, signal) {
|
|
11154
11157
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
11155
11158
|
}
|
|
@@ -11166,7 +11169,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
11166
11169
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
11167
11170
|
}
|
|
11168
11171
|
//#endregion
|
|
11169
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11172
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.389_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_93b6312d5a00baec4fd6361cf7b684d1/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
11170
11173
|
function buildSearchParams(params, flattenArrays = false) {
|
|
11171
11174
|
const searchParams = new URLSearchParams();
|
|
11172
11175
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -11178,7 +11181,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
11178
11181
|
return searchParams;
|
|
11179
11182
|
}
|
|
11180
11183
|
//#endregion
|
|
11181
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11184
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.389_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_93b6312d5a00baec4fd6361cf7b684d1/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
11182
11185
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
11183
11186
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
11184
11187
|
}
|
|
@@ -11193,7 +11196,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11193
11196
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11194
11197
|
}
|
|
11195
11198
|
//#endregion
|
|
11196
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11199
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.389_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_93b6312d5a00baec4fd6361cf7b684d1/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11197
11200
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11198
11201
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11199
11202
|
}
|
|
@@ -11213,7 +11216,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11213
11216
|
});
|
|
11214
11217
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11215
11218
|
//#endregion
|
|
11216
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11219
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.389_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_93b6312d5a00baec4fd6361cf7b684d1/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
11217
11220
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
11218
11221
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
11219
11222
|
signal,
|
|
@@ -11224,12 +11227,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11224
11227
|
})).json();
|
|
11225
11228
|
}
|
|
11226
11229
|
//#endregion
|
|
11227
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11230
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.389_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_93b6312d5a00baec4fd6361cf7b684d1/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11228
11231
|
async function getStatus(httpClient, signal) {
|
|
11229
11232
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11230
11233
|
}
|
|
11231
11234
|
//#endregion
|
|
11232
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11235
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.389_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_93b6312d5a00baec4fd6361cf7b684d1/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11233
11236
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11234
11237
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11235
11238
|
signal,
|
|
@@ -11257,7 +11260,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11257
11260
|
return response.json();
|
|
11258
11261
|
}
|
|
11259
11262
|
//#endregion
|
|
11260
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11263
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.389_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_93b6312d5a00baec4fd6361cf7b684d1/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11261
11264
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11262
11265
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11263
11266
|
}
|
|
@@ -15423,6 +15426,15 @@ async function sendAiMessage(httpClient, organization_id, workspace_id, conversa
|
|
|
15423
15426
|
searchParams: buildSearchParams$2({ product })
|
|
15424
15427
|
})).json();
|
|
15425
15428
|
}
|
|
15429
|
+
async function recordAiMessageEvent(httpClient, organization_id, workspace_id, conversation_id, message_id, data, product, signal) {
|
|
15430
|
+
const response = await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/events`, {
|
|
15431
|
+
signal,
|
|
15432
|
+
json: data,
|
|
15433
|
+
searchParams: buildSearchParams$2({ product })
|
|
15434
|
+
});
|
|
15435
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15436
|
+
return response.json();
|
|
15437
|
+
}
|
|
15426
15438
|
async function nextAiActions(httpClient, organization_id, workspace_id, conversation_id, message_id, product, signal) {
|
|
15427
15439
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/next`, {
|
|
15428
15440
|
signal,
|
|
@@ -15477,6 +15489,12 @@ async function dayRebuildGroup(httpClient, organization_id, workspace_id, data,
|
|
|
15477
15489
|
json: data
|
|
15478
15490
|
})).json();
|
|
15479
15491
|
}
|
|
15492
|
+
async function dayRebuildJudge(httpClient, organization_id, workspace_id, data, signal) {
|
|
15493
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/judge`, {
|
|
15494
|
+
signal,
|
|
15495
|
+
json: data
|
|
15496
|
+
})).json();
|
|
15497
|
+
}
|
|
15480
15498
|
async function dayRebuildName(httpClient, organization_id, workspace_id, data, signal) {
|
|
15481
15499
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/name`, {
|
|
15482
15500
|
signal,
|
|
@@ -15495,6 +15513,12 @@ async function dayRebuildReadConnected(httpClient, organization_id, workspace_id
|
|
|
15495
15513
|
json: data
|
|
15496
15514
|
})).json();
|
|
15497
15515
|
}
|
|
15516
|
+
async function dayRebuildSaveReview(httpClient, organization_id, workspace_id, data, signal) {
|
|
15517
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/reviews`, {
|
|
15518
|
+
signal,
|
|
15519
|
+
json: data
|
|
15520
|
+
})).json();
|
|
15521
|
+
}
|
|
15498
15522
|
async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
|
|
15499
15523
|
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
15500
15524
|
signal,
|
|
@@ -15544,6 +15568,11 @@ async function getUpcomingArchivalGroupsClassic(httpClient, organization_id, wor
|
|
|
15544
15568
|
})
|
|
15545
15569
|
})).json();
|
|
15546
15570
|
}
|
|
15571
|
+
async function keepUpcomingArchivalGroup(httpClient, organization_id, workspace_id, group_id, signal) {
|
|
15572
|
+
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/archival/upcoming/${group_id}/keep`, { signal });
|
|
15573
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15574
|
+
return response.json();
|
|
15575
|
+
}
|
|
15547
15576
|
//#endregion
|
|
15548
15577
|
//#region ../focus-queries/dist/archived-clients/requests.ts
|
|
15549
15578
|
async function getArchivedClientsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name } = {}, signal) {
|
|
@@ -15955,6 +15984,11 @@ async function compositeCreateTask(httpClient, organization_id, workspace_id, da
|
|
|
15955
15984
|
})).json();
|
|
15956
15985
|
}
|
|
15957
15986
|
//#endregion
|
|
15987
|
+
//#region ../focus-queries/dist/currencies/requests.ts
|
|
15988
|
+
async function getCurrencies(httpClient, signal) {
|
|
15989
|
+
return (await httpClient.get(`currencies`, { signal })).json();
|
|
15990
|
+
}
|
|
15991
|
+
//#endregion
|
|
15958
15992
|
//#region ../focus-queries/dist/custom-fields/requests.ts
|
|
15959
15993
|
async function getCustomFieldsClassic(httpClient, organization_id, workspace_id, { entity_type, page, per_page, order_by } = {}, signal) {
|
|
15960
15994
|
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields`, {
|
|
@@ -16085,7 +16119,7 @@ async function deleteACustomReport(httpClient, workspace_id, id, signal) {
|
|
|
16085
16119
|
}
|
|
16086
16120
|
//#endregion
|
|
16087
16121
|
//#region ../focus-queries/dist/designations/requests.ts
|
|
16088
|
-
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { designation_id, name, include_members, has_role_in_products, has_members, page, per_page, order_by } = {}, signal) {
|
|
16122
|
+
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { designation_id, name, include_members, has_role_in_products, has_members, has_project_trait, include_project_designation_members, project_id, page, per_page, order_by } = {}, signal) {
|
|
16089
16123
|
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
16090
16124
|
signal,
|
|
16091
16125
|
searchParams: buildSearchParams$2({
|
|
@@ -16094,6 +16128,9 @@ async function getWorkspaceDesignationsClassic(httpClient, organization_id, work
|
|
|
16094
16128
|
include_members,
|
|
16095
16129
|
has_role_in_products,
|
|
16096
16130
|
has_members,
|
|
16131
|
+
has_project_trait,
|
|
16132
|
+
include_project_designation_members,
|
|
16133
|
+
project_id,
|
|
16097
16134
|
page,
|
|
16098
16135
|
per_page,
|
|
16099
16136
|
order_by
|
|
@@ -16133,68 +16170,6 @@ async function updateWorkspaceDesignationMembers(httpClient, organization_id, wo
|
|
|
16133
16170
|
json: data
|
|
16134
16171
|
})).json();
|
|
16135
16172
|
}
|
|
16136
|
-
async function getProjectDesignations(httpClient, organization_id, workspace_id, project_id, { order_by, start_date, end_date, min_days } = {}, signal) {
|
|
16137
|
-
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
16138
|
-
signal,
|
|
16139
|
-
searchParams: buildSearchParams$2({
|
|
16140
|
-
order_by,
|
|
16141
|
-
start_date,
|
|
16142
|
-
end_date,
|
|
16143
|
-
min_days
|
|
16144
|
-
})
|
|
16145
|
-
})).json();
|
|
16146
|
-
}
|
|
16147
|
-
async function createProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
16148
|
-
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
16149
|
-
signal,
|
|
16150
|
-
json: data
|
|
16151
|
-
})).json();
|
|
16152
|
-
}
|
|
16153
|
-
async function deleteProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
16154
|
-
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
16155
|
-
signal,
|
|
16156
|
-
json: data
|
|
16157
|
-
});
|
|
16158
|
-
if ([204, 205].includes(response.status)) return null;
|
|
16159
|
-
return response.json();
|
|
16160
|
-
}
|
|
16161
|
-
async function updateProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
16162
|
-
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
16163
|
-
signal,
|
|
16164
|
-
json: data
|
|
16165
|
-
})).json();
|
|
16166
|
-
}
|
|
16167
|
-
async function getProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, { start_date, end_date, min_days, include_project } = {}, signal) {
|
|
16168
|
-
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
16169
|
-
signal,
|
|
16170
|
-
searchParams: buildSearchParams$2({
|
|
16171
|
-
start_date,
|
|
16172
|
-
end_date,
|
|
16173
|
-
min_days,
|
|
16174
|
-
include_project
|
|
16175
|
-
})
|
|
16176
|
-
})).json();
|
|
16177
|
-
}
|
|
16178
|
-
async function createProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
16179
|
-
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
16180
|
-
signal,
|
|
16181
|
-
json: data
|
|
16182
|
-
})).json();
|
|
16183
|
-
}
|
|
16184
|
-
async function deleteProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
16185
|
-
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
16186
|
-
signal,
|
|
16187
|
-
json: data
|
|
16188
|
-
});
|
|
16189
|
-
if ([204, 205].includes(response.status)) return null;
|
|
16190
|
-
return response.json();
|
|
16191
|
-
}
|
|
16192
|
-
async function updateProjectDesignationBookings(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
16193
|
-
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}/bookings`, {
|
|
16194
|
-
signal,
|
|
16195
|
-
json: data
|
|
16196
|
-
})).json();
|
|
16197
|
-
}
|
|
16198
16173
|
async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
|
|
16199
16174
|
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal });
|
|
16200
16175
|
if ([204, 205].includes(response.status)) return null;
|
|
@@ -16551,6 +16526,84 @@ async function restoreMilestone(httpClient, workspace_id, milestone_id, signal)
|
|
|
16551
16526
|
return response.json();
|
|
16552
16527
|
}
|
|
16553
16528
|
//#endregion
|
|
16529
|
+
//#region ../focus-queries/dist/project-designations/requests.ts
|
|
16530
|
+
async function getProjectDesignations(httpClient, organization_id, workspace_id, { project_ids, order_by, start_date, end_date, min_days }, signal) {
|
|
16531
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/designations`, {
|
|
16532
|
+
signal,
|
|
16533
|
+
searchParams: buildSearchParams$2({
|
|
16534
|
+
project_ids,
|
|
16535
|
+
order_by,
|
|
16536
|
+
start_date,
|
|
16537
|
+
end_date,
|
|
16538
|
+
min_days
|
|
16539
|
+
})
|
|
16540
|
+
})).json();
|
|
16541
|
+
}
|
|
16542
|
+
async function createProjectDesignations(httpClient, organization_id, workspace_id, data, signal) {
|
|
16543
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/designations`, {
|
|
16544
|
+
signal,
|
|
16545
|
+
json: data
|
|
16546
|
+
})).json();
|
|
16547
|
+
}
|
|
16548
|
+
async function deleteProjectDesignations(httpClient, organization_id, workspace_id, data, signal) {
|
|
16549
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/designations`, {
|
|
16550
|
+
signal,
|
|
16551
|
+
json: data
|
|
16552
|
+
});
|
|
16553
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16554
|
+
return response.json();
|
|
16555
|
+
}
|
|
16556
|
+
async function updateProjectDesignations(httpClient, organization_id, workspace_id, data, signal) {
|
|
16557
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/designations`, {
|
|
16558
|
+
signal,
|
|
16559
|
+
json: data
|
|
16560
|
+
})).json();
|
|
16561
|
+
}
|
|
16562
|
+
async function getProjectDesignationBookings(httpClient, organization_id, workspace_id, { project_ids, start_date, end_date, min_days, include_project }, signal) {
|
|
16563
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/designations/bookings`, {
|
|
16564
|
+
signal,
|
|
16565
|
+
searchParams: buildSearchParams$2({
|
|
16566
|
+
project_ids,
|
|
16567
|
+
start_date,
|
|
16568
|
+
end_date,
|
|
16569
|
+
min_days,
|
|
16570
|
+
include_project
|
|
16571
|
+
})
|
|
16572
|
+
})).json();
|
|
16573
|
+
}
|
|
16574
|
+
async function createProjectDesignationBookings(httpClient, organization_id, workspace_id, data, signal) {
|
|
16575
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/designations/bookings`, {
|
|
16576
|
+
signal,
|
|
16577
|
+
json: data
|
|
16578
|
+
})).json();
|
|
16579
|
+
}
|
|
16580
|
+
async function deleteProjectDesignationBookings(httpClient, organization_id, workspace_id, data, signal) {
|
|
16581
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/projects/designations/bookings`, {
|
|
16582
|
+
signal,
|
|
16583
|
+
json: data
|
|
16584
|
+
});
|
|
16585
|
+
if ([204, 205].includes(response.status)) return null;
|
|
16586
|
+
return response.json();
|
|
16587
|
+
}
|
|
16588
|
+
async function updateProjectDesignationBookings(httpClient, organization_id, workspace_id, data, signal) {
|
|
16589
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/projects/designations/bookings`, {
|
|
16590
|
+
signal,
|
|
16591
|
+
json: data
|
|
16592
|
+
})).json();
|
|
16593
|
+
}
|
|
16594
|
+
async function getProjectDesignationMembers(httpClient, organization_id, workspace_id, { project_ids }, signal) {
|
|
16595
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/designations/members`, {
|
|
16596
|
+
signal,
|
|
16597
|
+
searchParams: buildSearchParams$2({ project_ids })
|
|
16598
|
+
})).json();
|
|
16599
|
+
}
|
|
16600
|
+
async function updateProjectDesignationMembers(httpClient, organization_id, workspace_id, data, signal) {
|
|
16601
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/projects/designations/members`, {
|
|
16602
|
+
signal,
|
|
16603
|
+
json: data
|
|
16604
|
+
})).json();
|
|
16605
|
+
}
|
|
16606
|
+
//#endregion
|
|
16554
16607
|
//#region ../focus-queries/dist/project-groups/requests.ts
|
|
16555
16608
|
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, project_id, start_date, end_date, user_id, only_me, include_drafts, include_recurring_series, cf_filter } = {}, signal) {
|
|
16556
16609
|
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
|
|
@@ -17835,6 +17888,82 @@ const generatedFocusOperations = [
|
|
|
17835
17888
|
]));
|
|
17836
17889
|
}
|
|
17837
17890
|
},
|
|
17891
|
+
{
|
|
17892
|
+
id: "focus.ai.day-rebuild-judge",
|
|
17893
|
+
family: "focus",
|
|
17894
|
+
resource: "ai",
|
|
17895
|
+
action: "day-rebuild-judge",
|
|
17896
|
+
title: "Day Rebuild Judge Ai",
|
|
17897
|
+
description: "Day Rebuild Judge Ai.",
|
|
17898
|
+
safety: "update",
|
|
17899
|
+
destructive: false,
|
|
17900
|
+
cli: {
|
|
17901
|
+
group: ["ai"],
|
|
17902
|
+
command: "day-rebuild-judge",
|
|
17903
|
+
interactive: "hidden"
|
|
17904
|
+
},
|
|
17905
|
+
mcp: { entityTool: "ai" },
|
|
17906
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
17907
|
+
context: /* @__PURE__ */ looseObject({
|
|
17908
|
+
drafts: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17909
|
+
confidence: /* @__PURE__ */ number$2(),
|
|
17910
|
+
description: /* @__PURE__ */ string$1(),
|
|
17911
|
+
from: /* @__PURE__ */ string$1(),
|
|
17912
|
+
id: /* @__PURE__ */ string$1(),
|
|
17913
|
+
minutes: /* @__PURE__ */ number$2(),
|
|
17914
|
+
personal: /* @__PURE__ */ boolean$1(),
|
|
17915
|
+
project: /* @__PURE__ */ string$1(),
|
|
17916
|
+
to: /* @__PURE__ */ string$1()
|
|
17917
|
+
})),
|
|
17918
|
+
present_minutes: /* @__PURE__ */ number$2(),
|
|
17919
|
+
projects: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17920
|
+
about: /* @__PURE__ */ string$1(),
|
|
17921
|
+
client: /* @__PURE__ */ string$1(),
|
|
17922
|
+
existing: /* @__PURE__ */ boolean$1(),
|
|
17923
|
+
name: /* @__PURE__ */ string$1()
|
|
17924
|
+
})),
|
|
17925
|
+
uncovered_minutes: /* @__PURE__ */ number$2()
|
|
17926
|
+
}),
|
|
17927
|
+
run_id: /* @__PURE__ */ string$1(),
|
|
17928
|
+
summary: /* @__PURE__ */ looseObject({
|
|
17929
|
+
app_version: /* @__PURE__ */ string$1(),
|
|
17930
|
+
day: /* @__PURE__ */ string$1(),
|
|
17931
|
+
drafts: /* @__PURE__ */ number$2(),
|
|
17932
|
+
os: /* @__PURE__ */ picklist$1([
|
|
17933
|
+
"mac",
|
|
17934
|
+
"windows",
|
|
17935
|
+
"linux"
|
|
17936
|
+
]),
|
|
17937
|
+
tracked_minutes: /* @__PURE__ */ number$2(),
|
|
17938
|
+
trigger: /* @__PURE__ */ picklist$1([
|
|
17939
|
+
"setup",
|
|
17940
|
+
"daily",
|
|
17941
|
+
"slot",
|
|
17942
|
+
"manual"
|
|
17943
|
+
])
|
|
17944
|
+
}),
|
|
17945
|
+
tools: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ name: /* @__PURE__ */ picklist$1(["get_draft_evidence", "get_activity"]) })),
|
|
17946
|
+
final: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
17947
|
+
turns: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17948
|
+
assistant_content: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
|
|
17949
|
+
tool_results: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17950
|
+
tool_use_id: /* @__PURE__ */ string$1(),
|
|
17951
|
+
content: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
17952
|
+
is_error: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
17953
|
+
}))
|
|
17954
|
+
})))
|
|
17955
|
+
}) }),
|
|
17956
|
+
execute: (input, { client }) => {
|
|
17957
|
+
const data = input;
|
|
17958
|
+
return client.runGeneratedRequest("dayRebuildJudge", () => callGeneratedRequest(dayRebuildJudge, [
|
|
17959
|
+
client.httpClient,
|
|
17960
|
+
client.organizationId,
|
|
17961
|
+
client.workspaceIdNumber,
|
|
17962
|
+
data.payload ?? data.data ?? data,
|
|
17963
|
+
void 0
|
|
17964
|
+
]));
|
|
17965
|
+
}
|
|
17966
|
+
},
|
|
17838
17967
|
{
|
|
17839
17968
|
id: "focus.ai.day-rebuild-name",
|
|
17840
17969
|
family: "focus",
|
|
@@ -17935,6 +18064,137 @@ const generatedFocusOperations = [
|
|
|
17935
18064
|
]));
|
|
17936
18065
|
}
|
|
17937
18066
|
},
|
|
18067
|
+
{
|
|
18068
|
+
id: "focus.ai.day-rebuild-save-review",
|
|
18069
|
+
family: "focus",
|
|
18070
|
+
resource: "ai",
|
|
18071
|
+
action: "day-rebuild-save-review",
|
|
18072
|
+
title: "Day Rebuild Save Review Ai",
|
|
18073
|
+
description: "Day Rebuild Save Review Ai.",
|
|
18074
|
+
safety: "update",
|
|
18075
|
+
destructive: false,
|
|
18076
|
+
cli: {
|
|
18077
|
+
group: ["ai"],
|
|
18078
|
+
command: "day-rebuild-save-review",
|
|
18079
|
+
interactive: "default"
|
|
18080
|
+
},
|
|
18081
|
+
mcp: { entityTool: "ai" },
|
|
18082
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
18083
|
+
app_version: /* @__PURE__ */ string$1(),
|
|
18084
|
+
day: /* @__PURE__ */ string$1(),
|
|
18085
|
+
day_review: /* @__PURE__ */ looseObject({
|
|
18086
|
+
observations: /* @__PURE__ */ array$1(/* @__PURE__ */ string$1()),
|
|
18087
|
+
present_minutes: /* @__PURE__ */ number$2(),
|
|
18088
|
+
projects: /* @__PURE__ */ picklist$1([
|
|
18089
|
+
"ok",
|
|
18090
|
+
"weak",
|
|
18091
|
+
"wrong",
|
|
18092
|
+
"cannot_tell"
|
|
18093
|
+
]),
|
|
18094
|
+
shape: /* @__PURE__ */ picklist$1([
|
|
18095
|
+
"ok",
|
|
18096
|
+
"weak",
|
|
18097
|
+
"wrong",
|
|
18098
|
+
"cannot_tell"
|
|
18099
|
+
]),
|
|
18100
|
+
tags: /* @__PURE__ */ array$1(/* @__PURE__ */ string$1()),
|
|
18101
|
+
uncovered_minutes: /* @__PURE__ */ number$2()
|
|
18102
|
+
}),
|
|
18103
|
+
drafts: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
18104
|
+
client_uuid: /* @__PURE__ */ string$1(),
|
|
18105
|
+
confidence: /* @__PURE__ */ number$2(),
|
|
18106
|
+
description: /* @__PURE__ */ string$1(),
|
|
18107
|
+
end: apiDateTimeString,
|
|
18108
|
+
evidence_quality: /* @__PURE__ */ picklist$1([
|
|
18109
|
+
"rich",
|
|
18110
|
+
"thin",
|
|
18111
|
+
"none"
|
|
18112
|
+
]),
|
|
18113
|
+
meeting: /* @__PURE__ */ looseObject({
|
|
18114
|
+
guests: /* @__PURE__ */ number$2(),
|
|
18115
|
+
scheduled: /* @__PURE__ */ boolean$1()
|
|
18116
|
+
}),
|
|
18117
|
+
minutes: /* @__PURE__ */ number$2(),
|
|
18118
|
+
personal: /* @__PURE__ */ boolean$1(),
|
|
18119
|
+
profile: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
18120
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
18121
|
+
"page",
|
|
18122
|
+
"app",
|
|
18123
|
+
"commit",
|
|
18124
|
+
"meeting",
|
|
18125
|
+
"mail",
|
|
18126
|
+
"message",
|
|
18127
|
+
"edit",
|
|
18128
|
+
"prompt"
|
|
18129
|
+
]),
|
|
18130
|
+
minutes: /* @__PURE__ */ number$2(),
|
|
18131
|
+
tool: /* @__PURE__ */ string$1(),
|
|
18132
|
+
count: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
18133
|
+
})),
|
|
18134
|
+
project: /* @__PURE__ */ string$1(),
|
|
18135
|
+
project_kind: /* @__PURE__ */ picklist$1([
|
|
18136
|
+
"existing",
|
|
18137
|
+
"suggested",
|
|
18138
|
+
"none"
|
|
18139
|
+
]),
|
|
18140
|
+
reason: /* @__PURE__ */ string$1(),
|
|
18141
|
+
start: apiDateTimeString,
|
|
18142
|
+
suggested_description: /* @__PURE__ */ string$1(),
|
|
18143
|
+
suggested_project: /* @__PURE__ */ string$1(),
|
|
18144
|
+
tags: /* @__PURE__ */ array$1(/* @__PURE__ */ string$1()),
|
|
18145
|
+
verdicts: /* @__PURE__ */ looseObject({
|
|
18146
|
+
boundaries: /* @__PURE__ */ picklist$1([
|
|
18147
|
+
"ok",
|
|
18148
|
+
"weak",
|
|
18149
|
+
"wrong",
|
|
18150
|
+
"cannot_tell"
|
|
18151
|
+
]),
|
|
18152
|
+
description: /* @__PURE__ */ picklist$1([
|
|
18153
|
+
"ok",
|
|
18154
|
+
"weak",
|
|
18155
|
+
"wrong",
|
|
18156
|
+
"cannot_tell"
|
|
18157
|
+
]),
|
|
18158
|
+
project: /* @__PURE__ */ picklist$1([
|
|
18159
|
+
"ok",
|
|
18160
|
+
"weak",
|
|
18161
|
+
"wrong",
|
|
18162
|
+
"cannot_tell"
|
|
18163
|
+
])
|
|
18164
|
+
})
|
|
18165
|
+
})),
|
|
18166
|
+
masked_spans: /* @__PURE__ */ number$2(),
|
|
18167
|
+
os: /* @__PURE__ */ picklist$1([
|
|
18168
|
+
"mac",
|
|
18169
|
+
"windows",
|
|
18170
|
+
"linux"
|
|
18171
|
+
]),
|
|
18172
|
+
rounds: /* @__PURE__ */ number$2(),
|
|
18173
|
+
run_id: /* @__PURE__ */ string$1(),
|
|
18174
|
+
sources: /* @__PURE__ */ looseObject({
|
|
18175
|
+
failed: /* @__PURE__ */ number$2(),
|
|
18176
|
+
full_disk_access: /* @__PURE__ */ boolean$1(),
|
|
18177
|
+
ok: /* @__PURE__ */ number$2()
|
|
18178
|
+
}),
|
|
18179
|
+
tracked_minutes: /* @__PURE__ */ number$2(),
|
|
18180
|
+
trigger: /* @__PURE__ */ picklist$1([
|
|
18181
|
+
"setup",
|
|
18182
|
+
"daily",
|
|
18183
|
+
"slot",
|
|
18184
|
+
"manual"
|
|
18185
|
+
])
|
|
18186
|
+
}) }),
|
|
18187
|
+
execute: (input, { client }) => {
|
|
18188
|
+
const data = input;
|
|
18189
|
+
return client.runGeneratedRequest("dayRebuildSaveReview", () => callGeneratedRequest(dayRebuildSaveReview, [
|
|
18190
|
+
client.httpClient,
|
|
18191
|
+
client.organizationId,
|
|
18192
|
+
client.workspaceIdNumber,
|
|
18193
|
+
data.payload ?? data.data ?? data,
|
|
18194
|
+
void 0
|
|
18195
|
+
]));
|
|
18196
|
+
}
|
|
18197
|
+
},
|
|
17938
18198
|
{
|
|
17939
18199
|
id: "focus.ai.discard-ai-change",
|
|
17940
18200
|
family: "focus",
|
|
@@ -18174,6 +18434,54 @@ const generatedFocusOperations = [
|
|
|
18174
18434
|
]));
|
|
18175
18435
|
}
|
|
18176
18436
|
},
|
|
18437
|
+
{
|
|
18438
|
+
id: "focus.ai.record-ai-message-event",
|
|
18439
|
+
family: "focus",
|
|
18440
|
+
resource: "ai",
|
|
18441
|
+
action: "record-ai-message-event",
|
|
18442
|
+
title: "Record Ai Message Event Ai",
|
|
18443
|
+
description: "Record Ai Message Event Ai.",
|
|
18444
|
+
safety: "update",
|
|
18445
|
+
destructive: false,
|
|
18446
|
+
cli: {
|
|
18447
|
+
group: ["ai"],
|
|
18448
|
+
command: "record-ai-message-event",
|
|
18449
|
+
interactive: "default"
|
|
18450
|
+
},
|
|
18451
|
+
mcp: { entityTool: "ai" },
|
|
18452
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
18453
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
18454
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
18455
|
+
payload: /* @__PURE__ */ looseObject({
|
|
18456
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
18457
|
+
"guide_opened",
|
|
18458
|
+
"guide_shown",
|
|
18459
|
+
"guide_step",
|
|
18460
|
+
"guide_finished",
|
|
18461
|
+
"guide_closed",
|
|
18462
|
+
"link_opened"
|
|
18463
|
+
]),
|
|
18464
|
+
at: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
18465
|
+
href: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
18466
|
+
step: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
18467
|
+
view_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
18468
|
+
}),
|
|
18469
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
18470
|
+
}),
|
|
18471
|
+
execute: (input, { client }) => {
|
|
18472
|
+
const data = input;
|
|
18473
|
+
return client.runGeneratedRequest("recordAiMessageEvent", () => callGeneratedRequest(recordAiMessageEvent, [
|
|
18474
|
+
client.httpClient,
|
|
18475
|
+
client.organizationId,
|
|
18476
|
+
client.workspaceIdNumber,
|
|
18477
|
+
data.conversation_id,
|
|
18478
|
+
data.message_id,
|
|
18479
|
+
data.payload ?? data.data ?? data,
|
|
18480
|
+
data.product,
|
|
18481
|
+
void 0
|
|
18482
|
+
]));
|
|
18483
|
+
}
|
|
18484
|
+
},
|
|
18177
18485
|
{
|
|
18178
18486
|
id: "focus.ai.remove-ai-attachment",
|
|
18179
18487
|
family: "focus",
|
|
@@ -18285,6 +18593,7 @@ const generatedFocusOperations = [
|
|
|
18285
18593
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
18286
18594
|
payload: /* @__PURE__ */ looseObject({
|
|
18287
18595
|
text: /* @__PURE__ */ string$1(),
|
|
18596
|
+
app_version: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
18288
18597
|
attachment_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ string$1())),
|
|
18289
18598
|
page_context: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
18290
18599
|
page: /* @__PURE__ */ string$1(),
|
|
@@ -18374,7 +18683,16 @@ const generatedFocusOperations = [
|
|
|
18374
18683
|
language: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
18375
18684
|
page_label: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
18376
18685
|
url: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
18377
|
-
}))
|
|
18686
|
+
})),
|
|
18687
|
+
platform: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
18688
|
+
"web",
|
|
18689
|
+
"mobile",
|
|
18690
|
+
"desktop",
|
|
18691
|
+
"extension",
|
|
18692
|
+
"mcp",
|
|
18693
|
+
"cli"
|
|
18694
|
+
])),
|
|
18695
|
+
suggestion_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
18378
18696
|
}),
|
|
18379
18697
|
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
18380
18698
|
}),
|
|
@@ -18623,6 +18941,33 @@ const generatedFocusOperations = [
|
|
|
18623
18941
|
]));
|
|
18624
18942
|
}
|
|
18625
18943
|
},
|
|
18944
|
+
{
|
|
18945
|
+
id: "focus.archival.keep-upcoming-archival-group",
|
|
18946
|
+
family: "focus",
|
|
18947
|
+
resource: "archival",
|
|
18948
|
+
action: "keep-upcoming-archival-group",
|
|
18949
|
+
title: "Keep Upcoming Archival Group Archival",
|
|
18950
|
+
description: "Keep Upcoming Archival Group Archival.",
|
|
18951
|
+
safety: "update",
|
|
18952
|
+
destructive: false,
|
|
18953
|
+
cli: {
|
|
18954
|
+
group: ["archival"],
|
|
18955
|
+
command: "keep-upcoming-archival-group",
|
|
18956
|
+
interactive: "default"
|
|
18957
|
+
},
|
|
18958
|
+
mcp: { entityTool: "archival" },
|
|
18959
|
+
inputSchema: /* @__PURE__ */ looseObject({ group_id: /* @__PURE__ */ number$2() }),
|
|
18960
|
+
execute: (input, { client }) => {
|
|
18961
|
+
const data = input;
|
|
18962
|
+
return client.runGeneratedRequest("keepUpcomingArchivalGroup", () => callGeneratedRequest(keepUpcomingArchivalGroup, [
|
|
18963
|
+
client.httpClient,
|
|
18964
|
+
client.organizationId,
|
|
18965
|
+
client.workspaceIdNumber,
|
|
18966
|
+
data.group_id,
|
|
18967
|
+
void 0
|
|
18968
|
+
]));
|
|
18969
|
+
}
|
|
18970
|
+
},
|
|
18626
18971
|
{
|
|
18627
18972
|
id: "focus.archived-clients.get",
|
|
18628
18973
|
family: "focus",
|
|
@@ -19516,11 +19861,29 @@ const generatedFocusOperations = [
|
|
|
19516
19861
|
}
|
|
19517
19862
|
},
|
|
19518
19863
|
{
|
|
19519
|
-
id: "focus.
|
|
19864
|
+
id: "focus.currencies.list",
|
|
19520
19865
|
family: "focus",
|
|
19521
|
-
resource: "
|
|
19522
|
-
action: "
|
|
19523
|
-
title: "
|
|
19866
|
+
resource: "currencies",
|
|
19867
|
+
action: "list",
|
|
19868
|
+
title: "List Currencies",
|
|
19869
|
+
description: "List Currencies.",
|
|
19870
|
+
safety: "read",
|
|
19871
|
+
destructive: false,
|
|
19872
|
+
cli: {
|
|
19873
|
+
group: ["currencies"],
|
|
19874
|
+
command: "list",
|
|
19875
|
+
interactive: "hidden"
|
|
19876
|
+
},
|
|
19877
|
+
mcp: { entityTool: "currencies" },
|
|
19878
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
19879
|
+
execute: (_input, { client }) => client.runGeneratedRequest("getCurrencies", () => callGeneratedRequest(getCurrencies, [client.httpClient, void 0]))
|
|
19880
|
+
},
|
|
19881
|
+
{
|
|
19882
|
+
id: "focus.custom-fields.bulk-patch-user-custom-field-values",
|
|
19883
|
+
family: "focus",
|
|
19884
|
+
resource: "custom-fields",
|
|
19885
|
+
action: "bulk-patch-user-custom-field-values",
|
|
19886
|
+
title: "Bulk Patch User Custom Field Values Custom Fields",
|
|
19524
19887
|
description: "Bulk Patch User Custom Field Values Custom Fields.",
|
|
19525
19888
|
safety: "update",
|
|
19526
19889
|
destructive: false,
|
|
@@ -20393,81 +20756,6 @@ const generatedFocusOperations = [
|
|
|
20393
20756
|
]));
|
|
20394
20757
|
}
|
|
20395
20758
|
},
|
|
20396
|
-
{
|
|
20397
|
-
id: "focus.designations.create-project",
|
|
20398
|
-
family: "focus",
|
|
20399
|
-
resource: "designations",
|
|
20400
|
-
action: "create-project",
|
|
20401
|
-
title: "Create Project Designations",
|
|
20402
|
-
description: "Create Project Designations.",
|
|
20403
|
-
safety: "create",
|
|
20404
|
-
destructive: false,
|
|
20405
|
-
cli: {
|
|
20406
|
-
group: ["designations"],
|
|
20407
|
-
command: "create-project",
|
|
20408
|
-
interactive: "default"
|
|
20409
|
-
},
|
|
20410
|
-
mcp: { entityTool: "designations" },
|
|
20411
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
20412
|
-
payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
20413
|
-
designation_id: /* @__PURE__ */ number$2(),
|
|
20414
|
-
bookings: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
20415
|
-
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
20416
|
-
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
20417
|
-
toggl_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
20418
|
-
}))),
|
|
20419
|
-
estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
20420
|
-
})) }),
|
|
20421
|
-
project_id: /* @__PURE__ */ number$2()
|
|
20422
|
-
}),
|
|
20423
|
-
execute: (input, { client }) => {
|
|
20424
|
-
const data = input;
|
|
20425
|
-
return client.runGeneratedRequest("createProjectDesignations", () => callGeneratedRequest(createProjectDesignations, [
|
|
20426
|
-
client.httpClient,
|
|
20427
|
-
client.organizationId,
|
|
20428
|
-
client.workspaceIdNumber,
|
|
20429
|
-
data.project_id,
|
|
20430
|
-
data.payload ?? data.data ?? data,
|
|
20431
|
-
void 0
|
|
20432
|
-
]));
|
|
20433
|
-
}
|
|
20434
|
-
},
|
|
20435
|
-
{
|
|
20436
|
-
id: "focus.designations.create-project-designation-bookings",
|
|
20437
|
-
family: "focus",
|
|
20438
|
-
resource: "designations",
|
|
20439
|
-
action: "create-project-designation-bookings",
|
|
20440
|
-
title: "Create Project Designation Bookings Designations",
|
|
20441
|
-
description: "Create Project Designation Bookings Designations.",
|
|
20442
|
-
safety: "create",
|
|
20443
|
-
destructive: false,
|
|
20444
|
-
cli: {
|
|
20445
|
-
group: ["designations"],
|
|
20446
|
-
command: "create-project-designation-bookings",
|
|
20447
|
-
interactive: "default"
|
|
20448
|
-
},
|
|
20449
|
-
mcp: { entityTool: "designations" },
|
|
20450
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
20451
|
-
payload: /* @__PURE__ */ looseObject({ bookings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
20452
|
-
project_trait_id: /* @__PURE__ */ number$2(),
|
|
20453
|
-
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
20454
|
-
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
20455
|
-
toggl_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
20456
|
-
})) }),
|
|
20457
|
-
project_id: /* @__PURE__ */ number$2()
|
|
20458
|
-
}),
|
|
20459
|
-
execute: (input, { client }) => {
|
|
20460
|
-
const data = input;
|
|
20461
|
-
return client.runGeneratedRequest("createProjectDesignationBookings", () => callGeneratedRequest(createProjectDesignationBookings, [
|
|
20462
|
-
client.httpClient,
|
|
20463
|
-
client.organizationId,
|
|
20464
|
-
client.workspaceIdNumber,
|
|
20465
|
-
data.project_id,
|
|
20466
|
-
data.payload ?? data.data ?? data,
|
|
20467
|
-
void 0
|
|
20468
|
-
]));
|
|
20469
|
-
}
|
|
20470
|
-
},
|
|
20471
20759
|
{
|
|
20472
20760
|
id: "focus.designations.create-workspace",
|
|
20473
20761
|
family: "focus",
|
|
@@ -20498,68 +20786,6 @@ const generatedFocusOperations = [
|
|
|
20498
20786
|
]));
|
|
20499
20787
|
}
|
|
20500
20788
|
},
|
|
20501
|
-
{
|
|
20502
|
-
id: "focus.designations.delete-project",
|
|
20503
|
-
family: "focus",
|
|
20504
|
-
resource: "designations",
|
|
20505
|
-
action: "delete-project",
|
|
20506
|
-
title: "Delete Project Designations",
|
|
20507
|
-
description: "Delete Project Designations.",
|
|
20508
|
-
safety: "delete",
|
|
20509
|
-
destructive: true,
|
|
20510
|
-
cli: {
|
|
20511
|
-
group: ["designations"],
|
|
20512
|
-
command: "delete-project",
|
|
20513
|
-
interactive: "default"
|
|
20514
|
-
},
|
|
20515
|
-
mcp: { entityTool: "designations" },
|
|
20516
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
20517
|
-
payload: /* @__PURE__ */ looseObject({ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }),
|
|
20518
|
-
project_id: /* @__PURE__ */ number$2()
|
|
20519
|
-
}),
|
|
20520
|
-
execute: (input, { client }) => {
|
|
20521
|
-
const data = input;
|
|
20522
|
-
return client.runGeneratedRequest("deleteProjectDesignations", () => callGeneratedRequest(deleteProjectDesignations, [
|
|
20523
|
-
client.httpClient,
|
|
20524
|
-
client.organizationId,
|
|
20525
|
-
client.workspaceIdNumber,
|
|
20526
|
-
data.project_id,
|
|
20527
|
-
data.payload ?? data.data ?? data,
|
|
20528
|
-
void 0
|
|
20529
|
-
]));
|
|
20530
|
-
}
|
|
20531
|
-
},
|
|
20532
|
-
{
|
|
20533
|
-
id: "focus.designations.delete-project-designation-bookings",
|
|
20534
|
-
family: "focus",
|
|
20535
|
-
resource: "designations",
|
|
20536
|
-
action: "delete-project-designation-bookings",
|
|
20537
|
-
title: "Delete Project Designation Bookings Designations",
|
|
20538
|
-
description: "Delete Project Designation Bookings Designations.",
|
|
20539
|
-
safety: "delete",
|
|
20540
|
-
destructive: true,
|
|
20541
|
-
cli: {
|
|
20542
|
-
group: ["designations"],
|
|
20543
|
-
command: "delete-project-designation-bookings",
|
|
20544
|
-
interactive: "default"
|
|
20545
|
-
},
|
|
20546
|
-
mcp: { entityTool: "designations" },
|
|
20547
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
20548
|
-
payload: /* @__PURE__ */ looseObject({ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }),
|
|
20549
|
-
project_id: /* @__PURE__ */ number$2()
|
|
20550
|
-
}),
|
|
20551
|
-
execute: (input, { client }) => {
|
|
20552
|
-
const data = input;
|
|
20553
|
-
return client.runGeneratedRequest("deleteProjectDesignationBookings", () => callGeneratedRequest(deleteProjectDesignationBookings, [
|
|
20554
|
-
client.httpClient,
|
|
20555
|
-
client.organizationId,
|
|
20556
|
-
client.workspaceIdNumber,
|
|
20557
|
-
data.project_id,
|
|
20558
|
-
data.payload ?? data.data ?? data,
|
|
20559
|
-
void 0
|
|
20560
|
-
]));
|
|
20561
|
-
}
|
|
20562
|
-
},
|
|
20563
20789
|
{
|
|
20564
20790
|
id: "focus.designations.delete-workspace",
|
|
20565
20791
|
family: "focus",
|
|
@@ -20587,74 +20813,6 @@ const generatedFocusOperations = [
|
|
|
20587
20813
|
]));
|
|
20588
20814
|
}
|
|
20589
20815
|
},
|
|
20590
|
-
{
|
|
20591
|
-
id: "focus.designations.get-project",
|
|
20592
|
-
family: "focus",
|
|
20593
|
-
resource: "designations",
|
|
20594
|
-
action: "get-project",
|
|
20595
|
-
title: "Get Project Designations",
|
|
20596
|
-
description: "Get Project Designations.",
|
|
20597
|
-
safety: "read",
|
|
20598
|
-
destructive: false,
|
|
20599
|
-
cli: {
|
|
20600
|
-
group: ["designations"],
|
|
20601
|
-
command: "get-project",
|
|
20602
|
-
interactive: "hidden"
|
|
20603
|
-
},
|
|
20604
|
-
mcp: { entityTool: "designations" },
|
|
20605
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
20606
|
-
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
20607
|
-
min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20608
|
-
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20609
|
-
project_id: /* @__PURE__ */ number$2(),
|
|
20610
|
-
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
|
|
20611
|
-
}),
|
|
20612
|
-
execute: (input, { client }) => {
|
|
20613
|
-
const data = input;
|
|
20614
|
-
return client.runGeneratedRequest("getProjectDesignations", () => callGeneratedRequest(getProjectDesignations, [
|
|
20615
|
-
client.httpClient,
|
|
20616
|
-
client.organizationId,
|
|
20617
|
-
client.workspaceIdNumber,
|
|
20618
|
-
data.project_id,
|
|
20619
|
-
data,
|
|
20620
|
-
void 0
|
|
20621
|
-
]));
|
|
20622
|
-
}
|
|
20623
|
-
},
|
|
20624
|
-
{
|
|
20625
|
-
id: "focus.designations.get-project-designation-bookings",
|
|
20626
|
-
family: "focus",
|
|
20627
|
-
resource: "designations",
|
|
20628
|
-
action: "get-project-designation-bookings",
|
|
20629
|
-
title: "Get Project Designation Bookings Designations",
|
|
20630
|
-
description: "Get Project Designation Bookings Designations.",
|
|
20631
|
-
safety: "read",
|
|
20632
|
-
destructive: false,
|
|
20633
|
-
cli: {
|
|
20634
|
-
group: ["designations"],
|
|
20635
|
-
command: "get-project-designation-bookings",
|
|
20636
|
-
interactive: "hidden"
|
|
20637
|
-
},
|
|
20638
|
-
mcp: { entityTool: "designations" },
|
|
20639
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
20640
|
-
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
20641
|
-
include_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20642
|
-
min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20643
|
-
project_id: /* @__PURE__ */ number$2(),
|
|
20644
|
-
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
|
|
20645
|
-
}),
|
|
20646
|
-
execute: (input, { client }) => {
|
|
20647
|
-
const data = input;
|
|
20648
|
-
return client.runGeneratedRequest("getProjectDesignationBookings", () => callGeneratedRequest(getProjectDesignationBookings, [
|
|
20649
|
-
client.httpClient,
|
|
20650
|
-
client.organizationId,
|
|
20651
|
-
client.workspaceIdNumber,
|
|
20652
|
-
data.project_id,
|
|
20653
|
-
data,
|
|
20654
|
-
void 0
|
|
20655
|
-
]));
|
|
20656
|
-
}
|
|
20657
|
-
},
|
|
20658
20816
|
{
|
|
20659
20817
|
id: "focus.designations.get-workspace-designations",
|
|
20660
20818
|
family: "focus",
|
|
@@ -20673,12 +20831,15 @@ const generatedFocusOperations = [
|
|
|
20673
20831
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
20674
20832
|
designation_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
20675
20833
|
has_members: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20834
|
+
has_project_trait: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20676
20835
|
has_role_in_products: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20677
20836
|
include_members: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20837
|
+
include_project_designation_members: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20678
20838
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20679
20839
|
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20680
20840
|
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
20681
|
-
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
20841
|
+
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20842
|
+
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
20682
20843
|
}),
|
|
20683
20844
|
execute: (input, { client }) => {
|
|
20684
20845
|
const data = input;
|
|
@@ -20691,68 +20852,6 @@ const generatedFocusOperations = [
|
|
|
20691
20852
|
]));
|
|
20692
20853
|
}
|
|
20693
20854
|
},
|
|
20694
|
-
{
|
|
20695
|
-
id: "focus.designations.update-project",
|
|
20696
|
-
family: "focus",
|
|
20697
|
-
resource: "designations",
|
|
20698
|
-
action: "update-project",
|
|
20699
|
-
title: "Update Project Designations",
|
|
20700
|
-
description: "Update Project Designations.",
|
|
20701
|
-
safety: "update",
|
|
20702
|
-
destructive: false,
|
|
20703
|
-
cli: {
|
|
20704
|
-
group: ["designations"],
|
|
20705
|
-
command: "update-project",
|
|
20706
|
-
interactive: "default"
|
|
20707
|
-
},
|
|
20708
|
-
mcp: { entityTool: "designations" },
|
|
20709
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
20710
|
-
payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() })) }),
|
|
20711
|
-
project_id: /* @__PURE__ */ number$2()
|
|
20712
|
-
}),
|
|
20713
|
-
execute: (input, { client }) => {
|
|
20714
|
-
const data = input;
|
|
20715
|
-
return client.runGeneratedRequest("updateProjectDesignations", () => callGeneratedRequest(updateProjectDesignations, [
|
|
20716
|
-
client.httpClient,
|
|
20717
|
-
client.organizationId,
|
|
20718
|
-
client.workspaceIdNumber,
|
|
20719
|
-
data.project_id,
|
|
20720
|
-
data.payload ?? data.data ?? data,
|
|
20721
|
-
void 0
|
|
20722
|
-
]));
|
|
20723
|
-
}
|
|
20724
|
-
},
|
|
20725
|
-
{
|
|
20726
|
-
id: "focus.designations.update-project-designation-bookings",
|
|
20727
|
-
family: "focus",
|
|
20728
|
-
resource: "designations",
|
|
20729
|
-
action: "update-project-designation-bookings",
|
|
20730
|
-
title: "Update Project Designation Bookings Designations",
|
|
20731
|
-
description: "Update Project Designation Bookings Designations.",
|
|
20732
|
-
safety: "update",
|
|
20733
|
-
destructive: false,
|
|
20734
|
-
cli: {
|
|
20735
|
-
group: ["designations"],
|
|
20736
|
-
command: "update-project-designation-bookings",
|
|
20737
|
-
interactive: "default"
|
|
20738
|
-
},
|
|
20739
|
-
mcp: { entityTool: "designations" },
|
|
20740
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
20741
|
-
payload: /* @__PURE__ */ looseObject({ bookings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() })) }),
|
|
20742
|
-
project_id: /* @__PURE__ */ number$2()
|
|
20743
|
-
}),
|
|
20744
|
-
execute: (input, { client }) => {
|
|
20745
|
-
const data = input;
|
|
20746
|
-
return client.runGeneratedRequest("updateProjectDesignationBookings", () => callGeneratedRequest(updateProjectDesignationBookings, [
|
|
20747
|
-
client.httpClient,
|
|
20748
|
-
client.organizationId,
|
|
20749
|
-
client.workspaceIdNumber,
|
|
20750
|
-
data.project_id,
|
|
20751
|
-
data.payload ?? data.data ?? data,
|
|
20752
|
-
void 0
|
|
20753
|
-
]));
|
|
20754
|
-
}
|
|
20755
|
-
},
|
|
20756
20855
|
{
|
|
20757
20856
|
id: "focus.designations.update-workspace",
|
|
20758
20857
|
family: "focus",
|
|
@@ -22148,6 +22247,308 @@ const generatedFocusOperations = [
|
|
|
22148
22247
|
return client.deleteProject(data.project_id);
|
|
22149
22248
|
}
|
|
22150
22249
|
},
|
|
22250
|
+
{
|
|
22251
|
+
id: "focus.projects.designations-create",
|
|
22252
|
+
family: "focus",
|
|
22253
|
+
resource: "projects",
|
|
22254
|
+
action: "designations-create",
|
|
22255
|
+
title: "Designations Create Projects",
|
|
22256
|
+
description: "Designations Create Projects.",
|
|
22257
|
+
safety: "create",
|
|
22258
|
+
destructive: false,
|
|
22259
|
+
cli: {
|
|
22260
|
+
group: ["projects", "designations"],
|
|
22261
|
+
command: "create",
|
|
22262
|
+
interactive: "default"
|
|
22263
|
+
},
|
|
22264
|
+
mcp: { entityTool: "projects" },
|
|
22265
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
22266
|
+
project_id: /* @__PURE__ */ number$2(),
|
|
22267
|
+
trait_id: /* @__PURE__ */ number$2(),
|
|
22268
|
+
estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
22269
|
+
members: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ toggl_user_id: /* @__PURE__ */ number$2() })))
|
|
22270
|
+
})) }) }),
|
|
22271
|
+
execute: (input, { client }) => {
|
|
22272
|
+
const data = input;
|
|
22273
|
+
return client.runGeneratedRequest("createProjectDesignations", () => callGeneratedRequest(createProjectDesignations, [
|
|
22274
|
+
client.httpClient,
|
|
22275
|
+
client.organizationId,
|
|
22276
|
+
client.workspaceIdNumber,
|
|
22277
|
+
data.payload ?? data.data ?? data,
|
|
22278
|
+
void 0
|
|
22279
|
+
]));
|
|
22280
|
+
}
|
|
22281
|
+
},
|
|
22282
|
+
{
|
|
22283
|
+
id: "focus.projects.designations-create-bookings",
|
|
22284
|
+
family: "focus",
|
|
22285
|
+
resource: "projects",
|
|
22286
|
+
action: "designations-create-bookings",
|
|
22287
|
+
title: "Designations Create Bookings Projects",
|
|
22288
|
+
description: "Designations Create Bookings Projects.",
|
|
22289
|
+
safety: "create",
|
|
22290
|
+
destructive: false,
|
|
22291
|
+
cli: {
|
|
22292
|
+
group: ["projects", "designations"],
|
|
22293
|
+
command: "create-bookings",
|
|
22294
|
+
interactive: "default"
|
|
22295
|
+
},
|
|
22296
|
+
mcp: { entityTool: "projects" },
|
|
22297
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ bookings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
22298
|
+
project_id: /* @__PURE__ */ number$2(),
|
|
22299
|
+
project_trait_id: /* @__PURE__ */ number$2(),
|
|
22300
|
+
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
22301
|
+
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
22302
|
+
toggl_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
22303
|
+
})) }) }),
|
|
22304
|
+
execute: (input, { client }) => {
|
|
22305
|
+
const data = input;
|
|
22306
|
+
return client.runGeneratedRequest("createProjectDesignationBookings", () => callGeneratedRequest(createProjectDesignationBookings, [
|
|
22307
|
+
client.httpClient,
|
|
22308
|
+
client.organizationId,
|
|
22309
|
+
client.workspaceIdNumber,
|
|
22310
|
+
data.payload ?? data.data ?? data,
|
|
22311
|
+
void 0
|
|
22312
|
+
]));
|
|
22313
|
+
}
|
|
22314
|
+
},
|
|
22315
|
+
{
|
|
22316
|
+
id: "focus.projects.designations-delete",
|
|
22317
|
+
family: "focus",
|
|
22318
|
+
resource: "projects",
|
|
22319
|
+
action: "designations-delete",
|
|
22320
|
+
title: "Designations Delete Projects",
|
|
22321
|
+
description: "Designations Delete Projects.",
|
|
22322
|
+
safety: "delete",
|
|
22323
|
+
destructive: true,
|
|
22324
|
+
cli: {
|
|
22325
|
+
group: ["projects", "designations"],
|
|
22326
|
+
command: "delete",
|
|
22327
|
+
interactive: "default"
|
|
22328
|
+
},
|
|
22329
|
+
mcp: { entityTool: "projects" },
|
|
22330
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
|
|
22331
|
+
execute: (input, { client }) => {
|
|
22332
|
+
const data = input;
|
|
22333
|
+
return client.runGeneratedRequest("deleteProjectDesignations", () => callGeneratedRequest(deleteProjectDesignations, [
|
|
22334
|
+
client.httpClient,
|
|
22335
|
+
client.organizationId,
|
|
22336
|
+
client.workspaceIdNumber,
|
|
22337
|
+
data.payload ?? data.data ?? data,
|
|
22338
|
+
void 0
|
|
22339
|
+
]));
|
|
22340
|
+
}
|
|
22341
|
+
},
|
|
22342
|
+
{
|
|
22343
|
+
id: "focus.projects.designations-delete-bookings",
|
|
22344
|
+
family: "focus",
|
|
22345
|
+
resource: "projects",
|
|
22346
|
+
action: "designations-delete-bookings",
|
|
22347
|
+
title: "Designations Delete Bookings Projects",
|
|
22348
|
+
description: "Designations Delete Bookings Projects.",
|
|
22349
|
+
safety: "delete",
|
|
22350
|
+
destructive: true,
|
|
22351
|
+
cli: {
|
|
22352
|
+
group: ["projects", "designations"],
|
|
22353
|
+
command: "delete-bookings",
|
|
22354
|
+
interactive: "default"
|
|
22355
|
+
},
|
|
22356
|
+
mcp: { entityTool: "projects" },
|
|
22357
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
|
|
22358
|
+
execute: (input, { client }) => {
|
|
22359
|
+
const data = input;
|
|
22360
|
+
return client.runGeneratedRequest("deleteProjectDesignationBookings", () => callGeneratedRequest(deleteProjectDesignationBookings, [
|
|
22361
|
+
client.httpClient,
|
|
22362
|
+
client.organizationId,
|
|
22363
|
+
client.workspaceIdNumber,
|
|
22364
|
+
data.payload ?? data.data ?? data,
|
|
22365
|
+
void 0
|
|
22366
|
+
]));
|
|
22367
|
+
}
|
|
22368
|
+
},
|
|
22369
|
+
{
|
|
22370
|
+
id: "focus.projects.designations-get-bookings",
|
|
22371
|
+
family: "focus",
|
|
22372
|
+
resource: "projects",
|
|
22373
|
+
action: "designations-get-bookings",
|
|
22374
|
+
title: "Designations Get Bookings Projects",
|
|
22375
|
+
description: "Designations Get Bookings Projects.",
|
|
22376
|
+
safety: "read",
|
|
22377
|
+
destructive: false,
|
|
22378
|
+
cli: {
|
|
22379
|
+
group: ["projects", "designations"],
|
|
22380
|
+
command: "get-bookings",
|
|
22381
|
+
interactive: "hidden"
|
|
22382
|
+
},
|
|
22383
|
+
mcp: { entityTool: "projects" },
|
|
22384
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
22385
|
+
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
22386
|
+
include_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
22387
|
+
min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
22388
|
+
project_ids: /* @__PURE__ */ unknown$1(),
|
|
22389
|
+
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
|
|
22390
|
+
}),
|
|
22391
|
+
execute: (input, { client }) => {
|
|
22392
|
+
const data = input;
|
|
22393
|
+
return client.runGeneratedRequest("getProjectDesignationBookings", () => callGeneratedRequest(getProjectDesignationBookings, [
|
|
22394
|
+
client.httpClient,
|
|
22395
|
+
client.organizationId,
|
|
22396
|
+
client.workspaceIdNumber,
|
|
22397
|
+
data,
|
|
22398
|
+
void 0
|
|
22399
|
+
]));
|
|
22400
|
+
}
|
|
22401
|
+
},
|
|
22402
|
+
{
|
|
22403
|
+
id: "focus.projects.designations-get-members",
|
|
22404
|
+
family: "focus",
|
|
22405
|
+
resource: "projects",
|
|
22406
|
+
action: "designations-get-members",
|
|
22407
|
+
title: "Designations Get Members Projects",
|
|
22408
|
+
description: "Designations Get Members Projects.",
|
|
22409
|
+
safety: "read",
|
|
22410
|
+
destructive: false,
|
|
22411
|
+
cli: {
|
|
22412
|
+
group: ["projects", "designations"],
|
|
22413
|
+
command: "get-members",
|
|
22414
|
+
interactive: "hidden"
|
|
22415
|
+
},
|
|
22416
|
+
mcp: { entityTool: "projects" },
|
|
22417
|
+
inputSchema: /* @__PURE__ */ looseObject({ project_ids: /* @__PURE__ */ unknown$1() }),
|
|
22418
|
+
execute: (input, { client }) => {
|
|
22419
|
+
const data = input;
|
|
22420
|
+
return client.runGeneratedRequest("getProjectDesignationMembers", () => callGeneratedRequest(getProjectDesignationMembers, [
|
|
22421
|
+
client.httpClient,
|
|
22422
|
+
client.organizationId,
|
|
22423
|
+
client.workspaceIdNumber,
|
|
22424
|
+
data,
|
|
22425
|
+
void 0
|
|
22426
|
+
]));
|
|
22427
|
+
}
|
|
22428
|
+
},
|
|
22429
|
+
{
|
|
22430
|
+
id: "focus.projects.designations-list",
|
|
22431
|
+
family: "focus",
|
|
22432
|
+
resource: "projects",
|
|
22433
|
+
action: "designations-list",
|
|
22434
|
+
title: "Designations List Projects",
|
|
22435
|
+
description: "Designations List Projects.",
|
|
22436
|
+
safety: "read",
|
|
22437
|
+
destructive: false,
|
|
22438
|
+
cli: {
|
|
22439
|
+
group: ["projects", "designations"],
|
|
22440
|
+
command: "list",
|
|
22441
|
+
interactive: "hidden"
|
|
22442
|
+
},
|
|
22443
|
+
mcp: { entityTool: "projects" },
|
|
22444
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
22445
|
+
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
22446
|
+
min_days: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
22447
|
+
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
22448
|
+
project_ids: /* @__PURE__ */ unknown$1(),
|
|
22449
|
+
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
|
|
22450
|
+
}),
|
|
22451
|
+
execute: (input, { client }) => {
|
|
22452
|
+
const data = input;
|
|
22453
|
+
return client.runGeneratedRequest("getProjectDesignations", () => callGeneratedRequest(getProjectDesignations, [
|
|
22454
|
+
client.httpClient,
|
|
22455
|
+
client.organizationId,
|
|
22456
|
+
client.workspaceIdNumber,
|
|
22457
|
+
data,
|
|
22458
|
+
void 0
|
|
22459
|
+
]));
|
|
22460
|
+
}
|
|
22461
|
+
},
|
|
22462
|
+
{
|
|
22463
|
+
id: "focus.projects.designations-update",
|
|
22464
|
+
family: "focus",
|
|
22465
|
+
resource: "projects",
|
|
22466
|
+
action: "designations-update",
|
|
22467
|
+
title: "Designations Update Projects",
|
|
22468
|
+
description: "Designations Update Projects.",
|
|
22469
|
+
safety: "update",
|
|
22470
|
+
destructive: false,
|
|
22471
|
+
cli: {
|
|
22472
|
+
group: ["projects", "designations"],
|
|
22473
|
+
command: "update",
|
|
22474
|
+
interactive: "default"
|
|
22475
|
+
},
|
|
22476
|
+
mcp: { entityTool: "projects" },
|
|
22477
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() })) }) }),
|
|
22478
|
+
execute: (input, { client }) => {
|
|
22479
|
+
const data = input;
|
|
22480
|
+
return client.runGeneratedRequest("updateProjectDesignations", () => callGeneratedRequest(updateProjectDesignations, [
|
|
22481
|
+
client.httpClient,
|
|
22482
|
+
client.organizationId,
|
|
22483
|
+
client.workspaceIdNumber,
|
|
22484
|
+
data.payload ?? data.data ?? data,
|
|
22485
|
+
void 0
|
|
22486
|
+
]));
|
|
22487
|
+
}
|
|
22488
|
+
},
|
|
22489
|
+
{
|
|
22490
|
+
id: "focus.projects.designations-update-bookings",
|
|
22491
|
+
family: "focus",
|
|
22492
|
+
resource: "projects",
|
|
22493
|
+
action: "designations-update-bookings",
|
|
22494
|
+
title: "Designations Update Bookings Projects",
|
|
22495
|
+
description: "Designations Update Bookings Projects.",
|
|
22496
|
+
safety: "update",
|
|
22497
|
+
destructive: false,
|
|
22498
|
+
cli: {
|
|
22499
|
+
group: ["projects", "designations"],
|
|
22500
|
+
command: "update-bookings",
|
|
22501
|
+
interactive: "default"
|
|
22502
|
+
},
|
|
22503
|
+
mcp: { entityTool: "projects" },
|
|
22504
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ bookings: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() })) }) }),
|
|
22505
|
+
execute: (input, { client }) => {
|
|
22506
|
+
const data = input;
|
|
22507
|
+
return client.runGeneratedRequest("updateProjectDesignationBookings", () => callGeneratedRequest(updateProjectDesignationBookings, [
|
|
22508
|
+
client.httpClient,
|
|
22509
|
+
client.organizationId,
|
|
22510
|
+
client.workspaceIdNumber,
|
|
22511
|
+
data.payload ?? data.data ?? data,
|
|
22512
|
+
void 0
|
|
22513
|
+
]));
|
|
22514
|
+
}
|
|
22515
|
+
},
|
|
22516
|
+
{
|
|
22517
|
+
id: "focus.projects.designations-update-members",
|
|
22518
|
+
family: "focus",
|
|
22519
|
+
resource: "projects",
|
|
22520
|
+
action: "designations-update-members",
|
|
22521
|
+
title: "Designations Update Members Projects",
|
|
22522
|
+
description: "Designations Update Members Projects.",
|
|
22523
|
+
safety: "update",
|
|
22524
|
+
destructive: false,
|
|
22525
|
+
cli: {
|
|
22526
|
+
group: ["projects", "designations"],
|
|
22527
|
+
command: "update-members",
|
|
22528
|
+
interactive: "default"
|
|
22529
|
+
},
|
|
22530
|
+
mcp: { entityTool: "projects" },
|
|
22531
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
22532
|
+
add: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
22533
|
+
project_trait_id: /* @__PURE__ */ number$2(),
|
|
22534
|
+
toggl_user_id: /* @__PURE__ */ number$2()
|
|
22535
|
+
}))),
|
|
22536
|
+
remove: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
22537
|
+
project_trait_id: /* @__PURE__ */ number$2(),
|
|
22538
|
+
toggl_user_id: /* @__PURE__ */ number$2()
|
|
22539
|
+
})))
|
|
22540
|
+
}) }),
|
|
22541
|
+
execute: (input, { client }) => {
|
|
22542
|
+
const data = input;
|
|
22543
|
+
return client.runGeneratedRequest("updateProjectDesignationMembers", () => callGeneratedRequest(updateProjectDesignationMembers, [
|
|
22544
|
+
client.httpClient,
|
|
22545
|
+
client.organizationId,
|
|
22546
|
+
client.workspaceIdNumber,
|
|
22547
|
+
data.payload ?? data.data ?? data,
|
|
22548
|
+
void 0
|
|
22549
|
+
]));
|
|
22550
|
+
}
|
|
22551
|
+
},
|
|
22151
22552
|
{
|
|
22152
22553
|
id: "focus.projects.duplicate",
|
|
22153
22554
|
family: "focus",
|
|
@@ -31809,6 +32210,7 @@ const generatedFocusOperations = [
|
|
|
31809
32210
|
goal_reminders_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
31810
32211
|
has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
31811
32212
|
import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
32213
|
+
invite_members_card_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
31812
32214
|
new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
31813
32215
|
notification_delivery: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
31814
32216
|
"email",
|
|
@@ -34115,4 +34517,4 @@ Common commands:
|
|
|
34115
34517
|
//#endregion
|
|
34116
34518
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
34117
34519
|
|
|
34118
|
-
//# sourceMappingURL=program-
|
|
34520
|
+
//# sourceMappingURL=program-DzDYk-aB.js.map
|
package/build/program.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-DzDYk-aB.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.295",
|
|
4
4
|
"description": "Toggl CLI for Toggl 2.0 API operations.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@toggl/cli-core": "workspace:^",
|
|
58
58
|
"@toggl/operations": "workspace:^",
|
|
59
|
-
"@toggl/queries": "2.2.
|
|
59
|
+
"@toggl/queries": "2.2.389",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|