@ghcrawl/api-contract 0.2.0 → 0.4.0

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.
@@ -32,6 +32,10 @@ export declare const threadSchema: z.ZodObject<{
32
32
  number: z.ZodNumber;
33
33
  kind: z.ZodEnum<["issue", "pull_request"]>;
34
34
  state: z.ZodString;
35
+ isClosed: z.ZodBoolean;
36
+ closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
39
  title: z.ZodString;
36
40
  body: z.ZodNullable<z.ZodString>;
37
41
  authorLogin: z.ZodNullable<z.ZodString>;
@@ -45,12 +49,16 @@ export declare const threadSchema: z.ZodObject<{
45
49
  repoId: number;
46
50
  kind: "issue" | "pull_request";
47
51
  state: string;
52
+ isClosed: boolean;
48
53
  title: string;
49
54
  body: string | null;
50
55
  authorLogin: string | null;
51
56
  htmlUrl: string;
52
57
  labels: string[];
53
58
  updatedAtGh: string | null;
59
+ closedAtGh?: string | null | undefined;
60
+ closedAtLocal?: string | null | undefined;
61
+ closeReasonLocal?: string | null | undefined;
54
62
  clusterId?: number | null | undefined;
55
63
  }, {
56
64
  number: number;
@@ -58,12 +66,16 @@ export declare const threadSchema: z.ZodObject<{
58
66
  repoId: number;
59
67
  kind: "issue" | "pull_request";
60
68
  state: string;
69
+ isClosed: boolean;
61
70
  title: string;
62
71
  body: string | null;
63
72
  authorLogin: string | null;
64
73
  htmlUrl: string;
65
74
  labels: string[];
66
75
  updatedAtGh: string | null;
76
+ closedAtGh?: string | null | undefined;
77
+ closedAtLocal?: string | null | undefined;
78
+ closeReasonLocal?: string | null | undefined;
67
79
  clusterId?: number | null | undefined;
68
80
  }>;
69
81
  export type ThreadDto = z.infer<typeof threadSchema>;
@@ -165,6 +177,10 @@ export declare const threadsResponseSchema: z.ZodObject<{
165
177
  number: z.ZodNumber;
166
178
  kind: z.ZodEnum<["issue", "pull_request"]>;
167
179
  state: z.ZodString;
180
+ isClosed: z.ZodBoolean;
181
+ closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
168
184
  title: z.ZodString;
169
185
  body: z.ZodNullable<z.ZodString>;
170
186
  authorLogin: z.ZodNullable<z.ZodString>;
@@ -178,12 +194,16 @@ export declare const threadsResponseSchema: z.ZodObject<{
178
194
  repoId: number;
179
195
  kind: "issue" | "pull_request";
180
196
  state: string;
197
+ isClosed: boolean;
181
198
  title: string;
182
199
  body: string | null;
183
200
  authorLogin: string | null;
184
201
  htmlUrl: string;
185
202
  labels: string[];
186
203
  updatedAtGh: string | null;
204
+ closedAtGh?: string | null | undefined;
205
+ closedAtLocal?: string | null | undefined;
206
+ closeReasonLocal?: string | null | undefined;
187
207
  clusterId?: number | null | undefined;
188
208
  }, {
189
209
  number: number;
@@ -191,12 +211,16 @@ export declare const threadsResponseSchema: z.ZodObject<{
191
211
  repoId: number;
192
212
  kind: "issue" | "pull_request";
193
213
  state: string;
214
+ isClosed: boolean;
194
215
  title: string;
195
216
  body: string | null;
196
217
  authorLogin: string | null;
197
218
  htmlUrl: string;
198
219
  labels: string[];
199
220
  updatedAtGh: string | null;
221
+ closedAtGh?: string | null | undefined;
222
+ closedAtLocal?: string | null | undefined;
223
+ closeReasonLocal?: string | null | undefined;
200
224
  clusterId?: number | null | undefined;
201
225
  }>, "many">;
202
226
  }, "strip", z.ZodTypeAny, {
@@ -214,12 +238,16 @@ export declare const threadsResponseSchema: z.ZodObject<{
214
238
  repoId: number;
215
239
  kind: "issue" | "pull_request";
216
240
  state: string;
241
+ isClosed: boolean;
217
242
  title: string;
218
243
  body: string | null;
219
244
  authorLogin: string | null;
220
245
  htmlUrl: string;
221
246
  labels: string[];
222
247
  updatedAtGh: string | null;
248
+ closedAtGh?: string | null | undefined;
249
+ closedAtLocal?: string | null | undefined;
250
+ closeReasonLocal?: string | null | undefined;
223
251
  clusterId?: number | null | undefined;
224
252
  }[];
225
253
  }, {
@@ -237,12 +265,16 @@ export declare const threadsResponseSchema: z.ZodObject<{
237
265
  repoId: number;
238
266
  kind: "issue" | "pull_request";
239
267
  state: string;
268
+ isClosed: boolean;
240
269
  title: string;
241
270
  body: string | null;
242
271
  authorLogin: string | null;
243
272
  htmlUrl: string;
244
273
  labels: string[];
245
274
  updatedAtGh: string | null;
275
+ closedAtGh?: string | null | undefined;
276
+ closedAtLocal?: string | null | undefined;
277
+ closeReasonLocal?: string | null | undefined;
246
278
  clusterId?: number | null | undefined;
247
279
  }[];
248
280
  }>;
@@ -267,6 +299,357 @@ export declare const neighborSchema: z.ZodObject<{
267
299
  score: number;
268
300
  }>;
269
301
  export type NeighborDto = z.infer<typeof neighborSchema>;
302
+ export declare const authorThreadSchema: z.ZodObject<{
303
+ thread: z.ZodObject<{
304
+ id: z.ZodNumber;
305
+ repoId: z.ZodNumber;
306
+ number: z.ZodNumber;
307
+ kind: z.ZodEnum<["issue", "pull_request"]>;
308
+ state: z.ZodString;
309
+ isClosed: z.ZodBoolean;
310
+ closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ title: z.ZodString;
314
+ body: z.ZodNullable<z.ZodString>;
315
+ authorLogin: z.ZodNullable<z.ZodString>;
316
+ htmlUrl: z.ZodString;
317
+ labels: z.ZodArray<z.ZodString, "many">;
318
+ updatedAtGh: z.ZodNullable<z.ZodString>;
319
+ clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
320
+ }, "strip", z.ZodTypeAny, {
321
+ number: number;
322
+ id: number;
323
+ repoId: number;
324
+ kind: "issue" | "pull_request";
325
+ state: string;
326
+ isClosed: boolean;
327
+ title: string;
328
+ body: string | null;
329
+ authorLogin: string | null;
330
+ htmlUrl: string;
331
+ labels: string[];
332
+ updatedAtGh: string | null;
333
+ closedAtGh?: string | null | undefined;
334
+ closedAtLocal?: string | null | undefined;
335
+ closeReasonLocal?: string | null | undefined;
336
+ clusterId?: number | null | undefined;
337
+ }, {
338
+ number: number;
339
+ id: number;
340
+ repoId: number;
341
+ kind: "issue" | "pull_request";
342
+ state: string;
343
+ isClosed: boolean;
344
+ title: string;
345
+ body: string | null;
346
+ authorLogin: string | null;
347
+ htmlUrl: string;
348
+ labels: string[];
349
+ updatedAtGh: string | null;
350
+ closedAtGh?: string | null | undefined;
351
+ closedAtLocal?: string | null | undefined;
352
+ closeReasonLocal?: string | null | undefined;
353
+ clusterId?: number | null | undefined;
354
+ }>;
355
+ strongestSameAuthorMatch: z.ZodNullable<z.ZodObject<{
356
+ threadId: z.ZodNumber;
357
+ number: z.ZodNumber;
358
+ kind: z.ZodEnum<["issue", "pull_request"]>;
359
+ title: z.ZodString;
360
+ score: z.ZodNumber;
361
+ }, "strip", z.ZodTypeAny, {
362
+ number: number;
363
+ kind: "issue" | "pull_request";
364
+ title: string;
365
+ threadId: number;
366
+ score: number;
367
+ }, {
368
+ number: number;
369
+ kind: "issue" | "pull_request";
370
+ title: string;
371
+ threadId: number;
372
+ score: number;
373
+ }>>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ thread: {
376
+ number: number;
377
+ id: number;
378
+ repoId: number;
379
+ kind: "issue" | "pull_request";
380
+ state: string;
381
+ isClosed: boolean;
382
+ title: string;
383
+ body: string | null;
384
+ authorLogin: string | null;
385
+ htmlUrl: string;
386
+ labels: string[];
387
+ updatedAtGh: string | null;
388
+ closedAtGh?: string | null | undefined;
389
+ closedAtLocal?: string | null | undefined;
390
+ closeReasonLocal?: string | null | undefined;
391
+ clusterId?: number | null | undefined;
392
+ };
393
+ strongestSameAuthorMatch: {
394
+ number: number;
395
+ kind: "issue" | "pull_request";
396
+ title: string;
397
+ threadId: number;
398
+ score: number;
399
+ } | null;
400
+ }, {
401
+ thread: {
402
+ number: number;
403
+ id: number;
404
+ repoId: number;
405
+ kind: "issue" | "pull_request";
406
+ state: string;
407
+ isClosed: boolean;
408
+ title: string;
409
+ body: string | null;
410
+ authorLogin: string | null;
411
+ htmlUrl: string;
412
+ labels: string[];
413
+ updatedAtGh: string | null;
414
+ closedAtGh?: string | null | undefined;
415
+ closedAtLocal?: string | null | undefined;
416
+ closeReasonLocal?: string | null | undefined;
417
+ clusterId?: number | null | undefined;
418
+ };
419
+ strongestSameAuthorMatch: {
420
+ number: number;
421
+ kind: "issue" | "pull_request";
422
+ title: string;
423
+ threadId: number;
424
+ score: number;
425
+ } | null;
426
+ }>;
427
+ export type AuthorThreadDto = z.infer<typeof authorThreadSchema>;
428
+ export declare const authorThreadsResponseSchema: z.ZodObject<{
429
+ repository: z.ZodObject<{
430
+ id: z.ZodNumber;
431
+ owner: z.ZodString;
432
+ name: z.ZodString;
433
+ fullName: z.ZodString;
434
+ githubRepoId: z.ZodNullable<z.ZodString>;
435
+ updatedAt: z.ZodString;
436
+ }, "strip", z.ZodTypeAny, {
437
+ id: number;
438
+ owner: string;
439
+ name: string;
440
+ fullName: string;
441
+ githubRepoId: string | null;
442
+ updatedAt: string;
443
+ }, {
444
+ id: number;
445
+ owner: string;
446
+ name: string;
447
+ fullName: string;
448
+ githubRepoId: string | null;
449
+ updatedAt: string;
450
+ }>;
451
+ authorLogin: z.ZodString;
452
+ threads: z.ZodArray<z.ZodObject<{
453
+ thread: z.ZodObject<{
454
+ id: z.ZodNumber;
455
+ repoId: z.ZodNumber;
456
+ number: z.ZodNumber;
457
+ kind: z.ZodEnum<["issue", "pull_request"]>;
458
+ state: z.ZodString;
459
+ isClosed: z.ZodBoolean;
460
+ closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
+ title: z.ZodString;
464
+ body: z.ZodNullable<z.ZodString>;
465
+ authorLogin: z.ZodNullable<z.ZodString>;
466
+ htmlUrl: z.ZodString;
467
+ labels: z.ZodArray<z.ZodString, "many">;
468
+ updatedAtGh: z.ZodNullable<z.ZodString>;
469
+ clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ number: number;
472
+ id: number;
473
+ repoId: number;
474
+ kind: "issue" | "pull_request";
475
+ state: string;
476
+ isClosed: boolean;
477
+ title: string;
478
+ body: string | null;
479
+ authorLogin: string | null;
480
+ htmlUrl: string;
481
+ labels: string[];
482
+ updatedAtGh: string | null;
483
+ closedAtGh?: string | null | undefined;
484
+ closedAtLocal?: string | null | undefined;
485
+ closeReasonLocal?: string | null | undefined;
486
+ clusterId?: number | null | undefined;
487
+ }, {
488
+ number: number;
489
+ id: number;
490
+ repoId: number;
491
+ kind: "issue" | "pull_request";
492
+ state: string;
493
+ isClosed: boolean;
494
+ title: string;
495
+ body: string | null;
496
+ authorLogin: string | null;
497
+ htmlUrl: string;
498
+ labels: string[];
499
+ updatedAtGh: string | null;
500
+ closedAtGh?: string | null | undefined;
501
+ closedAtLocal?: string | null | undefined;
502
+ closeReasonLocal?: string | null | undefined;
503
+ clusterId?: number | null | undefined;
504
+ }>;
505
+ strongestSameAuthorMatch: z.ZodNullable<z.ZodObject<{
506
+ threadId: z.ZodNumber;
507
+ number: z.ZodNumber;
508
+ kind: z.ZodEnum<["issue", "pull_request"]>;
509
+ title: z.ZodString;
510
+ score: z.ZodNumber;
511
+ }, "strip", z.ZodTypeAny, {
512
+ number: number;
513
+ kind: "issue" | "pull_request";
514
+ title: string;
515
+ threadId: number;
516
+ score: number;
517
+ }, {
518
+ number: number;
519
+ kind: "issue" | "pull_request";
520
+ title: string;
521
+ threadId: number;
522
+ score: number;
523
+ }>>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ thread: {
526
+ number: number;
527
+ id: number;
528
+ repoId: number;
529
+ kind: "issue" | "pull_request";
530
+ state: string;
531
+ isClosed: boolean;
532
+ title: string;
533
+ body: string | null;
534
+ authorLogin: string | null;
535
+ htmlUrl: string;
536
+ labels: string[];
537
+ updatedAtGh: string | null;
538
+ closedAtGh?: string | null | undefined;
539
+ closedAtLocal?: string | null | undefined;
540
+ closeReasonLocal?: string | null | undefined;
541
+ clusterId?: number | null | undefined;
542
+ };
543
+ strongestSameAuthorMatch: {
544
+ number: number;
545
+ kind: "issue" | "pull_request";
546
+ title: string;
547
+ threadId: number;
548
+ score: number;
549
+ } | null;
550
+ }, {
551
+ thread: {
552
+ number: number;
553
+ id: number;
554
+ repoId: number;
555
+ kind: "issue" | "pull_request";
556
+ state: string;
557
+ isClosed: boolean;
558
+ title: string;
559
+ body: string | null;
560
+ authorLogin: string | null;
561
+ htmlUrl: string;
562
+ labels: string[];
563
+ updatedAtGh: string | null;
564
+ closedAtGh?: string | null | undefined;
565
+ closedAtLocal?: string | null | undefined;
566
+ closeReasonLocal?: string | null | undefined;
567
+ clusterId?: number | null | undefined;
568
+ };
569
+ strongestSameAuthorMatch: {
570
+ number: number;
571
+ kind: "issue" | "pull_request";
572
+ title: string;
573
+ threadId: number;
574
+ score: number;
575
+ } | null;
576
+ }>, "many">;
577
+ }, "strip", z.ZodTypeAny, {
578
+ authorLogin: string;
579
+ repository: {
580
+ id: number;
581
+ owner: string;
582
+ name: string;
583
+ fullName: string;
584
+ githubRepoId: string | null;
585
+ updatedAt: string;
586
+ };
587
+ threads: {
588
+ thread: {
589
+ number: number;
590
+ id: number;
591
+ repoId: number;
592
+ kind: "issue" | "pull_request";
593
+ state: string;
594
+ isClosed: boolean;
595
+ title: string;
596
+ body: string | null;
597
+ authorLogin: string | null;
598
+ htmlUrl: string;
599
+ labels: string[];
600
+ updatedAtGh: string | null;
601
+ closedAtGh?: string | null | undefined;
602
+ closedAtLocal?: string | null | undefined;
603
+ closeReasonLocal?: string | null | undefined;
604
+ clusterId?: number | null | undefined;
605
+ };
606
+ strongestSameAuthorMatch: {
607
+ number: number;
608
+ kind: "issue" | "pull_request";
609
+ title: string;
610
+ threadId: number;
611
+ score: number;
612
+ } | null;
613
+ }[];
614
+ }, {
615
+ authorLogin: string;
616
+ repository: {
617
+ id: number;
618
+ owner: string;
619
+ name: string;
620
+ fullName: string;
621
+ githubRepoId: string | null;
622
+ updatedAt: string;
623
+ };
624
+ threads: {
625
+ thread: {
626
+ number: number;
627
+ id: number;
628
+ repoId: number;
629
+ kind: "issue" | "pull_request";
630
+ state: string;
631
+ isClosed: boolean;
632
+ title: string;
633
+ body: string | null;
634
+ authorLogin: string | null;
635
+ htmlUrl: string;
636
+ labels: string[];
637
+ updatedAtGh: string | null;
638
+ closedAtGh?: string | null | undefined;
639
+ closedAtLocal?: string | null | undefined;
640
+ closeReasonLocal?: string | null | undefined;
641
+ clusterId?: number | null | undefined;
642
+ };
643
+ strongestSameAuthorMatch: {
644
+ number: number;
645
+ kind: "issue" | "pull_request";
646
+ title: string;
647
+ threadId: number;
648
+ score: number;
649
+ } | null;
650
+ }[];
651
+ }>;
652
+ export type AuthorThreadsResponse = z.infer<typeof authorThreadsResponseSchema>;
270
653
  export declare const searchHitSchema: z.ZodObject<{
271
654
  thread: z.ZodObject<{
272
655
  id: z.ZodNumber;
@@ -274,6 +657,10 @@ export declare const searchHitSchema: z.ZodObject<{
274
657
  number: z.ZodNumber;
275
658
  kind: z.ZodEnum<["issue", "pull_request"]>;
276
659
  state: z.ZodString;
660
+ isClosed: z.ZodBoolean;
661
+ closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
662
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
664
  title: z.ZodString;
278
665
  body: z.ZodNullable<z.ZodString>;
279
666
  authorLogin: z.ZodNullable<z.ZodString>;
@@ -287,12 +674,16 @@ export declare const searchHitSchema: z.ZodObject<{
287
674
  repoId: number;
288
675
  kind: "issue" | "pull_request";
289
676
  state: string;
677
+ isClosed: boolean;
290
678
  title: string;
291
679
  body: string | null;
292
680
  authorLogin: string | null;
293
681
  htmlUrl: string;
294
682
  labels: string[];
295
683
  updatedAtGh: string | null;
684
+ closedAtGh?: string | null | undefined;
685
+ closedAtLocal?: string | null | undefined;
686
+ closeReasonLocal?: string | null | undefined;
296
687
  clusterId?: number | null | undefined;
297
688
  }, {
298
689
  number: number;
@@ -300,12 +691,16 @@ export declare const searchHitSchema: z.ZodObject<{
300
691
  repoId: number;
301
692
  kind: "issue" | "pull_request";
302
693
  state: string;
694
+ isClosed: boolean;
303
695
  title: string;
304
696
  body: string | null;
305
697
  authorLogin: string | null;
306
698
  htmlUrl: string;
307
699
  labels: string[];
308
700
  updatedAtGh: string | null;
701
+ closedAtGh?: string | null | undefined;
702
+ closedAtLocal?: string | null | undefined;
703
+ closeReasonLocal?: string | null | undefined;
309
704
  clusterId?: number | null | undefined;
310
705
  }>;
311
706
  keywordScore: z.ZodNullable<z.ZodNumber>;
@@ -337,12 +732,16 @@ export declare const searchHitSchema: z.ZodObject<{
337
732
  repoId: number;
338
733
  kind: "issue" | "pull_request";
339
734
  state: string;
735
+ isClosed: boolean;
340
736
  title: string;
341
737
  body: string | null;
342
738
  authorLogin: string | null;
343
739
  htmlUrl: string;
344
740
  labels: string[];
345
741
  updatedAtGh: string | null;
742
+ closedAtGh?: string | null | undefined;
743
+ closedAtLocal?: string | null | undefined;
744
+ closeReasonLocal?: string | null | undefined;
346
745
  clusterId?: number | null | undefined;
347
746
  };
348
747
  keywordScore: number | null;
@@ -362,12 +761,16 @@ export declare const searchHitSchema: z.ZodObject<{
362
761
  repoId: number;
363
762
  kind: "issue" | "pull_request";
364
763
  state: string;
764
+ isClosed: boolean;
365
765
  title: string;
366
766
  body: string | null;
367
767
  authorLogin: string | null;
368
768
  htmlUrl: string;
369
769
  labels: string[];
370
770
  updatedAtGh: string | null;
771
+ closedAtGh?: string | null | undefined;
772
+ closedAtLocal?: string | null | undefined;
773
+ closeReasonLocal?: string | null | undefined;
371
774
  clusterId?: number | null | undefined;
372
775
  };
373
776
  keywordScore: number | null;
@@ -414,6 +817,10 @@ export declare const searchResponseSchema: z.ZodObject<{
414
817
  number: z.ZodNumber;
415
818
  kind: z.ZodEnum<["issue", "pull_request"]>;
416
819
  state: z.ZodString;
820
+ isClosed: z.ZodBoolean;
821
+ closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
823
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
824
  title: z.ZodString;
418
825
  body: z.ZodNullable<z.ZodString>;
419
826
  authorLogin: z.ZodNullable<z.ZodString>;
@@ -427,12 +834,16 @@ export declare const searchResponseSchema: z.ZodObject<{
427
834
  repoId: number;
428
835
  kind: "issue" | "pull_request";
429
836
  state: string;
837
+ isClosed: boolean;
430
838
  title: string;
431
839
  body: string | null;
432
840
  authorLogin: string | null;
433
841
  htmlUrl: string;
434
842
  labels: string[];
435
843
  updatedAtGh: string | null;
844
+ closedAtGh?: string | null | undefined;
845
+ closedAtLocal?: string | null | undefined;
846
+ closeReasonLocal?: string | null | undefined;
436
847
  clusterId?: number | null | undefined;
437
848
  }, {
438
849
  number: number;
@@ -440,12 +851,16 @@ export declare const searchResponseSchema: z.ZodObject<{
440
851
  repoId: number;
441
852
  kind: "issue" | "pull_request";
442
853
  state: string;
854
+ isClosed: boolean;
443
855
  title: string;
444
856
  body: string | null;
445
857
  authorLogin: string | null;
446
858
  htmlUrl: string;
447
859
  labels: string[];
448
860
  updatedAtGh: string | null;
861
+ closedAtGh?: string | null | undefined;
862
+ closedAtLocal?: string | null | undefined;
863
+ closeReasonLocal?: string | null | undefined;
449
864
  clusterId?: number | null | undefined;
450
865
  }>;
451
866
  keywordScore: z.ZodNullable<z.ZodNumber>;
@@ -477,12 +892,16 @@ export declare const searchResponseSchema: z.ZodObject<{
477
892
  repoId: number;
478
893
  kind: "issue" | "pull_request";
479
894
  state: string;
895
+ isClosed: boolean;
480
896
  title: string;
481
897
  body: string | null;
482
898
  authorLogin: string | null;
483
899
  htmlUrl: string;
484
900
  labels: string[];
485
901
  updatedAtGh: string | null;
902
+ closedAtGh?: string | null | undefined;
903
+ closedAtLocal?: string | null | undefined;
904
+ closeReasonLocal?: string | null | undefined;
486
905
  clusterId?: number | null | undefined;
487
906
  };
488
907
  keywordScore: number | null;
@@ -502,12 +921,16 @@ export declare const searchResponseSchema: z.ZodObject<{
502
921
  repoId: number;
503
922
  kind: "issue" | "pull_request";
504
923
  state: string;
924
+ isClosed: boolean;
505
925
  title: string;
506
926
  body: string | null;
507
927
  authorLogin: string | null;
508
928
  htmlUrl: string;
509
929
  labels: string[];
510
930
  updatedAtGh: string | null;
931
+ closedAtGh?: string | null | undefined;
932
+ closedAtLocal?: string | null | undefined;
933
+ closeReasonLocal?: string | null | undefined;
511
934
  clusterId?: number | null | undefined;
512
935
  };
513
936
  keywordScore: number | null;
@@ -539,12 +962,16 @@ export declare const searchResponseSchema: z.ZodObject<{
539
962
  repoId: number;
540
963
  kind: "issue" | "pull_request";
541
964
  state: string;
965
+ isClosed: boolean;
542
966
  title: string;
543
967
  body: string | null;
544
968
  authorLogin: string | null;
545
969
  htmlUrl: string;
546
970
  labels: string[];
547
971
  updatedAtGh: string | null;
972
+ closedAtGh?: string | null | undefined;
973
+ closedAtLocal?: string | null | undefined;
974
+ closeReasonLocal?: string | null | undefined;
548
975
  clusterId?: number | null | undefined;
549
976
  };
550
977
  keywordScore: number | null;
@@ -576,12 +1003,16 @@ export declare const searchResponseSchema: z.ZodObject<{
576
1003
  repoId: number;
577
1004
  kind: "issue" | "pull_request";
578
1005
  state: string;
1006
+ isClosed: boolean;
579
1007
  title: string;
580
1008
  body: string | null;
581
1009
  authorLogin: string | null;
582
1010
  htmlUrl: string;
583
1011
  labels: string[];
584
1012
  updatedAtGh: string | null;
1013
+ closedAtGh?: string | null | undefined;
1014
+ closedAtLocal?: string | null | undefined;
1015
+ closeReasonLocal?: string | null | undefined;
585
1016
  clusterId?: number | null | undefined;
586
1017
  };
587
1018
  keywordScore: number | null;
@@ -626,6 +1057,10 @@ export declare const neighborsResponseSchema: z.ZodObject<{
626
1057
  number: z.ZodNumber;
627
1058
  kind: z.ZodEnum<["issue", "pull_request"]>;
628
1059
  state: z.ZodString;
1060
+ isClosed: z.ZodBoolean;
1061
+ closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1062
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1063
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
629
1064
  title: z.ZodString;
630
1065
  body: z.ZodNullable<z.ZodString>;
631
1066
  authorLogin: z.ZodNullable<z.ZodString>;
@@ -639,12 +1074,16 @@ export declare const neighborsResponseSchema: z.ZodObject<{
639
1074
  repoId: number;
640
1075
  kind: "issue" | "pull_request";
641
1076
  state: string;
1077
+ isClosed: boolean;
642
1078
  title: string;
643
1079
  body: string | null;
644
1080
  authorLogin: string | null;
645
1081
  htmlUrl: string;
646
1082
  labels: string[];
647
1083
  updatedAtGh: string | null;
1084
+ closedAtGh?: string | null | undefined;
1085
+ closedAtLocal?: string | null | undefined;
1086
+ closeReasonLocal?: string | null | undefined;
648
1087
  clusterId?: number | null | undefined;
649
1088
  }, {
650
1089
  number: number;
@@ -652,12 +1091,16 @@ export declare const neighborsResponseSchema: z.ZodObject<{
652
1091
  repoId: number;
653
1092
  kind: "issue" | "pull_request";
654
1093
  state: string;
1094
+ isClosed: boolean;
655
1095
  title: string;
656
1096
  body: string | null;
657
1097
  authorLogin: string | null;
658
1098
  htmlUrl: string;
659
1099
  labels: string[];
660
1100
  updatedAtGh: string | null;
1101
+ closedAtGh?: string | null | undefined;
1102
+ closedAtLocal?: string | null | undefined;
1103
+ closeReasonLocal?: string | null | undefined;
661
1104
  clusterId?: number | null | undefined;
662
1105
  }>;
663
1106
  neighbors: z.ZodArray<z.ZodObject<{
@@ -694,12 +1137,16 @@ export declare const neighborsResponseSchema: z.ZodObject<{
694
1137
  repoId: number;
695
1138
  kind: "issue" | "pull_request";
696
1139
  state: string;
1140
+ isClosed: boolean;
697
1141
  title: string;
698
1142
  body: string | null;
699
1143
  authorLogin: string | null;
700
1144
  htmlUrl: string;
701
1145
  labels: string[];
702
1146
  updatedAtGh: string | null;
1147
+ closedAtGh?: string | null | undefined;
1148
+ closedAtLocal?: string | null | undefined;
1149
+ closeReasonLocal?: string | null | undefined;
703
1150
  clusterId?: number | null | undefined;
704
1151
  };
705
1152
  neighbors: {
@@ -724,12 +1171,16 @@ export declare const neighborsResponseSchema: z.ZodObject<{
724
1171
  repoId: number;
725
1172
  kind: "issue" | "pull_request";
726
1173
  state: string;
1174
+ isClosed: boolean;
727
1175
  title: string;
728
1176
  body: string | null;
729
1177
  authorLogin: string | null;
730
1178
  htmlUrl: string;
731
1179
  labels: string[];
732
1180
  updatedAtGh: string | null;
1181
+ closedAtGh?: string | null | undefined;
1182
+ closedAtLocal?: string | null | undefined;
1183
+ closeReasonLocal?: string | null | undefined;
733
1184
  clusterId?: number | null | undefined;
734
1185
  };
735
1186
  neighbors: {
@@ -745,11 +1196,13 @@ export declare const clusterMemberSchema: z.ZodObject<{
745
1196
  threadId: z.ZodNumber;
746
1197
  number: z.ZodNumber;
747
1198
  kind: z.ZodEnum<["issue", "pull_request"]>;
1199
+ isClosed: z.ZodDefault<z.ZodBoolean>;
748
1200
  title: z.ZodString;
749
1201
  scoreToRepresentative: z.ZodNullable<z.ZodNumber>;
750
1202
  }, "strip", z.ZodTypeAny, {
751
1203
  number: number;
752
1204
  kind: "issue" | "pull_request";
1205
+ isClosed: boolean;
753
1206
  title: string;
754
1207
  threadId: number;
755
1208
  scoreToRepresentative: number | null;
@@ -759,22 +1212,28 @@ export declare const clusterMemberSchema: z.ZodObject<{
759
1212
  title: string;
760
1213
  threadId: number;
761
1214
  scoreToRepresentative: number | null;
1215
+ isClosed?: boolean | undefined;
762
1216
  }>;
763
1217
  export type ClusterMemberDto = z.infer<typeof clusterMemberSchema>;
764
1218
  export declare const clusterSchema: z.ZodObject<{
765
1219
  id: z.ZodNumber;
766
1220
  repoId: z.ZodNumber;
1221
+ isClosed: z.ZodDefault<z.ZodBoolean>;
1222
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1223
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
1224
  representativeThreadId: z.ZodNullable<z.ZodNumber>;
768
1225
  memberCount: z.ZodNumber;
769
1226
  members: z.ZodArray<z.ZodObject<{
770
1227
  threadId: z.ZodNumber;
771
1228
  number: z.ZodNumber;
772
1229
  kind: z.ZodEnum<["issue", "pull_request"]>;
1230
+ isClosed: z.ZodDefault<z.ZodBoolean>;
773
1231
  title: z.ZodString;
774
1232
  scoreToRepresentative: z.ZodNullable<z.ZodNumber>;
775
1233
  }, "strip", z.ZodTypeAny, {
776
1234
  number: number;
777
1235
  kind: "issue" | "pull_request";
1236
+ isClosed: boolean;
778
1237
  title: string;
779
1238
  threadId: number;
780
1239
  scoreToRepresentative: number | null;
@@ -784,19 +1243,24 @@ export declare const clusterSchema: z.ZodObject<{
784
1243
  title: string;
785
1244
  threadId: number;
786
1245
  scoreToRepresentative: number | null;
1246
+ isClosed?: boolean | undefined;
787
1247
  }>, "many">;
788
1248
  }, "strip", z.ZodTypeAny, {
789
1249
  id: number;
790
1250
  repoId: number;
1251
+ isClosed: boolean;
791
1252
  representativeThreadId: number | null;
792
1253
  memberCount: number;
793
1254
  members: {
794
1255
  number: number;
795
1256
  kind: "issue" | "pull_request";
1257
+ isClosed: boolean;
796
1258
  title: string;
797
1259
  threadId: number;
798
1260
  scoreToRepresentative: number | null;
799
1261
  }[];
1262
+ closedAtLocal?: string | null | undefined;
1263
+ closeReasonLocal?: string | null | undefined;
800
1264
  }, {
801
1265
  id: number;
802
1266
  repoId: number;
@@ -808,7 +1272,11 @@ export declare const clusterSchema: z.ZodObject<{
808
1272
  title: string;
809
1273
  threadId: number;
810
1274
  scoreToRepresentative: number | null;
1275
+ isClosed?: boolean | undefined;
811
1276
  }[];
1277
+ isClosed?: boolean | undefined;
1278
+ closedAtLocal?: string | null | undefined;
1279
+ closeReasonLocal?: string | null | undefined;
812
1280
  }>;
813
1281
  export type ClusterDto = z.infer<typeof clusterSchema>;
814
1282
  export declare const clustersResponseSchema: z.ZodObject<{
@@ -837,17 +1305,22 @@ export declare const clustersResponseSchema: z.ZodObject<{
837
1305
  clusters: z.ZodArray<z.ZodObject<{
838
1306
  id: z.ZodNumber;
839
1307
  repoId: z.ZodNumber;
1308
+ isClosed: z.ZodDefault<z.ZodBoolean>;
1309
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1310
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
840
1311
  representativeThreadId: z.ZodNullable<z.ZodNumber>;
841
1312
  memberCount: z.ZodNumber;
842
1313
  members: z.ZodArray<z.ZodObject<{
843
1314
  threadId: z.ZodNumber;
844
1315
  number: z.ZodNumber;
845
1316
  kind: z.ZodEnum<["issue", "pull_request"]>;
1317
+ isClosed: z.ZodDefault<z.ZodBoolean>;
846
1318
  title: z.ZodString;
847
1319
  scoreToRepresentative: z.ZodNullable<z.ZodNumber>;
848
1320
  }, "strip", z.ZodTypeAny, {
849
1321
  number: number;
850
1322
  kind: "issue" | "pull_request";
1323
+ isClosed: boolean;
851
1324
  title: string;
852
1325
  threadId: number;
853
1326
  scoreToRepresentative: number | null;
@@ -857,19 +1330,24 @@ export declare const clustersResponseSchema: z.ZodObject<{
857
1330
  title: string;
858
1331
  threadId: number;
859
1332
  scoreToRepresentative: number | null;
1333
+ isClosed?: boolean | undefined;
860
1334
  }>, "many">;
861
1335
  }, "strip", z.ZodTypeAny, {
862
1336
  id: number;
863
1337
  repoId: number;
1338
+ isClosed: boolean;
864
1339
  representativeThreadId: number | null;
865
1340
  memberCount: number;
866
1341
  members: {
867
1342
  number: number;
868
1343
  kind: "issue" | "pull_request";
1344
+ isClosed: boolean;
869
1345
  title: string;
870
1346
  threadId: number;
871
1347
  scoreToRepresentative: number | null;
872
1348
  }[];
1349
+ closedAtLocal?: string | null | undefined;
1350
+ closeReasonLocal?: string | null | undefined;
873
1351
  }, {
874
1352
  id: number;
875
1353
  repoId: number;
@@ -881,7 +1359,11 @@ export declare const clustersResponseSchema: z.ZodObject<{
881
1359
  title: string;
882
1360
  threadId: number;
883
1361
  scoreToRepresentative: number | null;
1362
+ isClosed?: boolean | undefined;
884
1363
  }[];
1364
+ isClosed?: boolean | undefined;
1365
+ closedAtLocal?: string | null | undefined;
1366
+ closeReasonLocal?: string | null | undefined;
885
1367
  }>, "many">;
886
1368
  }, "strip", z.ZodTypeAny, {
887
1369
  repository: {
@@ -895,15 +1377,19 @@ export declare const clustersResponseSchema: z.ZodObject<{
895
1377
  clusters: {
896
1378
  id: number;
897
1379
  repoId: number;
1380
+ isClosed: boolean;
898
1381
  representativeThreadId: number | null;
899
1382
  memberCount: number;
900
1383
  members: {
901
1384
  number: number;
902
1385
  kind: "issue" | "pull_request";
1386
+ isClosed: boolean;
903
1387
  title: string;
904
1388
  threadId: number;
905
1389
  scoreToRepresentative: number | null;
906
1390
  }[];
1391
+ closedAtLocal?: string | null | undefined;
1392
+ closeReasonLocal?: string | null | undefined;
907
1393
  }[];
908
1394
  }, {
909
1395
  repository: {
@@ -925,7 +1411,11 @@ export declare const clustersResponseSchema: z.ZodObject<{
925
1411
  title: string;
926
1412
  threadId: number;
927
1413
  scoreToRepresentative: number | null;
1414
+ isClosed?: boolean | undefined;
928
1415
  }[];
1416
+ isClosed?: boolean | undefined;
1417
+ closedAtLocal?: string | null | undefined;
1418
+ closeReasonLocal?: string | null | undefined;
929
1419
  }[];
930
1420
  }>;
931
1421
  export type ClustersResponse = z.infer<typeof clustersResponseSchema>;
@@ -961,6 +1451,9 @@ export type RepoStatsDto = z.infer<typeof repoStatsSchema>;
961
1451
  export declare const clusterSummarySchema: z.ZodObject<{
962
1452
  clusterId: z.ZodNumber;
963
1453
  displayTitle: z.ZodString;
1454
+ isClosed: z.ZodDefault<z.ZodBoolean>;
1455
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1456
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
964
1457
  totalCount: z.ZodNumber;
965
1458
  issueCount: z.ZodNumber;
966
1459
  pullRequestCount: z.ZodNumber;
@@ -969,6 +1462,7 @@ export declare const clusterSummarySchema: z.ZodObject<{
969
1462
  representativeNumber: z.ZodNullable<z.ZodNumber>;
970
1463
  representativeKind: z.ZodNullable<z.ZodEnum<["issue", "pull_request"]>>;
971
1464
  }, "strip", z.ZodTypeAny, {
1465
+ isClosed: boolean;
972
1466
  clusterId: number;
973
1467
  representativeThreadId: number | null;
974
1468
  displayTitle: string;
@@ -978,6 +1472,8 @@ export declare const clusterSummarySchema: z.ZodObject<{
978
1472
  latestUpdatedAt: string | null;
979
1473
  representativeNumber: number | null;
980
1474
  representativeKind: "issue" | "pull_request" | null;
1475
+ closedAtLocal?: string | null | undefined;
1476
+ closeReasonLocal?: string | null | undefined;
981
1477
  }, {
982
1478
  clusterId: number;
983
1479
  representativeThreadId: number | null;
@@ -988,6 +1484,9 @@ export declare const clusterSummarySchema: z.ZodObject<{
988
1484
  latestUpdatedAt: string | null;
989
1485
  representativeNumber: number | null;
990
1486
  representativeKind: "issue" | "pull_request" | null;
1487
+ isClosed?: boolean | undefined;
1488
+ closedAtLocal?: string | null | undefined;
1489
+ closeReasonLocal?: string | null | undefined;
991
1490
  }>;
992
1491
  export type ClusterSummaryDto = z.infer<typeof clusterSummarySchema>;
993
1492
  export declare const clusterSummariesResponseSchema: z.ZodObject<{
@@ -1044,6 +1543,9 @@ export declare const clusterSummariesResponseSchema: z.ZodObject<{
1044
1543
  clusters: z.ZodArray<z.ZodObject<{
1045
1544
  clusterId: z.ZodNumber;
1046
1545
  displayTitle: z.ZodString;
1546
+ isClosed: z.ZodDefault<z.ZodBoolean>;
1547
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1548
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1047
1549
  totalCount: z.ZodNumber;
1048
1550
  issueCount: z.ZodNumber;
1049
1551
  pullRequestCount: z.ZodNumber;
@@ -1052,6 +1554,7 @@ export declare const clusterSummariesResponseSchema: z.ZodObject<{
1052
1554
  representativeNumber: z.ZodNullable<z.ZodNumber>;
1053
1555
  representativeKind: z.ZodNullable<z.ZodEnum<["issue", "pull_request"]>>;
1054
1556
  }, "strip", z.ZodTypeAny, {
1557
+ isClosed: boolean;
1055
1558
  clusterId: number;
1056
1559
  representativeThreadId: number | null;
1057
1560
  displayTitle: string;
@@ -1061,6 +1564,8 @@ export declare const clusterSummariesResponseSchema: z.ZodObject<{
1061
1564
  latestUpdatedAt: string | null;
1062
1565
  representativeNumber: number | null;
1063
1566
  representativeKind: "issue" | "pull_request" | null;
1567
+ closedAtLocal?: string | null | undefined;
1568
+ closeReasonLocal?: string | null | undefined;
1064
1569
  }, {
1065
1570
  clusterId: number;
1066
1571
  representativeThreadId: number | null;
@@ -1071,6 +1576,9 @@ export declare const clusterSummariesResponseSchema: z.ZodObject<{
1071
1576
  latestUpdatedAt: string | null;
1072
1577
  representativeNumber: number | null;
1073
1578
  representativeKind: "issue" | "pull_request" | null;
1579
+ isClosed?: boolean | undefined;
1580
+ closedAtLocal?: string | null | undefined;
1581
+ closeReasonLocal?: string | null | undefined;
1074
1582
  }>, "many">;
1075
1583
  }, "strip", z.ZodTypeAny, {
1076
1584
  repository: {
@@ -1082,6 +1590,7 @@ export declare const clusterSummariesResponseSchema: z.ZodObject<{
1082
1590
  updatedAt: string;
1083
1591
  };
1084
1592
  clusters: {
1593
+ isClosed: boolean;
1085
1594
  clusterId: number;
1086
1595
  representativeThreadId: number | null;
1087
1596
  displayTitle: string;
@@ -1091,6 +1600,8 @@ export declare const clusterSummariesResponseSchema: z.ZodObject<{
1091
1600
  latestUpdatedAt: string | null;
1092
1601
  representativeNumber: number | null;
1093
1602
  representativeKind: "issue" | "pull_request" | null;
1603
+ closedAtLocal?: string | null | undefined;
1604
+ closeReasonLocal?: string | null | undefined;
1094
1605
  }[];
1095
1606
  stats: {
1096
1607
  openIssueCount: number;
@@ -1121,6 +1632,9 @@ export declare const clusterSummariesResponseSchema: z.ZodObject<{
1121
1632
  latestUpdatedAt: string | null;
1122
1633
  representativeNumber: number | null;
1123
1634
  representativeKind: "issue" | "pull_request" | null;
1635
+ isClosed?: boolean | undefined;
1636
+ closedAtLocal?: string | null | undefined;
1637
+ closeReasonLocal?: string | null | undefined;
1124
1638
  }[];
1125
1639
  stats: {
1126
1640
  openIssueCount: number;
@@ -1158,6 +1672,10 @@ export declare const clusterThreadDumpSchema: z.ZodObject<{
1158
1672
  number: z.ZodNumber;
1159
1673
  kind: z.ZodEnum<["issue", "pull_request"]>;
1160
1674
  state: z.ZodString;
1675
+ isClosed: z.ZodBoolean;
1676
+ closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1677
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1678
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1161
1679
  title: z.ZodString;
1162
1680
  body: z.ZodNullable<z.ZodString>;
1163
1681
  authorLogin: z.ZodNullable<z.ZodString>;
@@ -1171,12 +1689,16 @@ export declare const clusterThreadDumpSchema: z.ZodObject<{
1171
1689
  repoId: number;
1172
1690
  kind: "issue" | "pull_request";
1173
1691
  state: string;
1692
+ isClosed: boolean;
1174
1693
  title: string;
1175
1694
  body: string | null;
1176
1695
  authorLogin: string | null;
1177
1696
  htmlUrl: string;
1178
1697
  labels: string[];
1179
1698
  updatedAtGh: string | null;
1699
+ closedAtGh?: string | null | undefined;
1700
+ closedAtLocal?: string | null | undefined;
1701
+ closeReasonLocal?: string | null | undefined;
1180
1702
  clusterId?: number | null | undefined;
1181
1703
  }, {
1182
1704
  number: number;
@@ -1184,12 +1706,16 @@ export declare const clusterThreadDumpSchema: z.ZodObject<{
1184
1706
  repoId: number;
1185
1707
  kind: "issue" | "pull_request";
1186
1708
  state: string;
1709
+ isClosed: boolean;
1187
1710
  title: string;
1188
1711
  body: string | null;
1189
1712
  authorLogin: string | null;
1190
1713
  htmlUrl: string;
1191
1714
  labels: string[];
1192
1715
  updatedAtGh: string | null;
1716
+ closedAtGh?: string | null | undefined;
1717
+ closedAtLocal?: string | null | undefined;
1718
+ closeReasonLocal?: string | null | undefined;
1193
1719
  clusterId?: number | null | undefined;
1194
1720
  }>;
1195
1721
  bodySnippet: z.ZodNullable<z.ZodString>;
@@ -1216,12 +1742,16 @@ export declare const clusterThreadDumpSchema: z.ZodObject<{
1216
1742
  repoId: number;
1217
1743
  kind: "issue" | "pull_request";
1218
1744
  state: string;
1745
+ isClosed: boolean;
1219
1746
  title: string;
1220
1747
  body: string | null;
1221
1748
  authorLogin: string | null;
1222
1749
  htmlUrl: string;
1223
1750
  labels: string[];
1224
1751
  updatedAtGh: string | null;
1752
+ closedAtGh?: string | null | undefined;
1753
+ closedAtLocal?: string | null | undefined;
1754
+ closeReasonLocal?: string | null | undefined;
1225
1755
  clusterId?: number | null | undefined;
1226
1756
  };
1227
1757
  bodySnippet: string | null;
@@ -1238,12 +1768,16 @@ export declare const clusterThreadDumpSchema: z.ZodObject<{
1238
1768
  repoId: number;
1239
1769
  kind: "issue" | "pull_request";
1240
1770
  state: string;
1771
+ isClosed: boolean;
1241
1772
  title: string;
1242
1773
  body: string | null;
1243
1774
  authorLogin: string | null;
1244
1775
  htmlUrl: string;
1245
1776
  labels: string[];
1246
1777
  updatedAtGh: string | null;
1778
+ closedAtGh?: string | null | undefined;
1779
+ closedAtLocal?: string | null | undefined;
1780
+ closeReasonLocal?: string | null | undefined;
1247
1781
  clusterId?: number | null | undefined;
1248
1782
  };
1249
1783
  bodySnippet: string | null;
@@ -1309,6 +1843,9 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1309
1843
  cluster: z.ZodObject<{
1310
1844
  clusterId: z.ZodNumber;
1311
1845
  displayTitle: z.ZodString;
1846
+ isClosed: z.ZodDefault<z.ZodBoolean>;
1847
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1848
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1312
1849
  totalCount: z.ZodNumber;
1313
1850
  issueCount: z.ZodNumber;
1314
1851
  pullRequestCount: z.ZodNumber;
@@ -1317,6 +1854,7 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1317
1854
  representativeNumber: z.ZodNullable<z.ZodNumber>;
1318
1855
  representativeKind: z.ZodNullable<z.ZodEnum<["issue", "pull_request"]>>;
1319
1856
  }, "strip", z.ZodTypeAny, {
1857
+ isClosed: boolean;
1320
1858
  clusterId: number;
1321
1859
  representativeThreadId: number | null;
1322
1860
  displayTitle: string;
@@ -1326,6 +1864,8 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1326
1864
  latestUpdatedAt: string | null;
1327
1865
  representativeNumber: number | null;
1328
1866
  representativeKind: "issue" | "pull_request" | null;
1867
+ closedAtLocal?: string | null | undefined;
1868
+ closeReasonLocal?: string | null | undefined;
1329
1869
  }, {
1330
1870
  clusterId: number;
1331
1871
  representativeThreadId: number | null;
@@ -1336,6 +1876,9 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1336
1876
  latestUpdatedAt: string | null;
1337
1877
  representativeNumber: number | null;
1338
1878
  representativeKind: "issue" | "pull_request" | null;
1879
+ isClosed?: boolean | undefined;
1880
+ closedAtLocal?: string | null | undefined;
1881
+ closeReasonLocal?: string | null | undefined;
1339
1882
  }>;
1340
1883
  members: z.ZodArray<z.ZodObject<{
1341
1884
  thread: z.ZodObject<{
@@ -1344,6 +1887,10 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1344
1887
  number: z.ZodNumber;
1345
1888
  kind: z.ZodEnum<["issue", "pull_request"]>;
1346
1889
  state: z.ZodString;
1890
+ isClosed: z.ZodBoolean;
1891
+ closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1892
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1893
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1347
1894
  title: z.ZodString;
1348
1895
  body: z.ZodNullable<z.ZodString>;
1349
1896
  authorLogin: z.ZodNullable<z.ZodString>;
@@ -1357,12 +1904,16 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1357
1904
  repoId: number;
1358
1905
  kind: "issue" | "pull_request";
1359
1906
  state: string;
1907
+ isClosed: boolean;
1360
1908
  title: string;
1361
1909
  body: string | null;
1362
1910
  authorLogin: string | null;
1363
1911
  htmlUrl: string;
1364
1912
  labels: string[];
1365
1913
  updatedAtGh: string | null;
1914
+ closedAtGh?: string | null | undefined;
1915
+ closedAtLocal?: string | null | undefined;
1916
+ closeReasonLocal?: string | null | undefined;
1366
1917
  clusterId?: number | null | undefined;
1367
1918
  }, {
1368
1919
  number: number;
@@ -1370,12 +1921,16 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1370
1921
  repoId: number;
1371
1922
  kind: "issue" | "pull_request";
1372
1923
  state: string;
1924
+ isClosed: boolean;
1373
1925
  title: string;
1374
1926
  body: string | null;
1375
1927
  authorLogin: string | null;
1376
1928
  htmlUrl: string;
1377
1929
  labels: string[];
1378
1930
  updatedAtGh: string | null;
1931
+ closedAtGh?: string | null | undefined;
1932
+ closedAtLocal?: string | null | undefined;
1933
+ closeReasonLocal?: string | null | undefined;
1379
1934
  clusterId?: number | null | undefined;
1380
1935
  }>;
1381
1936
  bodySnippet: z.ZodNullable<z.ZodString>;
@@ -1402,12 +1957,16 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1402
1957
  repoId: number;
1403
1958
  kind: "issue" | "pull_request";
1404
1959
  state: string;
1960
+ isClosed: boolean;
1405
1961
  title: string;
1406
1962
  body: string | null;
1407
1963
  authorLogin: string | null;
1408
1964
  htmlUrl: string;
1409
1965
  labels: string[];
1410
1966
  updatedAtGh: string | null;
1967
+ closedAtGh?: string | null | undefined;
1968
+ closedAtLocal?: string | null | undefined;
1969
+ closeReasonLocal?: string | null | undefined;
1411
1970
  clusterId?: number | null | undefined;
1412
1971
  };
1413
1972
  bodySnippet: string | null;
@@ -1424,12 +1983,16 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1424
1983
  repoId: number;
1425
1984
  kind: "issue" | "pull_request";
1426
1985
  state: string;
1986
+ isClosed: boolean;
1427
1987
  title: string;
1428
1988
  body: string | null;
1429
1989
  authorLogin: string | null;
1430
1990
  htmlUrl: string;
1431
1991
  labels: string[];
1432
1992
  updatedAtGh: string | null;
1993
+ closedAtGh?: string | null | undefined;
1994
+ closedAtLocal?: string | null | undefined;
1995
+ closeReasonLocal?: string | null | undefined;
1433
1996
  clusterId?: number | null | undefined;
1434
1997
  };
1435
1998
  bodySnippet: string | null;
@@ -1456,12 +2019,16 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1456
2019
  repoId: number;
1457
2020
  kind: "issue" | "pull_request";
1458
2021
  state: string;
2022
+ isClosed: boolean;
1459
2023
  title: string;
1460
2024
  body: string | null;
1461
2025
  authorLogin: string | null;
1462
2026
  htmlUrl: string;
1463
2027
  labels: string[];
1464
2028
  updatedAtGh: string | null;
2029
+ closedAtGh?: string | null | undefined;
2030
+ closedAtLocal?: string | null | undefined;
2031
+ closeReasonLocal?: string | null | undefined;
1465
2032
  clusterId?: number | null | undefined;
1466
2033
  };
1467
2034
  bodySnippet: string | null;
@@ -1483,6 +2050,7 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1483
2050
  latestClusterRunFinishedAt: string | null;
1484
2051
  };
1485
2052
  cluster: {
2053
+ isClosed: boolean;
1486
2054
  clusterId: number;
1487
2055
  representativeThreadId: number | null;
1488
2056
  displayTitle: string;
@@ -1492,6 +2060,8 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1492
2060
  latestUpdatedAt: string | null;
1493
2061
  representativeNumber: number | null;
1494
2062
  representativeKind: "issue" | "pull_request" | null;
2063
+ closedAtLocal?: string | null | undefined;
2064
+ closeReasonLocal?: string | null | undefined;
1495
2065
  };
1496
2066
  }, {
1497
2067
  repository: {
@@ -1509,12 +2079,16 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1509
2079
  repoId: number;
1510
2080
  kind: "issue" | "pull_request";
1511
2081
  state: string;
2082
+ isClosed: boolean;
1512
2083
  title: string;
1513
2084
  body: string | null;
1514
2085
  authorLogin: string | null;
1515
2086
  htmlUrl: string;
1516
2087
  labels: string[];
1517
2088
  updatedAtGh: string | null;
2089
+ closedAtGh?: string | null | undefined;
2090
+ closedAtLocal?: string | null | undefined;
2091
+ closeReasonLocal?: string | null | undefined;
1518
2092
  clusterId?: number | null | undefined;
1519
2093
  };
1520
2094
  bodySnippet: string | null;
@@ -1545,6 +2119,9 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
1545
2119
  latestUpdatedAt: string | null;
1546
2120
  representativeNumber: number | null;
1547
2121
  representativeKind: "issue" | "pull_request" | null;
2122
+ isClosed?: boolean | undefined;
2123
+ closedAtLocal?: string | null | undefined;
2124
+ closeReasonLocal?: string | null | undefined;
1548
2125
  };
1549
2126
  }>;
1550
2127
  export type ClusterDetailResponse = z.infer<typeof clusterDetailResponseSchema>;
@@ -1745,6 +2322,177 @@ export declare const refreshResponseSchema: z.ZodObject<{
1745
2322
  };
1746
2323
  }>;
1747
2324
  export type RefreshResponse = z.infer<typeof refreshResponseSchema>;
2325
+ export declare const closeThreadRequestSchema: z.ZodObject<{
2326
+ owner: z.ZodString;
2327
+ repo: z.ZodString;
2328
+ threadNumber: z.ZodNumber;
2329
+ }, "strip", z.ZodTypeAny, {
2330
+ owner: string;
2331
+ repo: string;
2332
+ threadNumber: number;
2333
+ }, {
2334
+ owner: string;
2335
+ repo: string;
2336
+ threadNumber: number;
2337
+ }>;
2338
+ export type CloseThreadRequest = z.infer<typeof closeThreadRequestSchema>;
2339
+ export declare const closeClusterRequestSchema: z.ZodObject<{
2340
+ owner: z.ZodString;
2341
+ repo: z.ZodString;
2342
+ clusterId: z.ZodNumber;
2343
+ }, "strip", z.ZodTypeAny, {
2344
+ owner: string;
2345
+ clusterId: number;
2346
+ repo: string;
2347
+ }, {
2348
+ owner: string;
2349
+ clusterId: number;
2350
+ repo: string;
2351
+ }>;
2352
+ export type CloseClusterRequest = z.infer<typeof closeClusterRequestSchema>;
2353
+ export declare const closeResponseSchema: z.ZodObject<{
2354
+ ok: z.ZodBoolean;
2355
+ repository: z.ZodObject<{
2356
+ id: z.ZodNumber;
2357
+ owner: z.ZodString;
2358
+ name: z.ZodString;
2359
+ fullName: z.ZodString;
2360
+ githubRepoId: z.ZodNullable<z.ZodString>;
2361
+ updatedAt: z.ZodString;
2362
+ }, "strip", z.ZodTypeAny, {
2363
+ id: number;
2364
+ owner: string;
2365
+ name: string;
2366
+ fullName: string;
2367
+ githubRepoId: string | null;
2368
+ updatedAt: string;
2369
+ }, {
2370
+ id: number;
2371
+ owner: string;
2372
+ name: string;
2373
+ fullName: string;
2374
+ githubRepoId: string | null;
2375
+ updatedAt: string;
2376
+ }>;
2377
+ thread: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2378
+ id: z.ZodNumber;
2379
+ repoId: z.ZodNumber;
2380
+ number: z.ZodNumber;
2381
+ kind: z.ZodEnum<["issue", "pull_request"]>;
2382
+ state: z.ZodString;
2383
+ isClosed: z.ZodBoolean;
2384
+ closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2385
+ closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2386
+ closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2387
+ title: z.ZodString;
2388
+ body: z.ZodNullable<z.ZodString>;
2389
+ authorLogin: z.ZodNullable<z.ZodString>;
2390
+ htmlUrl: z.ZodString;
2391
+ labels: z.ZodArray<z.ZodString, "many">;
2392
+ updatedAtGh: z.ZodNullable<z.ZodString>;
2393
+ clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2394
+ }, "strip", z.ZodTypeAny, {
2395
+ number: number;
2396
+ id: number;
2397
+ repoId: number;
2398
+ kind: "issue" | "pull_request";
2399
+ state: string;
2400
+ isClosed: boolean;
2401
+ title: string;
2402
+ body: string | null;
2403
+ authorLogin: string | null;
2404
+ htmlUrl: string;
2405
+ labels: string[];
2406
+ updatedAtGh: string | null;
2407
+ closedAtGh?: string | null | undefined;
2408
+ closedAtLocal?: string | null | undefined;
2409
+ closeReasonLocal?: string | null | undefined;
2410
+ clusterId?: number | null | undefined;
2411
+ }, {
2412
+ number: number;
2413
+ id: number;
2414
+ repoId: number;
2415
+ kind: "issue" | "pull_request";
2416
+ state: string;
2417
+ isClosed: boolean;
2418
+ title: string;
2419
+ body: string | null;
2420
+ authorLogin: string | null;
2421
+ htmlUrl: string;
2422
+ labels: string[];
2423
+ updatedAtGh: string | null;
2424
+ closedAtGh?: string | null | undefined;
2425
+ closedAtLocal?: string | null | undefined;
2426
+ closeReasonLocal?: string | null | undefined;
2427
+ clusterId?: number | null | undefined;
2428
+ }>>>;
2429
+ clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2430
+ clusterClosed: z.ZodOptional<z.ZodBoolean>;
2431
+ message: z.ZodString;
2432
+ }, "strip", z.ZodTypeAny, {
2433
+ message: string;
2434
+ ok: boolean;
2435
+ repository: {
2436
+ id: number;
2437
+ owner: string;
2438
+ name: string;
2439
+ fullName: string;
2440
+ githubRepoId: string | null;
2441
+ updatedAt: string;
2442
+ };
2443
+ clusterId?: number | null | undefined;
2444
+ thread?: {
2445
+ number: number;
2446
+ id: number;
2447
+ repoId: number;
2448
+ kind: "issue" | "pull_request";
2449
+ state: string;
2450
+ isClosed: boolean;
2451
+ title: string;
2452
+ body: string | null;
2453
+ authorLogin: string | null;
2454
+ htmlUrl: string;
2455
+ labels: string[];
2456
+ updatedAtGh: string | null;
2457
+ closedAtGh?: string | null | undefined;
2458
+ closedAtLocal?: string | null | undefined;
2459
+ closeReasonLocal?: string | null | undefined;
2460
+ clusterId?: number | null | undefined;
2461
+ } | null | undefined;
2462
+ clusterClosed?: boolean | undefined;
2463
+ }, {
2464
+ message: string;
2465
+ ok: boolean;
2466
+ repository: {
2467
+ id: number;
2468
+ owner: string;
2469
+ name: string;
2470
+ fullName: string;
2471
+ githubRepoId: string | null;
2472
+ updatedAt: string;
2473
+ };
2474
+ clusterId?: number | null | undefined;
2475
+ thread?: {
2476
+ number: number;
2477
+ id: number;
2478
+ repoId: number;
2479
+ kind: "issue" | "pull_request";
2480
+ state: string;
2481
+ isClosed: boolean;
2482
+ title: string;
2483
+ body: string | null;
2484
+ authorLogin: string | null;
2485
+ htmlUrl: string;
2486
+ labels: string[];
2487
+ updatedAtGh: string | null;
2488
+ closedAtGh?: string | null | undefined;
2489
+ closedAtLocal?: string | null | undefined;
2490
+ closeReasonLocal?: string | null | undefined;
2491
+ clusterId?: number | null | undefined;
2492
+ } | null | undefined;
2493
+ clusterClosed?: boolean | undefined;
2494
+ }>;
2495
+ export type CloseResponse = z.infer<typeof closeResponseSchema>;
1748
2496
  export declare const rerunActionSchema: z.ZodEnum<["summarize", "embed", "cluster"]>;
1749
2497
  export type RerunAction = z.infer<typeof rerunActionSchema>;
1750
2498
  export declare const actionRequestSchema: z.ZodObject<{