@doist/todoist-ai 8.7.1 → 8.7.2

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/dist/index.d.ts CHANGED
@@ -2775,14 +2775,14 @@ declare const tools: {
2775
2775
  STARTER: "STARTER";
2776
2776
  BUSINESS: "BUSINESS";
2777
2777
  }>;
2778
- role: import('zod').ZodEnum<{
2778
+ role: import('zod').ZodOptional<import('zod').ZodEnum<{
2779
2779
  ADMIN: "ADMIN";
2780
2780
  MEMBER: "MEMBER";
2781
2781
  GUEST: "GUEST";
2782
- }>;
2782
+ }>>;
2783
2783
  isLinkSharingEnabled: import('zod').ZodBoolean;
2784
2784
  isGuestAllowed: import('zod').ZodBoolean;
2785
- createdAt: import('zod').ZodString;
2785
+ createdAt: import('zod').ZodOptional<import('zod').ZodString>;
2786
2786
  creatorId: import('zod').ZodString;
2787
2787
  }, import('zod/v4/core').$strip>>;
2788
2788
  count: import('zod').ZodNumber;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { f as s, s as a, l as e, m as t, a as d, u as o, r, d as i, b as c, c as n, e as l, h as m, i as f, j as p, k, n as g, o as j, p as u, q as T, t as h, v, w as P, x as A, y as S, z as b, A as y, B as C, C as F, D as E, E as w, F as x, G as H, H as I, I as L, J as M, K as O, L as z, M as B } from "./mcp-server-CWvR4g_x.js";
2
- import { N as G, g as J } from "./mcp-server-CWvR4g_x.js";
1
+ import { f as s, s as a, l as e, m as t, a as d, u as o, r, d as i, b as c, c as n, e as l, h as m, i as f, j as p, k, n as g, o as j, p as u, q as T, t as h, v, w as P, x as A, y as S, z as b, A as y, B as C, C as F, D as E, E as w, F as x, G as H, H as I, I as L, J as M, K as O, L as z, M as B } from "./mcp-server-Eb2ZRWDB.js";
2
+ import { N as G, g as J } from "./mcp-server-Eb2ZRWDB.js";
3
3
  const N = {
4
4
  // Task management tools
5
5
  addTasks: B,
package/dist/main-http.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { StreamableHTTPServerTransport as i } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
3
3
  import l from "dotenv";
4
4
  import a from "express";
5
- import { g as p } from "./mcp-server-CWvR4g_x.js";
5
+ import { g as p } from "./mcp-server-Eb2ZRWDB.js";
6
6
  l.config({ quiet: !0 });
7
7
  const s = Number.parseInt(process.env.PORT || "3000", 10);
8
8
  function d() {
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { StdioServerTransport as s } from "@modelcontextprotocol/sdk/server/stdio.js";
3
3
  import c from "dotenv";
4
- import { g as i } from "./mcp-server-CWvR4g_x.js";
4
+ import { g as i } from "./mcp-server-Eb2ZRWDB.js";
5
5
  function p() {
6
6
  const e = process.env.TODOIST_BASE_URL, r = process.env.TODOIST_API_KEY;
7
7
  if (!r)
@@ -4254,10 +4254,10 @@ const In = {
4254
4254
  id: s.string().describe("The unique identifier for the workspace."),
4255
4255
  name: s.string().describe("The name of the workspace."),
4256
4256
  plan: s.enum(Ut).describe("The workspace plan type."),
4257
- role: s.enum(_t).describe("The user's role in the workspace."),
4257
+ role: s.enum(_t).optional().describe("The user's role in the workspace, if available."),
4258
4258
  isLinkSharingEnabled: s.boolean().describe("Whether link sharing is enabled for the workspace."),
4259
4259
  isGuestAllowed: s.boolean().describe("Whether guests are allowed in the workspace."),
4260
- createdAt: s.string().describe("The ISO 8601 timestamp when the workspace was created."),
4260
+ createdAt: s.string().optional().describe("The ISO 8601 timestamp when the workspace was created."),
4261
4261
  creatorId: s.string().describe("The ID of the user who created the workspace.")
4262
4262
  }, xn = {
4263
4263
  type: s.literal("workspaces").describe("The type of the response."),
@@ -4283,9 +4283,9 @@ async function An(e) {
4283
4283
  ""
4284
4284
  );
4285
4285
  for (const i of r)
4286
- o.push(`## ${i.name}`), o.push(`- **ID:** ${i.id}`), o.push(`- **Plan:** ${i.plan}`), o.push(`- **Your Role:** ${i.role}`), o.push(
4286
+ o.push(`## ${i.name}`), o.push(`- **ID:** ${i.id}`), o.push(`- **Plan:** ${i.plan}`), i.role && o.push(`- **Your Role:** ${i.role}`), o.push(
4287
4287
  `- **Link Sharing:** ${i.isLinkSharingEnabled ? "Enabled" : "Disabled"}`
4288
- ), o.push(`- **Guests Allowed:** ${i.isGuestAllowed ? "Yes" : "No"}`), o.push(`- **Created:** ${i.createdAt}`), o.push(`- **Creator ID:** ${i.creatorId}`), o.push("");
4288
+ ), o.push(`- **Guests Allowed:** ${i.isGuestAllowed ? "Yes" : "No"}`), i.createdAt && o.push(`- **Created:** ${i.createdAt}`), o.push(`- **Creator ID:** ${i.creatorId}`), o.push("");
4289
4289
  }
4290
4290
  const n = o.join(`
4291
4291
  `), a = {
@@ -4,10 +4,10 @@ type WorkspaceOutput = {
4
4
  id: string;
5
5
  name: string;
6
6
  plan: WorkspacePlan;
7
- role: WorkspaceRole;
7
+ role?: WorkspaceRole;
8
8
  isLinkSharingEnabled: boolean;
9
9
  isGuestAllowed: boolean;
10
- createdAt: string;
10
+ createdAt?: string;
11
11
  creatorId: string;
12
12
  };
13
13
  type WorkspacesStructured = Record<string, unknown> & {
@@ -28,14 +28,14 @@ declare const listWorkspaces: {
28
28
  STARTER: "STARTER";
29
29
  BUSINESS: "BUSINESS";
30
30
  }>;
31
- role: z.ZodEnum<{
31
+ role: z.ZodOptional<z.ZodEnum<{
32
32
  ADMIN: "ADMIN";
33
33
  MEMBER: "MEMBER";
34
34
  GUEST: "GUEST";
35
- }>;
35
+ }>>;
36
36
  isLinkSharingEnabled: z.ZodBoolean;
37
37
  isGuestAllowed: z.ZodBoolean;
38
- createdAt: z.ZodString;
38
+ createdAt: z.ZodOptional<z.ZodString>;
39
39
  creatorId: z.ZodString;
40
40
  }, z.core.$strip>>;
41
41
  count: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"list-workspaces.d.ts","sourceRoot":"","sources":["../../src/tools/list-workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,UAAU,EA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CAAA;AAED,KAAK,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAClD,IAAI,EAAE,YAAY,CAAA;IAClB,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AA2DD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe2C,CAAA;AAE/D,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,oBAAoB,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-ai",
3
- "version": "8.7.1",
3
+ "version": "8.7.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -63,7 +63,7 @@
63
63
  "prepare": "husky"
64
64
  },
65
65
  "dependencies": {
66
- "@doist/todoist-api-typescript": "7.8.0",
66
+ "@doist/todoist-api-typescript": "7.9.1",
67
67
  "@modelcontextprotocol/ext-apps": "1.2.2",
68
68
  "date-fns": "4.1.0",
69
69
  "dompurify": "3.3.3",