@togglhq/cli 1.13.127 → 1.13.129

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 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-ihFIgZrQ.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-C2yGVVp9.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-ihFIgZrQ.js";
1
+ import { t as createProgram } from "./program-C2yGVVp9.js";
2
2
  export { createProgram };
@@ -15052,6 +15052,24 @@ async function searchAi(httpClient, organization_id, workspace_id, { q }, signal
15052
15052
  searchParams: buildSearchParams$2({ q })
15053
15053
  }).json();
15054
15054
  }
15055
+ async function getAiSources(httpClient, organization_id, workspace_id, signal) {
15056
+ return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources`, { signal }).json();
15057
+ }
15058
+ async function disconnectAiSource(httpClient, organization_id, workspace_id, source_id, signal) {
15059
+ return await httpClient.delete(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources/${source_id}`, { signal }).json();
15060
+ }
15061
+ async function finishAiSource(httpClient, organization_id, workspace_id, source_id, data, signal) {
15062
+ return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources/${source_id}/callback`, {
15063
+ signal,
15064
+ json: data
15065
+ }).json();
15066
+ }
15067
+ async function connectAiSource(httpClient, organization_id, workspace_id, source_id, data, signal) {
15068
+ return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/sources/${source_id}/connect`, {
15069
+ signal,
15070
+ json: data
15071
+ }).json();
15072
+ }
15055
15073
  async function runAiView(httpClient, organization_id, workspace_id, data, signal) {
15056
15074
  return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
15057
15075
  signal,
@@ -15251,6 +15269,18 @@ async function getAllWorkspaceUserBillableRates(httpClient, organization_id, wor
15251
15269
  })
15252
15270
  }).json();
15253
15271
  }
15272
+ async function bulkUpsertWorkspaceUserBillableRate(httpClient, organization_id, workspace_id, data, signal) {
15273
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates/bulk`, {
15274
+ signal,
15275
+ json: data
15276
+ }).json();
15277
+ }
15278
+ async function bulkCheckWorkspaceUserBillableRateConflicts(httpClient, organization_id, workspace_id, data, signal) {
15279
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/rates/check/bulk`, {
15280
+ signal,
15281
+ json: data
15282
+ }).json();
15283
+ }
15254
15284
  async function getWorkspaceUserBillableRates(httpClient, organization_id, workspace_id, user_id, { order_by } = {}, signal) {
15255
15285
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/billable-rates/users/${user_id}/rates`, {
15256
15286
  signal,
@@ -15661,6 +15691,18 @@ async function getAllWorkspaceUserLaborCostRates(httpClient, organization_id, wo
15661
15691
  })
15662
15692
  }).json();
15663
15693
  }
15694
+ async function bulkUpsertWorkspaceUserLaborCostRate(httpClient, organization_id, workspace_id, data, signal) {
15695
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates/bulk`, {
15696
+ signal,
15697
+ json: data
15698
+ }).json();
15699
+ }
15700
+ async function bulkCheckWorkspaceUserLaborCostRateConflicts(httpClient, organization_id, workspace_id, data, signal) {
15701
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/rates/check/bulk`, {
15702
+ signal,
15703
+ json: data
15704
+ }).json();
15705
+ }
15664
15706
  async function getWorkspaceUserLaborCostRates(httpClient, organization_id, workspace_id, user_id, { order_by } = {}, signal) {
15665
15707
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/labor-costs/users/${user_id}/rates`, {
15666
15708
  signal,
@@ -16859,6 +16901,37 @@ const generatedFocusOperations = [
16859
16901
  ]));
16860
16902
  }
16861
16903
  },
16904
+ {
16905
+ id: "focus.ai.connect-ai-source",
16906
+ family: "focus",
16907
+ resource: "ai",
16908
+ action: "connect-ai-source",
16909
+ title: "Connect Ai Source Ai",
16910
+ description: "Connect Ai Source Ai.",
16911
+ safety: "update",
16912
+ destructive: false,
16913
+ cli: {
16914
+ group: ["ai"],
16915
+ command: "connect-ai-source",
16916
+ interactive: "default"
16917
+ },
16918
+ mcp: { entityTool: "ai" },
16919
+ inputSchema: /* @__PURE__ */ looseObject({
16920
+ payload: /* @__PURE__ */ looseObject({ redirect_uri: /* @__PURE__ */ string$1() }),
16921
+ source_id: /* @__PURE__ */ string$1()
16922
+ }),
16923
+ execute: (input, { client }) => {
16924
+ const data = input;
16925
+ return client.runGeneratedRequest("connectAiSource", () => callGeneratedRequest(connectAiSource, [
16926
+ client.httpClient,
16927
+ client.organizationId,
16928
+ client.workspaceIdNumber,
16929
+ data.source_id,
16930
+ data.payload ?? data.data ?? data,
16931
+ void 0
16932
+ ]));
16933
+ }
16934
+ },
16862
16935
  {
16863
16936
  id: "focus.ai.day-rebuild-group",
16864
16937
  family: "focus",
@@ -17018,6 +17091,67 @@ const generatedFocusOperations = [
17018
17091
  ]));
17019
17092
  }
17020
17093
  },
17094
+ {
17095
+ id: "focus.ai.disconnect-ai-source",
17096
+ family: "focus",
17097
+ resource: "ai",
17098
+ action: "disconnect-ai-source",
17099
+ title: "Disconnect Ai Source Ai",
17100
+ description: "Disconnect Ai Source Ai.",
17101
+ safety: "delete",
17102
+ destructive: true,
17103
+ cli: {
17104
+ group: ["ai"],
17105
+ command: "disconnect-ai-source",
17106
+ interactive: "default"
17107
+ },
17108
+ mcp: { entityTool: "ai" },
17109
+ inputSchema: /* @__PURE__ */ looseObject({ source_id: /* @__PURE__ */ string$1() }),
17110
+ execute: (input, { client }) => {
17111
+ const data = input;
17112
+ return client.runGeneratedRequest("disconnectAiSource", () => callGeneratedRequest(disconnectAiSource, [
17113
+ client.httpClient,
17114
+ client.organizationId,
17115
+ client.workspaceIdNumber,
17116
+ data.source_id,
17117
+ void 0
17118
+ ]));
17119
+ }
17120
+ },
17121
+ {
17122
+ id: "focus.ai.finish-ai-source",
17123
+ family: "focus",
17124
+ resource: "ai",
17125
+ action: "finish-ai-source",
17126
+ title: "Finish Ai Source Ai",
17127
+ description: "Finish Ai Source Ai.",
17128
+ safety: "update",
17129
+ destructive: false,
17130
+ cli: {
17131
+ group: ["ai"],
17132
+ command: "finish-ai-source",
17133
+ interactive: "default"
17134
+ },
17135
+ mcp: { entityTool: "ai" },
17136
+ inputSchema: /* @__PURE__ */ looseObject({
17137
+ payload: /* @__PURE__ */ looseObject({
17138
+ code: /* @__PURE__ */ string$1(),
17139
+ state: /* @__PURE__ */ string$1()
17140
+ }),
17141
+ source_id: /* @__PURE__ */ string$1()
17142
+ }),
17143
+ execute: (input, { client }) => {
17144
+ const data = input;
17145
+ return client.runGeneratedRequest("finishAiSource", () => callGeneratedRequest(finishAiSource, [
17146
+ client.httpClient,
17147
+ client.organizationId,
17148
+ client.workspaceIdNumber,
17149
+ data.source_id,
17150
+ data.payload ?? data.data ?? data,
17151
+ void 0
17152
+ ]));
17153
+ }
17154
+ },
17021
17155
  {
17022
17156
  id: "focus.ai.get-conversations",
17023
17157
  family: "focus",
@@ -17080,6 +17214,29 @@ const generatedFocusOperations = [
17080
17214
  ]));
17081
17215
  }
17082
17216
  },
17217
+ {
17218
+ id: "focus.ai.get-sources",
17219
+ family: "focus",
17220
+ resource: "ai",
17221
+ action: "get-sources",
17222
+ title: "Get Sources Ai",
17223
+ description: "Get Sources Ai.",
17224
+ safety: "read",
17225
+ destructive: false,
17226
+ cli: {
17227
+ group: ["ai"],
17228
+ command: "get-sources",
17229
+ interactive: "hidden"
17230
+ },
17231
+ mcp: { entityTool: "ai" },
17232
+ inputSchema: /* @__PURE__ */ looseObject({}),
17233
+ execute: (_input, { client }) => client.runGeneratedRequest("getAiSources", () => callGeneratedRequest(getAiSources, [
17234
+ client.httpClient,
17235
+ client.organizationId,
17236
+ client.workspaceIdNumber,
17237
+ void 0
17238
+ ]))
17239
+ },
17083
17240
  {
17084
17241
  id: "focus.ai.next-ai-actions",
17085
17242
  family: "focus",
@@ -21727,6 +21884,81 @@ const generatedFocusOperations = [
21727
21884
  ]));
21728
21885
  }
21729
21886
  },
21887
+ {
21888
+ id: "focus.rates.billable-bulk-check-workspace-user-billable-rate-conflicts",
21889
+ family: "focus",
21890
+ resource: "rates",
21891
+ action: "billable-bulk-check-workspace-user-billable-rate-conflicts",
21892
+ title: "Billable Bulk Check Workspace User Billable Rate Conflicts Rates",
21893
+ description: "Billable Bulk Check Workspace User Billable Rate Conflicts Rates.",
21894
+ safety: "update",
21895
+ destructive: false,
21896
+ cli: {
21897
+ group: [
21898
+ "rates",
21899
+ "billable",
21900
+ "bulk"
21901
+ ],
21902
+ command: "check-workspace-user-billable-rate-conflicts",
21903
+ interactive: "default"
21904
+ },
21905
+ mcp: { entityTool: "rates" },
21906
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
21907
+ currency: /* @__PURE__ */ string$1(),
21908
+ hourly_rate: /* @__PURE__ */ number$2(),
21909
+ start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
21910
+ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
21911
+ end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
21912
+ }) }),
21913
+ execute: (input, { client }) => {
21914
+ const data = input;
21915
+ return client.runGeneratedRequest("bulkCheckWorkspaceUserBillableRateConflicts", () => callGeneratedRequest(bulkCheckWorkspaceUserBillableRateConflicts, [
21916
+ client.httpClient,
21917
+ client.organizationId,
21918
+ client.workspaceIdNumber,
21919
+ data.payload ?? data.data ?? data,
21920
+ void 0
21921
+ ]));
21922
+ }
21923
+ },
21924
+ {
21925
+ id: "focus.rates.billable-bulk-upsert-workspace-user",
21926
+ family: "focus",
21927
+ resource: "rates",
21928
+ action: "billable-bulk-upsert-workspace-user",
21929
+ title: "Billable Bulk Upsert Workspace User Rates",
21930
+ description: "Billable Bulk Upsert Workspace User Rates.",
21931
+ safety: "update",
21932
+ destructive: false,
21933
+ cli: {
21934
+ group: [
21935
+ "rates",
21936
+ "billable",
21937
+ "bulk"
21938
+ ],
21939
+ command: "upsert-workspace-user",
21940
+ interactive: "default"
21941
+ },
21942
+ mcp: { entityTool: "rates" },
21943
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
21944
+ currency: /* @__PURE__ */ string$1(),
21945
+ hourly_rate: /* @__PURE__ */ number$2(),
21946
+ on_conflict: /* @__PURE__ */ picklist$1(["overwrite", "skip"]),
21947
+ start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
21948
+ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
21949
+ end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
21950
+ }) }),
21951
+ execute: (input, { client }) => {
21952
+ const data = input;
21953
+ return client.runGeneratedRequest("bulkUpsertWorkspaceUserBillableRate", () => callGeneratedRequest(bulkUpsertWorkspaceUserBillableRate, [
21954
+ client.httpClient,
21955
+ client.organizationId,
21956
+ client.workspaceIdNumber,
21957
+ data.payload ?? data.data ?? data,
21958
+ void 0
21959
+ ]));
21960
+ }
21961
+ },
21730
21962
  {
21731
21963
  id: "focus.rates.billable-check-project-billable-rate-conflicts",
21732
21964
  family: "focus",
@@ -22503,6 +22735,81 @@ const generatedFocusOperations = [
22503
22735
  ]));
22504
22736
  }
22505
22737
  },
22738
+ {
22739
+ id: "focus.rates.labor-bulk-check-workspace-user-labor-cost-rate-conflicts",
22740
+ family: "focus",
22741
+ resource: "rates",
22742
+ action: "labor-bulk-check-workspace-user-labor-cost-rate-conflicts",
22743
+ title: "Labor Bulk Check Workspace User Labor Cost Rate Conflicts Rates",
22744
+ description: "Labor Bulk Check Workspace User Labor Cost Rate Conflicts Rates.",
22745
+ safety: "update",
22746
+ destructive: false,
22747
+ cli: {
22748
+ group: [
22749
+ "rates",
22750
+ "labor",
22751
+ "bulk"
22752
+ ],
22753
+ command: "check-workspace-user-labor-cost-rate-conflicts",
22754
+ interactive: "default"
22755
+ },
22756
+ mcp: { entityTool: "rates" },
22757
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
22758
+ currency: /* @__PURE__ */ string$1(),
22759
+ hourly_rate: /* @__PURE__ */ number$2(),
22760
+ start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
22761
+ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
22762
+ end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
22763
+ }) }),
22764
+ execute: (input, { client }) => {
22765
+ const data = input;
22766
+ return client.runGeneratedRequest("bulkCheckWorkspaceUserLaborCostRateConflicts", () => callGeneratedRequest(bulkCheckWorkspaceUserLaborCostRateConflicts, [
22767
+ client.httpClient,
22768
+ client.organizationId,
22769
+ client.workspaceIdNumber,
22770
+ data.payload ?? data.data ?? data,
22771
+ void 0
22772
+ ]));
22773
+ }
22774
+ },
22775
+ {
22776
+ id: "focus.rates.labor-bulk-upsert-workspace-user-labor-cost-rate",
22777
+ family: "focus",
22778
+ resource: "rates",
22779
+ action: "labor-bulk-upsert-workspace-user-labor-cost-rate",
22780
+ title: "Labor Bulk Upsert Workspace User Labor Cost Rate Rates",
22781
+ description: "Labor Bulk Upsert Workspace User Labor Cost Rate Rates.",
22782
+ safety: "update",
22783
+ destructive: false,
22784
+ cli: {
22785
+ group: [
22786
+ "rates",
22787
+ "labor",
22788
+ "bulk"
22789
+ ],
22790
+ command: "upsert-workspace-user-labor-cost-rate",
22791
+ interactive: "default"
22792
+ },
22793
+ mcp: { entityTool: "rates" },
22794
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
22795
+ currency: /* @__PURE__ */ string$1(),
22796
+ hourly_rate: /* @__PURE__ */ number$2(),
22797
+ on_conflict: /* @__PURE__ */ picklist$1(["overwrite", "skip"]),
22798
+ start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
22799
+ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
22800
+ end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
22801
+ }) }),
22802
+ execute: (input, { client }) => {
22803
+ const data = input;
22804
+ return client.runGeneratedRequest("bulkUpsertWorkspaceUserLaborCostRate", () => callGeneratedRequest(bulkUpsertWorkspaceUserLaborCostRate, [
22805
+ client.httpClient,
22806
+ client.organizationId,
22807
+ client.workspaceIdNumber,
22808
+ data.payload ?? data.data ?? data,
22809
+ void 0
22810
+ ]));
22811
+ }
22812
+ },
22506
22813
  {
22507
22814
  id: "focus.rates.labor-check-project-labor-cost-conflicts",
22508
22815
  family: "focus",
@@ -31590,4 +31897,4 @@ Common commands:
31590
31897
  //#endregion
31591
31898
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
31592
31899
 
31593
- //# sourceMappingURL=program-ihFIgZrQ.js.map
31900
+ //# sourceMappingURL=program-C2yGVVp9.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-ihFIgZrQ.js";
1
+ import { t as createProgram } from "./program-C2yGVVp9.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.127",
3
+ "version": "1.13.129",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",