@devpad/api 2.0.1 → 2.0.3

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.
@@ -0,0 +1,539 @@
1
+ import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
2
+ import { z } from 'zod';
3
+ import { a as api_keys, p as project, m as milestone, g as goal, t as task, c as codebase_tasks, b as action, A as ActionType, d as tag, u as user, s as session, e as task_tag, f as todo_updates, h as tracker_result, i as tag_config, j as ignore_path } from './schema.d-DALWdx-o.js';
4
+
5
+ declare const upsert_project: z.ZodObject<{
6
+ id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
+ project_id: z.ZodString;
8
+ owner_id: z.ZodOptional<z.ZodString>;
9
+ name: z.ZodString;
10
+ description: z.ZodNullable<z.ZodString>;
11
+ specification: z.ZodNullable<z.ZodString>;
12
+ repo_url: z.ZodNullable<z.ZodString>;
13
+ repo_id: z.ZodNullable<z.ZodNumber>;
14
+ icon_url: z.ZodNullable<z.ZodString>;
15
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"DEVELOPMENT">, z.ZodLiteral<"PAUSED">, z.ZodLiteral<"RELEASED">, z.ZodLiteral<"LIVE">, z.ZodLiteral<"FINISHED">, z.ZodLiteral<"ABANDONED">, z.ZodLiteral<"STOPPED">]>>;
16
+ deleted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
17
+ link_url: z.ZodNullable<z.ZodString>;
18
+ link_text: z.ZodNullable<z.ZodString>;
19
+ visibility: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PUBLIC">, z.ZodLiteral<"PRIVATE">, z.ZodLiteral<"HIDDEN">, z.ZodLiteral<"ARCHIVED">, z.ZodLiteral<"DRAFT">, z.ZodLiteral<"DELETED">]>>;
20
+ current_version: z.ZodNullable<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ name: string;
23
+ deleted: boolean;
24
+ project_id: string;
25
+ description: string | null;
26
+ specification: string | null;
27
+ repo_url: string | null;
28
+ repo_id: number | null;
29
+ icon_url: string | null;
30
+ link_url: string | null;
31
+ link_text: string | null;
32
+ current_version: string | null;
33
+ id?: string | null | undefined;
34
+ owner_id?: string | undefined;
35
+ status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
36
+ visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
37
+ }, {
38
+ name: string;
39
+ project_id: string;
40
+ description: string | null;
41
+ specification: string | null;
42
+ repo_url: string | null;
43
+ repo_id: number | null;
44
+ icon_url: string | null;
45
+ link_url: string | null;
46
+ link_text: string | null;
47
+ current_version: string | null;
48
+ id?: string | null | undefined;
49
+ deleted?: boolean | undefined;
50
+ owner_id?: string | undefined;
51
+ status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
52
+ visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
53
+ }>;
54
+ declare const upsert_todo: z.ZodObject<{
55
+ id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
56
+ title: z.ZodOptional<z.ZodString>;
57
+ summary: z.ZodNullable<z.ZodOptional<z.ZodString>>;
58
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
59
+ progress: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"UNSTARTED">, z.ZodLiteral<"IN_PROGRESS">, z.ZodLiteral<"COMPLETED">]>>;
60
+ visibility: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PUBLIC">, z.ZodLiteral<"PRIVATE">, z.ZodLiteral<"HIDDEN">, z.ZodLiteral<"ARCHIVED">, z.ZodLiteral<"DRAFT">, z.ZodLiteral<"DELETED">]>>;
61
+ start_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
+ end_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63
+ priority: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"LOW">, z.ZodLiteral<"MEDIUM">, z.ZodLiteral<"HIGH">]>>;
64
+ owner_id: z.ZodString;
65
+ project_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
66
+ goal_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ owner_id: string;
69
+ id?: string | null | undefined;
70
+ project_id?: string | null | undefined;
71
+ description?: string | null | undefined;
72
+ visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
73
+ title?: string | undefined;
74
+ progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
75
+ goal_id?: string | null | undefined;
76
+ start_time?: string | null | undefined;
77
+ end_time?: string | null | undefined;
78
+ summary?: string | null | undefined;
79
+ priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
80
+ }, {
81
+ owner_id: string;
82
+ id?: string | null | undefined;
83
+ project_id?: string | null | undefined;
84
+ description?: string | null | undefined;
85
+ visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
86
+ title?: string | undefined;
87
+ progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
88
+ goal_id?: string | null | undefined;
89
+ start_time?: string | null | undefined;
90
+ end_time?: string | null | undefined;
91
+ summary?: string | null | undefined;
92
+ priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
93
+ }>;
94
+ declare const update_action: z.ZodUnion<[z.ZodLiteral<"CONFIRM">, z.ZodLiteral<"UNLINK">, z.ZodLiteral<"CREATE">, z.ZodLiteral<"IGNORE">, z.ZodLiteral<"DELETE">, z.ZodLiteral<"COMPLETE">]>;
95
+ declare const ConfigSchema: z.ZodObject<{
96
+ tags: z.ZodArray<z.ZodObject<{
97
+ name: z.ZodString;
98
+ match: z.ZodArray<z.ZodString, "many">;
99
+ }, "strip", z.ZodTypeAny, {
100
+ match: string[];
101
+ name: string;
102
+ }, {
103
+ match: string[];
104
+ name: string;
105
+ }>, "many">;
106
+ ignore: z.ZodArray<z.ZodString, "many">;
107
+ }, "strip", z.ZodTypeAny, {
108
+ tags: {
109
+ match: string[];
110
+ name: string;
111
+ }[];
112
+ ignore: string[];
113
+ }, {
114
+ tags: {
115
+ match: string[];
116
+ name: string;
117
+ }[];
118
+ ignore: string[];
119
+ }>;
120
+ declare const upsert_tag: z.ZodObject<{
121
+ id: z.ZodOptional<z.ZodString>;
122
+ title: z.ZodString;
123
+ color: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"red">, z.ZodLiteral<"green">, z.ZodLiteral<"blue">, z.ZodLiteral<"yellow">, z.ZodLiteral<"purple">, z.ZodLiteral<"orange">, z.ZodLiteral<"teal">, z.ZodLiteral<"pink">, z.ZodLiteral<"gray">, z.ZodLiteral<"cyan">, z.ZodLiteral<"lime">]>>>;
124
+ deleted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
125
+ render: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
126
+ owner_id: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ deleted: boolean;
129
+ owner_id: string;
130
+ title: string;
131
+ render: boolean;
132
+ id?: string | undefined;
133
+ color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
134
+ }, {
135
+ owner_id: string;
136
+ title: string;
137
+ id?: string | undefined;
138
+ deleted?: boolean | undefined;
139
+ color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
140
+ render?: boolean | undefined;
141
+ }>;
142
+ declare const project_config: z.ZodObject<{
143
+ tags: z.ZodArray<z.ZodObject<{
144
+ name: z.ZodString;
145
+ match: z.ZodArray<z.ZodString, "many">;
146
+ }, "strip", z.ZodTypeAny, {
147
+ match: string[];
148
+ name: string;
149
+ }, {
150
+ match: string[];
151
+ name: string;
152
+ }>, "many">;
153
+ ignore: z.ZodArray<z.ZodString, "many">;
154
+ }, "strip", z.ZodTypeAny, {
155
+ tags: {
156
+ match: string[];
157
+ name: string;
158
+ }[];
159
+ ignore: string[];
160
+ }, {
161
+ tags: {
162
+ match: string[];
163
+ name: string;
164
+ }[];
165
+ ignore: string[];
166
+ }>;
167
+ declare const save_config_request: z.ZodObject<{
168
+ id: z.ZodString;
169
+ config: z.ZodObject<{
170
+ tags: z.ZodArray<z.ZodObject<{
171
+ name: z.ZodString;
172
+ match: z.ZodArray<z.ZodString, "many">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ match: string[];
175
+ name: string;
176
+ }, {
177
+ match: string[];
178
+ name: string;
179
+ }>, "many">;
180
+ ignore: z.ZodArray<z.ZodString, "many">;
181
+ }, "strip", z.ZodTypeAny, {
182
+ tags: {
183
+ match: string[];
184
+ name: string;
185
+ }[];
186
+ ignore: string[];
187
+ }, {
188
+ tags: {
189
+ match: string[];
190
+ name: string;
191
+ }[];
192
+ ignore: string[];
193
+ }>;
194
+ scan_branch: z.ZodOptional<z.ZodString>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ id: string;
197
+ config: {
198
+ tags: {
199
+ match: string[];
200
+ name: string;
201
+ }[];
202
+ ignore: string[];
203
+ };
204
+ scan_branch?: string | undefined;
205
+ }, {
206
+ id: string;
207
+ config: {
208
+ tags: {
209
+ match: string[];
210
+ name: string;
211
+ }[];
212
+ ignore: string[];
213
+ };
214
+ scan_branch?: string | undefined;
215
+ }>;
216
+ declare const save_tags_request: z.ZodArray<z.ZodObject<{
217
+ id: z.ZodOptional<z.ZodString>;
218
+ title: z.ZodString;
219
+ color: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"red">, z.ZodLiteral<"green">, z.ZodLiteral<"blue">, z.ZodLiteral<"yellow">, z.ZodLiteral<"purple">, z.ZodLiteral<"orange">, z.ZodLiteral<"teal">, z.ZodLiteral<"pink">, z.ZodLiteral<"gray">, z.ZodLiteral<"cyan">, z.ZodLiteral<"lime">]>>>;
220
+ deleted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
221
+ render: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
222
+ owner_id: z.ZodString;
223
+ }, "strip", z.ZodTypeAny, {
224
+ deleted: boolean;
225
+ owner_id: string;
226
+ title: string;
227
+ render: boolean;
228
+ id?: string | undefined;
229
+ color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
230
+ }, {
231
+ owner_id: string;
232
+ title: string;
233
+ id?: string | undefined;
234
+ deleted?: boolean | undefined;
235
+ color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
236
+ render?: boolean | undefined;
237
+ }>, "many">;
238
+ declare const update_user: z.ZodObject<{
239
+ id: z.ZodString;
240
+ name: z.ZodOptional<z.ZodString>;
241
+ image_url: z.ZodOptional<z.ZodString>;
242
+ task_view: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"list">, z.ZodLiteral<"grid">]>>;
243
+ email_verified: z.ZodOptional<z.ZodBoolean>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ id: string;
246
+ name?: string | undefined;
247
+ email_verified?: boolean | undefined;
248
+ image_url?: string | undefined;
249
+ task_view?: "list" | "grid" | undefined;
250
+ }, {
251
+ id: string;
252
+ name?: string | undefined;
253
+ email_verified?: boolean | undefined;
254
+ image_url?: string | undefined;
255
+ task_view?: "list" | "grid" | undefined;
256
+ }>;
257
+ declare const config_schema: z.ZodObject<{
258
+ tags: z.ZodArray<z.ZodObject<{
259
+ name: z.ZodString;
260
+ match: z.ZodArray<z.ZodString, "many">;
261
+ }, "strip", z.ZodTypeAny, {
262
+ match: string[];
263
+ name: string;
264
+ }, {
265
+ match: string[];
266
+ name: string;
267
+ }>, "many">;
268
+ ignore: z.ZodArray<z.ZodString, "many">;
269
+ }, "strip", z.ZodTypeAny, {
270
+ tags: {
271
+ match: string[];
272
+ name: string;
273
+ }[];
274
+ ignore: string[];
275
+ }, {
276
+ tags: {
277
+ match: string[];
278
+ name: string;
279
+ }[];
280
+ ignore: string[];
281
+ }>;
282
+ declare const upsert_milestone: z.ZodObject<{
283
+ id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
284
+ project_id: z.ZodString;
285
+ name: z.ZodString;
286
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
+ target_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
+ target_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ after_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ name: string;
293
+ project_id: string;
294
+ id?: string | null | undefined;
295
+ description?: string | null | undefined;
296
+ target_time?: string | null | undefined;
297
+ target_version?: string | null | undefined;
298
+ finished_at?: string | null | undefined;
299
+ after_id?: string | null | undefined;
300
+ }, {
301
+ name: string;
302
+ project_id: string;
303
+ id?: string | null | undefined;
304
+ description?: string | null | undefined;
305
+ target_time?: string | null | undefined;
306
+ target_version?: string | null | undefined;
307
+ finished_at?: string | null | undefined;
308
+ after_id?: string | null | undefined;
309
+ }>;
310
+ declare const upsert_goal: z.ZodObject<{
311
+ id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
312
+ milestone_id: z.ZodString;
313
+ name: z.ZodString;
314
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
+ target_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
316
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ name: string;
319
+ milestone_id: string;
320
+ id?: string | null | undefined;
321
+ description?: string | null | undefined;
322
+ target_time?: string | null | undefined;
323
+ finished_at?: string | null | undefined;
324
+ }, {
325
+ name: string;
326
+ milestone_id: string;
327
+ id?: string | null | undefined;
328
+ description?: string | null | undefined;
329
+ target_time?: string | null | undefined;
330
+ finished_at?: string | null | undefined;
331
+ }>;
332
+
333
+ type User = InferSelectModel<typeof user>;
334
+ type Session = InferSelectModel<typeof session>;
335
+ type ApiKey = InferSelectModel<typeof api_keys>;
336
+ type Project = InferSelectModel<typeof project>;
337
+ type Task = InferSelectModel<typeof task>;
338
+ type Tag = InferSelectModel<typeof tag>;
339
+ type Milestone = InferSelectModel<typeof milestone>;
340
+ type Goal = InferSelectModel<typeof goal>;
341
+ type TaskTag = InferSelectModel<typeof task_tag>;
342
+ type Action = InferSelectModel<typeof action>;
343
+ type CodebaseTask = InferSelectModel<typeof codebase_tasks>;
344
+ type TodoUpdate = InferSelectModel<typeof todo_updates>;
345
+ type TrackerResult = InferSelectModel<typeof tracker_result>;
346
+ type TagConfig = InferSelectModel<typeof tag_config>;
347
+ type IgnorePath = InferSelectModel<typeof ignore_path>;
348
+ type InsertUser = InferInsertModel<typeof user>;
349
+ type InsertSession = InferInsertModel<typeof session>;
350
+ type InsertApiKey = InferInsertModel<typeof api_keys>;
351
+ type InsertProject = InferInsertModel<typeof project>;
352
+ type InsertTask = InferInsertModel<typeof task>;
353
+ type InsertTag = InferInsertModel<typeof tag>;
354
+ type InsertMilestone = InferInsertModel<typeof milestone>;
355
+ type InsertGoal = InferInsertModel<typeof goal>;
356
+ type InsertTaskTag = InferInsertModel<typeof task_tag>;
357
+ type InsertAction = InferInsertModel<typeof action>;
358
+ type InsertCodebaseTask = InferInsertModel<typeof codebase_tasks>;
359
+ type InsertTodoUpdate = InferInsertModel<typeof todo_updates>;
360
+ type InsertTrackerResult = InferInsertModel<typeof tracker_result>;
361
+ type InsertTagConfig = InferInsertModel<typeof tag_config>;
362
+ type InsertIgnorePath = InferInsertModel<typeof ignore_path>;
363
+ type UpsertProject = z.infer<typeof upsert_project>;
364
+ type UpsertTodo = z.infer<typeof upsert_todo>;
365
+ type UpsertTag = z.infer<typeof upsert_tag>;
366
+ type UpsertMilestone = z.infer<typeof upsert_milestone>;
367
+ type UpsertGoal = z.infer<typeof upsert_goal>;
368
+ type UpdateAction = z.infer<typeof update_action>;
369
+ type ProjectConfig = z.infer<typeof project_config>;
370
+ type SaveConfigRequest = z.infer<typeof save_config_request>;
371
+ type SaveTagsRequest = z.infer<typeof save_tags_request>;
372
+ interface TaskWithDetails {
373
+ task: Task;
374
+ codebase_tasks: CodebaseTask | null;
375
+ tags: string[];
376
+ }
377
+ interface ProjectWithTasks {
378
+ project: Project;
379
+ tasks: TaskWithDetails[];
380
+ }
381
+ interface TagWithColor {
382
+ id: string;
383
+ title: string;
384
+ color: string | null;
385
+ count?: number;
386
+ }
387
+ type GetConfigResult = {
388
+ config: ProjectConfig;
389
+ scan_branch: string;
390
+ };
391
+ declare const TAG_COLOURS: {
392
+ readonly red: {
393
+ readonly colour: "#F28B82";
394
+ readonly text: "#faeeef";
395
+ readonly border: "#F5A5A5";
396
+ };
397
+ readonly green: {
398
+ readonly colour: "#CCFF90";
399
+ readonly text: "#2E7D32";
400
+ readonly border: "#A5D6A7";
401
+ };
402
+ readonly blue: {
403
+ readonly colour: "#82B1FF";
404
+ readonly text: "#0D47A1";
405
+ readonly border: "#90CAF9";
406
+ };
407
+ readonly yellow: {
408
+ readonly colour: "#FFF176";
409
+ readonly text: "#F57F17";
410
+ readonly border: "#FFF59D";
411
+ };
412
+ readonly purple: {
413
+ readonly colour: "#E1BEE7";
414
+ readonly text: "#4A148C";
415
+ readonly border: "#CE93D8";
416
+ };
417
+ readonly orange: {
418
+ readonly colour: "#FFCC80";
419
+ readonly text: "#E65100";
420
+ readonly border: "#FFB74D";
421
+ };
422
+ readonly teal: {
423
+ readonly colour: "#80CBC4";
424
+ readonly text: "#004D40";
425
+ readonly border: "#4DB6AC";
426
+ };
427
+ readonly pink: {
428
+ readonly colour: "#F8BBD9";
429
+ readonly text: "#880E4F";
430
+ readonly border: "#F48FB1";
431
+ };
432
+ readonly gray: {
433
+ readonly colour: "#CFD8DC";
434
+ readonly text: "#37474F";
435
+ readonly border: "#B0BEC5";
436
+ };
437
+ readonly cyan: {
438
+ readonly colour: "#84FFFF";
439
+ readonly text: "#006064";
440
+ readonly border: "#4DD0E1";
441
+ };
442
+ readonly lime: {
443
+ readonly colour: "#ddf0bc";
444
+ readonly text: "#88b47f";
445
+ readonly border: "#becca5";
446
+ };
447
+ };
448
+ type TagColor = keyof typeof TAG_COLOURS;
449
+ type _FetchedTag = InferSelectModel<typeof tag>;
450
+ type TagWithTypedColor = Omit<_FetchedTag, "color"> & {
451
+ color: TagColor | null;
452
+ };
453
+ interface ApiClientConfig {
454
+ baseUrl: string;
455
+ apiKey: string;
456
+ }
457
+ interface RequestOptions {
458
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
459
+ headers?: Record<string, string>;
460
+ body?: object;
461
+ query?: Record<string, string>;
462
+ }
463
+ type Nullable<T> = {
464
+ [P in keyof T]: T[P] | null;
465
+ };
466
+ type TaskView = "list" | "grid";
467
+ type ScanStatus = "PENDING" | "ACCEPTED" | "REJECTED" | "IGNORED";
468
+ interface ScanStatusRequest {
469
+ project_id: string;
470
+ update_id: number;
471
+ actions: Record<string, string[]>;
472
+ titles: Record<string, string>;
473
+ approved: boolean;
474
+ }
475
+ interface ScanUpdate {
476
+ id: number;
477
+ project_id: string;
478
+ old_id: number | null;
479
+ new_id: number;
480
+ data: string;
481
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "IGNORED";
482
+ branch?: string;
483
+ commit_sha?: string;
484
+ commit_msg?: string;
485
+ commit_url?: string;
486
+ created_at: string;
487
+ }
488
+ type HistoryAction = Omit<Action, "updated_at" | "owner_id" | "type"> & {
489
+ type: ActionType | "SCAN";
490
+ };
491
+ interface ApiResponse<T> {
492
+ success: boolean;
493
+ data?: T;
494
+ error?: string;
495
+ }
496
+ interface UpdateData {
497
+ id: string;
498
+ tag: string;
499
+ type: "SAME" | "UPDATE" | "DELETE" | "NEW" | "MOVE";
500
+ data: {
501
+ old: {
502
+ text: string;
503
+ line: number;
504
+ file: string;
505
+ context?: string[];
506
+ };
507
+ new: {
508
+ text: string;
509
+ line: number;
510
+ file: string;
511
+ context?: string[];
512
+ };
513
+ };
514
+ task?: TaskWithDetails;
515
+ }
516
+ type UpdateUser = z.infer<typeof update_user>;
517
+ type ConfigSchemaType = z.infer<typeof config_schema>;
518
+ interface BufferedQueue<T> {
519
+ latest(): T | null;
520
+ list(): T[];
521
+ add(item: T): void;
522
+ size(): number;
523
+ clear(): void;
524
+ }
525
+ declare class ArrayBufferedQueue<T> implements BufferedQueue<T> {
526
+ private _capacity;
527
+ private _entries;
528
+ private _head;
529
+ private _tail;
530
+ private _size;
531
+ constructor(_capacity: number);
532
+ latest(): T | null;
533
+ list(): T[];
534
+ add(item: T): void;
535
+ size(): number;
536
+ clear(): void;
537
+ }
538
+
539
+ export { type HistoryAction as $, type ApiKey as A, type UpdateAction as B, type CodebaseTask as C, type ProjectConfig as D, type SaveConfigRequest as E, type SaveTagsRequest as F, type Goal as G, type TaskWithDetails as H, type IgnorePath as I, type ProjectWithTasks as J, type TagWithColor as K, type GetConfigResult as L, type Milestone as M, TAG_COLOURS as N, type TagColor as O, type Project as P, type TagWithTypedColor as Q, type ApiClientConfig as R, type Session as S, type Task as T, type User as U, type RequestOptions as V, type Nullable as W, type TaskView as X, type ScanStatus as Y, type ScanStatusRequest as Z, type ScanUpdate as _, type Tag as a, type ApiResponse as a0, type UpdateData as a1, type UpdateUser as a2, type ConfigSchemaType as a3, type BufferedQueue as a4, ArrayBufferedQueue as a5, upsert_project as a6, upsert_todo as a7, update_action as a8, ConfigSchema as a9, upsert_tag as aa, project_config as ab, save_config_request as ac, save_tags_request as ad, update_user as ae, config_schema as af, upsert_milestone as ag, upsert_goal as ah, type TaskTag as b, type Action as c, type TodoUpdate as d, type TrackerResult as e, type TagConfig as f, type InsertUser as g, type InsertSession as h, type InsertApiKey as i, type InsertProject as j, type InsertTask as k, type InsertTag as l, type InsertMilestone as m, type InsertGoal as n, type InsertTaskTag as o, type InsertAction as p, type InsertCodebaseTask as q, type InsertTodoUpdate as r, type InsertTrackerResult as s, type InsertTagConfig as t, type InsertIgnorePath as u, type UpsertProject as v, type UpsertTodo as w, type UpsertTag as x, type UpsertMilestone as y, type UpsertGoal as z };