@togglhq/cli 1.13.221 → 1.13.223
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-BtNwmxRz.js → program-Bcsbm6wK.js} +96 -11
- 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-Bcsbm6wK.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-Bcsbm6wK.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -9994,7 +9994,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
|
|
|
9994
9994
|
})
|
|
9995
9995
|
})).json();
|
|
9996
9996
|
}
|
|
9997
|
-
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, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration, include_designations, include_shared_report_receiver, has_designations } = {}, signal) {
|
|
9997
|
+
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, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration, include_designations, include_shared_report_receiver, has_role_in_products, has_designations } = {}, signal) {
|
|
9998
9998
|
const response = await httpClient.get(`organizations/${organization_id}/users`, {
|
|
9999
9999
|
signal,
|
|
10000
10000
|
searchParams: buildSearchParams$2({
|
|
@@ -10020,6 +10020,7 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
10020
10020
|
include_calendar_integration,
|
|
10021
10021
|
include_designations,
|
|
10022
10022
|
include_shared_report_receiver,
|
|
10023
|
+
has_role_in_products,
|
|
10023
10024
|
has_designations
|
|
10024
10025
|
}, true)
|
|
10025
10026
|
});
|
|
@@ -11130,7 +11131,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
11130
11131
|
]))
|
|
11131
11132
|
});
|
|
11132
11133
|
//#endregion
|
|
11133
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11134
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
11134
11135
|
async function getInvitations(httpClient, signal) {
|
|
11135
11136
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
11136
11137
|
}
|
|
@@ -11147,7 +11148,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
11147
11148
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
11148
11149
|
}
|
|
11149
11150
|
//#endregion
|
|
11150
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11151
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
11151
11152
|
function buildSearchParams(params, flattenArrays = false) {
|
|
11152
11153
|
const searchParams = new URLSearchParams();
|
|
11153
11154
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -11159,7 +11160,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
11159
11160
|
return searchParams;
|
|
11160
11161
|
}
|
|
11161
11162
|
//#endregion
|
|
11162
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11163
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
11163
11164
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
11164
11165
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
11165
11166
|
}
|
|
@@ -11174,7 +11175,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11174
11175
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11175
11176
|
}
|
|
11176
11177
|
//#endregion
|
|
11177
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11178
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11178
11179
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11179
11180
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11180
11181
|
}
|
|
@@ -11194,7 +11195,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11194
11195
|
});
|
|
11195
11196
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11196
11197
|
//#endregion
|
|
11197
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11198
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
11198
11199
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
11199
11200
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
11200
11201
|
signal,
|
|
@@ -11205,12 +11206,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11205
11206
|
})).json();
|
|
11206
11207
|
}
|
|
11207
11208
|
//#endregion
|
|
11208
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11209
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11209
11210
|
async function getStatus(httpClient, signal) {
|
|
11210
11211
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11211
11212
|
}
|
|
11212
11213
|
//#endregion
|
|
11213
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11214
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11214
11215
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11215
11216
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11216
11217
|
signal,
|
|
@@ -11238,7 +11239,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11238
11239
|
return response.json();
|
|
11239
11240
|
}
|
|
11240
11241
|
//#endregion
|
|
11241
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11242
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.347_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_8225b419bc4dac71eeecbc66083eea3d/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11242
11243
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11243
11244
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11244
11245
|
}
|
|
@@ -15434,6 +15435,24 @@ async function undoAiChange(httpClient, organization_id, workspace_id, conversat
|
|
|
15434
15435
|
searchParams: buildSearchParams$2({ product })
|
|
15435
15436
|
})).json();
|
|
15436
15437
|
}
|
|
15438
|
+
async function stopAiTurn(httpClient, organization_id, workspace_id, conversation_id, product, signal) {
|
|
15439
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/stop`, {
|
|
15440
|
+
signal,
|
|
15441
|
+
searchParams: buildSearchParams$2({ product })
|
|
15442
|
+
})).json();
|
|
15443
|
+
}
|
|
15444
|
+
async function attachAiTurn(httpClient, organization_id, workspace_id, conversation_id, { after, product, lastEventID } = {}, signal) {
|
|
15445
|
+
const response = await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/stream`, {
|
|
15446
|
+
signal,
|
|
15447
|
+
headers: { "Last-Event-ID": lastEventID },
|
|
15448
|
+
searchParams: buildSearchParams$2({
|
|
15449
|
+
after,
|
|
15450
|
+
product
|
|
15451
|
+
})
|
|
15452
|
+
});
|
|
15453
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15454
|
+
return response.json();
|
|
15455
|
+
}
|
|
15437
15456
|
async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
|
|
15438
15457
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
15439
15458
|
signal,
|
|
@@ -16013,13 +16032,14 @@ async function deleteACustomReport(httpClient, workspace_id, id, signal) {
|
|
|
16013
16032
|
}
|
|
16014
16033
|
//#endregion
|
|
16015
16034
|
//#region ../focus-queries/dist/designations/requests.ts
|
|
16016
|
-
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { designation_id, name, include_members, has_members, page, per_page, order_by } = {}, signal) {
|
|
16035
|
+
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) {
|
|
16017
16036
|
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
16018
16037
|
signal,
|
|
16019
16038
|
searchParams: buildSearchParams$2({
|
|
16020
16039
|
designation_id,
|
|
16021
16040
|
name,
|
|
16022
16041
|
include_members,
|
|
16042
|
+
has_role_in_products,
|
|
16023
16043
|
has_members,
|
|
16024
16044
|
page,
|
|
16025
16045
|
per_page,
|
|
@@ -17670,6 +17690,39 @@ const generatedFocusOperations = [
|
|
|
17670
17690
|
]));
|
|
17671
17691
|
}
|
|
17672
17692
|
},
|
|
17693
|
+
{
|
|
17694
|
+
id: "focus.ai.attach-ai-turn",
|
|
17695
|
+
family: "focus",
|
|
17696
|
+
resource: "ai",
|
|
17697
|
+
action: "attach-ai-turn",
|
|
17698
|
+
title: "Attach Ai Turn Ai",
|
|
17699
|
+
description: "Attach Ai Turn Ai.",
|
|
17700
|
+
safety: "read",
|
|
17701
|
+
destructive: false,
|
|
17702
|
+
cli: {
|
|
17703
|
+
group: ["ai"],
|
|
17704
|
+
command: "attach-ai-turn",
|
|
17705
|
+
interactive: "hidden"
|
|
17706
|
+
},
|
|
17707
|
+
mcp: { entityTool: "ai" },
|
|
17708
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
17709
|
+
after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17710
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
17711
|
+
lastEventID: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17712
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
17713
|
+
}),
|
|
17714
|
+
execute: (input, { client }) => {
|
|
17715
|
+
const data = input;
|
|
17716
|
+
return client.runGeneratedRequest("attachAiTurn", () => callGeneratedRequest(attachAiTurn, [
|
|
17717
|
+
client.httpClient,
|
|
17718
|
+
client.organizationId,
|
|
17719
|
+
client.workspaceIdNumber,
|
|
17720
|
+
data.conversation_id,
|
|
17721
|
+
data,
|
|
17722
|
+
void 0
|
|
17723
|
+
]));
|
|
17724
|
+
}
|
|
17725
|
+
},
|
|
17673
17726
|
{
|
|
17674
17727
|
id: "focus.ai.connect-ai-source",
|
|
17675
17728
|
family: "focus",
|
|
@@ -18284,6 +18337,37 @@ const generatedFocusOperations = [
|
|
|
18284
18337
|
]));
|
|
18285
18338
|
}
|
|
18286
18339
|
},
|
|
18340
|
+
{
|
|
18341
|
+
id: "focus.ai.stop-ai-turn",
|
|
18342
|
+
family: "focus",
|
|
18343
|
+
resource: "ai",
|
|
18344
|
+
action: "stop-ai-turn",
|
|
18345
|
+
title: "Stop Ai Turn Ai",
|
|
18346
|
+
description: "Stop Ai Turn Ai.",
|
|
18347
|
+
safety: "update",
|
|
18348
|
+
destructive: false,
|
|
18349
|
+
cli: {
|
|
18350
|
+
group: ["ai"],
|
|
18351
|
+
command: "stop-ai-turn",
|
|
18352
|
+
interactive: "default"
|
|
18353
|
+
},
|
|
18354
|
+
mcp: { entityTool: "ai" },
|
|
18355
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
18356
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
18357
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
18358
|
+
}),
|
|
18359
|
+
execute: (input, { client }) => {
|
|
18360
|
+
const data = input;
|
|
18361
|
+
return client.runGeneratedRequest("stopAiTurn", () => callGeneratedRequest(stopAiTurn, [
|
|
18362
|
+
client.httpClient,
|
|
18363
|
+
client.organizationId,
|
|
18364
|
+
client.workspaceIdNumber,
|
|
18365
|
+
data.conversation_id,
|
|
18366
|
+
data.product,
|
|
18367
|
+
void 0
|
|
18368
|
+
]));
|
|
18369
|
+
}
|
|
18370
|
+
},
|
|
18287
18371
|
{
|
|
18288
18372
|
id: "focus.ai.undo-ai-change",
|
|
18289
18373
|
family: "focus",
|
|
@@ -20365,6 +20449,7 @@ const generatedFocusOperations = [
|
|
|
20365
20449
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
20366
20450
|
designation_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
20367
20451
|
has_members: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20452
|
+
has_role_in_products: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20368
20453
|
include_members: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20369
20454
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20370
20455
|
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -33803,4 +33888,4 @@ Common commands:
|
|
|
33803
33888
|
//#endregion
|
|
33804
33889
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
33805
33890
|
|
|
33806
|
-
//# sourceMappingURL=program-
|
|
33891
|
+
//# sourceMappingURL=program-Bcsbm6wK.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-Bcsbm6wK.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.223",
|
|
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.347",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|