@doist/todoist-ai 8.4.0 → 8.4.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.
@@ -1,10 +1,10 @@
1
- import { TodoistApi } from '@doist/todoist-api-typescript';
1
+ import { TodoistApi, WorkspacePlan, WorkspaceRole } from '@doist/todoist-api-typescript';
2
2
  import { z } from 'zod';
3
3
  type WorkspaceOutput = {
4
4
  id: string;
5
5
  name: string;
6
- plan: 'STARTER' | 'BUSINESS';
7
- role: 'ADMIN' | 'MEMBER' | 'GUEST';
6
+ plan: WorkspacePlan;
7
+ role: WorkspaceRole;
8
8
  isLinkSharingEnabled: boolean;
9
9
  isGuestAllowed: boolean;
10
10
  createdAt: string;
@@ -50,5 +50,5 @@ declare const listWorkspaces: {
50
50
  structuredContent: WorkspacesStructured;
51
51
  }>;
52
52
  };
53
- export { listWorkspaces, type WorkspacesStructured, type WorkspaceOutput };
53
+ export { listWorkspaces, type WorkspaceOutput, type WorkspacesStructured };
54
54
  //# sourceMappingURL=list-workspaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-workspaces.d.ts","sourceRoot":"","sources":["../../src/tools/list-workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAyBvB,KAAK,eAAe,GAAG;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,GAAG,UAAU,CAAA;IAC5B,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClC,oBAAoB,EAAE,OAAO,CAAA;IAC7B,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CACpB,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;AAuDD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe2C,CAAA;AAE/D,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,KAAK,eAAe,EAAE,CAAA"}
1
+ {"version":3,"file":"list-workspaces.d.ts","sourceRoot":"","sources":["../../src/tools/list-workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,UAAU,EAGf,KAAK,aAAa,EAClB,KAAK,aAAa,EACrB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAyBvB,KAAK,eAAe,GAAG;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,aAAa,CAAA;IACnB,IAAI,EAAE,aAAa,CAAA;IACnB,oBAAoB,EAAE,OAAO,CAAA;IAC7B,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CACpB,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;AAuDD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe2C,CAAA;AAE/D,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,KAAK,oBAAoB,EAAE,CAAA"}
@@ -17,8 +17,8 @@ declare const updateTasks: {
17
17
  p3: "p3";
18
18
  p4: "p4";
19
19
  }>>;
20
- dueString: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodString>>;
21
- deadlineDate: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodString>>;
20
+ dueString: z.ZodOptional<z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodString>>;
21
+ deadlineDate: z.ZodOptional<z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodString>>;
22
22
  duration: z.ZodOptional<z.ZodString>;
23
23
  responsibleUser: z.ZodOptional<z.ZodString>;
24
24
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/update-tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAwGvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgJ8C,CAAA;AAiD/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/update-tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA0GvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgJ8C,CAAA;AAiD/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-ai",
3
- "version": "8.4.0",
3
+ "version": "8.4.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -49,15 +49,15 @@
49
49
  "lint:write": "biome lint --write",
50
50
  "format:check": "biome format",
51
51
  "format:write": "biome format --write",
52
- "lint:schemas": "npm run build && npx tsc scripts/validate-schemas.ts --outDir dist/scripts --moduleResolution node --module ESNext --target es2021 --esModuleInterop --skipLibCheck --declaration false && node dist/scripts/validate-schemas.js",
52
+ "lint:schemas": "npm run build && npx tsx scripts/validate-schemas.ts",
53
53
  "check": "biome check && npm run lint:schemas",
54
54
  "check:fix": "biome check --fix --unsafe",
55
55
  "prepare": "husky"
56
56
  },
57
57
  "dependencies": {
58
- "@doist/todoist-api-typescript": "7.2.0",
58
+ "@doist/todoist-api-typescript": "7.3.0",
59
59
  "date-fns": "4.1.0",
60
- "dompurify": "3.3.2",
60
+ "dompurify": "3.3.3",
61
61
  "dotenv": "17.3.1",
62
62
  "express": "5.2.1",
63
63
  "zod": "4.3.6"
@@ -66,7 +66,7 @@
66
66
  "@modelcontextprotocol/sdk": "^1.25.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@biomejs/biome": "2.4.6",
69
+ "@biomejs/biome": "2.4.7",
70
70
  "@types/dompurify": "3.2.0",
71
71
  "@types/express": "5.0.6",
72
72
  "@types/morgan": "1.9.10",
@@ -75,7 +75,7 @@
75
75
  "@types/react-dom": "19.2.3",
76
76
  "concurrently": "9.2.1",
77
77
  "husky": "9.1.7",
78
- "lint-staged": "16.3.3",
78
+ "lint-staged": "16.4.0",
79
79
  "morgan": "1.10.1",
80
80
  "nodemon": "3.1.14",
81
81
  "react": "19.2.4",
@@ -83,10 +83,10 @@
83
83
  "rimraf": "6.1.3",
84
84
  "snarkdown": "2.0.0",
85
85
  "tsx": "4.21.0",
86
- "typescript": "5.9.3",
86
+ "typescript": "6.0.2",
87
87
  "vite": "7.3.1",
88
88
  "vite-plugin-dts": "4.5.4",
89
- "vitest": "4.0.18"
89
+ "vitest": "4.1.0"
90
90
  },
91
91
  "lint-staged": {
92
92
  "*": [
@@ -273,7 +273,10 @@ async function main() {
273
273
  }
274
274
 
275
275
  // Run if this script is executed directly
276
- if (process.argv[1]?.endsWith('validate-schemas.js')) {
276
+ if (
277
+ process.argv[1]?.endsWith('validate-schemas.ts') ||
278
+ process.argv[1]?.endsWith('validate-schemas.js')
279
+ ) {
277
280
  main()
278
281
  }
279
282