@togglhq/cli 1.13.297 → 1.13.299

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-DzDYk-aB.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-BsFZF6i3.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-DzDYk-aB.js";
1
+ import { t as createProgram } from "./program-BsFZF6i3.js";
2
2
  export { createProgram };
@@ -7409,6 +7409,22 @@ const AlertRuleSchema = /* @__PURE__ */ object({
7409
7409
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7410
7410
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number())
7411
7411
  });
7412
+ const DtoAggregationFilterRequestSchema = /* @__PURE__ */ object({
7413
+ aggregation: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ object({
7414
+ function: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("One of `sum`, `avg`, `min`, `max`, `count`, `array` or `array_ordered`.")),
7415
+ property: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Property name, e.g. `user_name` or `project_custom_field:42`; see the endpoint description for every accepted name."))
7416
+ }), /* @__PURE__ */ description("Aggregation whose result is filtered, as in a HAVING clause."))),
7417
+ conditions: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ lazy(() => DtoAggregationsFilterRequestSchema), /* @__PURE__ */ description("Nested aggregation filters, combined by an `and` / `or` operator."))),
7418
+ operator: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Operator such as `>`, `<=` or `is between`, or `and` / `or` to combine `conditions`."))),
7419
+ property: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The aggregation written as `function(property)`, e.g. `sum(duration)`; send it or `aggregation`, not both."))),
7420
+ value: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ unknown(), /* @__PURE__ */ description("Value compared against the aggregated result.")))
7421
+ });
7422
+ const DtoFilterRequestSchema = /* @__PURE__ */ object({
7423
+ conditions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoFilterRequestSchema))),
7424
+ operator: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Operator such as `=`, `in` or `is between`, or `and` / `or` to combine `conditions`."))),
7425
+ property: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Property name, e.g. `user_name` or `project_custom_field:42`; see the endpoint description for every accepted name."))),
7426
+ value: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ unknown(), /* @__PURE__ */ description("Value compared against; an array for `in`, `contains one of` and the between operators.")))
7427
+ });
7412
7428
  const ClientPayloadSchema = /* @__PURE__ */ object({
7413
7429
  name: /* @__PURE__ */ string(),
7414
7430
  address: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), /* @__PURE__ */ description("Omit to keep the stored value on update; send null or a blank string to clear it."))),
@@ -7548,23 +7564,7 @@ const TimeEntrySchema = /* @__PURE__ */ object({
7548
7564
  tracked_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7549
7565
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
7550
7566
  });
7551
- const DtoAggregationFilterRequestSchema = /* @__PURE__ */ object({
7552
- aggregation: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ object({
7553
- function: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("One of `sum`, `avg`, `min`, `max`, `count`, `array` or `array_ordered`.")),
7554
- property: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Property name, e.g. `user_name` or `project_custom_field:42`; see the endpoint description for every accepted name."))
7555
- }), /* @__PURE__ */ description("Aggregation whose result is filtered, as in a HAVING clause."))),
7556
- conditions: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ lazy(() => DtoAggregationsFilterRequestSchema), /* @__PURE__ */ description("Nested aggregation filters, combined by an `and` / `or` operator."))),
7557
- operator: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Operator such as `>`, `<=` or `is between`, or `and` / `or` to combine `conditions`."))),
7558
- property: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The aggregation written as `function(property)`, e.g. `sum(duration)`; send it or `aggregation`, not both."))),
7559
- value: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ unknown(), /* @__PURE__ */ description("Value compared against the aggregated result.")))
7560
- });
7561
7567
  const DtoAggregationsFilterRequestSchema = /* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoAggregationFilterRequestSchema));
7562
- const DtoFilterRequestSchema = /* @__PURE__ */ object({
7563
- conditions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ lazy(() => DtoFilterRequestSchema))),
7564
- operator: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Operator such as `=`, `in` or `is between`, or `and` / `or` to combine `conditions`."))),
7565
- property: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Property name, e.g. `user_name` or `project_custom_field:42`; see the endpoint description for every accepted name."))),
7566
- value: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ unknown(), /* @__PURE__ */ description("Value compared against; an array for `in`, `contains one of` and the between operators.")))
7567
- });
7568
7568
  const InvoicedAmountSchema = /* @__PURE__ */ object({
7569
7569
  amount_minor: /* @__PURE__ */ number(),
7570
7570
  currency: /* @__PURE__ */ string()
@@ -17608,6 +17608,17 @@ async function emailUnsubscribePage(httpClient, token, signal) {
17608
17608
  async function emailUnsubscribe(httpClient, token, signal) {
17609
17609
  return (await httpClient.post(`email/unsubscribe/${token}`, { signal })).json();
17610
17610
  }
17611
+ async function recordWorkspaceOpened(httpClient, organization_id, workspace_id, signal) {
17612
+ return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/users/me/opened`, { signal })).json();
17613
+ }
17614
+ async function getLandingWorkspace(httpClient, { first_launch } = {}, signal) {
17615
+ const response = await httpClient.get(`users/me/landing-workspace`, {
17616
+ signal,
17617
+ searchParams: buildSearchParams$2({ first_launch })
17618
+ });
17619
+ if ([204, 205].includes(response.status)) return null;
17620
+ return response.json();
17621
+ }
17611
17622
  async function getUserSettings(httpClient, signal) {
17612
17623
  return (await httpClient.get(`users/me/settings`, { signal })).json();
17613
17624
  }
@@ -32150,6 +32161,31 @@ const generatedFocusOperations = [
32150
32161
  inputSchema: /* @__PURE__ */ looseObject({}),
32151
32162
  execute: (_input, { client }) => client.runGeneratedRequest("getDesktopUserSettings", () => callGeneratedRequest(getDesktopUserSettings, [client.httpClient, void 0]))
32152
32163
  },
32164
+ {
32165
+ id: "focus.users.settings-get-landing-workspace",
32166
+ family: "focus",
32167
+ resource: "users",
32168
+ action: "settings-get-landing-workspace",
32169
+ title: "Settings Get Landing Workspace Users",
32170
+ description: "Settings Get Landing Workspace Users.",
32171
+ safety: "read",
32172
+ destructive: false,
32173
+ cli: {
32174
+ group: ["users", "settings"],
32175
+ command: "get-landing-workspace",
32176
+ interactive: "hidden"
32177
+ },
32178
+ mcp: { entityTool: "users" },
32179
+ inputSchema: /* @__PURE__ */ looseObject({ first_launch: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()) }),
32180
+ execute: (input, { client }) => {
32181
+ const data = input;
32182
+ return client.runGeneratedRequest("getLandingWorkspace", () => callGeneratedRequest(getLandingWorkspace, [
32183
+ client.httpClient,
32184
+ data,
32185
+ void 0
32186
+ ]));
32187
+ }
32188
+ },
32153
32189
  {
32154
32190
  id: "focus.users.settings-list",
32155
32191
  family: "focus",
@@ -32195,6 +32231,7 @@ const generatedFocusOperations = [
32195
32231
  "do_nothing",
32196
32232
  "match_existing"
32197
32233
  ])),
32234
+ current_workspace_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["explicit", "inferred"])),
32198
32235
  date_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
32199
32236
  "US",
32200
32237
  "EU",
@@ -32268,6 +32305,29 @@ const generatedFocusOperations = [
32268
32305
  ]));
32269
32306
  }
32270
32307
  },
32308
+ {
32309
+ id: "focus.users.settings-record-workspace-opened",
32310
+ family: "focus",
32311
+ resource: "users",
32312
+ action: "settings-record-workspace-opened",
32313
+ title: "Settings Record Workspace Opened Users",
32314
+ description: "Settings Record Workspace Opened Users.",
32315
+ safety: "update",
32316
+ destructive: false,
32317
+ cli: {
32318
+ group: ["users", "settings"],
32319
+ command: "record-workspace-opened",
32320
+ interactive: "default"
32321
+ },
32322
+ mcp: { entityTool: "users" },
32323
+ inputSchema: /* @__PURE__ */ looseObject({}),
32324
+ execute: (_input, { client }) => client.runGeneratedRequest("recordWorkspaceOpened", () => callGeneratedRequest(recordWorkspaceOpened, [
32325
+ client.httpClient,
32326
+ client.organizationId,
32327
+ client.workspaceIdNumber,
32328
+ void 0
32329
+ ]))
32330
+ },
32271
32331
  {
32272
32332
  id: "focus.users.settings-update-desktop",
32273
32333
  family: "focus",
@@ -34517,4 +34577,4 @@ Common commands:
34517
34577
  //#endregion
34518
34578
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
34519
34579
 
34520
- //# sourceMappingURL=program-DzDYk-aB.js.map
34580
+ //# sourceMappingURL=program-BsFZF6i3.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-DzDYk-aB.js";
1
+ import { t as createProgram } from "./program-BsFZF6i3.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.297",
3
+ "version": "1.13.299",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",