@locusai/shared 0.4.6 → 0.4.9

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.
Files changed (52) hide show
  1. package/dist/common.d.ts +200 -0
  2. package/dist/common.d.ts.map +1 -0
  3. package/dist/enums.d.ts +51 -0
  4. package/dist/enums.d.ts.map +1 -0
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +884 -3
  8. package/dist/models/activity.d.ts +947 -0
  9. package/dist/models/activity.d.ts.map +1 -0
  10. package/dist/models/agent.d.ts +21 -0
  11. package/dist/models/agent.d.ts.map +1 -0
  12. package/dist/models/auth.d.ts +374 -0
  13. package/dist/models/auth.d.ts.map +1 -0
  14. package/dist/models/ci.d.ts +76 -0
  15. package/dist/models/ci.d.ts.map +1 -0
  16. package/dist/models/doc-group.d.ts +144 -0
  17. package/dist/models/doc-group.d.ts.map +1 -0
  18. package/dist/models/doc.d.ts +251 -0
  19. package/dist/models/doc.d.ts.map +1 -0
  20. package/{src/models/index.ts → dist/models/index.d.ts} +1 -0
  21. package/dist/models/index.d.ts.map +1 -0
  22. package/dist/models/invitation.d.ts +257 -0
  23. package/dist/models/invitation.d.ts.map +1 -0
  24. package/dist/models/organization.d.ts +357 -0
  25. package/dist/models/organization.d.ts.map +1 -0
  26. package/dist/models/sprint.d.ts +218 -0
  27. package/dist/models/sprint.d.ts.map +1 -0
  28. package/dist/models/task.d.ts +1208 -0
  29. package/dist/models/task.d.ts.map +1 -0
  30. package/dist/models/user.d.ts +101 -0
  31. package/dist/models/user.d.ts.map +1 -0
  32. package/dist/models/workspace.d.ts +319 -0
  33. package/dist/models/workspace.d.ts.map +1 -0
  34. package/package.json +3 -20
  35. package/dist/schemas.d.ts +0 -297
  36. package/dist/schemas.d.ts.map +0 -1
  37. package/dist/schemas.js +0 -129
  38. package/src/common.ts +0 -106
  39. package/src/enums.ts +0 -56
  40. package/src/index.ts +0 -3
  41. package/src/models/activity.ts +0 -237
  42. package/src/models/agent.ts +0 -13
  43. package/src/models/auth.ts +0 -188
  44. package/src/models/ci.ts +0 -21
  45. package/src/models/doc-group.ts +0 -42
  46. package/src/models/doc.ts +0 -66
  47. package/src/models/invitation.ts +0 -83
  48. package/src/models/organization.ts +0 -105
  49. package/src/models/sprint.ts +0 -71
  50. package/src/models/task.ts +0 -110
  51. package/src/models/user.ts +0 -35
  52. package/src/models/workspace.ts +0 -99
@@ -0,0 +1,947 @@
1
+ import { z } from "zod";
2
+ import { EventType, SprintStatus, TaskStatus } from "../enums";
3
+ export declare const CommentSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
6
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
7
+ } & {
8
+ taskId: z.ZodString;
9
+ author: z.ZodString;
10
+ text: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ createdAt: number | Date;
14
+ updatedAt: number | Date;
15
+ taskId: string;
16
+ author: string;
17
+ text: string;
18
+ }, {
19
+ id: string;
20
+ createdAt: number | Date;
21
+ updatedAt: number | Date;
22
+ taskId: string;
23
+ author: string;
24
+ text: string;
25
+ }>;
26
+ export type Comment = z.infer<typeof CommentSchema>;
27
+ export declare const ArtifactSchema: z.ZodObject<{
28
+ id: z.ZodString;
29
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
30
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
31
+ } & {
32
+ taskId: z.ZodString;
33
+ type: z.ZodString;
34
+ title: z.ZodString;
35
+ contentText: z.ZodOptional<z.ZodString>;
36
+ filePath: z.ZodOptional<z.ZodString>;
37
+ url: z.ZodOptional<z.ZodString>;
38
+ size: z.ZodOptional<z.ZodString>;
39
+ createdBy: z.ZodString;
40
+ }, "strip", z.ZodTypeAny, {
41
+ id: string;
42
+ createdAt: number | Date;
43
+ type: string;
44
+ updatedAt: number | Date;
45
+ taskId: string;
46
+ title: string;
47
+ createdBy: string;
48
+ contentText?: string | undefined;
49
+ filePath?: string | undefined;
50
+ url?: string | undefined;
51
+ size?: string | undefined;
52
+ }, {
53
+ id: string;
54
+ createdAt: number | Date;
55
+ type: string;
56
+ updatedAt: number | Date;
57
+ taskId: string;
58
+ title: string;
59
+ createdBy: string;
60
+ contentText?: string | undefined;
61
+ filePath?: string | undefined;
62
+ url?: string | undefined;
63
+ size?: string | undefined;
64
+ }>;
65
+ export type Artifact = z.infer<typeof ArtifactSchema>;
66
+ export declare const TaskCreatedPayloadSchema: z.ZodObject<{
67
+ title: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ title: string;
70
+ }, {
71
+ title: string;
72
+ }>;
73
+ export declare const TaskDeletedPayloadSchema: z.ZodObject<{
74
+ title: z.ZodString;
75
+ }, "strip", z.ZodTypeAny, {
76
+ title: string;
77
+ }, {
78
+ title: string;
79
+ }>;
80
+ export declare const StatusChangedPayloadSchema: z.ZodObject<{
81
+ title: z.ZodString;
82
+ oldStatus: z.ZodNativeEnum<typeof TaskStatus>;
83
+ newStatus: z.ZodNativeEnum<typeof TaskStatus>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ title: string;
86
+ oldStatus: TaskStatus;
87
+ newStatus: TaskStatus;
88
+ }, {
89
+ title: string;
90
+ oldStatus: TaskStatus;
91
+ newStatus: TaskStatus;
92
+ }>;
93
+ export declare const CommentAddedPayloadSchema: z.ZodObject<{
94
+ title: z.ZodString;
95
+ author: z.ZodString;
96
+ text: z.ZodString;
97
+ }, "strip", z.ZodTypeAny, {
98
+ author: string;
99
+ text: string;
100
+ title: string;
101
+ }, {
102
+ author: string;
103
+ text: string;
104
+ title: string;
105
+ }>;
106
+ export declare const WorkspaceCreatedPayloadSchema: z.ZodObject<{
107
+ name: z.ZodString;
108
+ }, "strip", z.ZodTypeAny, {
109
+ name: string;
110
+ }, {
111
+ name: string;
112
+ }>;
113
+ export declare const MemberAddedPayloadSchema: z.ZodObject<{
114
+ userId: z.ZodString;
115
+ role: z.ZodString;
116
+ }, "strip", z.ZodTypeAny, {
117
+ userId: string;
118
+ role: string;
119
+ }, {
120
+ userId: string;
121
+ role: string;
122
+ }>;
123
+ export declare const MemberInvitedPayloadSchema: z.ZodObject<{
124
+ email: z.ZodString;
125
+ }, "strip", z.ZodTypeAny, {
126
+ email: string;
127
+ }, {
128
+ email: string;
129
+ }>;
130
+ export declare const SprintCreatedPayloadSchema: z.ZodObject<{
131
+ name: z.ZodString;
132
+ sprintId: z.ZodString;
133
+ }, "strip", z.ZodTypeAny, {
134
+ name: string;
135
+ sprintId: string;
136
+ }, {
137
+ name: string;
138
+ sprintId: string;
139
+ }>;
140
+ export declare const SprintStatusChangedPayloadSchema: z.ZodObject<{
141
+ name: z.ZodString;
142
+ sprintId: z.ZodString;
143
+ oldStatus: z.ZodNativeEnum<typeof SprintStatus>;
144
+ newStatus: z.ZodNativeEnum<typeof SprintStatus>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ oldStatus: SprintStatus;
147
+ newStatus: SprintStatus;
148
+ name: string;
149
+ sprintId: string;
150
+ }, {
151
+ oldStatus: SprintStatus;
152
+ newStatus: SprintStatus;
153
+ name: string;
154
+ sprintId: string;
155
+ }>;
156
+ export declare const ChecklistInitializedPayloadSchema: z.ZodObject<{
157
+ itemCount: z.ZodNumber;
158
+ }, "strip", z.ZodTypeAny, {
159
+ itemCount: number;
160
+ }, {
161
+ itemCount: number;
162
+ }>;
163
+ export declare const CiRanPayloadSchema: z.ZodObject<{
164
+ preset: z.ZodString;
165
+ ok: z.ZodBoolean;
166
+ summary: z.ZodString;
167
+ source: z.ZodString;
168
+ deferred: z.ZodBoolean;
169
+ processed: z.ZodBoolean;
170
+ commands: z.ZodArray<z.ZodObject<{
171
+ cmd: z.ZodString;
172
+ exitCode: z.ZodNumber;
173
+ }, "strip", z.ZodTypeAny, {
174
+ cmd: string;
175
+ exitCode: number;
176
+ }, {
177
+ cmd: string;
178
+ exitCode: number;
179
+ }>, "many">;
180
+ }, "strip", z.ZodTypeAny, {
181
+ preset: string;
182
+ ok: boolean;
183
+ summary: string;
184
+ source: string;
185
+ deferred: boolean;
186
+ processed: boolean;
187
+ commands: {
188
+ cmd: string;
189
+ exitCode: number;
190
+ }[];
191
+ }, {
192
+ preset: string;
193
+ ok: boolean;
194
+ summary: string;
195
+ source: string;
196
+ deferred: boolean;
197
+ processed: boolean;
198
+ commands: {
199
+ cmd: string;
200
+ exitCode: number;
201
+ }[];
202
+ }>;
203
+ export declare const EventPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
204
+ type: z.ZodLiteral<EventType.TASK_CREATED>;
205
+ payload: z.ZodObject<{
206
+ title: z.ZodString;
207
+ }, "strip", z.ZodTypeAny, {
208
+ title: string;
209
+ }, {
210
+ title: string;
211
+ }>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ type: EventType.TASK_CREATED;
214
+ payload: {
215
+ title: string;
216
+ };
217
+ }, {
218
+ type: EventType.TASK_CREATED;
219
+ payload: {
220
+ title: string;
221
+ };
222
+ }>, z.ZodObject<{
223
+ type: z.ZodLiteral<EventType.TASK_DELETED>;
224
+ payload: z.ZodObject<{
225
+ title: z.ZodString;
226
+ }, "strip", z.ZodTypeAny, {
227
+ title: string;
228
+ }, {
229
+ title: string;
230
+ }>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ type: EventType.TASK_DELETED;
233
+ payload: {
234
+ title: string;
235
+ };
236
+ }, {
237
+ type: EventType.TASK_DELETED;
238
+ payload: {
239
+ title: string;
240
+ };
241
+ }>, z.ZodObject<{
242
+ type: z.ZodLiteral<EventType.STATUS_CHANGED>;
243
+ payload: z.ZodObject<{
244
+ title: z.ZodString;
245
+ oldStatus: z.ZodNativeEnum<typeof TaskStatus>;
246
+ newStatus: z.ZodNativeEnum<typeof TaskStatus>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ title: string;
249
+ oldStatus: TaskStatus;
250
+ newStatus: TaskStatus;
251
+ }, {
252
+ title: string;
253
+ oldStatus: TaskStatus;
254
+ newStatus: TaskStatus;
255
+ }>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ type: EventType.STATUS_CHANGED;
258
+ payload: {
259
+ title: string;
260
+ oldStatus: TaskStatus;
261
+ newStatus: TaskStatus;
262
+ };
263
+ }, {
264
+ type: EventType.STATUS_CHANGED;
265
+ payload: {
266
+ title: string;
267
+ oldStatus: TaskStatus;
268
+ newStatus: TaskStatus;
269
+ };
270
+ }>, z.ZodObject<{
271
+ type: z.ZodLiteral<EventType.COMMENT_ADDED>;
272
+ payload: z.ZodObject<{
273
+ title: z.ZodString;
274
+ author: z.ZodString;
275
+ text: z.ZodString;
276
+ }, "strip", z.ZodTypeAny, {
277
+ author: string;
278
+ text: string;
279
+ title: string;
280
+ }, {
281
+ author: string;
282
+ text: string;
283
+ title: string;
284
+ }>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ type: EventType.COMMENT_ADDED;
287
+ payload: {
288
+ author: string;
289
+ text: string;
290
+ title: string;
291
+ };
292
+ }, {
293
+ type: EventType.COMMENT_ADDED;
294
+ payload: {
295
+ author: string;
296
+ text: string;
297
+ title: string;
298
+ };
299
+ }>, z.ZodObject<{
300
+ type: z.ZodLiteral<EventType.WORKSPACE_CREATED>;
301
+ payload: z.ZodObject<{
302
+ name: z.ZodString;
303
+ }, "strip", z.ZodTypeAny, {
304
+ name: string;
305
+ }, {
306
+ name: string;
307
+ }>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ type: EventType.WORKSPACE_CREATED;
310
+ payload: {
311
+ name: string;
312
+ };
313
+ }, {
314
+ type: EventType.WORKSPACE_CREATED;
315
+ payload: {
316
+ name: string;
317
+ };
318
+ }>, z.ZodObject<{
319
+ type: z.ZodLiteral<EventType.MEMBER_ADDED>;
320
+ payload: z.ZodObject<{
321
+ userId: z.ZodString;
322
+ role: z.ZodString;
323
+ }, "strip", z.ZodTypeAny, {
324
+ userId: string;
325
+ role: string;
326
+ }, {
327
+ userId: string;
328
+ role: string;
329
+ }>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ type: EventType.MEMBER_ADDED;
332
+ payload: {
333
+ userId: string;
334
+ role: string;
335
+ };
336
+ }, {
337
+ type: EventType.MEMBER_ADDED;
338
+ payload: {
339
+ userId: string;
340
+ role: string;
341
+ };
342
+ }>, z.ZodObject<{
343
+ type: z.ZodLiteral<EventType.MEMBER_INVITED>;
344
+ payload: z.ZodObject<{
345
+ email: z.ZodString;
346
+ }, "strip", z.ZodTypeAny, {
347
+ email: string;
348
+ }, {
349
+ email: string;
350
+ }>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ type: EventType.MEMBER_INVITED;
353
+ payload: {
354
+ email: string;
355
+ };
356
+ }, {
357
+ type: EventType.MEMBER_INVITED;
358
+ payload: {
359
+ email: string;
360
+ };
361
+ }>, z.ZodObject<{
362
+ type: z.ZodLiteral<EventType.SPRINT_CREATED>;
363
+ payload: z.ZodObject<{
364
+ name: z.ZodString;
365
+ sprintId: z.ZodString;
366
+ }, "strip", z.ZodTypeAny, {
367
+ name: string;
368
+ sprintId: string;
369
+ }, {
370
+ name: string;
371
+ sprintId: string;
372
+ }>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ type: EventType.SPRINT_CREATED;
375
+ payload: {
376
+ name: string;
377
+ sprintId: string;
378
+ };
379
+ }, {
380
+ type: EventType.SPRINT_CREATED;
381
+ payload: {
382
+ name: string;
383
+ sprintId: string;
384
+ };
385
+ }>, z.ZodObject<{
386
+ type: z.ZodLiteral<EventType.SPRINT_STATUS_CHANGED>;
387
+ payload: z.ZodObject<{
388
+ name: z.ZodString;
389
+ sprintId: z.ZodString;
390
+ oldStatus: z.ZodNativeEnum<typeof SprintStatus>;
391
+ newStatus: z.ZodNativeEnum<typeof SprintStatus>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ oldStatus: SprintStatus;
394
+ newStatus: SprintStatus;
395
+ name: string;
396
+ sprintId: string;
397
+ }, {
398
+ oldStatus: SprintStatus;
399
+ newStatus: SprintStatus;
400
+ name: string;
401
+ sprintId: string;
402
+ }>;
403
+ }, "strip", z.ZodTypeAny, {
404
+ type: EventType.SPRINT_STATUS_CHANGED;
405
+ payload: {
406
+ oldStatus: SprintStatus;
407
+ newStatus: SprintStatus;
408
+ name: string;
409
+ sprintId: string;
410
+ };
411
+ }, {
412
+ type: EventType.SPRINT_STATUS_CHANGED;
413
+ payload: {
414
+ oldStatus: SprintStatus;
415
+ newStatus: SprintStatus;
416
+ name: string;
417
+ sprintId: string;
418
+ };
419
+ }>, z.ZodObject<{
420
+ type: z.ZodLiteral<EventType.CHECKLIST_INITIALIZED>;
421
+ payload: z.ZodObject<{
422
+ itemCount: z.ZodNumber;
423
+ }, "strip", z.ZodTypeAny, {
424
+ itemCount: number;
425
+ }, {
426
+ itemCount: number;
427
+ }>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ type: EventType.CHECKLIST_INITIALIZED;
430
+ payload: {
431
+ itemCount: number;
432
+ };
433
+ }, {
434
+ type: EventType.CHECKLIST_INITIALIZED;
435
+ payload: {
436
+ itemCount: number;
437
+ };
438
+ }>, z.ZodObject<{
439
+ type: z.ZodLiteral<EventType.CI_RAN>;
440
+ payload: z.ZodObject<{
441
+ preset: z.ZodString;
442
+ ok: z.ZodBoolean;
443
+ summary: z.ZodString;
444
+ source: z.ZodString;
445
+ deferred: z.ZodBoolean;
446
+ processed: z.ZodBoolean;
447
+ commands: z.ZodArray<z.ZodObject<{
448
+ cmd: z.ZodString;
449
+ exitCode: z.ZodNumber;
450
+ }, "strip", z.ZodTypeAny, {
451
+ cmd: string;
452
+ exitCode: number;
453
+ }, {
454
+ cmd: string;
455
+ exitCode: number;
456
+ }>, "many">;
457
+ }, "strip", z.ZodTypeAny, {
458
+ preset: string;
459
+ ok: boolean;
460
+ summary: string;
461
+ source: string;
462
+ deferred: boolean;
463
+ processed: boolean;
464
+ commands: {
465
+ cmd: string;
466
+ exitCode: number;
467
+ }[];
468
+ }, {
469
+ preset: string;
470
+ ok: boolean;
471
+ summary: string;
472
+ source: string;
473
+ deferred: boolean;
474
+ processed: boolean;
475
+ commands: {
476
+ cmd: string;
477
+ exitCode: number;
478
+ }[];
479
+ }>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ type: EventType.CI_RAN;
482
+ payload: {
483
+ preset: string;
484
+ ok: boolean;
485
+ summary: string;
486
+ source: string;
487
+ deferred: boolean;
488
+ processed: boolean;
489
+ commands: {
490
+ cmd: string;
491
+ exitCode: number;
492
+ }[];
493
+ };
494
+ }, {
495
+ type: EventType.CI_RAN;
496
+ payload: {
497
+ preset: string;
498
+ ok: boolean;
499
+ summary: string;
500
+ source: string;
501
+ deferred: boolean;
502
+ processed: boolean;
503
+ commands: {
504
+ cmd: string;
505
+ exitCode: number;
506
+ }[];
507
+ };
508
+ }>]>;
509
+ export type EventPayload = z.infer<typeof EventPayloadSchema>;
510
+ export declare const EventSchema: z.ZodObject<{
511
+ id: z.ZodString;
512
+ workspaceId: z.ZodString;
513
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
514
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
515
+ type: z.ZodNativeEnum<typeof EventType>;
516
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
517
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
518
+ }, "strip", z.ZodTypeAny, {
519
+ id: string;
520
+ createdAt: number | Date;
521
+ type: EventType;
522
+ payload: Record<string, unknown>;
523
+ workspaceId: string;
524
+ taskId?: string | null | undefined;
525
+ userId?: string | null | undefined;
526
+ }, {
527
+ id: string;
528
+ createdAt: number | Date;
529
+ type: EventType;
530
+ payload: Record<string, unknown>;
531
+ workspaceId: string;
532
+ taskId?: string | null | undefined;
533
+ userId?: string | null | undefined;
534
+ }>;
535
+ export type Event = z.infer<typeof EventSchema>;
536
+ export declare const ArtifactParamSchema: z.ZodObject<{
537
+ taskId: z.ZodString;
538
+ type: z.ZodString;
539
+ filename: z.ZodString;
540
+ }, "strip", z.ZodTypeAny, {
541
+ type: string;
542
+ taskId: string;
543
+ filename: string;
544
+ }, {
545
+ type: string;
546
+ taskId: string;
547
+ filename: string;
548
+ }>;
549
+ export type ArtifactParam = z.infer<typeof ArtifactParamSchema>;
550
+ export declare const TaskIdOnlyParamSchema: z.ZodObject<{
551
+ taskId: z.ZodString;
552
+ }, "strip", z.ZodTypeAny, {
553
+ taskId: string;
554
+ }, {
555
+ taskId: string;
556
+ }>;
557
+ export type TaskIdOnlyParam = z.infer<typeof TaskIdOnlyParamSchema>;
558
+ export declare const EventQuerySchema: z.ZodObject<{
559
+ taskId: z.ZodOptional<z.ZodString>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ taskId?: string | undefined;
562
+ }, {
563
+ taskId?: string | undefined;
564
+ }>;
565
+ export type EventQuery = z.infer<typeof EventQuerySchema>;
566
+ export declare const EventResponseSchema: z.ZodObject<{
567
+ event: z.ZodObject<{
568
+ id: z.ZodString;
569
+ workspaceId: z.ZodString;
570
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
571
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
572
+ type: z.ZodNativeEnum<typeof EventType>;
573
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
574
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ id: string;
577
+ createdAt: number | Date;
578
+ type: EventType;
579
+ payload: Record<string, unknown>;
580
+ workspaceId: string;
581
+ taskId?: string | null | undefined;
582
+ userId?: string | null | undefined;
583
+ }, {
584
+ id: string;
585
+ createdAt: number | Date;
586
+ type: EventType;
587
+ payload: Record<string, unknown>;
588
+ workspaceId: string;
589
+ taskId?: string | null | undefined;
590
+ userId?: string | null | undefined;
591
+ }>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ event: {
594
+ id: string;
595
+ createdAt: number | Date;
596
+ type: EventType;
597
+ payload: Record<string, unknown>;
598
+ workspaceId: string;
599
+ taskId?: string | null | undefined;
600
+ userId?: string | null | undefined;
601
+ };
602
+ }, {
603
+ event: {
604
+ id: string;
605
+ createdAt: number | Date;
606
+ type: EventType;
607
+ payload: Record<string, unknown>;
608
+ workspaceId: string;
609
+ taskId?: string | null | undefined;
610
+ userId?: string | null | undefined;
611
+ };
612
+ }>;
613
+ export type EventResponse = z.infer<typeof EventResponseSchema>;
614
+ export declare const EventsResponseSchema: z.ZodObject<{
615
+ events: z.ZodArray<z.ZodObject<{
616
+ id: z.ZodString;
617
+ workspaceId: z.ZodString;
618
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
619
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
620
+ type: z.ZodNativeEnum<typeof EventType>;
621
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
622
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
623
+ }, "strip", z.ZodTypeAny, {
624
+ id: string;
625
+ createdAt: number | Date;
626
+ type: EventType;
627
+ payload: Record<string, unknown>;
628
+ workspaceId: string;
629
+ taskId?: string | null | undefined;
630
+ userId?: string | null | undefined;
631
+ }, {
632
+ id: string;
633
+ createdAt: number | Date;
634
+ type: EventType;
635
+ payload: Record<string, unknown>;
636
+ workspaceId: string;
637
+ taskId?: string | null | undefined;
638
+ userId?: string | null | undefined;
639
+ }>, "many">;
640
+ }, "strip", z.ZodTypeAny, {
641
+ events: {
642
+ id: string;
643
+ createdAt: number | Date;
644
+ type: EventType;
645
+ payload: Record<string, unknown>;
646
+ workspaceId: string;
647
+ taskId?: string | null | undefined;
648
+ userId?: string | null | undefined;
649
+ }[];
650
+ }, {
651
+ events: {
652
+ id: string;
653
+ createdAt: number | Date;
654
+ type: EventType;
655
+ payload: Record<string, unknown>;
656
+ workspaceId: string;
657
+ taskId?: string | null | undefined;
658
+ userId?: string | null | undefined;
659
+ }[];
660
+ }>;
661
+ export type EventsResponse = z.infer<typeof EventsResponseSchema>;
662
+ export declare const ActivityResponseSchema: z.ZodObject<{
663
+ activity: z.ZodArray<z.ZodObject<{
664
+ id: z.ZodString;
665
+ workspaceId: z.ZodString;
666
+ taskId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
667
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
668
+ type: z.ZodNativeEnum<typeof EventType>;
669
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
670
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
671
+ }, "strip", z.ZodTypeAny, {
672
+ id: string;
673
+ createdAt: number | Date;
674
+ type: EventType;
675
+ payload: Record<string, unknown>;
676
+ workspaceId: string;
677
+ taskId?: string | null | undefined;
678
+ userId?: string | null | undefined;
679
+ }, {
680
+ id: string;
681
+ createdAt: number | Date;
682
+ type: EventType;
683
+ payload: Record<string, unknown>;
684
+ workspaceId: string;
685
+ taskId?: string | null | undefined;
686
+ userId?: string | null | undefined;
687
+ }>, "many">;
688
+ }, "strip", z.ZodTypeAny, {
689
+ activity: {
690
+ id: string;
691
+ createdAt: number | Date;
692
+ type: EventType;
693
+ payload: Record<string, unknown>;
694
+ workspaceId: string;
695
+ taskId?: string | null | undefined;
696
+ userId?: string | null | undefined;
697
+ }[];
698
+ }, {
699
+ activity: {
700
+ id: string;
701
+ createdAt: number | Date;
702
+ type: EventType;
703
+ payload: Record<string, unknown>;
704
+ workspaceId: string;
705
+ taskId?: string | null | undefined;
706
+ userId?: string | null | undefined;
707
+ }[];
708
+ }>;
709
+ export type ActivityResponse = z.infer<typeof ActivityResponseSchema>;
710
+ export declare const CommentResponseSchema: z.ZodObject<{
711
+ comment: z.ZodObject<{
712
+ id: z.ZodString;
713
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
714
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
715
+ } & {
716
+ taskId: z.ZodString;
717
+ author: z.ZodString;
718
+ text: z.ZodString;
719
+ }, "strip", z.ZodTypeAny, {
720
+ id: string;
721
+ createdAt: number | Date;
722
+ updatedAt: number | Date;
723
+ taskId: string;
724
+ author: string;
725
+ text: string;
726
+ }, {
727
+ id: string;
728
+ createdAt: number | Date;
729
+ updatedAt: number | Date;
730
+ taskId: string;
731
+ author: string;
732
+ text: string;
733
+ }>;
734
+ }, "strip", z.ZodTypeAny, {
735
+ comment: {
736
+ id: string;
737
+ createdAt: number | Date;
738
+ updatedAt: number | Date;
739
+ taskId: string;
740
+ author: string;
741
+ text: string;
742
+ };
743
+ }, {
744
+ comment: {
745
+ id: string;
746
+ createdAt: number | Date;
747
+ updatedAt: number | Date;
748
+ taskId: string;
749
+ author: string;
750
+ text: string;
751
+ };
752
+ }>;
753
+ export type CommentResponse = z.infer<typeof CommentResponseSchema>;
754
+ export declare const ArtifactResponseSchema: z.ZodObject<{
755
+ artifact: z.ZodObject<{
756
+ id: z.ZodString;
757
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
758
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
759
+ } & {
760
+ taskId: z.ZodString;
761
+ type: z.ZodString;
762
+ title: z.ZodString;
763
+ contentText: z.ZodOptional<z.ZodString>;
764
+ filePath: z.ZodOptional<z.ZodString>;
765
+ url: z.ZodOptional<z.ZodString>;
766
+ size: z.ZodOptional<z.ZodString>;
767
+ createdBy: z.ZodString;
768
+ }, "strip", z.ZodTypeAny, {
769
+ id: string;
770
+ createdAt: number | Date;
771
+ type: string;
772
+ updatedAt: number | Date;
773
+ taskId: string;
774
+ title: string;
775
+ createdBy: string;
776
+ contentText?: string | undefined;
777
+ filePath?: string | undefined;
778
+ url?: string | undefined;
779
+ size?: string | undefined;
780
+ }, {
781
+ id: string;
782
+ createdAt: number | Date;
783
+ type: string;
784
+ updatedAt: number | Date;
785
+ taskId: string;
786
+ title: string;
787
+ createdBy: string;
788
+ contentText?: string | undefined;
789
+ filePath?: string | undefined;
790
+ url?: string | undefined;
791
+ size?: string | undefined;
792
+ }>;
793
+ }, "strip", z.ZodTypeAny, {
794
+ artifact: {
795
+ id: string;
796
+ createdAt: number | Date;
797
+ type: string;
798
+ updatedAt: number | Date;
799
+ taskId: string;
800
+ title: string;
801
+ createdBy: string;
802
+ contentText?: string | undefined;
803
+ filePath?: string | undefined;
804
+ url?: string | undefined;
805
+ size?: string | undefined;
806
+ };
807
+ }, {
808
+ artifact: {
809
+ id: string;
810
+ createdAt: number | Date;
811
+ type: string;
812
+ updatedAt: number | Date;
813
+ taskId: string;
814
+ title: string;
815
+ createdBy: string;
816
+ contentText?: string | undefined;
817
+ filePath?: string | undefined;
818
+ url?: string | undefined;
819
+ size?: string | undefined;
820
+ };
821
+ }>;
822
+ export type ArtifactResponse = z.infer<typeof ArtifactResponseSchema>;
823
+ export declare const ArtifactsResponseSchema: z.ZodObject<{
824
+ artifacts: z.ZodArray<z.ZodObject<{
825
+ id: z.ZodString;
826
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
827
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
828
+ } & {
829
+ taskId: z.ZodString;
830
+ type: z.ZodString;
831
+ title: z.ZodString;
832
+ contentText: z.ZodOptional<z.ZodString>;
833
+ filePath: z.ZodOptional<z.ZodString>;
834
+ url: z.ZodOptional<z.ZodString>;
835
+ size: z.ZodOptional<z.ZodString>;
836
+ createdBy: z.ZodString;
837
+ }, "strip", z.ZodTypeAny, {
838
+ id: string;
839
+ createdAt: number | Date;
840
+ type: string;
841
+ updatedAt: number | Date;
842
+ taskId: string;
843
+ title: string;
844
+ createdBy: string;
845
+ contentText?: string | undefined;
846
+ filePath?: string | undefined;
847
+ url?: string | undefined;
848
+ size?: string | undefined;
849
+ }, {
850
+ id: string;
851
+ createdAt: number | Date;
852
+ type: string;
853
+ updatedAt: number | Date;
854
+ taskId: string;
855
+ title: string;
856
+ createdBy: string;
857
+ contentText?: string | undefined;
858
+ filePath?: string | undefined;
859
+ url?: string | undefined;
860
+ size?: string | undefined;
861
+ }>, "many">;
862
+ }, "strip", z.ZodTypeAny, {
863
+ artifacts: {
864
+ id: string;
865
+ createdAt: number | Date;
866
+ type: string;
867
+ updatedAt: number | Date;
868
+ taskId: string;
869
+ title: string;
870
+ createdBy: string;
871
+ contentText?: string | undefined;
872
+ filePath?: string | undefined;
873
+ url?: string | undefined;
874
+ size?: string | undefined;
875
+ }[];
876
+ }, {
877
+ artifacts: {
878
+ id: string;
879
+ createdAt: number | Date;
880
+ type: string;
881
+ updatedAt: number | Date;
882
+ taskId: string;
883
+ title: string;
884
+ createdBy: string;
885
+ contentText?: string | undefined;
886
+ filePath?: string | undefined;
887
+ url?: string | undefined;
888
+ size?: string | undefined;
889
+ }[];
890
+ }>;
891
+ export type ArtifactsResponse = z.infer<typeof ArtifactsResponseSchema>;
892
+ export declare const CreateArtifactSchema: z.ZodObject<{
893
+ taskId: z.ZodString;
894
+ type: z.ZodString;
895
+ title: z.ZodString;
896
+ contentText: z.ZodOptional<z.ZodString>;
897
+ }, "strip", z.ZodTypeAny, {
898
+ type: string;
899
+ taskId: string;
900
+ title: string;
901
+ contentText?: string | undefined;
902
+ }, {
903
+ type: string;
904
+ taskId: string;
905
+ title: string;
906
+ contentText?: string | undefined;
907
+ }>;
908
+ export type CreateArtifact = z.infer<typeof CreateArtifactSchema>;
909
+ export declare const ReportCiResultSchema: z.ZodObject<{
910
+ workspaceId: z.ZodString;
911
+ taskId: z.ZodOptional<z.ZodString>;
912
+ preset: z.ZodString;
913
+ ok: z.ZodBoolean;
914
+ summary: z.ZodString;
915
+ commands: z.ZodArray<z.ZodObject<{
916
+ cmd: z.ZodString;
917
+ exitCode: z.ZodNumber;
918
+ }, "strip", z.ZodTypeAny, {
919
+ cmd: string;
920
+ exitCode: number;
921
+ }, {
922
+ cmd: string;
923
+ exitCode: number;
924
+ }>, "many">;
925
+ }, "strip", z.ZodTypeAny, {
926
+ preset: string;
927
+ ok: boolean;
928
+ summary: string;
929
+ commands: {
930
+ cmd: string;
931
+ exitCode: number;
932
+ }[];
933
+ workspaceId: string;
934
+ taskId?: string | undefined;
935
+ }, {
936
+ preset: string;
937
+ ok: boolean;
938
+ summary: string;
939
+ commands: {
940
+ cmd: string;
941
+ exitCode: number;
942
+ }[];
943
+ workspaceId: string;
944
+ taskId?: string | undefined;
945
+ }>;
946
+ export type ReportCiResult = z.infer<typeof ReportCiResultSchema>;
947
+ //# sourceMappingURL=activity.d.ts.map