@todoist/mcp 17.3.11 → 17.3.12
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 +18 -18
- package/dist/index.js +3 -3
- package/dist/main-http.js +2 -2
- package/dist/main.js +1 -1
- package/dist/mcp-helpers.d.ts.map +1 -1
- package/dist/{mcp-server-Cdr0tppQ.js → mcp-server-CKDyBnNG.js} +1846 -1779
- package/dist/{require-valid-todoist-token-BQDGu0ju.js → require-valid-todoist-token-CgCTORYp.js} +1 -1
- package/dist/tool-execution-error.d.ts +9 -0
- package/dist/tool-execution-error.d.ts.map +1 -1
- package/dist/tool-helpers.d.ts +3 -3
- package/dist/tool-registry.d.ts +18 -18
- package/dist/tools/add-reminders.d.ts +5 -5
- package/dist/tools/add-tasks.d.ts.map +1 -1
- package/dist/tools/fetch-object.d.ts +3 -3
- package/dist/tools/find-reminders.d.ts +5 -5
- package/dist/tools/update-reminders.d.ts +5 -5
- package/dist/tools/update-tasks.d.ts.map +1 -1
- package/dist/utils/assignment-validator.d.ts +1 -0
- package/dist/utils/assignment-validator.d.ts.map +1 -1
- package/dist/utils/batch-failures.d.ts +2 -0
- package/dist/utils/batch-failures.d.ts.map +1 -1
- package/dist/utils/children.d.ts +4 -4
- package/dist/utils/output-schemas.d.ts +2 -2
- package/dist/utils/user-resolver.d.ts +3 -0
- package/dist/utils/user-resolver.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/{require-valid-todoist-token-BQDGu0ju.js → require-valid-todoist-token-CgCTORYp.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { validateBearerToken as _, createTokenVerdictCache as p, buildBearerChallenge as u } from "@todoist/mcp-core/host";
|
|
2
|
-
import { a2 as v, a3 as A } from "./mcp-server-
|
|
2
|
+
import { a2 as v, a3 as A } from "./mcp-server-CKDyBnNG.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.
|
|
@@ -10,6 +10,15 @@ export declare class DueStringParseError extends Error {
|
|
|
10
10
|
export declare class ProjectAccessError extends Error {
|
|
11
11
|
constructor(message: string);
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* A reference to a person that fits more than one of them. The message names
|
|
15
|
+
* who it could mean and how to pick one, so it is shown as written rather than
|
|
16
|
+
* truncated: cut short, it could end partway through a user ID that the model
|
|
17
|
+
* then retries with.
|
|
18
|
+
*/
|
|
19
|
+
export declare class AmbiguousUserError extends Error {
|
|
20
|
+
constructor(message: string);
|
|
21
|
+
}
|
|
13
22
|
/**
|
|
14
23
|
* Compact single-line variant of {@link formatToolExecutionError} for batch
|
|
15
24
|
* tools that report per-item failures. Unlike `error.message` (which for SDK
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-execution-error.d.ts","sourceRoot":"","sources":["../src/tool-execution-error.ts"],"names":[],"mappings":"AAwiBA,qBAAa,mBAAoB,SAAQ,KAAK;gBAC9B,OAAO,EAAE,MAAM;CAI9B;AAED;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;gBAC7B,OAAO,EAAE,MAAM;CAI9B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAG3D;AAED,4EAA4E;AAC5E,KAAK,yBAAyB,GAAG;IAC7B,8EAA8E;IAC9E,OAAO,EAAE,MAAM,CAAA;IACf,6EAA6E;IAC7E,IAAI,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CACvC,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,yBAAyB,
|
|
1
|
+
{"version":3,"file":"tool-execution-error.d.ts","sourceRoot":"","sources":["../src/tool-execution-error.ts"],"names":[],"mappings":"AAwiBA,qBAAa,mBAAoB,SAAQ,KAAK;gBAC9B,OAAO,EAAE,MAAM;CAI9B;AAED;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;gBAC7B,OAAO,EAAE,MAAM;CAI9B;AAED;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;gBAC7B,OAAO,EAAE,MAAM;CAI9B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAG3D;AAED,4EAA4E;AAC5E,KAAK,yBAAyB,GAAG;IAC7B,8EAA8E;IAC9E,OAAO,EAAE,MAAM,CAAA;IACf,6EAA6E;IAC7E,IAAI,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CACvC,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,yBAAyB,CA2BhF;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACrC,KAAK,EAAE,OAAO,EACd,EACI,WAAW,EACX,SAAS,EACT,YAAY,GACf,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GACjF,MAAM,GAAG,SAAS,CAmCpB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAmB/D"}
|
package/dist/tool-helpers.d.ts
CHANGED
|
@@ -312,7 +312,7 @@ declare function mapReminder(reminder: Reminder): {
|
|
|
312
312
|
isUrgent: boolean | undefined;
|
|
313
313
|
id: string;
|
|
314
314
|
taskId: string;
|
|
315
|
-
type: "
|
|
315
|
+
type: "relative" | "absolute" | "location";
|
|
316
316
|
notifyUid: string;
|
|
317
317
|
} | {
|
|
318
318
|
due: {
|
|
@@ -325,7 +325,7 @@ declare function mapReminder(reminder: Reminder): {
|
|
|
325
325
|
isUrgent: boolean | undefined;
|
|
326
326
|
id: string;
|
|
327
327
|
taskId: string;
|
|
328
|
-
type: "
|
|
328
|
+
type: "relative" | "absolute" | "location";
|
|
329
329
|
notifyUid: string;
|
|
330
330
|
} | {
|
|
331
331
|
name: string;
|
|
@@ -335,7 +335,7 @@ declare function mapReminder(reminder: Reminder): {
|
|
|
335
335
|
radius: number;
|
|
336
336
|
id: string;
|
|
337
337
|
taskId: string;
|
|
338
|
-
type: "
|
|
338
|
+
type: "relative" | "absolute" | "location";
|
|
339
339
|
notifyUid: string;
|
|
340
340
|
};
|
|
341
341
|
/**
|
package/dist/tool-registry.d.ts
CHANGED
|
@@ -2084,9 +2084,9 @@ declare const toolRegistry: {
|
|
|
2084
2084
|
id: import('zod').ZodString;
|
|
2085
2085
|
taskId: import('zod').ZodString;
|
|
2086
2086
|
type: import('zod').ZodEnum<{
|
|
2087
|
-
location: "location";
|
|
2088
|
-
absolute: "absolute";
|
|
2089
2087
|
relative: "relative";
|
|
2088
|
+
absolute: "absolute";
|
|
2089
|
+
location: "location";
|
|
2090
2090
|
}>;
|
|
2091
2091
|
notifyUid: import('zod').ZodOptional<import('zod').ZodString>;
|
|
2092
2092
|
minuteOffset: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
@@ -2169,7 +2169,7 @@ declare const toolRegistry: {
|
|
|
2169
2169
|
isUrgent: boolean | undefined;
|
|
2170
2170
|
id: string;
|
|
2171
2171
|
taskId: string;
|
|
2172
|
-
type: "
|
|
2172
|
+
type: "relative" | "absolute" | "location";
|
|
2173
2173
|
notifyUid: string;
|
|
2174
2174
|
} | {
|
|
2175
2175
|
due: {
|
|
@@ -2182,7 +2182,7 @@ declare const toolRegistry: {
|
|
|
2182
2182
|
isUrgent: boolean | undefined;
|
|
2183
2183
|
id: string;
|
|
2184
2184
|
taskId: string;
|
|
2185
|
-
type: "
|
|
2185
|
+
type: "relative" | "absolute" | "location";
|
|
2186
2186
|
notifyUid: string;
|
|
2187
2187
|
} | {
|
|
2188
2188
|
name: string;
|
|
@@ -2192,7 +2192,7 @@ declare const toolRegistry: {
|
|
|
2192
2192
|
radius: number;
|
|
2193
2193
|
id: string;
|
|
2194
2194
|
taskId: string;
|
|
2195
|
-
type: "
|
|
2195
|
+
type: "relative" | "absolute" | "location";
|
|
2196
2196
|
notifyUid: string;
|
|
2197
2197
|
})[];
|
|
2198
2198
|
totalCount: number;
|
|
@@ -2221,9 +2221,9 @@ declare const toolRegistry: {
|
|
|
2221
2221
|
id: import('zod').ZodString;
|
|
2222
2222
|
taskId: import('zod').ZodString;
|
|
2223
2223
|
type: import('zod').ZodEnum<{
|
|
2224
|
-
location: "location";
|
|
2225
|
-
absolute: "absolute";
|
|
2226
2224
|
relative: "relative";
|
|
2225
|
+
absolute: "absolute";
|
|
2226
|
+
location: "location";
|
|
2227
2227
|
}>;
|
|
2228
2228
|
notifyUid: import('zod').ZodOptional<import('zod').ZodString>;
|
|
2229
2229
|
minuteOffset: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
@@ -2272,7 +2272,7 @@ declare const toolRegistry: {
|
|
|
2272
2272
|
isUrgent: boolean | undefined;
|
|
2273
2273
|
id: string;
|
|
2274
2274
|
taskId: string;
|
|
2275
|
-
type: "
|
|
2275
|
+
type: "relative" | "absolute" | "location";
|
|
2276
2276
|
notifyUid: string;
|
|
2277
2277
|
} | {
|
|
2278
2278
|
due: {
|
|
@@ -2285,7 +2285,7 @@ declare const toolRegistry: {
|
|
|
2285
2285
|
isUrgent: boolean | undefined;
|
|
2286
2286
|
id: string;
|
|
2287
2287
|
taskId: string;
|
|
2288
|
-
type: "
|
|
2288
|
+
type: "relative" | "absolute" | "location";
|
|
2289
2289
|
notifyUid: string;
|
|
2290
2290
|
} | {
|
|
2291
2291
|
name: string;
|
|
@@ -2295,7 +2295,7 @@ declare const toolRegistry: {
|
|
|
2295
2295
|
radius: number;
|
|
2296
2296
|
id: string;
|
|
2297
2297
|
taskId: string;
|
|
2298
|
-
type: "
|
|
2298
|
+
type: "relative" | "absolute" | "location";
|
|
2299
2299
|
notifyUid: string;
|
|
2300
2300
|
})[];
|
|
2301
2301
|
searchType: string;
|
|
@@ -2352,9 +2352,9 @@ declare const toolRegistry: {
|
|
|
2352
2352
|
id: import('zod').ZodString;
|
|
2353
2353
|
taskId: import('zod').ZodString;
|
|
2354
2354
|
type: import('zod').ZodEnum<{
|
|
2355
|
-
location: "location";
|
|
2356
|
-
absolute: "absolute";
|
|
2357
2355
|
relative: "relative";
|
|
2356
|
+
absolute: "absolute";
|
|
2357
|
+
location: "location";
|
|
2358
2358
|
}>;
|
|
2359
2359
|
notifyUid: import('zod').ZodOptional<import('zod').ZodString>;
|
|
2360
2360
|
minuteOffset: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
@@ -2438,7 +2438,7 @@ declare const toolRegistry: {
|
|
|
2438
2438
|
isUrgent: boolean | undefined;
|
|
2439
2439
|
id: string;
|
|
2440
2440
|
taskId: string;
|
|
2441
|
-
type: "
|
|
2441
|
+
type: "relative" | "absolute" | "location";
|
|
2442
2442
|
notifyUid: string;
|
|
2443
2443
|
} | {
|
|
2444
2444
|
due: {
|
|
@@ -2451,7 +2451,7 @@ declare const toolRegistry: {
|
|
|
2451
2451
|
isUrgent: boolean | undefined;
|
|
2452
2452
|
id: string;
|
|
2453
2453
|
taskId: string;
|
|
2454
|
-
type: "
|
|
2454
|
+
type: "relative" | "absolute" | "location";
|
|
2455
2455
|
notifyUid: string;
|
|
2456
2456
|
} | {
|
|
2457
2457
|
name: string;
|
|
@@ -2461,7 +2461,7 @@ declare const toolRegistry: {
|
|
|
2461
2461
|
radius: number;
|
|
2462
2462
|
id: string;
|
|
2463
2463
|
taskId: string;
|
|
2464
|
-
type: "
|
|
2464
|
+
type: "relative" | "absolute" | "location";
|
|
2465
2465
|
notifyUid: string;
|
|
2466
2466
|
})[];
|
|
2467
2467
|
totalCount: number;
|
|
@@ -3709,10 +3709,10 @@ declare const toolRegistry: {
|
|
|
3709
3709
|
outputSchema: {
|
|
3710
3710
|
childCount: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
3711
3711
|
children: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodUnion<readonly [import('zod').ZodObject<{
|
|
3712
|
-
content: import('zod').ZodString;
|
|
3713
3712
|
id: import('zod').ZodString;
|
|
3714
|
-
|
|
3713
|
+
content: import('zod').ZodString;
|
|
3715
3714
|
dueDate: import('zod').ZodOptional<import('zod').ZodString>;
|
|
3715
|
+
checked: import('zod').ZodBoolean;
|
|
3716
3716
|
hasChildren: import('zod').ZodBoolean;
|
|
3717
3717
|
}, import('zod/v4/core').$strip>, import('zod').ZodObject<{
|
|
3718
3718
|
name: import('zod').ZodString;
|
|
@@ -3861,8 +3861,8 @@ declare const toolRegistry: {
|
|
|
3861
3861
|
structuredContent: {
|
|
3862
3862
|
childCount?: number;
|
|
3863
3863
|
children?: ({
|
|
3864
|
-
content: string;
|
|
3865
3864
|
id: string;
|
|
3865
|
+
content: string;
|
|
3866
3866
|
checked: boolean;
|
|
3867
3867
|
hasChildren: boolean;
|
|
3868
3868
|
dueDate?: string | undefined;
|
|
@@ -47,9 +47,9 @@ declare const addReminders: {
|
|
|
47
47
|
id: z.ZodString;
|
|
48
48
|
taskId: z.ZodString;
|
|
49
49
|
type: z.ZodEnum<{
|
|
50
|
-
location: "location";
|
|
51
|
-
absolute: "absolute";
|
|
52
50
|
relative: "relative";
|
|
51
|
+
absolute: "absolute";
|
|
52
|
+
location: "location";
|
|
53
53
|
}>;
|
|
54
54
|
notifyUid: z.ZodOptional<z.ZodString>;
|
|
55
55
|
minuteOffset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -132,7 +132,7 @@ declare const addReminders: {
|
|
|
132
132
|
isUrgent: boolean | undefined;
|
|
133
133
|
id: string;
|
|
134
134
|
taskId: string;
|
|
135
|
-
type: "
|
|
135
|
+
type: "relative" | "absolute" | "location";
|
|
136
136
|
notifyUid: string;
|
|
137
137
|
} | {
|
|
138
138
|
due: {
|
|
@@ -145,7 +145,7 @@ declare const addReminders: {
|
|
|
145
145
|
isUrgent: boolean | undefined;
|
|
146
146
|
id: string;
|
|
147
147
|
taskId: string;
|
|
148
|
-
type: "
|
|
148
|
+
type: "relative" | "absolute" | "location";
|
|
149
149
|
notifyUid: string;
|
|
150
150
|
} | {
|
|
151
151
|
name: string;
|
|
@@ -155,7 +155,7 @@ declare const addReminders: {
|
|
|
155
155
|
radius: number;
|
|
156
156
|
id: string;
|
|
157
157
|
taskId: string;
|
|
158
|
-
type: "
|
|
158
|
+
type: "relative" | "absolute" | "location";
|
|
159
159
|
notifyUid: string;
|
|
160
160
|
})[];
|
|
161
161
|
totalCount: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/add-tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAA8C,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAC1F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"add-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/add-tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAA8C,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAC1F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA6BvB,QAAA,MAAM,uBAAuB,KAAyC,CAAA;AAgEtE,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiEiD,CAAA;AAkV/D,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -15,10 +15,10 @@ declare const fetchObject: {
|
|
|
15
15
|
outputSchema: {
|
|
16
16
|
childCount: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
18
|
-
content: z.ZodString;
|
|
19
18
|
id: z.ZodString;
|
|
20
|
-
|
|
19
|
+
content: z.ZodString;
|
|
21
20
|
dueDate: z.ZodOptional<z.ZodString>;
|
|
21
|
+
checked: z.ZodBoolean;
|
|
22
22
|
hasChildren: z.ZodBoolean;
|
|
23
23
|
}, z.core.$strip>, z.ZodObject<{
|
|
24
24
|
name: z.ZodString;
|
|
@@ -167,8 +167,8 @@ declare const fetchObject: {
|
|
|
167
167
|
structuredContent: {
|
|
168
168
|
childCount?: number;
|
|
169
169
|
children?: ({
|
|
170
|
-
content: string;
|
|
171
170
|
id: string;
|
|
171
|
+
content: string;
|
|
172
172
|
checked: boolean;
|
|
173
173
|
hasChildren: boolean;
|
|
174
174
|
dueDate?: string | undefined;
|
|
@@ -12,9 +12,9 @@ declare const findReminders: {
|
|
|
12
12
|
id: z.ZodString;
|
|
13
13
|
taskId: z.ZodString;
|
|
14
14
|
type: z.ZodEnum<{
|
|
15
|
-
location: "location";
|
|
16
|
-
absolute: "absolute";
|
|
17
15
|
relative: "relative";
|
|
16
|
+
absolute: "absolute";
|
|
17
|
+
location: "location";
|
|
18
18
|
}>;
|
|
19
19
|
notifyUid: z.ZodOptional<z.ZodString>;
|
|
20
20
|
minuteOffset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -63,7 +63,7 @@ declare const findReminders: {
|
|
|
63
63
|
isUrgent: boolean | undefined;
|
|
64
64
|
id: string;
|
|
65
65
|
taskId: string;
|
|
66
|
-
type: "
|
|
66
|
+
type: "relative" | "absolute" | "location";
|
|
67
67
|
notifyUid: string;
|
|
68
68
|
} | {
|
|
69
69
|
due: {
|
|
@@ -76,7 +76,7 @@ declare const findReminders: {
|
|
|
76
76
|
isUrgent: boolean | undefined;
|
|
77
77
|
id: string;
|
|
78
78
|
taskId: string;
|
|
79
|
-
type: "
|
|
79
|
+
type: "relative" | "absolute" | "location";
|
|
80
80
|
notifyUid: string;
|
|
81
81
|
} | {
|
|
82
82
|
name: string;
|
|
@@ -86,7 +86,7 @@ declare const findReminders: {
|
|
|
86
86
|
radius: number;
|
|
87
87
|
id: string;
|
|
88
88
|
taskId: string;
|
|
89
|
-
type: "
|
|
89
|
+
type: "relative" | "absolute" | "location";
|
|
90
90
|
notifyUid: string;
|
|
91
91
|
})[];
|
|
92
92
|
searchType: string;
|
|
@@ -47,9 +47,9 @@ declare const updateReminders: {
|
|
|
47
47
|
id: z.ZodString;
|
|
48
48
|
taskId: z.ZodString;
|
|
49
49
|
type: z.ZodEnum<{
|
|
50
|
-
location: "location";
|
|
51
|
-
absolute: "absolute";
|
|
52
50
|
relative: "relative";
|
|
51
|
+
absolute: "absolute";
|
|
52
|
+
location: "location";
|
|
53
53
|
}>;
|
|
54
54
|
notifyUid: z.ZodOptional<z.ZodString>;
|
|
55
55
|
minuteOffset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -133,7 +133,7 @@ declare const updateReminders: {
|
|
|
133
133
|
isUrgent: boolean | undefined;
|
|
134
134
|
id: string;
|
|
135
135
|
taskId: string;
|
|
136
|
-
type: "
|
|
136
|
+
type: "relative" | "absolute" | "location";
|
|
137
137
|
notifyUid: string;
|
|
138
138
|
} | {
|
|
139
139
|
due: {
|
|
@@ -146,7 +146,7 @@ declare const updateReminders: {
|
|
|
146
146
|
isUrgent: boolean | undefined;
|
|
147
147
|
id: string;
|
|
148
148
|
taskId: string;
|
|
149
|
-
type: "
|
|
149
|
+
type: "relative" | "absolute" | "location";
|
|
150
150
|
notifyUid: string;
|
|
151
151
|
} | {
|
|
152
152
|
name: string;
|
|
@@ -156,7 +156,7 @@ declare const updateReminders: {
|
|
|
156
156
|
radius: number;
|
|
157
157
|
id: string;
|
|
158
158
|
taskId: string;
|
|
159
|
-
type: "
|
|
159
|
+
type: "relative" | "absolute" | "location";
|
|
160
160
|
notifyUid: string;
|
|
161
161
|
})[];
|
|
162
162
|
totalCount: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/update-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoC,UAAU,EAAkB,MAAM,cAAc,CAAA;AAChG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAkMvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAiOW,MAAM;uBAAS,MAAM;uBAAS,MAAM;;;;;;;;;;CARD,CAAA;
|
|
1
|
+
{"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/update-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoC,UAAU,EAAkB,MAAM,cAAc,CAAA;AAChG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAkMvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAiOW,MAAM;uBAAS,MAAM;uBAAS,MAAM;;;;;;;;;;CARD,CAAA;AA+f/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -3,6 +3,7 @@ import { Project } from '../tool-helpers.js';
|
|
|
3
3
|
import { ResolvedUser } from './user-resolver.js';
|
|
4
4
|
export declare const AssignmentErrorType: {
|
|
5
5
|
readonly USER_NOT_FOUND: "USER_NOT_FOUND";
|
|
6
|
+
readonly USER_AMBIGUOUS: "USER_AMBIGUOUS";
|
|
6
7
|
readonly USER_NOT_COLLABORATOR: "USER_NOT_COLLABORATOR";
|
|
7
8
|
readonly PROJECT_NOT_SHARED: "PROJECT_NOT_SHARED";
|
|
8
9
|
readonly TASK_NOT_ACCESSIBLE: "TASK_NOT_ACCESSIBLE";
|
|
@@ -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;
|
|
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,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,oBAAoB,CAAA;AAEpE,eAAO,MAAM,mBAAmB;;;;;;;;;CAStB,CAAA;AAEV,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAA;AAEhG,MAAM,MAAM,eAAe,GAAG;IAC1B,IAAI,EAAE,mBAAmB,CAAA;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,KAAK,CAAC,EAAE,eAAe,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;;OAGG;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KAC5B,CAAC;CAqFL;AAGD,eAAO,MAAM,mBAAmB,qBAA4B,CAAA"}
|
|
@@ -23,6 +23,8 @@ type SettledBatch<Item, Value> = {
|
|
|
23
23
|
* reject a whole batch and the explanation would otherwise repeat on every item.
|
|
24
24
|
*/
|
|
25
25
|
export declare function partitionSettled<Item, Value>(items: ReadonlyArray<Item>, settled: ReadonlyArray<PromiseSettledResult<Value>>, describe: (item: Item, index: number) => string): SettledBatch<Item, Value>;
|
|
26
|
+
/** `text` with everything it quotes redacted, for a log line. */
|
|
27
|
+
export declare function redactQuotedText(text: string): string;
|
|
26
28
|
/**
|
|
27
29
|
* Records the items a batch tool could not act on.
|
|
28
30
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-failures.d.ts","sourceRoot":"","sources":["../../src/utils/batch-failures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAG5B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C,KAAK,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEjD,KAAK,YAAY,CAAC,IAAI,EAAE,KAAK,IAAI;IAC7B,oFAAoF;IACpF,SAAS,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC,CAAA;IAC7D,6DAA6D;IAC7D,QAAQ,EAAE,YAAY,EAAE,CAAA;CAC3B,CAAA;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,EACxC,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,EAC1B,OAAO,EAAE,aAAa,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,EACnD,QAAQ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AAC,CAwB3B;AAWD,iEAAiE;AACjE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAC5B,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,aAAa,CAAC,YAAY,CAAC,EACrC,OAAO,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,GACxC,IAAI,CAkBN"}
|
package/dist/utils/children.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { TodoistApi } from '@todoist/sdk';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { Project } from '../tool-helpers.js';
|
|
4
4
|
declare const ChildTaskSchema: z.ZodObject<{
|
|
5
|
-
content: z.ZodString;
|
|
6
5
|
id: z.ZodString;
|
|
7
|
-
|
|
6
|
+
content: z.ZodString;
|
|
8
7
|
dueDate: z.ZodOptional<z.ZodString>;
|
|
8
|
+
checked: z.ZodBoolean;
|
|
9
9
|
hasChildren: z.ZodBoolean;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const ChildProjectSchema: z.ZodObject<{
|
|
@@ -20,10 +20,10 @@ declare const ChildProjectSchema: z.ZodObject<{
|
|
|
20
20
|
declare const ChildrenOutputSchema: {
|
|
21
21
|
childCount: z.ZodOptional<z.ZodNumber>;
|
|
22
22
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
23
|
-
content: z.ZodString;
|
|
24
23
|
id: z.ZodString;
|
|
25
|
-
|
|
24
|
+
content: z.ZodString;
|
|
26
25
|
dueDate: z.ZodOptional<z.ZodString>;
|
|
26
|
+
checked: z.ZodBoolean;
|
|
27
27
|
hasChildren: z.ZodBoolean;
|
|
28
28
|
}, z.core.$strip>, z.ZodObject<{
|
|
29
29
|
name: z.ZodString;
|
|
@@ -186,9 +186,9 @@ declare const ReminderSchema: z.ZodObject<{
|
|
|
186
186
|
id: z.ZodString;
|
|
187
187
|
taskId: z.ZodString;
|
|
188
188
|
type: z.ZodEnum<{
|
|
189
|
-
location: "location";
|
|
190
|
-
absolute: "absolute";
|
|
191
189
|
relative: "relative";
|
|
190
|
+
absolute: "absolute";
|
|
191
|
+
location: "location";
|
|
192
192
|
}>;
|
|
193
193
|
notifyUid: z.ZodOptional<z.ZodString>;
|
|
194
194
|
minuteOffset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -30,8 +30,11 @@ export declare class UserResolver {
|
|
|
30
30
|
/**
|
|
31
31
|
* Resolve a user name or ID to a user ID by looking up collaborators across all shared projects.
|
|
32
32
|
* Supports exact name matches, partial matches, email matches, and the "me" keyword.
|
|
33
|
+
*
|
|
34
|
+
* @throws AmbiguousUserError when a partial name or email fits more than one person
|
|
33
35
|
*/
|
|
34
36
|
resolveUser(client: TodoistApi, nameOrId: string): Promise<ResolvedUser | null>;
|
|
37
|
+
private matchUser;
|
|
35
38
|
/**
|
|
36
39
|
* Resolves a user among one project's collaborators, matching only an ID, a
|
|
37
40
|
* full name or an email exactly. Returns null for anything else, including
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-resolver.d.ts","sourceRoot":"","sources":["../../src/utils/user-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,UAAU,EAElB,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"user-resolver.d.ts","sourceRoot":"","sources":["../../src/utils/user-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,UAAU,EAElB,MAAM,cAAc,CAAA;AAKrB,MAAM,MAAM,YAAY,GAAG;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,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