@todoist/mcp 17.0.0 → 17.1.1
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 +150 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +57 -54
- package/dist/main-http.js +2 -2
- package/dist/main.js +1 -1
- package/dist/mcp-apps/index.html +1 -1
- package/dist/{mcp-server-BWxFOsDp.js → mcp-server-B1E7hfcz.js} +3950 -3642
- package/dist/{require-valid-todoist-token-eZRVABzW.js → require-valid-todoist-token-DHjKcDM7.js} +1 -1
- package/dist/tool-helpers.d.ts +2 -1
- package/dist/tool-helpers.d.ts.map +1 -1
- package/dist/tool-registry.d.ts +146 -4
- package/dist/tool-registry.d.ts.map +1 -1
- package/dist/tools/add-folders.d.ts +54 -0
- package/dist/tools/add-folders.d.ts.map +1 -0
- package/dist/tools/add-projects.d.ts +4 -1
- package/dist/tools/add-projects.d.ts.map +1 -1
- package/dist/tools/delete-object.d.ts +6 -4
- package/dist/tools/delete-object.d.ts.map +1 -1
- package/dist/tools/find-folders.d.ts +37 -0
- package/dist/tools/find-folders.d.ts.map +1 -0
- package/dist/tools/find-projects.d.ts +3 -0
- package/dist/tools/find-projects.d.ts.map +1 -1
- package/dist/tools/update-folders.d.ts +54 -0
- package/dist/tools/update-folders.d.ts.map +1 -0
- package/dist/tools/update-projects.d.ts +2 -0
- package/dist/tools/update-projects.d.ts.map +1 -1
- package/dist/utils/assignment-validator.d.ts.map +1 -1
- package/dist/utils/constants.d.ts +2 -0
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/output-schemas.d.ts +13 -2
- package/dist/utils/output-schemas.d.ts.map +1 -1
- package/dist/utils/test-helpers.d.ts +13 -1
- package/dist/utils/test-helpers.d.ts.map +1 -1
- package/dist/utils/tool-names.d.ts +3 -0
- package/dist/utils/tool-names.d.ts.map +1 -1
- package/dist/utils/user-resolver.d.ts +17 -0
- package/dist/utils/user-resolver.d.ts.map +1 -1
- package/dist/utils/workspace-resolver.d.ts +5 -0
- package/dist/utils/workspace-resolver.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/{require-valid-todoist-token-eZRVABzW.js → require-valid-todoist-token-DHjKcDM7.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { validateBearerToken as _, createTokenVerdictCache as p, buildBearerChallenge as u } from "@todoist/mcp-core/host";
|
|
2
|
-
import {
|
|
2
|
+
import { a2 as v, a3 as A } from "./mcp-server-B1E7hfcz.js";
|
|
3
3
|
const k = "https://api.todoist.com", U = (e, t) => _({
|
|
4
4
|
// Resolved the way the SDK resolves its own requests against a custom base URL. An empty
|
|
5
5
|
// base (`TODOIST_BASE_URL=`) means the default, as it does for the SDK client.
|
package/dist/tool-helpers.d.ts
CHANGED
|
@@ -78,9 +78,10 @@ export declare function searchAllProjects(client: TodoistApi, query: string): Pr
|
|
|
78
78
|
* not refetch the pages already read.
|
|
79
79
|
*
|
|
80
80
|
* @param client - The Todoist API client
|
|
81
|
+
* @param folderId - Only the projects in this workspace folder
|
|
81
82
|
* @returns Promise resolving to array of active projects
|
|
82
83
|
*/
|
|
83
|
-
export declare function fetchAllActiveProjects(client: TodoistApi): Promise<Project[]>;
|
|
84
|
+
export declare function fetchAllActiveProjects(client: TodoistApi, folderId?: string): Promise<Project[]>;
|
|
84
85
|
/**
|
|
85
86
|
* Fetches the active workspace projects the user can see but hasn't joined,
|
|
86
87
|
* across every workspace they belong to.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-helpers.d.ts","sourceRoot":"","sources":["../src/tool-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAKhB,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,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;;EAY7C;AAWD;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAGxF;AAED,iBAAe,gBAAgB,CAAC,EAC5B,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,GACT,EAAE;IACC,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B;;;;;;;;;;;;;;;;;;;;;;GAkBA;AAqBD;;;;;GAKG;AACH,iBAAS,WAAW,CAAC,QAAQ,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCtC;AAED;;GAEG;AACH,iBAAS,oBAAoB,CAAC,SAAS,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE;;;EAM1D;AAED,YAAY,EAAE,UAAU,EAAE,CAAA;AAC1B,OAAO,EACH,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,WAAW,EACX,OAAO,GACV,CAAA"}
|
package/dist/tool-registry.d.ts
CHANGED
|
@@ -816,6 +816,7 @@ declare const toolRegistry: {
|
|
|
816
816
|
taupe: "taupe";
|
|
817
817
|
}>>, unknown>;
|
|
818
818
|
workspace: import('zod').ZodOptional<import('zod').ZodString>;
|
|
819
|
+
folderId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
819
820
|
}, import('zod/v4/core').$strip>>;
|
|
820
821
|
};
|
|
821
822
|
outputSchema: {
|
|
@@ -879,6 +880,7 @@ declare const toolRegistry: {
|
|
|
879
880
|
description?: string | undefined;
|
|
880
881
|
color?: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
|
|
881
882
|
workspace?: string | undefined;
|
|
883
|
+
folderId?: string | undefined;
|
|
882
884
|
}[];
|
|
883
885
|
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
884
886
|
textContent: string;
|
|
@@ -946,6 +948,7 @@ declare const toolRegistry: {
|
|
|
946
948
|
grey: "grey";
|
|
947
949
|
taupe: "taupe";
|
|
948
950
|
}>>, unknown>;
|
|
951
|
+
folderId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
949
952
|
}, import('zod/v4/core').$strip>>;
|
|
950
953
|
};
|
|
951
954
|
outputSchema: {
|
|
@@ -1011,6 +1014,7 @@ declare const toolRegistry: {
|
|
|
1011
1014
|
viewStyle?: "list" | "board" | "calendar" | "table" | undefined;
|
|
1012
1015
|
description?: string | undefined;
|
|
1013
1016
|
color?: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
|
|
1017
|
+
folderId?: string | undefined;
|
|
1014
1018
|
}[];
|
|
1015
1019
|
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
1016
1020
|
textContent: string;
|
|
@@ -1056,6 +1060,7 @@ declare const toolRegistry: {
|
|
|
1056
1060
|
active: "active";
|
|
1057
1061
|
archived: "archived";
|
|
1058
1062
|
}>>;
|
|
1063
|
+
folderId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1059
1064
|
includeUnjoined: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
1060
1065
|
};
|
|
1061
1066
|
outputSchema: {
|
|
@@ -1117,6 +1122,7 @@ declare const toolRegistry: {
|
|
|
1117
1122
|
searchText?: string | undefined;
|
|
1118
1123
|
cursor?: string | undefined;
|
|
1119
1124
|
archivedStatus?: "all" | "active" | "archived" | undefined;
|
|
1125
|
+
folderId?: string | undefined;
|
|
1120
1126
|
includeUnjoined?: boolean | undefined;
|
|
1121
1127
|
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
1122
1128
|
textContent: string;
|
|
@@ -1144,6 +1150,7 @@ declare const toolRegistry: {
|
|
|
1144
1150
|
searchText?: string | undefined;
|
|
1145
1151
|
cursor?: string | undefined;
|
|
1146
1152
|
archivedStatus?: "all" | "active" | "archived" | undefined;
|
|
1153
|
+
folderId?: string | undefined;
|
|
1147
1154
|
includeUnjoined?: boolean | undefined;
|
|
1148
1155
|
};
|
|
1149
1156
|
unjoinedProjects: {
|
|
@@ -1325,6 +1332,139 @@ declare const toolRegistry: {
|
|
|
1325
1332
|
};
|
|
1326
1333
|
}>;
|
|
1327
1334
|
};
|
|
1335
|
+
addFolders: {
|
|
1336
|
+
name: "add-folders";
|
|
1337
|
+
description: string;
|
|
1338
|
+
parameters: {
|
|
1339
|
+
folders: import('zod').ZodArray<import('zod').ZodObject<{
|
|
1340
|
+
name: import('zod').ZodString;
|
|
1341
|
+
workspace: import('zod').ZodString;
|
|
1342
|
+
}, import('zod/v4/core').$strip>>;
|
|
1343
|
+
};
|
|
1344
|
+
outputSchema: {
|
|
1345
|
+
folders: import('zod').ZodArray<import('zod').ZodObject<{
|
|
1346
|
+
id: import('zod').ZodString;
|
|
1347
|
+
name: import('zod').ZodString;
|
|
1348
|
+
workspaceId: import('zod').ZodString;
|
|
1349
|
+
}, import('zod/v4/core').$strip>>;
|
|
1350
|
+
failures: import('zod').ZodArray<import('zod').ZodObject<{
|
|
1351
|
+
item: import('zod').ZodString;
|
|
1352
|
+
error: import('zod').ZodString;
|
|
1353
|
+
code: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1354
|
+
}, import('zod/v4/core').$strip>>;
|
|
1355
|
+
successCount: import('zod').ZodNumber;
|
|
1356
|
+
failureCount: import('zod').ZodNumber;
|
|
1357
|
+
};
|
|
1358
|
+
annotations: {
|
|
1359
|
+
readOnlyHint: false;
|
|
1360
|
+
destructiveHint: false;
|
|
1361
|
+
idempotentHint: false;
|
|
1362
|
+
};
|
|
1363
|
+
execute({ folders }: {
|
|
1364
|
+
folders: {
|
|
1365
|
+
name: string;
|
|
1366
|
+
workspace: string;
|
|
1367
|
+
}[];
|
|
1368
|
+
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
1369
|
+
textContent: string;
|
|
1370
|
+
structuredContent: {
|
|
1371
|
+
folders: {
|
|
1372
|
+
id: string;
|
|
1373
|
+
name: string;
|
|
1374
|
+
workspaceId: string;
|
|
1375
|
+
}[];
|
|
1376
|
+
failures: {
|
|
1377
|
+
item: string;
|
|
1378
|
+
error: string;
|
|
1379
|
+
}[];
|
|
1380
|
+
successCount: number;
|
|
1381
|
+
failureCount: number;
|
|
1382
|
+
};
|
|
1383
|
+
}>;
|
|
1384
|
+
};
|
|
1385
|
+
updateFolders: {
|
|
1386
|
+
name: "update-folders";
|
|
1387
|
+
description: string;
|
|
1388
|
+
parameters: {
|
|
1389
|
+
folders: import('zod').ZodArray<import('zod').ZodObject<{
|
|
1390
|
+
id: import('zod').ZodString;
|
|
1391
|
+
name: import('zod').ZodString;
|
|
1392
|
+
}, import('zod/v4/core').$strip>>;
|
|
1393
|
+
};
|
|
1394
|
+
outputSchema: {
|
|
1395
|
+
folders: import('zod').ZodArray<import('zod').ZodObject<{
|
|
1396
|
+
id: import('zod').ZodString;
|
|
1397
|
+
name: import('zod').ZodString;
|
|
1398
|
+
workspaceId: import('zod').ZodString;
|
|
1399
|
+
}, import('zod/v4/core').$strip>>;
|
|
1400
|
+
failures: import('zod').ZodArray<import('zod').ZodObject<{
|
|
1401
|
+
item: import('zod').ZodString;
|
|
1402
|
+
error: import('zod').ZodString;
|
|
1403
|
+
code: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1404
|
+
}, import('zod/v4/core').$strip>>;
|
|
1405
|
+
successCount: import('zod').ZodNumber;
|
|
1406
|
+
failureCount: import('zod').ZodNumber;
|
|
1407
|
+
};
|
|
1408
|
+
annotations: {
|
|
1409
|
+
readOnlyHint: false;
|
|
1410
|
+
destructiveHint: true;
|
|
1411
|
+
idempotentHint: true;
|
|
1412
|
+
};
|
|
1413
|
+
execute({ folders }: {
|
|
1414
|
+
folders: {
|
|
1415
|
+
id: string;
|
|
1416
|
+
name: string;
|
|
1417
|
+
}[];
|
|
1418
|
+
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
1419
|
+
textContent: string;
|
|
1420
|
+
structuredContent: {
|
|
1421
|
+
folders: {
|
|
1422
|
+
id: string;
|
|
1423
|
+
name: string;
|
|
1424
|
+
workspaceId: string;
|
|
1425
|
+
}[];
|
|
1426
|
+
failures: {
|
|
1427
|
+
item: string;
|
|
1428
|
+
error: string;
|
|
1429
|
+
}[];
|
|
1430
|
+
successCount: number;
|
|
1431
|
+
failureCount: number;
|
|
1432
|
+
};
|
|
1433
|
+
}>;
|
|
1434
|
+
};
|
|
1435
|
+
findFolders: {
|
|
1436
|
+
name: "find-folders";
|
|
1437
|
+
description: string;
|
|
1438
|
+
parameters: {
|
|
1439
|
+
workspace: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1440
|
+
};
|
|
1441
|
+
outputSchema: {
|
|
1442
|
+
folders: import('zod').ZodArray<import('zod').ZodObject<{
|
|
1443
|
+
id: import('zod').ZodString;
|
|
1444
|
+
name: import('zod').ZodString;
|
|
1445
|
+
workspaceId: import('zod').ZodString;
|
|
1446
|
+
}, import('zod/v4/core').$strip>>;
|
|
1447
|
+
totalCount: import('zod').ZodNumber;
|
|
1448
|
+
};
|
|
1449
|
+
annotations: {
|
|
1450
|
+
readOnlyHint: true;
|
|
1451
|
+
destructiveHint: false;
|
|
1452
|
+
idempotentHint: true;
|
|
1453
|
+
};
|
|
1454
|
+
execute({ workspace }: {
|
|
1455
|
+
workspace?: string | undefined;
|
|
1456
|
+
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
1457
|
+
textContent: string;
|
|
1458
|
+
structuredContent: {
|
|
1459
|
+
folders: {
|
|
1460
|
+
id: string;
|
|
1461
|
+
name: string;
|
|
1462
|
+
workspaceId: string;
|
|
1463
|
+
}[];
|
|
1464
|
+
totalCount: number;
|
|
1465
|
+
};
|
|
1466
|
+
}>;
|
|
1467
|
+
};
|
|
1328
1468
|
addSections: {
|
|
1329
1469
|
name: "add-sections";
|
|
1330
1470
|
description: string;
|
|
@@ -3379,8 +3519,9 @@ declare const toolRegistry: {
|
|
|
3379
3519
|
label: "label";
|
|
3380
3520
|
task: "task";
|
|
3381
3521
|
comment: "comment";
|
|
3382
|
-
reminder: "reminder";
|
|
3383
3522
|
project: "project";
|
|
3523
|
+
folder: "folder";
|
|
3524
|
+
reminder: "reminder";
|
|
3384
3525
|
section: "section";
|
|
3385
3526
|
location_reminder: "location_reminder";
|
|
3386
3527
|
}>;
|
|
@@ -3393,8 +3534,9 @@ declare const toolRegistry: {
|
|
|
3393
3534
|
label: "label";
|
|
3394
3535
|
task: "task";
|
|
3395
3536
|
comment: "comment";
|
|
3396
|
-
reminder: "reminder";
|
|
3397
3537
|
project: "project";
|
|
3538
|
+
folder: "folder";
|
|
3539
|
+
reminder: "reminder";
|
|
3398
3540
|
section: "section";
|
|
3399
3541
|
location_reminder: "location_reminder";
|
|
3400
3542
|
}>;
|
|
@@ -3408,13 +3550,13 @@ declare const toolRegistry: {
|
|
|
3408
3550
|
idempotentHint: true;
|
|
3409
3551
|
};
|
|
3410
3552
|
execute(args: {
|
|
3411
|
-
type: "filter" | "label" | "task" | "comment" | "
|
|
3553
|
+
type: "filter" | "label" | "task" | "comment" | "project" | "folder" | "reminder" | "section" | "location_reminder";
|
|
3412
3554
|
id: string;
|
|
3413
3555
|
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
3414
3556
|
textContent: string;
|
|
3415
3557
|
structuredContent: {
|
|
3416
3558
|
deletedEntity: {
|
|
3417
|
-
type: "filter" | "label" | "task" | "comment" | "
|
|
3559
|
+
type: "filter" | "label" | "task" | "comment" | "project" | "folder" | "reminder" | "section" | "location_reminder";
|
|
3418
3560
|
id: string;
|
|
3419
3561
|
};
|
|
3420
3562
|
success: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../src/tool-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../src/tool-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAqEvD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFjB,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,eAAe,EAAE,SAAS,cAAc,EAAgC,CAAA;AAE9E,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
type Failure = {
|
|
3
|
+
item: string;
|
|
4
|
+
error: string;
|
|
5
|
+
};
|
|
6
|
+
declare const addFolders: {
|
|
7
|
+
name: "add-folders";
|
|
8
|
+
description: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
workspace: z.ZodString;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
};
|
|
15
|
+
outputSchema: {
|
|
16
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
workspaceId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
22
|
+
item: z.ZodString;
|
|
23
|
+
error: z.ZodString;
|
|
24
|
+
code: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
successCount: z.ZodNumber;
|
|
27
|
+
failureCount: z.ZodNumber;
|
|
28
|
+
};
|
|
29
|
+
annotations: {
|
|
30
|
+
readOnlyHint: false;
|
|
31
|
+
destructiveHint: false;
|
|
32
|
+
idempotentHint: false;
|
|
33
|
+
};
|
|
34
|
+
execute({ folders }: {
|
|
35
|
+
folders: {
|
|
36
|
+
name: string;
|
|
37
|
+
workspace: string;
|
|
38
|
+
}[];
|
|
39
|
+
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
40
|
+
textContent: string;
|
|
41
|
+
structuredContent: {
|
|
42
|
+
folders: {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
workspaceId: string;
|
|
46
|
+
}[];
|
|
47
|
+
failures: Failure[];
|
|
48
|
+
successCount: number;
|
|
49
|
+
failureCount: number;
|
|
50
|
+
};
|
|
51
|
+
}>;
|
|
52
|
+
};
|
|
53
|
+
export { addFolders };
|
|
54
|
+
//# sourceMappingURL=add-folders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-folders.d.ts","sourceRoot":"","sources":["../../src/tools/add-folders.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA2CvB,KAAK,OAAO,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuD+C,CAAA;AAc/D,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TodoistApi } from '@todoist/sdk';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
declare const addProjects: {
|
|
3
4
|
name: "add-projects";
|
|
@@ -37,6 +38,7 @@ declare const addProjects: {
|
|
|
37
38
|
taupe: "taupe";
|
|
38
39
|
}>>, unknown>;
|
|
39
40
|
workspace: z.ZodOptional<z.ZodString>;
|
|
41
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
40
42
|
}, z.core.$strip>>;
|
|
41
43
|
};
|
|
42
44
|
outputSchema: {
|
|
@@ -100,8 +102,9 @@ declare const addProjects: {
|
|
|
100
102
|
description?: string | undefined;
|
|
101
103
|
color?: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
|
|
102
104
|
workspace?: string | undefined;
|
|
105
|
+
folderId?: string | undefined;
|
|
103
106
|
}[];
|
|
104
|
-
}, client:
|
|
107
|
+
}, client: TodoistApi): Promise<{
|
|
105
108
|
textContent: string;
|
|
106
109
|
structuredContent: {
|
|
107
110
|
projects: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-projects.d.ts","sourceRoot":"","sources":["../../src/tools/add-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"add-projects.d.ts","sourceRoot":"","sources":["../../src/tools/add-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAOH,KAAK,UAAU,EAElB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA6EvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA0EqB,MAAM;uBAAS,MAAM;;;;;;;CA8BI,CAAA;AAwL/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -8,8 +8,9 @@ declare const deleteObject: {
|
|
|
8
8
|
label: "label";
|
|
9
9
|
task: "task";
|
|
10
10
|
comment: "comment";
|
|
11
|
-
reminder: "reminder";
|
|
12
11
|
project: "project";
|
|
12
|
+
folder: "folder";
|
|
13
|
+
reminder: "reminder";
|
|
13
14
|
section: "section";
|
|
14
15
|
location_reminder: "location_reminder";
|
|
15
16
|
}>;
|
|
@@ -22,8 +23,9 @@ declare const deleteObject: {
|
|
|
22
23
|
label: "label";
|
|
23
24
|
task: "task";
|
|
24
25
|
comment: "comment";
|
|
25
|
-
reminder: "reminder";
|
|
26
26
|
project: "project";
|
|
27
|
+
folder: "folder";
|
|
28
|
+
reminder: "reminder";
|
|
27
29
|
section: "section";
|
|
28
30
|
location_reminder: "location_reminder";
|
|
29
31
|
}>;
|
|
@@ -37,13 +39,13 @@ declare const deleteObject: {
|
|
|
37
39
|
idempotentHint: true;
|
|
38
40
|
};
|
|
39
41
|
execute(args: {
|
|
40
|
-
type: "filter" | "label" | "task" | "comment" | "
|
|
42
|
+
type: "filter" | "label" | "task" | "comment" | "project" | "folder" | "reminder" | "section" | "location_reminder";
|
|
41
43
|
id: string;
|
|
42
44
|
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
43
45
|
textContent: string;
|
|
44
46
|
structuredContent: {
|
|
45
47
|
deletedEntity: {
|
|
46
|
-
type: "filter" | "label" | "task" | "comment" | "
|
|
48
|
+
type: "filter" | "label" | "task" | "comment" | "project" | "folder" | "reminder" | "section" | "location_reminder";
|
|
47
49
|
id: string;
|
|
48
50
|
};
|
|
49
51
|
success: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-object.d.ts","sourceRoot":"","sources":["../../src/tools/delete-object.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"delete-object.d.ts","sourceRoot":"","sources":["../../src/tools/delete-object.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAgCvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD6C,CAAA;AAE/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { TodoistApi } from '@todoist/sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
declare const findFolders: {
|
|
4
|
+
name: "find-folders";
|
|
5
|
+
description: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
8
|
+
};
|
|
9
|
+
outputSchema: {
|
|
10
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
workspaceId: z.ZodString;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
totalCount: z.ZodNumber;
|
|
16
|
+
};
|
|
17
|
+
annotations: {
|
|
18
|
+
readOnlyHint: true;
|
|
19
|
+
destructiveHint: false;
|
|
20
|
+
idempotentHint: true;
|
|
21
|
+
};
|
|
22
|
+
execute({ workspace }: {
|
|
23
|
+
workspace?: string | undefined;
|
|
24
|
+
}, client: TodoistApi): Promise<{
|
|
25
|
+
textContent: string;
|
|
26
|
+
structuredContent: {
|
|
27
|
+
folders: {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
workspaceId: string;
|
|
31
|
+
}[];
|
|
32
|
+
totalCount: number;
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
};
|
|
36
|
+
export { findFolders };
|
|
37
|
+
//# sourceMappingURL=find-folders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-folders.d.ts","sourceRoot":"","sources":["../../src/tools/find-folders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA8C,UAAU,EAAE,MAAM,cAAc,CAAA;AAC1F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA8BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwB8C,CAAA;AAwC/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -12,6 +12,7 @@ declare const findProjects: {
|
|
|
12
12
|
active: "active";
|
|
13
13
|
archived: "archived";
|
|
14
14
|
}>>;
|
|
15
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
15
16
|
includeUnjoined: z.ZodOptional<z.ZodBoolean>;
|
|
16
17
|
};
|
|
17
18
|
outputSchema: {
|
|
@@ -73,6 +74,7 @@ declare const findProjects: {
|
|
|
73
74
|
searchText?: string | undefined;
|
|
74
75
|
cursor?: string | undefined;
|
|
75
76
|
archivedStatus?: "all" | "active" | "archived" | undefined;
|
|
77
|
+
folderId?: string | undefined;
|
|
76
78
|
includeUnjoined?: boolean | undefined;
|
|
77
79
|
}, client: TodoistApi): Promise<{
|
|
78
80
|
textContent: string;
|
|
@@ -100,6 +102,7 @@ declare const findProjects: {
|
|
|
100
102
|
searchText?: string | undefined;
|
|
101
103
|
cursor?: string | undefined;
|
|
102
104
|
archivedStatus?: "all" | "active" | "archived" | undefined;
|
|
105
|
+
folderId?: string | undefined;
|
|
103
106
|
includeUnjoined?: boolean | undefined;
|
|
104
107
|
};
|
|
105
108
|
unjoinedProjects: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-projects.d.ts","sourceRoot":"","sources":["../../src/tools/find-projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,UAAU,EAA2B,MAAM,cAAc,CAAA;AAChF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"find-projects.d.ts","sourceRoot":"","sources":["../../src/tools/find-projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,UAAU,EAA2B,MAAM,cAAc,CAAA;AAChF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAsFvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyE6C,CAAA;AAsL/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
type Failure = {
|
|
3
|
+
item: string;
|
|
4
|
+
error: string;
|
|
5
|
+
};
|
|
6
|
+
declare const updateFolders: {
|
|
7
|
+
name: "update-folders";
|
|
8
|
+
description: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
};
|
|
15
|
+
outputSchema: {
|
|
16
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
workspaceId: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
22
|
+
item: z.ZodString;
|
|
23
|
+
error: z.ZodString;
|
|
24
|
+
code: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
successCount: z.ZodNumber;
|
|
27
|
+
failureCount: z.ZodNumber;
|
|
28
|
+
};
|
|
29
|
+
annotations: {
|
|
30
|
+
readOnlyHint: false;
|
|
31
|
+
destructiveHint: true;
|
|
32
|
+
idempotentHint: true;
|
|
33
|
+
};
|
|
34
|
+
execute({ folders }: {
|
|
35
|
+
folders: {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
}[];
|
|
39
|
+
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
40
|
+
textContent: string;
|
|
41
|
+
structuredContent: {
|
|
42
|
+
folders: {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
workspaceId: string;
|
|
46
|
+
}[];
|
|
47
|
+
failures: Failure[];
|
|
48
|
+
successCount: number;
|
|
49
|
+
failureCount: number;
|
|
50
|
+
};
|
|
51
|
+
}>;
|
|
52
|
+
};
|
|
53
|
+
export { updateFolders };
|
|
54
|
+
//# sourceMappingURL=update-folders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-folders.d.ts","sourceRoot":"","sources":["../../src/tools/update-folders.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAoCvB,KAAK,OAAO,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9C,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC4C,CAAA;AAY/D,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -36,6 +36,7 @@ declare const updateProjects: {
|
|
|
36
36
|
grey: "grey";
|
|
37
37
|
taupe: "taupe";
|
|
38
38
|
}>>, unknown>;
|
|
39
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
39
40
|
}, z.core.$strip>>;
|
|
40
41
|
};
|
|
41
42
|
outputSchema: {
|
|
@@ -101,6 +102,7 @@ declare const updateProjects: {
|
|
|
101
102
|
viewStyle?: "list" | "board" | "calendar" | "table" | undefined;
|
|
102
103
|
description?: string | undefined;
|
|
103
104
|
color?: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
|
|
105
|
+
folderId?: string | undefined;
|
|
104
106
|
}[];
|
|
105
107
|
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
106
108
|
textContent: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-projects.d.ts","sourceRoot":"","sources":["../../src/tools/update-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"update-projects.d.ts","sourceRoot":"","sources":["../../src/tools/update-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAqEvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAyCkB,MAAM;uBAAS,MAAM;;;;;;;;;CA8CI,CAAA;AA4C/D,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment-validator.d.ts","sourceRoot":"","sources":["../../src/utils/assignment-validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,oBAAoB,CAAA;AAEpE,eAAO,MAAM,mBAAmB;;;;;;;;CAQtB,CAAA;AAEV,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,C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,EAAE,MAAM,CAAA;YACvB,iBAAiB,EAAE,MAAM,CAAA;SAC5B,CAAA;QACD,eAAe,EAAE,MAAM,EAAE,CAAA;KAC5B,CAAC;CAqFL;AAGD,eAAO,MAAM,mBAAmB,qBAA4B,CAAA"}
|
|
@@ -23,6 +23,8 @@ export declare const ApiLimits: {
|
|
|
23
23
|
readonly PROJECTS_MAX: 200;
|
|
24
24
|
/** Maximum limit for section listings */
|
|
25
25
|
readonly SECTIONS_MAX: 200;
|
|
26
|
+
/** Page size for reading a workspace's folders */
|
|
27
|
+
readonly FOLDERS_MAX: 200;
|
|
26
28
|
/** Batch size for fetching all tasks in a project */
|
|
27
29
|
readonly TASKS_BATCH_SIZE: 50;
|
|
28
30
|
/** Maximum number of direct children returned when children are requested alongside an object */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,gCAAgC;AAChC,eAAO,MAAM,WAAW,QAAiB,CAAA;AACzC,2CAA2C;AAC3C,eAAO,MAAM,WAAW,QAAyB,CAAA;AAGjD,eAAO,MAAM,SAAS;IAClB,sCAAsC;;IAEtC,wDAAwD;;IAExD,wCAAwC;;IAExC,wCAAwC;;IAExC,yCAAyC;;IAEzC,yCAAyC;;IAEzC,yCAAyC;;IAEzC,qDAAqD;;IAErD,iGAAiG;;IAEjG,yCAAyC;;IAEzC,2DAA2D;;IAE3D,0DAA0D;;IAE1D,8CAA8C;;IAE9C,gEAAgE;;IAEhE,uCAAuC;;IAEvC,uCAAuC;;IAEvC,0CAA0C;;IAE1C,mDAAmD;;IAEnD,wFAAwF;;CAElF,CAAA;AAGV,eAAO,MAAM,aAAa;IACtB,oEAAoE;;IAEpE,gDAAgD;;CAE1C,CAAA;AAGV,eAAO,MAAM,SAAS;IAClB,2DAA2D;;CAErD,CAAA;AAGV,eAAO,MAAM,WAAW;IACpB,oEAAoE;;IAEpE,6FAA6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from '@todoist/sdk';
|
|
1
|
+
import { Folder, Section } from '@todoist/sdk';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
/**
|
|
4
4
|
* Schema for a mapped task object returned by tools
|
|
@@ -85,6 +85,17 @@ type SectionSummary = z.infer<typeof SectionSchema>;
|
|
|
85
85
|
* `undefined`.
|
|
86
86
|
*/
|
|
87
87
|
declare function toSectionSummary({ id, name, sectionOrder, description }: Section): SectionSummary;
|
|
88
|
+
/**
|
|
89
|
+
* Schema for a workspace folder returned by tools
|
|
90
|
+
*/
|
|
91
|
+
declare const FolderSchema: z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
workspaceId: z.ZodString;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
type FolderSummary = z.infer<typeof FolderSchema>;
|
|
97
|
+
/** Strip an SDK Folder down to the fields declared in FolderSchema. */
|
|
98
|
+
declare function toFolderSummary({ id, name, workspaceId }: Folder): FolderSummary;
|
|
88
99
|
/**
|
|
89
100
|
* Schema for a comment object returned by tools
|
|
90
101
|
*/
|
|
@@ -205,5 +216,5 @@ declare const FailureSchema: z.ZodObject<{
|
|
|
205
216
|
error: z.ZodString;
|
|
206
217
|
code: z.ZodOptional<z.ZodString>;
|
|
207
218
|
}, z.core.$strip>;
|
|
208
|
-
export { ActivityEventSchema, CollaboratorSchema, CommentSchema, FailureSchema, LabelSchema, ProjectSchema, ReminderSchema, SectionSchema, type SectionSummary, TaskSchema, toSectionSummary, };
|
|
219
|
+
export { ActivityEventSchema, CollaboratorSchema, CommentSchema, FailureSchema, FolderSchema, type FolderSummary, LabelSchema, ProjectSchema, ReminderSchema, SectionSchema, type SectionSummary, TaskSchema, toFolderSummary, toSectionSummary, };
|
|
209
220
|
//# sourceMappingURL=output-schemas.d.ts.map
|