@perrylink/dsh-ticktick 0.1.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/CHANGELOG.md +24 -0
- package/LICENSE +201 -0
- package/README.es.md +41 -0
- package/README.hi.md +33 -0
- package/README.md +111 -0
- package/README.pt.md +41 -0
- package/README.zh.md +111 -0
- package/cordis.patch.yml +35 -0
- package/lib/client.js +6233 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +1349 -0
- package/lib/typert.host.js +26 -0
- package/lib/types/client/TicktickAction.d.ts +29 -0
- package/lib/types/client/TicktickAction.d.ts.map +1 -0
- package/lib/types/client/TicktickSettingsCard.d.ts +27 -0
- package/lib/types/client/TicktickSettingsCard.d.ts.map +1 -0
- package/lib/types/client/api.d.ts +34 -0
- package/lib/types/client/api.d.ts.map +1 -0
- package/lib/types/client/dates.d.ts +26 -0
- package/lib/types/client/dates.d.ts.map +1 -0
- package/lib/types/client/index.d.ts +34 -0
- package/lib/types/client/index.d.ts.map +1 -0
- package/lib/types/client/locales.d.ts +61 -0
- package/lib/types/client/locales.d.ts.map +1 -0
- package/lib/types/client/order.d.ts +25 -0
- package/lib/types/client/order.d.ts.map +1 -0
- package/lib/types/client/remote.d.ts +260 -0
- package/lib/types/client/remote.d.ts.map +1 -0
- package/lib/types/client/styles.d.ts +13 -0
- package/lib/types/client/styles.d.ts.map +1 -0
- package/lib/types/config.d.ts +64 -0
- package/lib/types/config.d.ts.map +1 -0
- package/lib/types/domain.d.ts +70 -0
- package/lib/types/domain.d.ts.map +1 -0
- package/lib/types/index.d.ts +56 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/mcp.d.ts +94 -0
- package/lib/types/mcp.d.ts.map +1 -0
- package/lib/types/service.d.ts +160 -0
- package/lib/types/service.d.ts.map +1 -0
- package/lib/types/tools.d.ts +18 -0
- package/lib/types/tools.d.ts.map +1 -0
- package/lib/types/typert.host.d.ts +216 -0
- package/lib/types/typert.host.d.ts.map +1 -0
- package/lib/types/wire.d.ts +561 -0
- package/lib/types/wire.d.ts.map +1 -0
- package/lib/wire-C-vDxxnC.js +5288 -0
- package/package.json +187 -0
- package/probes/lib.mjs +65 -0
- package/probes/probe-bootstrap.mjs +10 -0
- package/probes/probe-crud.mjs +15 -0
- package/probes/probe-due.mjs +28 -0
- package/probes/probe-queries.mjs +18 -0
- package/probes/probe-reorder.mjs +24 -0
- package/src/client/TicktickAction.tsx +356 -0
- package/src/client/TicktickSettingsCard.tsx +182 -0
- package/src/client/api.ts +56 -0
- package/src/client/dates.ts +61 -0
- package/src/client/index.ts +119 -0
- package/src/client/locales.ts +113 -0
- package/src/client/order.ts +37 -0
- package/src/client/remote.ts +76 -0
- package/src/client/styles.ts +48 -0
- package/src/config.ts +136 -0
- package/src/domain.ts +224 -0
- package/src/index.ts +139 -0
- package/src/mcp.ts +213 -0
- package/src/service.ts +403 -0
- package/src/tools.ts +336 -0
- package/src/typert.host.ts +25 -0
- package/src/wire.ts +401 -0
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The TickTick bridge's wire vocabulary: the result types served over the
|
|
3
|
+
* `ticktick` Remote namespace, their zod v4 validation schema (the strict
|
|
4
|
+
* codec both Typert faces carry), and the invocation descriptors shared
|
|
5
|
+
* verbatim by the host `./typert` manifest (`src/typert.host.ts`) and the
|
|
6
|
+
* client Remote contribution (`src/client/remote.ts`). One canonical source
|
|
7
|
+
* for both faces keeps the host and client codecs from ever drifting apart.
|
|
8
|
+
*
|
|
9
|
+
* @module dsh-ticktick/wire
|
|
10
|
+
*/
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
/** Connection and configuration facts the panel and `ticktick_status` read. */
|
|
13
|
+
export interface TicktickStatus {
|
|
14
|
+
/** A Bearer token is currently resolvable (file or settings). */
|
|
15
|
+
configured: boolean;
|
|
16
|
+
/** The MCP client finished its initialize handshake. */
|
|
17
|
+
connected: boolean;
|
|
18
|
+
/** Active MCP endpoint. */
|
|
19
|
+
mcpUrl: string;
|
|
20
|
+
/** Most recent bridge error, sanitized for display; `null` when none. */
|
|
21
|
+
lastError: string | null;
|
|
22
|
+
/** Resolved raw tool names (`''` = unresolved). */
|
|
23
|
+
toolNames: {
|
|
24
|
+
projects: string;
|
|
25
|
+
tasks: string;
|
|
26
|
+
create: string;
|
|
27
|
+
complete: string;
|
|
28
|
+
remove: string;
|
|
29
|
+
update: string;
|
|
30
|
+
move: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/** Strict wire schema for {@link TicktickStatus}. */
|
|
34
|
+
export declare const TICKTICK_STATUS_SCHEMA: z.ZodObject<{
|
|
35
|
+
configured: z.ZodBoolean;
|
|
36
|
+
connected: z.ZodBoolean;
|
|
37
|
+
mcpUrl: z.ZodString;
|
|
38
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
39
|
+
toolNames: z.ZodObject<{
|
|
40
|
+
projects: z.ZodString;
|
|
41
|
+
tasks: z.ZodString;
|
|
42
|
+
create: z.ZodString;
|
|
43
|
+
complete: z.ZodString;
|
|
44
|
+
remove: z.ZodString;
|
|
45
|
+
update: z.ZodString;
|
|
46
|
+
move: z.ZodString;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
/** One project (list) as the widget renders it. */
|
|
50
|
+
export interface TicktickProjectWire {
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
}
|
|
54
|
+
/** One task as the widget renders it. */
|
|
55
|
+
export interface TicktickTaskWire {
|
|
56
|
+
id: string;
|
|
57
|
+
title: string;
|
|
58
|
+
done: boolean;
|
|
59
|
+
/** Owning project id, or `null` when the server did not carry one. */
|
|
60
|
+
projectId: string | null;
|
|
61
|
+
/** ISO due date, or `null` when the task has none. */
|
|
62
|
+
dueDate: string | null;
|
|
63
|
+
/** TickTick sort order, or `null` when absent. */
|
|
64
|
+
sortOrder: number | null;
|
|
65
|
+
}
|
|
66
|
+
/** Aggregated undone tasks plus per-list warnings. */
|
|
67
|
+
export interface TicktickTasksResult {
|
|
68
|
+
tasks: readonly TicktickTaskWire[];
|
|
69
|
+
warnings: readonly string[];
|
|
70
|
+
}
|
|
71
|
+
/** Strict wire schema for {@link TicktickTasksResult}. */
|
|
72
|
+
export declare const TICKTICK_TASKS_RESULT_SCHEMA: z.ZodObject<{
|
|
73
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
74
|
+
id: z.ZodString;
|
|
75
|
+
title: z.ZodString;
|
|
76
|
+
done: z.ZodBoolean;
|
|
77
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
78
|
+
dueDate: z.ZodNullable<z.ZodString>;
|
|
79
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
/** One created task reference, plus the P2 read-after-write verification. */
|
|
84
|
+
export interface TicktickAddResult {
|
|
85
|
+
task: TicktickTaskWire | null;
|
|
86
|
+
/** Read-back warning; `null` when the creation verified clean or no lookup tool exists. */
|
|
87
|
+
verifyWarning: string | null;
|
|
88
|
+
}
|
|
89
|
+
/** Strict wire schema for {@link TicktickAddResult}. */
|
|
90
|
+
export declare const TICKTICK_ADD_RESULT_SCHEMA: z.ZodObject<{
|
|
91
|
+
task: z.ZodNullable<z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
title: z.ZodString;
|
|
94
|
+
done: z.ZodBoolean;
|
|
95
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
96
|
+
dueDate: z.ZodNullable<z.ZodString>;
|
|
97
|
+
sortOrder: z.ZodNullable<z.ZodNumber>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
verifyWarning: z.ZodNullable<z.ZodString>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
/** One row of the P2 batch-add payload. */
|
|
102
|
+
export declare const BATCH_ADD_TASK_SCHEMA: z.ZodObject<{
|
|
103
|
+
title: z.ZodString;
|
|
104
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
105
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
/** Strict wire schema for the `ticktick/batchAdd` result. */
|
|
108
|
+
export declare const BATCH_ADD_RESULT_SCHEMA: z.ZodObject<{
|
|
109
|
+
created: z.ZodNumber;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
/** One-shot connectivity probe result (settings card test button). */
|
|
112
|
+
export interface TicktickProbeResult {
|
|
113
|
+
ok: boolean;
|
|
114
|
+
toolCount: number;
|
|
115
|
+
error: string | null;
|
|
116
|
+
}
|
|
117
|
+
/** Strict wire schema for {@link TicktickProbeResult}. */
|
|
118
|
+
export declare const TICKTICK_PROBE_RESULT_SCHEMA: z.ZodObject<{
|
|
119
|
+
ok: z.ZodBoolean;
|
|
120
|
+
toolCount: z.ZodNumber;
|
|
121
|
+
error: z.ZodNullable<z.ZodString>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
/** One accepted mutation. */
|
|
124
|
+
export interface TicktickOkResult {
|
|
125
|
+
ok: boolean;
|
|
126
|
+
}
|
|
127
|
+
/** Strict wire schema for {@link TicktickOkResult}. */
|
|
128
|
+
export declare const TICKTICK_OK_RESULT_SCHEMA: z.ZodObject<{
|
|
129
|
+
ok: z.ZodBoolean;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
/** Settings namespace the browser card edits (paired by this exact key, both faces). */
|
|
132
|
+
export declare const TICKTICK_SETTINGS_NS = "ticktick";
|
|
133
|
+
/**
|
|
134
|
+
* Settings the card owns: token (secret) and token file are live; the
|
|
135
|
+
* endpoint and protected ids apply on restart. Declared here (shared
|
|
136
|
+
* vocabulary) so the client card types against it without importing the
|
|
137
|
+
* Host module.
|
|
138
|
+
*/
|
|
139
|
+
export interface TicktickSettings {
|
|
140
|
+
token: string;
|
|
141
|
+
tokenFile: string;
|
|
142
|
+
mcpUrl: string;
|
|
143
|
+
protectedTaskIds: string[];
|
|
144
|
+
}
|
|
145
|
+
/** The `ticktick/status` invocation descriptor. */
|
|
146
|
+
export declare const TICKTICK_STATUS_DESCRIPTOR: Readonly<{
|
|
147
|
+
readonly id: "dsh-ticktick#ticktick/status";
|
|
148
|
+
readonly service: "ticktick";
|
|
149
|
+
readonly namespace: "ticktick";
|
|
150
|
+
readonly method: "status";
|
|
151
|
+
readonly invocation: Readonly<{
|
|
152
|
+
kind: "direct";
|
|
153
|
+
}>;
|
|
154
|
+
readonly parameters: readonly never[];
|
|
155
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
156
|
+
readonly sourceLocation: Readonly<{
|
|
157
|
+
file: "src/wire.ts";
|
|
158
|
+
line: 1;
|
|
159
|
+
column: 1;
|
|
160
|
+
}>;
|
|
161
|
+
}>;
|
|
162
|
+
/** The `ticktick/projects` invocation descriptor. */
|
|
163
|
+
export declare const TICKTICK_PROJECTS_DESCRIPTOR: Readonly<{
|
|
164
|
+
readonly id: "dsh-ticktick#ticktick/projects";
|
|
165
|
+
readonly service: "ticktick";
|
|
166
|
+
readonly namespace: "ticktick";
|
|
167
|
+
readonly method: "projects";
|
|
168
|
+
readonly invocation: Readonly<{
|
|
169
|
+
kind: "direct";
|
|
170
|
+
}>;
|
|
171
|
+
readonly parameters: readonly never[];
|
|
172
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
173
|
+
readonly sourceLocation: Readonly<{
|
|
174
|
+
file: "src/wire.ts";
|
|
175
|
+
line: 1;
|
|
176
|
+
column: 1;
|
|
177
|
+
}>;
|
|
178
|
+
}>;
|
|
179
|
+
/** The `ticktick/tasks` invocation descriptor (optional list filter). */
|
|
180
|
+
export declare const TICKTICK_TASKS_DESCRIPTOR: Readonly<{
|
|
181
|
+
readonly id: "dsh-ticktick#ticktick/tasks";
|
|
182
|
+
readonly service: "ticktick";
|
|
183
|
+
readonly namespace: "ticktick";
|
|
184
|
+
readonly method: "tasks";
|
|
185
|
+
readonly invocation: Readonly<{
|
|
186
|
+
kind: "direct";
|
|
187
|
+
}>;
|
|
188
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
189
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
190
|
+
readonly sourceLocation: Readonly<{
|
|
191
|
+
file: "src/wire.ts";
|
|
192
|
+
line: 1;
|
|
193
|
+
column: 1;
|
|
194
|
+
}>;
|
|
195
|
+
}>;
|
|
196
|
+
/** The `ticktick/add` invocation descriptor. */
|
|
197
|
+
export declare const TICKTICK_ADD_DESCRIPTOR: Readonly<{
|
|
198
|
+
readonly id: "dsh-ticktick#ticktick/add";
|
|
199
|
+
readonly service: "ticktick";
|
|
200
|
+
readonly namespace: "ticktick";
|
|
201
|
+
readonly method: "add";
|
|
202
|
+
readonly invocation: Readonly<{
|
|
203
|
+
kind: "direct";
|
|
204
|
+
}>;
|
|
205
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
206
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
207
|
+
readonly sourceLocation: Readonly<{
|
|
208
|
+
file: "src/wire.ts";
|
|
209
|
+
line: 1;
|
|
210
|
+
column: 1;
|
|
211
|
+
}>;
|
|
212
|
+
}>;
|
|
213
|
+
/** The `ticktick/complete` invocation descriptor. */
|
|
214
|
+
export declare const TICKTICK_COMPLETE_DESCRIPTOR: Readonly<{
|
|
215
|
+
readonly id: "dsh-ticktick#ticktick/complete";
|
|
216
|
+
readonly service: "ticktick";
|
|
217
|
+
readonly namespace: "ticktick";
|
|
218
|
+
readonly method: "complete";
|
|
219
|
+
readonly invocation: Readonly<{
|
|
220
|
+
kind: "direct";
|
|
221
|
+
}>;
|
|
222
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
223
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
224
|
+
readonly sourceLocation: Readonly<{
|
|
225
|
+
file: "src/wire.ts";
|
|
226
|
+
line: 1;
|
|
227
|
+
column: 1;
|
|
228
|
+
}>;
|
|
229
|
+
}>;
|
|
230
|
+
/** The `ticktick/remove` invocation descriptor. */
|
|
231
|
+
export declare const TICKTICK_REMOVE_DESCRIPTOR: Readonly<{
|
|
232
|
+
readonly id: "dsh-ticktick#ticktick/remove";
|
|
233
|
+
readonly service: "ticktick";
|
|
234
|
+
readonly namespace: "ticktick";
|
|
235
|
+
readonly method: "remove";
|
|
236
|
+
readonly invocation: Readonly<{
|
|
237
|
+
kind: "direct";
|
|
238
|
+
}>;
|
|
239
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
240
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
241
|
+
readonly sourceLocation: Readonly<{
|
|
242
|
+
file: "src/wire.ts";
|
|
243
|
+
line: 1;
|
|
244
|
+
column: 1;
|
|
245
|
+
}>;
|
|
246
|
+
}>;
|
|
247
|
+
/** The `ticktick/setDue` invocation descriptor (absent date = clear). */
|
|
248
|
+
export declare const TICKTICK_SET_DUE_DESCRIPTOR: Readonly<{
|
|
249
|
+
readonly id: "dsh-ticktick#ticktick/setDue";
|
|
250
|
+
readonly service: "ticktick";
|
|
251
|
+
readonly namespace: "ticktick";
|
|
252
|
+
readonly method: "setDue";
|
|
253
|
+
readonly invocation: Readonly<{
|
|
254
|
+
kind: "direct";
|
|
255
|
+
}>;
|
|
256
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
257
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
258
|
+
readonly sourceLocation: Readonly<{
|
|
259
|
+
file: "src/wire.ts";
|
|
260
|
+
line: 1;
|
|
261
|
+
column: 1;
|
|
262
|
+
}>;
|
|
263
|
+
}>;
|
|
264
|
+
/** The `ticktick/reorder` invocation descriptor. */
|
|
265
|
+
export declare const TICKTICK_REORDER_DESCRIPTOR: Readonly<{
|
|
266
|
+
readonly id: "dsh-ticktick#ticktick/reorder";
|
|
267
|
+
readonly service: "ticktick";
|
|
268
|
+
readonly namespace: "ticktick";
|
|
269
|
+
readonly method: "reorder";
|
|
270
|
+
readonly invocation: Readonly<{
|
|
271
|
+
kind: "direct";
|
|
272
|
+
}>;
|
|
273
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
274
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
275
|
+
readonly sourceLocation: Readonly<{
|
|
276
|
+
file: "src/wire.ts";
|
|
277
|
+
line: 1;
|
|
278
|
+
column: 1;
|
|
279
|
+
}>;
|
|
280
|
+
}>;
|
|
281
|
+
/** The `ticktick/completed` invocation descriptor (P2 completed view). */
|
|
282
|
+
export declare const TICKTICK_COMPLETED_DESCRIPTOR: Readonly<{
|
|
283
|
+
readonly id: "dsh-ticktick#ticktick/completed";
|
|
284
|
+
readonly service: "ticktick";
|
|
285
|
+
readonly namespace: "ticktick";
|
|
286
|
+
readonly method: "completed";
|
|
287
|
+
readonly invocation: Readonly<{
|
|
288
|
+
kind: "direct";
|
|
289
|
+
}>;
|
|
290
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
291
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
292
|
+
readonly sourceLocation: Readonly<{
|
|
293
|
+
file: "src/wire.ts";
|
|
294
|
+
line: 1;
|
|
295
|
+
column: 1;
|
|
296
|
+
}>;
|
|
297
|
+
}>;
|
|
298
|
+
/** The `ticktick/search` invocation descriptor (P2 full-text search). */
|
|
299
|
+
export declare const TICKTICK_SEARCH_DESCRIPTOR: Readonly<{
|
|
300
|
+
readonly id: "dsh-ticktick#ticktick/search";
|
|
301
|
+
readonly service: "ticktick";
|
|
302
|
+
readonly namespace: "ticktick";
|
|
303
|
+
readonly method: "search";
|
|
304
|
+
readonly invocation: Readonly<{
|
|
305
|
+
kind: "direct";
|
|
306
|
+
}>;
|
|
307
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
308
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
309
|
+
readonly sourceLocation: Readonly<{
|
|
310
|
+
file: "src/wire.ts";
|
|
311
|
+
line: 1;
|
|
312
|
+
column: 1;
|
|
313
|
+
}>;
|
|
314
|
+
}>;
|
|
315
|
+
/** The `ticktick/batchAdd` invocation descriptor (P2 batch create). */
|
|
316
|
+
export declare const TICKTICK_BATCH_ADD_DESCRIPTOR: Readonly<{
|
|
317
|
+
readonly id: "dsh-ticktick#ticktick/batchAdd";
|
|
318
|
+
readonly service: "ticktick";
|
|
319
|
+
readonly namespace: "ticktick";
|
|
320
|
+
readonly method: "batchAdd";
|
|
321
|
+
readonly invocation: Readonly<{
|
|
322
|
+
kind: "direct";
|
|
323
|
+
}>;
|
|
324
|
+
readonly parameters: readonly Readonly<{
|
|
325
|
+
name: string;
|
|
326
|
+
wire: string;
|
|
327
|
+
source: "json";
|
|
328
|
+
codec: Readonly<{
|
|
329
|
+
mode: "strict";
|
|
330
|
+
typeSymbol: "dsh-ticktick/types#BatchAddTasks";
|
|
331
|
+
schema: z.ZodArray<z.ZodObject<{
|
|
332
|
+
title: z.ZodString;
|
|
333
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
334
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
335
|
+
}, z.core.$strip>>;
|
|
336
|
+
}>;
|
|
337
|
+
}>[];
|
|
338
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
339
|
+
readonly sourceLocation: Readonly<{
|
|
340
|
+
file: "src/wire.ts";
|
|
341
|
+
line: 1;
|
|
342
|
+
column: 1;
|
|
343
|
+
}>;
|
|
344
|
+
}>;
|
|
345
|
+
/** The `ticktick/probe` invocation descriptor (settings-card connectivity test). */
|
|
346
|
+
export declare const TICKTICK_PROBE_DESCRIPTOR: Readonly<{
|
|
347
|
+
readonly id: "dsh-ticktick#ticktick/probe";
|
|
348
|
+
readonly service: "ticktick";
|
|
349
|
+
readonly namespace: "ticktick";
|
|
350
|
+
readonly method: "probe";
|
|
351
|
+
readonly invocation: Readonly<{
|
|
352
|
+
kind: "direct";
|
|
353
|
+
}>;
|
|
354
|
+
readonly parameters: readonly never[];
|
|
355
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
356
|
+
readonly sourceLocation: Readonly<{
|
|
357
|
+
file: "src/wire.ts";
|
|
358
|
+
line: 1;
|
|
359
|
+
column: 1;
|
|
360
|
+
}>;
|
|
361
|
+
}>;
|
|
362
|
+
/**
|
|
363
|
+
* The canonical invocation list both Typert faces register — the host
|
|
364
|
+
* manifest and the client contribution share these exact descriptor objects,
|
|
365
|
+
* so the two wire codecs can never drift apart.
|
|
366
|
+
*/
|
|
367
|
+
export declare const TICKTICK_INVOCATIONS: readonly (Readonly<{
|
|
368
|
+
readonly id: "dsh-ticktick#ticktick/status";
|
|
369
|
+
readonly service: "ticktick";
|
|
370
|
+
readonly namespace: "ticktick";
|
|
371
|
+
readonly method: "status";
|
|
372
|
+
readonly invocation: Readonly<{
|
|
373
|
+
kind: "direct";
|
|
374
|
+
}>;
|
|
375
|
+
readonly parameters: readonly never[];
|
|
376
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
377
|
+
readonly sourceLocation: Readonly<{
|
|
378
|
+
file: "src/wire.ts";
|
|
379
|
+
line: 1;
|
|
380
|
+
column: 1;
|
|
381
|
+
}>;
|
|
382
|
+
}> | Readonly<{
|
|
383
|
+
readonly id: "dsh-ticktick#ticktick/projects";
|
|
384
|
+
readonly service: "ticktick";
|
|
385
|
+
readonly namespace: "ticktick";
|
|
386
|
+
readonly method: "projects";
|
|
387
|
+
readonly invocation: Readonly<{
|
|
388
|
+
kind: "direct";
|
|
389
|
+
}>;
|
|
390
|
+
readonly parameters: readonly never[];
|
|
391
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
392
|
+
readonly sourceLocation: Readonly<{
|
|
393
|
+
file: "src/wire.ts";
|
|
394
|
+
line: 1;
|
|
395
|
+
column: 1;
|
|
396
|
+
}>;
|
|
397
|
+
}> | Readonly<{
|
|
398
|
+
readonly id: "dsh-ticktick#ticktick/tasks";
|
|
399
|
+
readonly service: "ticktick";
|
|
400
|
+
readonly namespace: "ticktick";
|
|
401
|
+
readonly method: "tasks";
|
|
402
|
+
readonly invocation: Readonly<{
|
|
403
|
+
kind: "direct";
|
|
404
|
+
}>;
|
|
405
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
406
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
407
|
+
readonly sourceLocation: Readonly<{
|
|
408
|
+
file: "src/wire.ts";
|
|
409
|
+
line: 1;
|
|
410
|
+
column: 1;
|
|
411
|
+
}>;
|
|
412
|
+
}> | Readonly<{
|
|
413
|
+
readonly id: "dsh-ticktick#ticktick/add";
|
|
414
|
+
readonly service: "ticktick";
|
|
415
|
+
readonly namespace: "ticktick";
|
|
416
|
+
readonly method: "add";
|
|
417
|
+
readonly invocation: Readonly<{
|
|
418
|
+
kind: "direct";
|
|
419
|
+
}>;
|
|
420
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
421
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
422
|
+
readonly sourceLocation: Readonly<{
|
|
423
|
+
file: "src/wire.ts";
|
|
424
|
+
line: 1;
|
|
425
|
+
column: 1;
|
|
426
|
+
}>;
|
|
427
|
+
}> | Readonly<{
|
|
428
|
+
readonly id: "dsh-ticktick#ticktick/complete";
|
|
429
|
+
readonly service: "ticktick";
|
|
430
|
+
readonly namespace: "ticktick";
|
|
431
|
+
readonly method: "complete";
|
|
432
|
+
readonly invocation: Readonly<{
|
|
433
|
+
kind: "direct";
|
|
434
|
+
}>;
|
|
435
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
436
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
437
|
+
readonly sourceLocation: Readonly<{
|
|
438
|
+
file: "src/wire.ts";
|
|
439
|
+
line: 1;
|
|
440
|
+
column: 1;
|
|
441
|
+
}>;
|
|
442
|
+
}> | Readonly<{
|
|
443
|
+
readonly id: "dsh-ticktick#ticktick/remove";
|
|
444
|
+
readonly service: "ticktick";
|
|
445
|
+
readonly namespace: "ticktick";
|
|
446
|
+
readonly method: "remove";
|
|
447
|
+
readonly invocation: Readonly<{
|
|
448
|
+
kind: "direct";
|
|
449
|
+
}>;
|
|
450
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
451
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
452
|
+
readonly sourceLocation: Readonly<{
|
|
453
|
+
file: "src/wire.ts";
|
|
454
|
+
line: 1;
|
|
455
|
+
column: 1;
|
|
456
|
+
}>;
|
|
457
|
+
}> | Readonly<{
|
|
458
|
+
readonly id: "dsh-ticktick#ticktick/setDue";
|
|
459
|
+
readonly service: "ticktick";
|
|
460
|
+
readonly namespace: "ticktick";
|
|
461
|
+
readonly method: "setDue";
|
|
462
|
+
readonly invocation: Readonly<{
|
|
463
|
+
kind: "direct";
|
|
464
|
+
}>;
|
|
465
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
466
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
467
|
+
readonly sourceLocation: Readonly<{
|
|
468
|
+
file: "src/wire.ts";
|
|
469
|
+
line: 1;
|
|
470
|
+
column: 1;
|
|
471
|
+
}>;
|
|
472
|
+
}> | Readonly<{
|
|
473
|
+
readonly id: "dsh-ticktick#ticktick/reorder";
|
|
474
|
+
readonly service: "ticktick";
|
|
475
|
+
readonly namespace: "ticktick";
|
|
476
|
+
readonly method: "reorder";
|
|
477
|
+
readonly invocation: Readonly<{
|
|
478
|
+
kind: "direct";
|
|
479
|
+
}>;
|
|
480
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
481
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
482
|
+
readonly sourceLocation: Readonly<{
|
|
483
|
+
file: "src/wire.ts";
|
|
484
|
+
line: 1;
|
|
485
|
+
column: 1;
|
|
486
|
+
}>;
|
|
487
|
+
}> | Readonly<{
|
|
488
|
+
readonly id: "dsh-ticktick#ticktick/completed";
|
|
489
|
+
readonly service: "ticktick";
|
|
490
|
+
readonly namespace: "ticktick";
|
|
491
|
+
readonly method: "completed";
|
|
492
|
+
readonly invocation: Readonly<{
|
|
493
|
+
kind: "direct";
|
|
494
|
+
}>;
|
|
495
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
496
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
497
|
+
readonly sourceLocation: Readonly<{
|
|
498
|
+
file: "src/wire.ts";
|
|
499
|
+
line: 1;
|
|
500
|
+
column: 1;
|
|
501
|
+
}>;
|
|
502
|
+
}> | Readonly<{
|
|
503
|
+
readonly id: "dsh-ticktick#ticktick/search";
|
|
504
|
+
readonly service: "ticktick";
|
|
505
|
+
readonly namespace: "ticktick";
|
|
506
|
+
readonly method: "search";
|
|
507
|
+
readonly invocation: Readonly<{
|
|
508
|
+
kind: "direct";
|
|
509
|
+
}>;
|
|
510
|
+
readonly parameters: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationParameterDescriptor[];
|
|
511
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
512
|
+
readonly sourceLocation: Readonly<{
|
|
513
|
+
file: "src/wire.ts";
|
|
514
|
+
line: 1;
|
|
515
|
+
column: 1;
|
|
516
|
+
}>;
|
|
517
|
+
}> | Readonly<{
|
|
518
|
+
readonly id: "dsh-ticktick#ticktick/batchAdd";
|
|
519
|
+
readonly service: "ticktick";
|
|
520
|
+
readonly namespace: "ticktick";
|
|
521
|
+
readonly method: "batchAdd";
|
|
522
|
+
readonly invocation: Readonly<{
|
|
523
|
+
kind: "direct";
|
|
524
|
+
}>;
|
|
525
|
+
readonly parameters: readonly Readonly<{
|
|
526
|
+
name: string;
|
|
527
|
+
wire: string;
|
|
528
|
+
source: "json";
|
|
529
|
+
codec: Readonly<{
|
|
530
|
+
mode: "strict";
|
|
531
|
+
typeSymbol: "dsh-ticktick/types#BatchAddTasks";
|
|
532
|
+
schema: z.ZodArray<z.ZodObject<{
|
|
533
|
+
title: z.ZodString;
|
|
534
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
535
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
536
|
+
}, z.core.$strip>>;
|
|
537
|
+
}>;
|
|
538
|
+
}>[];
|
|
539
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
540
|
+
readonly sourceLocation: Readonly<{
|
|
541
|
+
file: "src/wire.ts";
|
|
542
|
+
line: 1;
|
|
543
|
+
column: 1;
|
|
544
|
+
}>;
|
|
545
|
+
}> | Readonly<{
|
|
546
|
+
readonly id: "dsh-ticktick#ticktick/probe";
|
|
547
|
+
readonly service: "ticktick";
|
|
548
|
+
readonly namespace: "ticktick";
|
|
549
|
+
readonly method: "probe";
|
|
550
|
+
readonly invocation: Readonly<{
|
|
551
|
+
kind: "direct";
|
|
552
|
+
}>;
|
|
553
|
+
readonly parameters: readonly never[];
|
|
554
|
+
readonly result: import("@deepseek-ai/dsh-typert-protocol").TypertCodec;
|
|
555
|
+
readonly sourceLocation: Readonly<{
|
|
556
|
+
file: "src/wire.ts";
|
|
557
|
+
line: 1;
|
|
558
|
+
column: 1;
|
|
559
|
+
}>;
|
|
560
|
+
}>)[];
|
|
561
|
+
//# sourceMappingURL=wire.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../../src/wire.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,+EAA+E;AAC/E,MAAM,WAAW,cAAc;IAC7B,iEAAiE;IACjE,UAAU,EAAE,OAAO,CAAA;IACnB,wDAAwD;IACxD,SAAS,EAAE,OAAO,CAAA;IAClB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,yEAAyE;IACzE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,mDAAmD;IACnD,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF;AAED,qDAAqD;AACrD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;iBAcjC,CAAA;AAEF,mDAAmD;AACnD,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,yCAAyC;AACzC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,sEAAsE;IACtE,SAAS,EAAE,MAAM,GAAG,I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