@ghcrawl/api-contract 0.3.0 → 0.5.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.
- package/dist/client.d.ts +21 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +34 -1
- package/dist/client.js.map +1 -1
- package/dist/contracts.d.ts +334 -1429
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +38 -0
- package/dist/contracts.js.map +1 -1
- package/package.json +2 -2
package/dist/contracts.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const threadKindSchema: z.ZodEnum<
|
|
2
|
+
export declare const threadKindSchema: z.ZodEnum<{
|
|
3
|
+
issue: "issue";
|
|
4
|
+
pull_request: "pull_request";
|
|
5
|
+
}>;
|
|
3
6
|
export type ThreadKind = z.infer<typeof threadKindSchema>;
|
|
4
|
-
export declare const searchModeSchema: z.ZodEnum<
|
|
7
|
+
export declare const searchModeSchema: z.ZodEnum<{
|
|
8
|
+
keyword: "keyword";
|
|
9
|
+
semantic: "semantic";
|
|
10
|
+
hybrid: "hybrid";
|
|
11
|
+
}>;
|
|
5
12
|
export type SearchMode = z.infer<typeof searchModeSchema>;
|
|
6
13
|
export declare const repositorySchema: z.ZodObject<{
|
|
7
14
|
id: z.ZodNumber;
|
|
@@ -10,62 +17,29 @@ export declare const repositorySchema: z.ZodObject<{
|
|
|
10
17
|
fullName: z.ZodString;
|
|
11
18
|
githubRepoId: z.ZodNullable<z.ZodString>;
|
|
12
19
|
updatedAt: z.ZodString;
|
|
13
|
-
},
|
|
14
|
-
id: number;
|
|
15
|
-
owner: string;
|
|
16
|
-
name: string;
|
|
17
|
-
fullName: string;
|
|
18
|
-
githubRepoId: string | null;
|
|
19
|
-
updatedAt: string;
|
|
20
|
-
}, {
|
|
21
|
-
id: number;
|
|
22
|
-
owner: string;
|
|
23
|
-
name: string;
|
|
24
|
-
fullName: string;
|
|
25
|
-
githubRepoId: string | null;
|
|
26
|
-
updatedAt: string;
|
|
27
|
-
}>;
|
|
20
|
+
}, z.core.$strip>;
|
|
28
21
|
export type RepositoryDto = z.infer<typeof repositorySchema>;
|
|
29
22
|
export declare const threadSchema: z.ZodObject<{
|
|
30
23
|
id: z.ZodNumber;
|
|
31
24
|
repoId: z.ZodNumber;
|
|
32
25
|
number: z.ZodNumber;
|
|
33
|
-
kind: z.ZodEnum<
|
|
26
|
+
kind: z.ZodEnum<{
|
|
27
|
+
issue: "issue";
|
|
28
|
+
pull_request: "pull_request";
|
|
29
|
+
}>;
|
|
34
30
|
state: z.ZodString;
|
|
31
|
+
isClosed: z.ZodBoolean;
|
|
32
|
+
closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
title: z.ZodString;
|
|
36
36
|
body: z.ZodNullable<z.ZodString>;
|
|
37
37
|
authorLogin: z.ZodNullable<z.ZodString>;
|
|
38
38
|
htmlUrl: z.ZodString;
|
|
39
|
-
labels: z.ZodArray<z.ZodString
|
|
39
|
+
labels: z.ZodArray<z.ZodString>;
|
|
40
40
|
updatedAtGh: z.ZodNullable<z.ZodString>;
|
|
41
41
|
clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
-
},
|
|
43
|
-
number: number;
|
|
44
|
-
id: number;
|
|
45
|
-
repoId: number;
|
|
46
|
-
kind: "issue" | "pull_request";
|
|
47
|
-
state: string;
|
|
48
|
-
title: string;
|
|
49
|
-
body: string | null;
|
|
50
|
-
authorLogin: string | null;
|
|
51
|
-
htmlUrl: string;
|
|
52
|
-
labels: string[];
|
|
53
|
-
updatedAtGh: string | null;
|
|
54
|
-
clusterId?: number | null | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
number: number;
|
|
57
|
-
id: number;
|
|
58
|
-
repoId: number;
|
|
59
|
-
kind: "issue" | "pull_request";
|
|
60
|
-
state: string;
|
|
61
|
-
title: string;
|
|
62
|
-
body: string | null;
|
|
63
|
-
authorLogin: string | null;
|
|
64
|
-
htmlUrl: string;
|
|
65
|
-
labels: string[];
|
|
66
|
-
updatedAtGh: string | null;
|
|
67
|
-
clusterId?: number | null | undefined;
|
|
68
|
-
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
69
43
|
export type ThreadDto = z.infer<typeof threadSchema>;
|
|
70
44
|
export declare const healthResponseSchema: z.ZodObject<{
|
|
71
45
|
ok: z.ZodBoolean;
|
|
@@ -75,23 +49,7 @@ export declare const healthResponseSchema: z.ZodObject<{
|
|
|
75
49
|
apiPort: z.ZodNumber;
|
|
76
50
|
githubConfigured: z.ZodBoolean;
|
|
77
51
|
openaiConfigured: z.ZodBoolean;
|
|
78
|
-
},
|
|
79
|
-
ok: boolean;
|
|
80
|
-
configPath: string;
|
|
81
|
-
configFileExists: boolean;
|
|
82
|
-
dbPath: string;
|
|
83
|
-
apiPort: number;
|
|
84
|
-
githubConfigured: boolean;
|
|
85
|
-
openaiConfigured: boolean;
|
|
86
|
-
}, {
|
|
87
|
-
ok: boolean;
|
|
88
|
-
configPath: string;
|
|
89
|
-
configFileExists: boolean;
|
|
90
|
-
dbPath: string;
|
|
91
|
-
apiPort: number;
|
|
92
|
-
githubConfigured: boolean;
|
|
93
|
-
openaiConfigured: boolean;
|
|
94
|
-
}>;
|
|
52
|
+
}, z.core.$strip>;
|
|
95
53
|
export type HealthResponse = z.infer<typeof healthResponseSchema>;
|
|
96
54
|
export declare const repositoriesResponseSchema: z.ZodObject<{
|
|
97
55
|
repositories: z.ZodArray<z.ZodObject<{
|
|
@@ -101,40 +59,8 @@ export declare const repositoriesResponseSchema: z.ZodObject<{
|
|
|
101
59
|
fullName: z.ZodString;
|
|
102
60
|
githubRepoId: z.ZodNullable<z.ZodString>;
|
|
103
61
|
updatedAt: z.ZodString;
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
owner: string;
|
|
107
|
-
name: string;
|
|
108
|
-
fullName: string;
|
|
109
|
-
githubRepoId: string | null;
|
|
110
|
-
updatedAt: string;
|
|
111
|
-
}, {
|
|
112
|
-
id: number;
|
|
113
|
-
owner: string;
|
|
114
|
-
name: string;
|
|
115
|
-
fullName: string;
|
|
116
|
-
githubRepoId: string | null;
|
|
117
|
-
updatedAt: string;
|
|
118
|
-
}>, "many">;
|
|
119
|
-
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
repositories: {
|
|
121
|
-
id: number;
|
|
122
|
-
owner: string;
|
|
123
|
-
name: string;
|
|
124
|
-
fullName: string;
|
|
125
|
-
githubRepoId: string | null;
|
|
126
|
-
updatedAt: string;
|
|
127
|
-
}[];
|
|
128
|
-
}, {
|
|
129
|
-
repositories: {
|
|
130
|
-
id: number;
|
|
131
|
-
owner: string;
|
|
132
|
-
name: string;
|
|
133
|
-
fullName: string;
|
|
134
|
-
githubRepoId: string | null;
|
|
135
|
-
updatedAt: string;
|
|
136
|
-
}[];
|
|
137
|
-
}>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
138
64
|
export type RepositoriesResponse = z.infer<typeof repositoriesResponseSchema>;
|
|
139
65
|
export declare const threadsResponseSchema: z.ZodObject<{
|
|
140
66
|
repository: z.ZodObject<{
|
|
@@ -144,243 +70,156 @@ export declare const threadsResponseSchema: z.ZodObject<{
|
|
|
144
70
|
fullName: z.ZodString;
|
|
145
71
|
githubRepoId: z.ZodNullable<z.ZodString>;
|
|
146
72
|
updatedAt: z.ZodString;
|
|
147
|
-
},
|
|
148
|
-
id: number;
|
|
149
|
-
owner: string;
|
|
150
|
-
name: string;
|
|
151
|
-
fullName: string;
|
|
152
|
-
githubRepoId: string | null;
|
|
153
|
-
updatedAt: string;
|
|
154
|
-
}, {
|
|
155
|
-
id: number;
|
|
156
|
-
owner: string;
|
|
157
|
-
name: string;
|
|
158
|
-
fullName: string;
|
|
159
|
-
githubRepoId: string | null;
|
|
160
|
-
updatedAt: string;
|
|
161
|
-
}>;
|
|
73
|
+
}, z.core.$strip>;
|
|
162
74
|
threads: z.ZodArray<z.ZodObject<{
|
|
163
75
|
id: z.ZodNumber;
|
|
164
76
|
repoId: z.ZodNumber;
|
|
165
77
|
number: z.ZodNumber;
|
|
166
|
-
kind: z.ZodEnum<
|
|
78
|
+
kind: z.ZodEnum<{
|
|
79
|
+
issue: "issue";
|
|
80
|
+
pull_request: "pull_request";
|
|
81
|
+
}>;
|
|
167
82
|
state: z.ZodString;
|
|
83
|
+
isClosed: z.ZodBoolean;
|
|
84
|
+
closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
168
87
|
title: z.ZodString;
|
|
169
88
|
body: z.ZodNullable<z.ZodString>;
|
|
170
89
|
authorLogin: z.ZodNullable<z.ZodString>;
|
|
171
90
|
htmlUrl: z.ZodString;
|
|
172
|
-
labels: z.ZodArray<z.ZodString
|
|
91
|
+
labels: z.ZodArray<z.ZodString>;
|
|
173
92
|
updatedAtGh: z.ZodNullable<z.ZodString>;
|
|
174
93
|
clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
id: number;
|
|
178
|
-
repoId: number;
|
|
179
|
-
kind: "issue" | "pull_request";
|
|
180
|
-
state: string;
|
|
181
|
-
title: string;
|
|
182
|
-
body: string | null;
|
|
183
|
-
authorLogin: string | null;
|
|
184
|
-
htmlUrl: string;
|
|
185
|
-
labels: string[];
|
|
186
|
-
updatedAtGh: string | null;
|
|
187
|
-
clusterId?: number | null | undefined;
|
|
188
|
-
}, {
|
|
189
|
-
number: number;
|
|
190
|
-
id: number;
|
|
191
|
-
repoId: number;
|
|
192
|
-
kind: "issue" | "pull_request";
|
|
193
|
-
state: string;
|
|
194
|
-
title: string;
|
|
195
|
-
body: string | null;
|
|
196
|
-
authorLogin: string | null;
|
|
197
|
-
htmlUrl: string;
|
|
198
|
-
labels: string[];
|
|
199
|
-
updatedAtGh: string | null;
|
|
200
|
-
clusterId?: number | null | undefined;
|
|
201
|
-
}>, "many">;
|
|
202
|
-
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
repository: {
|
|
204
|
-
id: number;
|
|
205
|
-
owner: string;
|
|
206
|
-
name: string;
|
|
207
|
-
fullName: string;
|
|
208
|
-
githubRepoId: string | null;
|
|
209
|
-
updatedAt: string;
|
|
210
|
-
};
|
|
211
|
-
threads: {
|
|
212
|
-
number: number;
|
|
213
|
-
id: number;
|
|
214
|
-
repoId: number;
|
|
215
|
-
kind: "issue" | "pull_request";
|
|
216
|
-
state: string;
|
|
217
|
-
title: string;
|
|
218
|
-
body: string | null;
|
|
219
|
-
authorLogin: string | null;
|
|
220
|
-
htmlUrl: string;
|
|
221
|
-
labels: string[];
|
|
222
|
-
updatedAtGh: string | null;
|
|
223
|
-
clusterId?: number | null | undefined;
|
|
224
|
-
}[];
|
|
225
|
-
}, {
|
|
226
|
-
repository: {
|
|
227
|
-
id: number;
|
|
228
|
-
owner: string;
|
|
229
|
-
name: string;
|
|
230
|
-
fullName: string;
|
|
231
|
-
githubRepoId: string | null;
|
|
232
|
-
updatedAt: string;
|
|
233
|
-
};
|
|
234
|
-
threads: {
|
|
235
|
-
number: number;
|
|
236
|
-
id: number;
|
|
237
|
-
repoId: number;
|
|
238
|
-
kind: "issue" | "pull_request";
|
|
239
|
-
state: string;
|
|
240
|
-
title: string;
|
|
241
|
-
body: string | null;
|
|
242
|
-
authorLogin: string | null;
|
|
243
|
-
htmlUrl: string;
|
|
244
|
-
labels: string[];
|
|
245
|
-
updatedAtGh: string | null;
|
|
246
|
-
clusterId?: number | null | undefined;
|
|
247
|
-
}[];
|
|
248
|
-
}>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
249
96
|
export type ThreadsResponse = z.infer<typeof threadsResponseSchema>;
|
|
250
97
|
export declare const neighborSchema: z.ZodObject<{
|
|
251
98
|
threadId: z.ZodNumber;
|
|
252
99
|
number: z.ZodNumber;
|
|
253
|
-
kind: z.ZodEnum<
|
|
100
|
+
kind: z.ZodEnum<{
|
|
101
|
+
issue: "issue";
|
|
102
|
+
pull_request: "pull_request";
|
|
103
|
+
}>;
|
|
254
104
|
title: z.ZodString;
|
|
255
105
|
score: z.ZodNumber;
|
|
256
|
-
},
|
|
257
|
-
number: number;
|
|
258
|
-
kind: "issue" | "pull_request";
|
|
259
|
-
title: string;
|
|
260
|
-
threadId: number;
|
|
261
|
-
score: number;
|
|
262
|
-
}, {
|
|
263
|
-
number: number;
|
|
264
|
-
kind: "issue" | "pull_request";
|
|
265
|
-
title: string;
|
|
266
|
-
threadId: number;
|
|
267
|
-
score: number;
|
|
268
|
-
}>;
|
|
106
|
+
}, z.core.$strip>;
|
|
269
107
|
export type NeighborDto = z.infer<typeof neighborSchema>;
|
|
108
|
+
export declare const authorThreadSchema: z.ZodObject<{
|
|
109
|
+
thread: z.ZodObject<{
|
|
110
|
+
id: z.ZodNumber;
|
|
111
|
+
repoId: z.ZodNumber;
|
|
112
|
+
number: z.ZodNumber;
|
|
113
|
+
kind: z.ZodEnum<{
|
|
114
|
+
issue: "issue";
|
|
115
|
+
pull_request: "pull_request";
|
|
116
|
+
}>;
|
|
117
|
+
state: z.ZodString;
|
|
118
|
+
isClosed: z.ZodBoolean;
|
|
119
|
+
closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
title: z.ZodString;
|
|
123
|
+
body: z.ZodNullable<z.ZodString>;
|
|
124
|
+
authorLogin: z.ZodNullable<z.ZodString>;
|
|
125
|
+
htmlUrl: z.ZodString;
|
|
126
|
+
labels: z.ZodArray<z.ZodString>;
|
|
127
|
+
updatedAtGh: z.ZodNullable<z.ZodString>;
|
|
128
|
+
clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
strongestSameAuthorMatch: z.ZodNullable<z.ZodObject<{
|
|
131
|
+
threadId: z.ZodNumber;
|
|
132
|
+
number: z.ZodNumber;
|
|
133
|
+
kind: z.ZodEnum<{
|
|
134
|
+
issue: "issue";
|
|
135
|
+
pull_request: "pull_request";
|
|
136
|
+
}>;
|
|
137
|
+
title: z.ZodString;
|
|
138
|
+
score: z.ZodNumber;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export type AuthorThreadDto = z.infer<typeof authorThreadSchema>;
|
|
142
|
+
export declare const authorThreadsResponseSchema: z.ZodObject<{
|
|
143
|
+
repository: z.ZodObject<{
|
|
144
|
+
id: z.ZodNumber;
|
|
145
|
+
owner: z.ZodString;
|
|
146
|
+
name: z.ZodString;
|
|
147
|
+
fullName: z.ZodString;
|
|
148
|
+
githubRepoId: z.ZodNullable<z.ZodString>;
|
|
149
|
+
updatedAt: z.ZodString;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
authorLogin: z.ZodString;
|
|
152
|
+
threads: z.ZodArray<z.ZodObject<{
|
|
153
|
+
thread: z.ZodObject<{
|
|
154
|
+
id: z.ZodNumber;
|
|
155
|
+
repoId: z.ZodNumber;
|
|
156
|
+
number: z.ZodNumber;
|
|
157
|
+
kind: z.ZodEnum<{
|
|
158
|
+
issue: "issue";
|
|
159
|
+
pull_request: "pull_request";
|
|
160
|
+
}>;
|
|
161
|
+
state: z.ZodString;
|
|
162
|
+
isClosed: z.ZodBoolean;
|
|
163
|
+
closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
+
title: z.ZodString;
|
|
167
|
+
body: z.ZodNullable<z.ZodString>;
|
|
168
|
+
authorLogin: z.ZodNullable<z.ZodString>;
|
|
169
|
+
htmlUrl: z.ZodString;
|
|
170
|
+
labels: z.ZodArray<z.ZodString>;
|
|
171
|
+
updatedAtGh: z.ZodNullable<z.ZodString>;
|
|
172
|
+
clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
strongestSameAuthorMatch: z.ZodNullable<z.ZodObject<{
|
|
175
|
+
threadId: z.ZodNumber;
|
|
176
|
+
number: z.ZodNumber;
|
|
177
|
+
kind: z.ZodEnum<{
|
|
178
|
+
issue: "issue";
|
|
179
|
+
pull_request: "pull_request";
|
|
180
|
+
}>;
|
|
181
|
+
title: z.ZodString;
|
|
182
|
+
score: z.ZodNumber;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
export type AuthorThreadsResponse = z.infer<typeof authorThreadsResponseSchema>;
|
|
270
187
|
export declare const searchHitSchema: z.ZodObject<{
|
|
271
188
|
thread: z.ZodObject<{
|
|
272
189
|
id: z.ZodNumber;
|
|
273
190
|
repoId: z.ZodNumber;
|
|
274
191
|
number: z.ZodNumber;
|
|
275
|
-
kind: z.ZodEnum<
|
|
192
|
+
kind: z.ZodEnum<{
|
|
193
|
+
issue: "issue";
|
|
194
|
+
pull_request: "pull_request";
|
|
195
|
+
}>;
|
|
276
196
|
state: z.ZodString;
|
|
197
|
+
isClosed: z.ZodBoolean;
|
|
198
|
+
closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
199
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
200
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
201
|
title: z.ZodString;
|
|
278
202
|
body: z.ZodNullable<z.ZodString>;
|
|
279
203
|
authorLogin: z.ZodNullable<z.ZodString>;
|
|
280
204
|
htmlUrl: z.ZodString;
|
|
281
|
-
labels: z.ZodArray<z.ZodString
|
|
205
|
+
labels: z.ZodArray<z.ZodString>;
|
|
282
206
|
updatedAtGh: z.ZodNullable<z.ZodString>;
|
|
283
207
|
clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
284
|
-
},
|
|
285
|
-
number: number;
|
|
286
|
-
id: number;
|
|
287
|
-
repoId: number;
|
|
288
|
-
kind: "issue" | "pull_request";
|
|
289
|
-
state: string;
|
|
290
|
-
title: string;
|
|
291
|
-
body: string | null;
|
|
292
|
-
authorLogin: string | null;
|
|
293
|
-
htmlUrl: string;
|
|
294
|
-
labels: string[];
|
|
295
|
-
updatedAtGh: string | null;
|
|
296
|
-
clusterId?: number | null | undefined;
|
|
297
|
-
}, {
|
|
298
|
-
number: number;
|
|
299
|
-
id: number;
|
|
300
|
-
repoId: number;
|
|
301
|
-
kind: "issue" | "pull_request";
|
|
302
|
-
state: string;
|
|
303
|
-
title: string;
|
|
304
|
-
body: string | null;
|
|
305
|
-
authorLogin: string | null;
|
|
306
|
-
htmlUrl: string;
|
|
307
|
-
labels: string[];
|
|
308
|
-
updatedAtGh: string | null;
|
|
309
|
-
clusterId?: number | null | undefined;
|
|
310
|
-
}>;
|
|
208
|
+
}, z.core.$strip>;
|
|
311
209
|
keywordScore: z.ZodNullable<z.ZodNumber>;
|
|
312
210
|
semanticScore: z.ZodNullable<z.ZodNumber>;
|
|
313
211
|
hybridScore: z.ZodNumber;
|
|
314
212
|
neighbors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
315
213
|
threadId: z.ZodNumber;
|
|
316
214
|
number: z.ZodNumber;
|
|
317
|
-
kind: z.ZodEnum<
|
|
215
|
+
kind: z.ZodEnum<{
|
|
216
|
+
issue: "issue";
|
|
217
|
+
pull_request: "pull_request";
|
|
218
|
+
}>;
|
|
318
219
|
title: z.ZodString;
|
|
319
220
|
score: z.ZodNumber;
|
|
320
|
-
},
|
|
321
|
-
|
|
322
|
-
kind: "issue" | "pull_request";
|
|
323
|
-
title: string;
|
|
324
|
-
threadId: number;
|
|
325
|
-
score: number;
|
|
326
|
-
}, {
|
|
327
|
-
number: number;
|
|
328
|
-
kind: "issue" | "pull_request";
|
|
329
|
-
title: string;
|
|
330
|
-
threadId: number;
|
|
331
|
-
score: number;
|
|
332
|
-
}>, "many">>;
|
|
333
|
-
}, "strip", z.ZodTypeAny, {
|
|
334
|
-
thread: {
|
|
335
|
-
number: number;
|
|
336
|
-
id: number;
|
|
337
|
-
repoId: number;
|
|
338
|
-
kind: "issue" | "pull_request";
|
|
339
|
-
state: string;
|
|
340
|
-
title: string;
|
|
341
|
-
body: string | null;
|
|
342
|
-
authorLogin: string | null;
|
|
343
|
-
htmlUrl: string;
|
|
344
|
-
labels: string[];
|
|
345
|
-
updatedAtGh: string | null;
|
|
346
|
-
clusterId?: number | null | undefined;
|
|
347
|
-
};
|
|
348
|
-
keywordScore: number | null;
|
|
349
|
-
semanticScore: number | null;
|
|
350
|
-
hybridScore: number;
|
|
351
|
-
neighbors: {
|
|
352
|
-
number: number;
|
|
353
|
-
kind: "issue" | "pull_request";
|
|
354
|
-
title: string;
|
|
355
|
-
threadId: number;
|
|
356
|
-
score: number;
|
|
357
|
-
}[];
|
|
358
|
-
}, {
|
|
359
|
-
thread: {
|
|
360
|
-
number: number;
|
|
361
|
-
id: number;
|
|
362
|
-
repoId: number;
|
|
363
|
-
kind: "issue" | "pull_request";
|
|
364
|
-
state: string;
|
|
365
|
-
title: string;
|
|
366
|
-
body: string | null;
|
|
367
|
-
authorLogin: string | null;
|
|
368
|
-
htmlUrl: string;
|
|
369
|
-
labels: string[];
|
|
370
|
-
updatedAtGh: string | null;
|
|
371
|
-
clusterId?: number | null | undefined;
|
|
372
|
-
};
|
|
373
|
-
keywordScore: number | null;
|
|
374
|
-
semanticScore: number | null;
|
|
375
|
-
hybridScore: number;
|
|
376
|
-
neighbors?: {
|
|
377
|
-
number: number;
|
|
378
|
-
kind: "issue" | "pull_request";
|
|
379
|
-
title: string;
|
|
380
|
-
threadId: number;
|
|
381
|
-
score: number;
|
|
382
|
-
}[] | undefined;
|
|
383
|
-
}>;
|
|
221
|
+
}, z.core.$strip>>>;
|
|
222
|
+
}, z.core.$strip>;
|
|
384
223
|
export type SearchHitDto = z.infer<typeof searchHitSchema>;
|
|
385
224
|
export declare const searchResponseSchema: z.ZodObject<{
|
|
386
225
|
repository: z.ZodObject<{
|
|
@@ -390,212 +229,50 @@ export declare const searchResponseSchema: z.ZodObject<{
|
|
|
390
229
|
fullName: z.ZodString;
|
|
391
230
|
githubRepoId: z.ZodNullable<z.ZodString>;
|
|
392
231
|
updatedAt: z.ZodString;
|
|
393
|
-
},
|
|
394
|
-
id: number;
|
|
395
|
-
owner: string;
|
|
396
|
-
name: string;
|
|
397
|
-
fullName: string;
|
|
398
|
-
githubRepoId: string | null;
|
|
399
|
-
updatedAt: string;
|
|
400
|
-
}, {
|
|
401
|
-
id: number;
|
|
402
|
-
owner: string;
|
|
403
|
-
name: string;
|
|
404
|
-
fullName: string;
|
|
405
|
-
githubRepoId: string | null;
|
|
406
|
-
updatedAt: string;
|
|
407
|
-
}>;
|
|
232
|
+
}, z.core.$strip>;
|
|
408
233
|
query: z.ZodString;
|
|
409
|
-
mode: z.ZodEnum<
|
|
234
|
+
mode: z.ZodEnum<{
|
|
235
|
+
keyword: "keyword";
|
|
236
|
+
semantic: "semantic";
|
|
237
|
+
hybrid: "hybrid";
|
|
238
|
+
}>;
|
|
410
239
|
hits: z.ZodArray<z.ZodObject<{
|
|
411
240
|
thread: z.ZodObject<{
|
|
412
241
|
id: z.ZodNumber;
|
|
413
242
|
repoId: z.ZodNumber;
|
|
414
243
|
number: z.ZodNumber;
|
|
415
|
-
kind: z.ZodEnum<
|
|
244
|
+
kind: z.ZodEnum<{
|
|
245
|
+
issue: "issue";
|
|
246
|
+
pull_request: "pull_request";
|
|
247
|
+
}>;
|
|
416
248
|
state: z.ZodString;
|
|
249
|
+
isClosed: z.ZodBoolean;
|
|
250
|
+
closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
252
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
417
253
|
title: z.ZodString;
|
|
418
254
|
body: z.ZodNullable<z.ZodString>;
|
|
419
255
|
authorLogin: z.ZodNullable<z.ZodString>;
|
|
420
256
|
htmlUrl: z.ZodString;
|
|
421
|
-
labels: z.ZodArray<z.ZodString
|
|
257
|
+
labels: z.ZodArray<z.ZodString>;
|
|
422
258
|
updatedAtGh: z.ZodNullable<z.ZodString>;
|
|
423
259
|
clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
424
|
-
},
|
|
425
|
-
number: number;
|
|
426
|
-
id: number;
|
|
427
|
-
repoId: number;
|
|
428
|
-
kind: "issue" | "pull_request";
|
|
429
|
-
state: string;
|
|
430
|
-
title: string;
|
|
431
|
-
body: string | null;
|
|
432
|
-
authorLogin: string | null;
|
|
433
|
-
htmlUrl: string;
|
|
434
|
-
labels: string[];
|
|
435
|
-
updatedAtGh: string | null;
|
|
436
|
-
clusterId?: number | null | undefined;
|
|
437
|
-
}, {
|
|
438
|
-
number: number;
|
|
439
|
-
id: number;
|
|
440
|
-
repoId: number;
|
|
441
|
-
kind: "issue" | "pull_request";
|
|
442
|
-
state: string;
|
|
443
|
-
title: string;
|
|
444
|
-
body: string | null;
|
|
445
|
-
authorLogin: string | null;
|
|
446
|
-
htmlUrl: string;
|
|
447
|
-
labels: string[];
|
|
448
|
-
updatedAtGh: string | null;
|
|
449
|
-
clusterId?: number | null | undefined;
|
|
450
|
-
}>;
|
|
260
|
+
}, z.core.$strip>;
|
|
451
261
|
keywordScore: z.ZodNullable<z.ZodNumber>;
|
|
452
262
|
semanticScore: z.ZodNullable<z.ZodNumber>;
|
|
453
263
|
hybridScore: z.ZodNumber;
|
|
454
264
|
neighbors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
455
265
|
threadId: z.ZodNumber;
|
|
456
266
|
number: z.ZodNumber;
|
|
457
|
-
kind: z.ZodEnum<
|
|
267
|
+
kind: z.ZodEnum<{
|
|
268
|
+
issue: "issue";
|
|
269
|
+
pull_request: "pull_request";
|
|
270
|
+
}>;
|
|
458
271
|
title: z.ZodString;
|
|
459
272
|
score: z.ZodNumber;
|
|
460
|
-
},
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
title: string;
|
|
464
|
-
threadId: number;
|
|
465
|
-
score: number;
|
|
466
|
-
}, {
|
|
467
|
-
number: number;
|
|
468
|
-
kind: "issue" | "pull_request";
|
|
469
|
-
title: string;
|
|
470
|
-
threadId: number;
|
|
471
|
-
score: number;
|
|
472
|
-
}>, "many">>;
|
|
473
|
-
}, "strip", z.ZodTypeAny, {
|
|
474
|
-
thread: {
|
|
475
|
-
number: number;
|
|
476
|
-
id: number;
|
|
477
|
-
repoId: number;
|
|
478
|
-
kind: "issue" | "pull_request";
|
|
479
|
-
state: string;
|
|
480
|
-
title: string;
|
|
481
|
-
body: string | null;
|
|
482
|
-
authorLogin: string | null;
|
|
483
|
-
htmlUrl: string;
|
|
484
|
-
labels: string[];
|
|
485
|
-
updatedAtGh: string | null;
|
|
486
|
-
clusterId?: number | null | undefined;
|
|
487
|
-
};
|
|
488
|
-
keywordScore: number | null;
|
|
489
|
-
semanticScore: number | null;
|
|
490
|
-
hybridScore: number;
|
|
491
|
-
neighbors: {
|
|
492
|
-
number: number;
|
|
493
|
-
kind: "issue" | "pull_request";
|
|
494
|
-
title: string;
|
|
495
|
-
threadId: number;
|
|
496
|
-
score: number;
|
|
497
|
-
}[];
|
|
498
|
-
}, {
|
|
499
|
-
thread: {
|
|
500
|
-
number: number;
|
|
501
|
-
id: number;
|
|
502
|
-
repoId: number;
|
|
503
|
-
kind: "issue" | "pull_request";
|
|
504
|
-
state: string;
|
|
505
|
-
title: string;
|
|
506
|
-
body: string | null;
|
|
507
|
-
authorLogin: string | null;
|
|
508
|
-
htmlUrl: string;
|
|
509
|
-
labels: string[];
|
|
510
|
-
updatedAtGh: string | null;
|
|
511
|
-
clusterId?: number | null | undefined;
|
|
512
|
-
};
|
|
513
|
-
keywordScore: number | null;
|
|
514
|
-
semanticScore: number | null;
|
|
515
|
-
hybridScore: number;
|
|
516
|
-
neighbors?: {
|
|
517
|
-
number: number;
|
|
518
|
-
kind: "issue" | "pull_request";
|
|
519
|
-
title: string;
|
|
520
|
-
threadId: number;
|
|
521
|
-
score: number;
|
|
522
|
-
}[] | undefined;
|
|
523
|
-
}>, "many">;
|
|
524
|
-
}, "strip", z.ZodTypeAny, {
|
|
525
|
-
repository: {
|
|
526
|
-
id: number;
|
|
527
|
-
owner: string;
|
|
528
|
-
name: string;
|
|
529
|
-
fullName: string;
|
|
530
|
-
githubRepoId: string | null;
|
|
531
|
-
updatedAt: string;
|
|
532
|
-
};
|
|
533
|
-
query: string;
|
|
534
|
-
mode: "keyword" | "semantic" | "hybrid";
|
|
535
|
-
hits: {
|
|
536
|
-
thread: {
|
|
537
|
-
number: number;
|
|
538
|
-
id: number;
|
|
539
|
-
repoId: number;
|
|
540
|
-
kind: "issue" | "pull_request";
|
|
541
|
-
state: string;
|
|
542
|
-
title: string;
|
|
543
|
-
body: string | null;
|
|
544
|
-
authorLogin: string | null;
|
|
545
|
-
htmlUrl: string;
|
|
546
|
-
labels: string[];
|
|
547
|
-
updatedAtGh: string | null;
|
|
548
|
-
clusterId?: number | null | undefined;
|
|
549
|
-
};
|
|
550
|
-
keywordScore: number | null;
|
|
551
|
-
semanticScore: number | null;
|
|
552
|
-
hybridScore: number;
|
|
553
|
-
neighbors: {
|
|
554
|
-
number: number;
|
|
555
|
-
kind: "issue" | "pull_request";
|
|
556
|
-
title: string;
|
|
557
|
-
threadId: number;
|
|
558
|
-
score: number;
|
|
559
|
-
}[];
|
|
560
|
-
}[];
|
|
561
|
-
}, {
|
|
562
|
-
repository: {
|
|
563
|
-
id: number;
|
|
564
|
-
owner: string;
|
|
565
|
-
name: string;
|
|
566
|
-
fullName: string;
|
|
567
|
-
githubRepoId: string | null;
|
|
568
|
-
updatedAt: string;
|
|
569
|
-
};
|
|
570
|
-
query: string;
|
|
571
|
-
mode: "keyword" | "semantic" | "hybrid";
|
|
572
|
-
hits: {
|
|
573
|
-
thread: {
|
|
574
|
-
number: number;
|
|
575
|
-
id: number;
|
|
576
|
-
repoId: number;
|
|
577
|
-
kind: "issue" | "pull_request";
|
|
578
|
-
state: string;
|
|
579
|
-
title: string;
|
|
580
|
-
body: string | null;
|
|
581
|
-
authorLogin: string | null;
|
|
582
|
-
htmlUrl: string;
|
|
583
|
-
labels: string[];
|
|
584
|
-
updatedAtGh: string | null;
|
|
585
|
-
clusterId?: number | null | undefined;
|
|
586
|
-
};
|
|
587
|
-
keywordScore: number | null;
|
|
588
|
-
semanticScore: number | null;
|
|
589
|
-
hybridScore: number;
|
|
590
|
-
neighbors?: {
|
|
591
|
-
number: number;
|
|
592
|
-
kind: "issue" | "pull_request";
|
|
593
|
-
title: string;
|
|
594
|
-
threadId: number;
|
|
595
|
-
score: number;
|
|
596
|
-
}[] | undefined;
|
|
597
|
-
}[];
|
|
598
|
-
}>;
|
|
273
|
+
}, z.core.$strip>>>;
|
|
274
|
+
}, z.core.$strip>>;
|
|
275
|
+
}, z.core.$strip>;
|
|
599
276
|
export type SearchResponse = z.infer<typeof searchResponseSchema>;
|
|
600
277
|
export declare const neighborsResponseSchema: z.ZodObject<{
|
|
601
278
|
repository: z.ZodObject<{
|
|
@@ -605,211 +282,72 @@ export declare const neighborsResponseSchema: z.ZodObject<{
|
|
|
605
282
|
fullName: z.ZodString;
|
|
606
283
|
githubRepoId: z.ZodNullable<z.ZodString>;
|
|
607
284
|
updatedAt: z.ZodString;
|
|
608
|
-
},
|
|
609
|
-
id: number;
|
|
610
|
-
owner: string;
|
|
611
|
-
name: string;
|
|
612
|
-
fullName: string;
|
|
613
|
-
githubRepoId: string | null;
|
|
614
|
-
updatedAt: string;
|
|
615
|
-
}, {
|
|
616
|
-
id: number;
|
|
617
|
-
owner: string;
|
|
618
|
-
name: string;
|
|
619
|
-
fullName: string;
|
|
620
|
-
githubRepoId: string | null;
|
|
621
|
-
updatedAt: string;
|
|
622
|
-
}>;
|
|
285
|
+
}, z.core.$strip>;
|
|
623
286
|
thread: z.ZodObject<{
|
|
624
287
|
id: z.ZodNumber;
|
|
625
288
|
repoId: z.ZodNumber;
|
|
626
289
|
number: z.ZodNumber;
|
|
627
|
-
kind: z.ZodEnum<
|
|
290
|
+
kind: z.ZodEnum<{
|
|
291
|
+
issue: "issue";
|
|
292
|
+
pull_request: "pull_request";
|
|
293
|
+
}>;
|
|
628
294
|
state: z.ZodString;
|
|
295
|
+
isClosed: z.ZodBoolean;
|
|
296
|
+
closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
629
299
|
title: z.ZodString;
|
|
630
300
|
body: z.ZodNullable<z.ZodString>;
|
|
631
301
|
authorLogin: z.ZodNullable<z.ZodString>;
|
|
632
302
|
htmlUrl: z.ZodString;
|
|
633
|
-
labels: z.ZodArray<z.ZodString
|
|
303
|
+
labels: z.ZodArray<z.ZodString>;
|
|
634
304
|
updatedAtGh: z.ZodNullable<z.ZodString>;
|
|
635
305
|
clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
636
|
-
},
|
|
637
|
-
number: number;
|
|
638
|
-
id: number;
|
|
639
|
-
repoId: number;
|
|
640
|
-
kind: "issue" | "pull_request";
|
|
641
|
-
state: string;
|
|
642
|
-
title: string;
|
|
643
|
-
body: string | null;
|
|
644
|
-
authorLogin: string | null;
|
|
645
|
-
htmlUrl: string;
|
|
646
|
-
labels: string[];
|
|
647
|
-
updatedAtGh: string | null;
|
|
648
|
-
clusterId?: number | null | undefined;
|
|
649
|
-
}, {
|
|
650
|
-
number: number;
|
|
651
|
-
id: number;
|
|
652
|
-
repoId: number;
|
|
653
|
-
kind: "issue" | "pull_request";
|
|
654
|
-
state: string;
|
|
655
|
-
title: string;
|
|
656
|
-
body: string | null;
|
|
657
|
-
authorLogin: string | null;
|
|
658
|
-
htmlUrl: string;
|
|
659
|
-
labels: string[];
|
|
660
|
-
updatedAtGh: string | null;
|
|
661
|
-
clusterId?: number | null | undefined;
|
|
662
|
-
}>;
|
|
306
|
+
}, z.core.$strip>;
|
|
663
307
|
neighbors: z.ZodArray<z.ZodObject<{
|
|
664
308
|
threadId: z.ZodNumber;
|
|
665
309
|
number: z.ZodNumber;
|
|
666
|
-
kind: z.ZodEnum<
|
|
310
|
+
kind: z.ZodEnum<{
|
|
311
|
+
issue: "issue";
|
|
312
|
+
pull_request: "pull_request";
|
|
313
|
+
}>;
|
|
667
314
|
title: z.ZodString;
|
|
668
315
|
score: z.ZodNumber;
|
|
669
|
-
},
|
|
670
|
-
|
|
671
|
-
kind: "issue" | "pull_request";
|
|
672
|
-
title: string;
|
|
673
|
-
threadId: number;
|
|
674
|
-
score: number;
|
|
675
|
-
}, {
|
|
676
|
-
number: number;
|
|
677
|
-
kind: "issue" | "pull_request";
|
|
678
|
-
title: string;
|
|
679
|
-
threadId: number;
|
|
680
|
-
score: number;
|
|
681
|
-
}>, "many">;
|
|
682
|
-
}, "strip", z.ZodTypeAny, {
|
|
683
|
-
repository: {
|
|
684
|
-
id: number;
|
|
685
|
-
owner: string;
|
|
686
|
-
name: string;
|
|
687
|
-
fullName: string;
|
|
688
|
-
githubRepoId: string | null;
|
|
689
|
-
updatedAt: string;
|
|
690
|
-
};
|
|
691
|
-
thread: {
|
|
692
|
-
number: number;
|
|
693
|
-
id: number;
|
|
694
|
-
repoId: number;
|
|
695
|
-
kind: "issue" | "pull_request";
|
|
696
|
-
state: string;
|
|
697
|
-
title: string;
|
|
698
|
-
body: string | null;
|
|
699
|
-
authorLogin: string | null;
|
|
700
|
-
htmlUrl: string;
|
|
701
|
-
labels: string[];
|
|
702
|
-
updatedAtGh: string | null;
|
|
703
|
-
clusterId?: number | null | undefined;
|
|
704
|
-
};
|
|
705
|
-
neighbors: {
|
|
706
|
-
number: number;
|
|
707
|
-
kind: "issue" | "pull_request";
|
|
708
|
-
title: string;
|
|
709
|
-
threadId: number;
|
|
710
|
-
score: number;
|
|
711
|
-
}[];
|
|
712
|
-
}, {
|
|
713
|
-
repository: {
|
|
714
|
-
id: number;
|
|
715
|
-
owner: string;
|
|
716
|
-
name: string;
|
|
717
|
-
fullName: string;
|
|
718
|
-
githubRepoId: string | null;
|
|
719
|
-
updatedAt: string;
|
|
720
|
-
};
|
|
721
|
-
thread: {
|
|
722
|
-
number: number;
|
|
723
|
-
id: number;
|
|
724
|
-
repoId: number;
|
|
725
|
-
kind: "issue" | "pull_request";
|
|
726
|
-
state: string;
|
|
727
|
-
title: string;
|
|
728
|
-
body: string | null;
|
|
729
|
-
authorLogin: string | null;
|
|
730
|
-
htmlUrl: string;
|
|
731
|
-
labels: string[];
|
|
732
|
-
updatedAtGh: string | null;
|
|
733
|
-
clusterId?: number | null | undefined;
|
|
734
|
-
};
|
|
735
|
-
neighbors: {
|
|
736
|
-
number: number;
|
|
737
|
-
kind: "issue" | "pull_request";
|
|
738
|
-
title: string;
|
|
739
|
-
threadId: number;
|
|
740
|
-
score: number;
|
|
741
|
-
}[];
|
|
742
|
-
}>;
|
|
316
|
+
}, z.core.$strip>>;
|
|
317
|
+
}, z.core.$strip>;
|
|
743
318
|
export type NeighborsResponse = z.infer<typeof neighborsResponseSchema>;
|
|
744
319
|
export declare const clusterMemberSchema: z.ZodObject<{
|
|
745
320
|
threadId: z.ZodNumber;
|
|
746
321
|
number: z.ZodNumber;
|
|
747
|
-
kind: z.ZodEnum<
|
|
322
|
+
kind: z.ZodEnum<{
|
|
323
|
+
issue: "issue";
|
|
324
|
+
pull_request: "pull_request";
|
|
325
|
+
}>;
|
|
326
|
+
isClosed: z.ZodDefault<z.ZodBoolean>;
|
|
748
327
|
title: z.ZodString;
|
|
749
328
|
scoreToRepresentative: z.ZodNullable<z.ZodNumber>;
|
|
750
|
-
},
|
|
751
|
-
number: number;
|
|
752
|
-
kind: "issue" | "pull_request";
|
|
753
|
-
title: string;
|
|
754
|
-
threadId: number;
|
|
755
|
-
scoreToRepresentative: number | null;
|
|
756
|
-
}, {
|
|
757
|
-
number: number;
|
|
758
|
-
kind: "issue" | "pull_request";
|
|
759
|
-
title: string;
|
|
760
|
-
threadId: number;
|
|
761
|
-
scoreToRepresentative: number | null;
|
|
762
|
-
}>;
|
|
329
|
+
}, z.core.$strip>;
|
|
763
330
|
export type ClusterMemberDto = z.infer<typeof clusterMemberSchema>;
|
|
764
331
|
export declare const clusterSchema: z.ZodObject<{
|
|
765
332
|
id: z.ZodNumber;
|
|
766
333
|
repoId: z.ZodNumber;
|
|
334
|
+
isClosed: z.ZodDefault<z.ZodBoolean>;
|
|
335
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
767
337
|
representativeThreadId: z.ZodNullable<z.ZodNumber>;
|
|
768
338
|
memberCount: z.ZodNumber;
|
|
769
339
|
members: z.ZodArray<z.ZodObject<{
|
|
770
340
|
threadId: z.ZodNumber;
|
|
771
341
|
number: z.ZodNumber;
|
|
772
|
-
kind: z.ZodEnum<
|
|
342
|
+
kind: z.ZodEnum<{
|
|
343
|
+
issue: "issue";
|
|
344
|
+
pull_request: "pull_request";
|
|
345
|
+
}>;
|
|
346
|
+
isClosed: z.ZodDefault<z.ZodBoolean>;
|
|
773
347
|
title: z.ZodString;
|
|
774
348
|
scoreToRepresentative: z.ZodNullable<z.ZodNumber>;
|
|
775
|
-
},
|
|
776
|
-
|
|
777
|
-
kind: "issue" | "pull_request";
|
|
778
|
-
title: string;
|
|
779
|
-
threadId: number;
|
|
780
|
-
scoreToRepresentative: number | null;
|
|
781
|
-
}, {
|
|
782
|
-
number: number;
|
|
783
|
-
kind: "issue" | "pull_request";
|
|
784
|
-
title: string;
|
|
785
|
-
threadId: number;
|
|
786
|
-
scoreToRepresentative: number | null;
|
|
787
|
-
}>, "many">;
|
|
788
|
-
}, "strip", z.ZodTypeAny, {
|
|
789
|
-
id: number;
|
|
790
|
-
repoId: number;
|
|
791
|
-
representativeThreadId: number | null;
|
|
792
|
-
memberCount: number;
|
|
793
|
-
members: {
|
|
794
|
-
number: number;
|
|
795
|
-
kind: "issue" | "pull_request";
|
|
796
|
-
title: string;
|
|
797
|
-
threadId: number;
|
|
798
|
-
scoreToRepresentative: number | null;
|
|
799
|
-
}[];
|
|
800
|
-
}, {
|
|
801
|
-
id: number;
|
|
802
|
-
repoId: number;
|
|
803
|
-
representativeThreadId: number | null;
|
|
804
|
-
memberCount: number;
|
|
805
|
-
members: {
|
|
806
|
-
number: number;
|
|
807
|
-
kind: "issue" | "pull_request";
|
|
808
|
-
title: string;
|
|
809
|
-
threadId: number;
|
|
810
|
-
scoreToRepresentative: number | null;
|
|
811
|
-
}[];
|
|
812
|
-
}>;
|
|
349
|
+
}, z.core.$strip>>;
|
|
350
|
+
}, z.core.$strip>;
|
|
813
351
|
export type ClusterDto = z.infer<typeof clusterSchema>;
|
|
814
352
|
export declare const clustersResponseSchema: z.ZodObject<{
|
|
815
353
|
repository: z.ZodObject<{
|
|
@@ -819,115 +357,28 @@ export declare const clustersResponseSchema: z.ZodObject<{
|
|
|
819
357
|
fullName: z.ZodString;
|
|
820
358
|
githubRepoId: z.ZodNullable<z.ZodString>;
|
|
821
359
|
updatedAt: z.ZodString;
|
|
822
|
-
},
|
|
823
|
-
id: number;
|
|
824
|
-
owner: string;
|
|
825
|
-
name: string;
|
|
826
|
-
fullName: string;
|
|
827
|
-
githubRepoId: string | null;
|
|
828
|
-
updatedAt: string;
|
|
829
|
-
}, {
|
|
830
|
-
id: number;
|
|
831
|
-
owner: string;
|
|
832
|
-
name: string;
|
|
833
|
-
fullName: string;
|
|
834
|
-
githubRepoId: string | null;
|
|
835
|
-
updatedAt: string;
|
|
836
|
-
}>;
|
|
360
|
+
}, z.core.$strip>;
|
|
837
361
|
clusters: z.ZodArray<z.ZodObject<{
|
|
838
362
|
id: z.ZodNumber;
|
|
839
363
|
repoId: z.ZodNumber;
|
|
364
|
+
isClosed: z.ZodDefault<z.ZodBoolean>;
|
|
365
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
366
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
840
367
|
representativeThreadId: z.ZodNullable<z.ZodNumber>;
|
|
841
368
|
memberCount: z.ZodNumber;
|
|
842
369
|
members: z.ZodArray<z.ZodObject<{
|
|
843
370
|
threadId: z.ZodNumber;
|
|
844
371
|
number: z.ZodNumber;
|
|
845
|
-
kind: z.ZodEnum<
|
|
372
|
+
kind: z.ZodEnum<{
|
|
373
|
+
issue: "issue";
|
|
374
|
+
pull_request: "pull_request";
|
|
375
|
+
}>;
|
|
376
|
+
isClosed: z.ZodDefault<z.ZodBoolean>;
|
|
846
377
|
title: z.ZodString;
|
|
847
378
|
scoreToRepresentative: z.ZodNullable<z.ZodNumber>;
|
|
848
|
-
},
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
title: string;
|
|
852
|
-
threadId: number;
|
|
853
|
-
scoreToRepresentative: number | null;
|
|
854
|
-
}, {
|
|
855
|
-
number: number;
|
|
856
|
-
kind: "issue" | "pull_request";
|
|
857
|
-
title: string;
|
|
858
|
-
threadId: number;
|
|
859
|
-
scoreToRepresentative: number | null;
|
|
860
|
-
}>, "many">;
|
|
861
|
-
}, "strip", z.ZodTypeAny, {
|
|
862
|
-
id: number;
|
|
863
|
-
repoId: number;
|
|
864
|
-
representativeThreadId: number | null;
|
|
865
|
-
memberCount: number;
|
|
866
|
-
members: {
|
|
867
|
-
number: number;
|
|
868
|
-
kind: "issue" | "pull_request";
|
|
869
|
-
title: string;
|
|
870
|
-
threadId: number;
|
|
871
|
-
scoreToRepresentative: number | null;
|
|
872
|
-
}[];
|
|
873
|
-
}, {
|
|
874
|
-
id: number;
|
|
875
|
-
repoId: number;
|
|
876
|
-
representativeThreadId: number | null;
|
|
877
|
-
memberCount: number;
|
|
878
|
-
members: {
|
|
879
|
-
number: number;
|
|
880
|
-
kind: "issue" | "pull_request";
|
|
881
|
-
title: string;
|
|
882
|
-
threadId: number;
|
|
883
|
-
scoreToRepresentative: number | null;
|
|
884
|
-
}[];
|
|
885
|
-
}>, "many">;
|
|
886
|
-
}, "strip", z.ZodTypeAny, {
|
|
887
|
-
repository: {
|
|
888
|
-
id: number;
|
|
889
|
-
owner: string;
|
|
890
|
-
name: string;
|
|
891
|
-
fullName: string;
|
|
892
|
-
githubRepoId: string | null;
|
|
893
|
-
updatedAt: string;
|
|
894
|
-
};
|
|
895
|
-
clusters: {
|
|
896
|
-
id: number;
|
|
897
|
-
repoId: number;
|
|
898
|
-
representativeThreadId: number | null;
|
|
899
|
-
memberCount: number;
|
|
900
|
-
members: {
|
|
901
|
-
number: number;
|
|
902
|
-
kind: "issue" | "pull_request";
|
|
903
|
-
title: string;
|
|
904
|
-
threadId: number;
|
|
905
|
-
scoreToRepresentative: number | null;
|
|
906
|
-
}[];
|
|
907
|
-
}[];
|
|
908
|
-
}, {
|
|
909
|
-
repository: {
|
|
910
|
-
id: number;
|
|
911
|
-
owner: string;
|
|
912
|
-
name: string;
|
|
913
|
-
fullName: string;
|
|
914
|
-
githubRepoId: string | null;
|
|
915
|
-
updatedAt: string;
|
|
916
|
-
};
|
|
917
|
-
clusters: {
|
|
918
|
-
id: number;
|
|
919
|
-
repoId: number;
|
|
920
|
-
representativeThreadId: number | null;
|
|
921
|
-
memberCount: number;
|
|
922
|
-
members: {
|
|
923
|
-
number: number;
|
|
924
|
-
kind: "issue" | "pull_request";
|
|
925
|
-
title: string;
|
|
926
|
-
threadId: number;
|
|
927
|
-
scoreToRepresentative: number | null;
|
|
928
|
-
}[];
|
|
929
|
-
}[];
|
|
930
|
-
}>;
|
|
379
|
+
}, z.core.$strip>>;
|
|
380
|
+
}, z.core.$strip>>;
|
|
381
|
+
}, z.core.$strip>;
|
|
931
382
|
export type ClustersResponse = z.infer<typeof clustersResponseSchema>;
|
|
932
383
|
export declare const repoStatsSchema: z.ZodObject<{
|
|
933
384
|
openIssueCount: z.ZodNumber;
|
|
@@ -938,57 +389,25 @@ export declare const repoStatsSchema: z.ZodObject<{
|
|
|
938
389
|
staleEmbedSourceCount: z.ZodNumber;
|
|
939
390
|
latestClusterRunId: z.ZodNullable<z.ZodNumber>;
|
|
940
391
|
latestClusterRunFinishedAt: z.ZodNullable<z.ZodString>;
|
|
941
|
-
},
|
|
942
|
-
openIssueCount: number;
|
|
943
|
-
openPullRequestCount: number;
|
|
944
|
-
lastGithubReconciliationAt: string | null;
|
|
945
|
-
lastEmbedRefreshAt: string | null;
|
|
946
|
-
staleEmbedThreadCount: number;
|
|
947
|
-
staleEmbedSourceCount: number;
|
|
948
|
-
latestClusterRunId: number | null;
|
|
949
|
-
latestClusterRunFinishedAt: string | null;
|
|
950
|
-
}, {
|
|
951
|
-
openIssueCount: number;
|
|
952
|
-
openPullRequestCount: number;
|
|
953
|
-
lastGithubReconciliationAt: string | null;
|
|
954
|
-
lastEmbedRefreshAt: string | null;
|
|
955
|
-
staleEmbedThreadCount: number;
|
|
956
|
-
staleEmbedSourceCount: number;
|
|
957
|
-
latestClusterRunId: number | null;
|
|
958
|
-
latestClusterRunFinishedAt: string | null;
|
|
959
|
-
}>;
|
|
392
|
+
}, z.core.$strip>;
|
|
960
393
|
export type RepoStatsDto = z.infer<typeof repoStatsSchema>;
|
|
961
394
|
export declare const clusterSummarySchema: z.ZodObject<{
|
|
962
395
|
clusterId: z.ZodNumber;
|
|
963
396
|
displayTitle: z.ZodString;
|
|
397
|
+
isClosed: z.ZodDefault<z.ZodBoolean>;
|
|
398
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
399
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
964
400
|
totalCount: z.ZodNumber;
|
|
965
401
|
issueCount: z.ZodNumber;
|
|
966
402
|
pullRequestCount: z.ZodNumber;
|
|
967
403
|
latestUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
968
404
|
representativeThreadId: z.ZodNullable<z.ZodNumber>;
|
|
969
405
|
representativeNumber: z.ZodNullable<z.ZodNumber>;
|
|
970
|
-
representativeKind: z.ZodNullable<z.ZodEnum<
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
totalCount: number;
|
|
976
|
-
issueCount: number;
|
|
977
|
-
pullRequestCount: number;
|
|
978
|
-
latestUpdatedAt: string | null;
|
|
979
|
-
representativeNumber: number | null;
|
|
980
|
-
representativeKind: "issue" | "pull_request" | null;
|
|
981
|
-
}, {
|
|
982
|
-
clusterId: number;
|
|
983
|
-
representativeThreadId: number | null;
|
|
984
|
-
displayTitle: string;
|
|
985
|
-
totalCount: number;
|
|
986
|
-
issueCount: number;
|
|
987
|
-
pullRequestCount: number;
|
|
988
|
-
latestUpdatedAt: string | null;
|
|
989
|
-
representativeNumber: number | null;
|
|
990
|
-
representativeKind: "issue" | "pull_request" | null;
|
|
991
|
-
}>;
|
|
406
|
+
representativeKind: z.ZodNullable<z.ZodEnum<{
|
|
407
|
+
issue: "issue";
|
|
408
|
+
pull_request: "pull_request";
|
|
409
|
+
}>>;
|
|
410
|
+
}, z.core.$strip>;
|
|
992
411
|
export type ClusterSummaryDto = z.infer<typeof clusterSummarySchema>;
|
|
993
412
|
export declare const clusterSummariesResponseSchema: z.ZodObject<{
|
|
994
413
|
repository: z.ZodObject<{
|
|
@@ -998,21 +417,7 @@ export declare const clusterSummariesResponseSchema: z.ZodObject<{
|
|
|
998
417
|
fullName: z.ZodString;
|
|
999
418
|
githubRepoId: z.ZodNullable<z.ZodString>;
|
|
1000
419
|
updatedAt: z.ZodString;
|
|
1001
|
-
},
|
|
1002
|
-
id: number;
|
|
1003
|
-
owner: string;
|
|
1004
|
-
name: string;
|
|
1005
|
-
fullName: string;
|
|
1006
|
-
githubRepoId: string | null;
|
|
1007
|
-
updatedAt: string;
|
|
1008
|
-
}, {
|
|
1009
|
-
id: number;
|
|
1010
|
-
owner: string;
|
|
1011
|
-
name: string;
|
|
1012
|
-
fullName: string;
|
|
1013
|
-
githubRepoId: string | null;
|
|
1014
|
-
updatedAt: string;
|
|
1015
|
-
}>;
|
|
420
|
+
}, z.core.$strip>;
|
|
1016
421
|
stats: z.ZodObject<{
|
|
1017
422
|
openIssueCount: z.ZodNumber;
|
|
1018
423
|
openPullRequestCount: z.ZodNumber;
|
|
@@ -1022,238 +427,63 @@ export declare const clusterSummariesResponseSchema: z.ZodObject<{
|
|
|
1022
427
|
staleEmbedSourceCount: z.ZodNumber;
|
|
1023
428
|
latestClusterRunId: z.ZodNullable<z.ZodNumber>;
|
|
1024
429
|
latestClusterRunFinishedAt: z.ZodNullable<z.ZodString>;
|
|
1025
|
-
},
|
|
1026
|
-
openIssueCount: number;
|
|
1027
|
-
openPullRequestCount: number;
|
|
1028
|
-
lastGithubReconciliationAt: string | null;
|
|
1029
|
-
lastEmbedRefreshAt: string | null;
|
|
1030
|
-
staleEmbedThreadCount: number;
|
|
1031
|
-
staleEmbedSourceCount: number;
|
|
1032
|
-
latestClusterRunId: number | null;
|
|
1033
|
-
latestClusterRunFinishedAt: string | null;
|
|
1034
|
-
}, {
|
|
1035
|
-
openIssueCount: number;
|
|
1036
|
-
openPullRequestCount: number;
|
|
1037
|
-
lastGithubReconciliationAt: string | null;
|
|
1038
|
-
lastEmbedRefreshAt: string | null;
|
|
1039
|
-
staleEmbedThreadCount: number;
|
|
1040
|
-
staleEmbedSourceCount: number;
|
|
1041
|
-
latestClusterRunId: number | null;
|
|
1042
|
-
latestClusterRunFinishedAt: string | null;
|
|
1043
|
-
}>;
|
|
430
|
+
}, z.core.$strip>;
|
|
1044
431
|
clusters: z.ZodArray<z.ZodObject<{
|
|
1045
432
|
clusterId: z.ZodNumber;
|
|
1046
433
|
displayTitle: z.ZodString;
|
|
434
|
+
isClosed: z.ZodDefault<z.ZodBoolean>;
|
|
435
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
436
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1047
437
|
totalCount: z.ZodNumber;
|
|
1048
438
|
issueCount: z.ZodNumber;
|
|
1049
439
|
pullRequestCount: z.ZodNumber;
|
|
1050
440
|
latestUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
1051
441
|
representativeThreadId: z.ZodNullable<z.ZodNumber>;
|
|
1052
442
|
representativeNumber: z.ZodNullable<z.ZodNumber>;
|
|
1053
|
-
representativeKind: z.ZodNullable<z.ZodEnum<
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
issueCount: number;
|
|
1060
|
-
pullRequestCount: number;
|
|
1061
|
-
latestUpdatedAt: string | null;
|
|
1062
|
-
representativeNumber: number | null;
|
|
1063
|
-
representativeKind: "issue" | "pull_request" | null;
|
|
1064
|
-
}, {
|
|
1065
|
-
clusterId: number;
|
|
1066
|
-
representativeThreadId: number | null;
|
|
1067
|
-
displayTitle: string;
|
|
1068
|
-
totalCount: number;
|
|
1069
|
-
issueCount: number;
|
|
1070
|
-
pullRequestCount: number;
|
|
1071
|
-
latestUpdatedAt: string | null;
|
|
1072
|
-
representativeNumber: number | null;
|
|
1073
|
-
representativeKind: "issue" | "pull_request" | null;
|
|
1074
|
-
}>, "many">;
|
|
1075
|
-
}, "strip", z.ZodTypeAny, {
|
|
1076
|
-
repository: {
|
|
1077
|
-
id: number;
|
|
1078
|
-
owner: string;
|
|
1079
|
-
name: string;
|
|
1080
|
-
fullName: string;
|
|
1081
|
-
githubRepoId: string | null;
|
|
1082
|
-
updatedAt: string;
|
|
1083
|
-
};
|
|
1084
|
-
clusters: {
|
|
1085
|
-
clusterId: number;
|
|
1086
|
-
representativeThreadId: number | null;
|
|
1087
|
-
displayTitle: string;
|
|
1088
|
-
totalCount: number;
|
|
1089
|
-
issueCount: number;
|
|
1090
|
-
pullRequestCount: number;
|
|
1091
|
-
latestUpdatedAt: string | null;
|
|
1092
|
-
representativeNumber: number | null;
|
|
1093
|
-
representativeKind: "issue" | "pull_request" | null;
|
|
1094
|
-
}[];
|
|
1095
|
-
stats: {
|
|
1096
|
-
openIssueCount: number;
|
|
1097
|
-
openPullRequestCount: number;
|
|
1098
|
-
lastGithubReconciliationAt: string | null;
|
|
1099
|
-
lastEmbedRefreshAt: string | null;
|
|
1100
|
-
staleEmbedThreadCount: number;
|
|
1101
|
-
staleEmbedSourceCount: number;
|
|
1102
|
-
latestClusterRunId: number | null;
|
|
1103
|
-
latestClusterRunFinishedAt: string | null;
|
|
1104
|
-
};
|
|
1105
|
-
}, {
|
|
1106
|
-
repository: {
|
|
1107
|
-
id: number;
|
|
1108
|
-
owner: string;
|
|
1109
|
-
name: string;
|
|
1110
|
-
fullName: string;
|
|
1111
|
-
githubRepoId: string | null;
|
|
1112
|
-
updatedAt: string;
|
|
1113
|
-
};
|
|
1114
|
-
clusters: {
|
|
1115
|
-
clusterId: number;
|
|
1116
|
-
representativeThreadId: number | null;
|
|
1117
|
-
displayTitle: string;
|
|
1118
|
-
totalCount: number;
|
|
1119
|
-
issueCount: number;
|
|
1120
|
-
pullRequestCount: number;
|
|
1121
|
-
latestUpdatedAt: string | null;
|
|
1122
|
-
representativeNumber: number | null;
|
|
1123
|
-
representativeKind: "issue" | "pull_request" | null;
|
|
1124
|
-
}[];
|
|
1125
|
-
stats: {
|
|
1126
|
-
openIssueCount: number;
|
|
1127
|
-
openPullRequestCount: number;
|
|
1128
|
-
lastGithubReconciliationAt: string | null;
|
|
1129
|
-
lastEmbedRefreshAt: string | null;
|
|
1130
|
-
staleEmbedThreadCount: number;
|
|
1131
|
-
staleEmbedSourceCount: number;
|
|
1132
|
-
latestClusterRunId: number | null;
|
|
1133
|
-
latestClusterRunFinishedAt: string | null;
|
|
1134
|
-
};
|
|
1135
|
-
}>;
|
|
443
|
+
representativeKind: z.ZodNullable<z.ZodEnum<{
|
|
444
|
+
issue: "issue";
|
|
445
|
+
pull_request: "pull_request";
|
|
446
|
+
}>>;
|
|
447
|
+
}, z.core.$strip>>;
|
|
448
|
+
}, z.core.$strip>;
|
|
1136
449
|
export type ClusterSummariesResponse = z.infer<typeof clusterSummariesResponseSchema>;
|
|
1137
450
|
export declare const threadSummariesSchema: z.ZodObject<{
|
|
1138
451
|
problem_summary: z.ZodOptional<z.ZodString>;
|
|
1139
452
|
solution_summary: z.ZodOptional<z.ZodString>;
|
|
1140
453
|
maintainer_signal_summary: z.ZodOptional<z.ZodString>;
|
|
1141
454
|
dedupe_summary: z.ZodOptional<z.ZodString>;
|
|
1142
|
-
},
|
|
1143
|
-
problem_summary?: string | undefined;
|
|
1144
|
-
solution_summary?: string | undefined;
|
|
1145
|
-
maintainer_signal_summary?: string | undefined;
|
|
1146
|
-
dedupe_summary?: string | undefined;
|
|
1147
|
-
}, {
|
|
1148
|
-
problem_summary?: string | undefined;
|
|
1149
|
-
solution_summary?: string | undefined;
|
|
1150
|
-
maintainer_signal_summary?: string | undefined;
|
|
1151
|
-
dedupe_summary?: string | undefined;
|
|
1152
|
-
}>;
|
|
455
|
+
}, z.core.$strip>;
|
|
1153
456
|
export type ThreadSummariesDto = z.infer<typeof threadSummariesSchema>;
|
|
1154
457
|
export declare const clusterThreadDumpSchema: z.ZodObject<{
|
|
1155
458
|
thread: z.ZodObject<{
|
|
1156
459
|
id: z.ZodNumber;
|
|
1157
460
|
repoId: z.ZodNumber;
|
|
1158
461
|
number: z.ZodNumber;
|
|
1159
|
-
kind: z.ZodEnum<
|
|
462
|
+
kind: z.ZodEnum<{
|
|
463
|
+
issue: "issue";
|
|
464
|
+
pull_request: "pull_request";
|
|
465
|
+
}>;
|
|
1160
466
|
state: z.ZodString;
|
|
467
|
+
isClosed: z.ZodBoolean;
|
|
468
|
+
closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
469
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
470
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1161
471
|
title: z.ZodString;
|
|
1162
472
|
body: z.ZodNullable<z.ZodString>;
|
|
1163
473
|
authorLogin: z.ZodNullable<z.ZodString>;
|
|
1164
474
|
htmlUrl: z.ZodString;
|
|
1165
|
-
labels: z.ZodArray<z.ZodString
|
|
475
|
+
labels: z.ZodArray<z.ZodString>;
|
|
1166
476
|
updatedAtGh: z.ZodNullable<z.ZodString>;
|
|
1167
477
|
clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1168
|
-
},
|
|
1169
|
-
number: number;
|
|
1170
|
-
id: number;
|
|
1171
|
-
repoId: number;
|
|
1172
|
-
kind: "issue" | "pull_request";
|
|
1173
|
-
state: string;
|
|
1174
|
-
title: string;
|
|
1175
|
-
body: string | null;
|
|
1176
|
-
authorLogin: string | null;
|
|
1177
|
-
htmlUrl: string;
|
|
1178
|
-
labels: string[];
|
|
1179
|
-
updatedAtGh: string | null;
|
|
1180
|
-
clusterId?: number | null | undefined;
|
|
1181
|
-
}, {
|
|
1182
|
-
number: number;
|
|
1183
|
-
id: number;
|
|
1184
|
-
repoId: number;
|
|
1185
|
-
kind: "issue" | "pull_request";
|
|
1186
|
-
state: string;
|
|
1187
|
-
title: string;
|
|
1188
|
-
body: string | null;
|
|
1189
|
-
authorLogin: string | null;
|
|
1190
|
-
htmlUrl: string;
|
|
1191
|
-
labels: string[];
|
|
1192
|
-
updatedAtGh: string | null;
|
|
1193
|
-
clusterId?: number | null | undefined;
|
|
1194
|
-
}>;
|
|
478
|
+
}, z.core.$strip>;
|
|
1195
479
|
bodySnippet: z.ZodNullable<z.ZodString>;
|
|
1196
480
|
summaries: z.ZodObject<{
|
|
1197
481
|
problem_summary: z.ZodOptional<z.ZodString>;
|
|
1198
482
|
solution_summary: z.ZodOptional<z.ZodString>;
|
|
1199
483
|
maintainer_signal_summary: z.ZodOptional<z.ZodString>;
|
|
1200
484
|
dedupe_summary: z.ZodOptional<z.ZodString>;
|
|
1201
|
-
},
|
|
1202
|
-
|
|
1203
|
-
solution_summary?: string | undefined;
|
|
1204
|
-
maintainer_signal_summary?: string | undefined;
|
|
1205
|
-
dedupe_summary?: string | undefined;
|
|
1206
|
-
}, {
|
|
1207
|
-
problem_summary?: string | undefined;
|
|
1208
|
-
solution_summary?: string | undefined;
|
|
1209
|
-
maintainer_signal_summary?: string | undefined;
|
|
1210
|
-
dedupe_summary?: string | undefined;
|
|
1211
|
-
}>;
|
|
1212
|
-
}, "strip", z.ZodTypeAny, {
|
|
1213
|
-
thread: {
|
|
1214
|
-
number: number;
|
|
1215
|
-
id: number;
|
|
1216
|
-
repoId: number;
|
|
1217
|
-
kind: "issue" | "pull_request";
|
|
1218
|
-
state: string;
|
|
1219
|
-
title: string;
|
|
1220
|
-
body: string | null;
|
|
1221
|
-
authorLogin: string | null;
|
|
1222
|
-
htmlUrl: string;
|
|
1223
|
-
labels: string[];
|
|
1224
|
-
updatedAtGh: string | null;
|
|
1225
|
-
clusterId?: number | null | undefined;
|
|
1226
|
-
};
|
|
1227
|
-
bodySnippet: string | null;
|
|
1228
|
-
summaries: {
|
|
1229
|
-
problem_summary?: string | undefined;
|
|
1230
|
-
solution_summary?: string | undefined;
|
|
1231
|
-
maintainer_signal_summary?: string | undefined;
|
|
1232
|
-
dedupe_summary?: string | undefined;
|
|
1233
|
-
};
|
|
1234
|
-
}, {
|
|
1235
|
-
thread: {
|
|
1236
|
-
number: number;
|
|
1237
|
-
id: number;
|
|
1238
|
-
repoId: number;
|
|
1239
|
-
kind: "issue" | "pull_request";
|
|
1240
|
-
state: string;
|
|
1241
|
-
title: string;
|
|
1242
|
-
body: string | null;
|
|
1243
|
-
authorLogin: string | null;
|
|
1244
|
-
htmlUrl: string;
|
|
1245
|
-
labels: string[];
|
|
1246
|
-
updatedAtGh: string | null;
|
|
1247
|
-
clusterId?: number | null | undefined;
|
|
1248
|
-
};
|
|
1249
|
-
bodySnippet: string | null;
|
|
1250
|
-
summaries: {
|
|
1251
|
-
problem_summary?: string | undefined;
|
|
1252
|
-
solution_summary?: string | undefined;
|
|
1253
|
-
maintainer_signal_summary?: string | undefined;
|
|
1254
|
-
dedupe_summary?: string | undefined;
|
|
1255
|
-
};
|
|
1256
|
-
}>;
|
|
485
|
+
}, z.core.$strip>;
|
|
486
|
+
}, z.core.$strip>;
|
|
1257
487
|
export type ClusterThreadDumpDto = z.infer<typeof clusterThreadDumpSchema>;
|
|
1258
488
|
export declare const clusterDetailResponseSchema: z.ZodObject<{
|
|
1259
489
|
repository: z.ZodObject<{
|
|
@@ -1263,21 +493,7 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
|
|
|
1263
493
|
fullName: z.ZodString;
|
|
1264
494
|
githubRepoId: z.ZodNullable<z.ZodString>;
|
|
1265
495
|
updatedAt: z.ZodString;
|
|
1266
|
-
},
|
|
1267
|
-
id: number;
|
|
1268
|
-
owner: string;
|
|
1269
|
-
name: string;
|
|
1270
|
-
fullName: string;
|
|
1271
|
-
githubRepoId: string | null;
|
|
1272
|
-
updatedAt: string;
|
|
1273
|
-
}, {
|
|
1274
|
-
id: number;
|
|
1275
|
-
owner: string;
|
|
1276
|
-
name: string;
|
|
1277
|
-
fullName: string;
|
|
1278
|
-
githubRepoId: string | null;
|
|
1279
|
-
updatedAt: string;
|
|
1280
|
-
}>;
|
|
496
|
+
}, z.core.$strip>;
|
|
1281
497
|
stats: z.ZodObject<{
|
|
1282
498
|
openIssueCount: z.ZodNumber;
|
|
1283
499
|
openPullRequestCount: z.ZodNumber;
|
|
@@ -1287,308 +503,73 @@ export declare const clusterDetailResponseSchema: z.ZodObject<{
|
|
|
1287
503
|
staleEmbedSourceCount: z.ZodNumber;
|
|
1288
504
|
latestClusterRunId: z.ZodNullable<z.ZodNumber>;
|
|
1289
505
|
latestClusterRunFinishedAt: z.ZodNullable<z.ZodString>;
|
|
1290
|
-
},
|
|
1291
|
-
openIssueCount: number;
|
|
1292
|
-
openPullRequestCount: number;
|
|
1293
|
-
lastGithubReconciliationAt: string | null;
|
|
1294
|
-
lastEmbedRefreshAt: string | null;
|
|
1295
|
-
staleEmbedThreadCount: number;
|
|
1296
|
-
staleEmbedSourceCount: number;
|
|
1297
|
-
latestClusterRunId: number | null;
|
|
1298
|
-
latestClusterRunFinishedAt: string | null;
|
|
1299
|
-
}, {
|
|
1300
|
-
openIssueCount: number;
|
|
1301
|
-
openPullRequestCount: number;
|
|
1302
|
-
lastGithubReconciliationAt: string | null;
|
|
1303
|
-
lastEmbedRefreshAt: string | null;
|
|
1304
|
-
staleEmbedThreadCount: number;
|
|
1305
|
-
staleEmbedSourceCount: number;
|
|
1306
|
-
latestClusterRunId: number | null;
|
|
1307
|
-
latestClusterRunFinishedAt: string | null;
|
|
1308
|
-
}>;
|
|
506
|
+
}, z.core.$strip>;
|
|
1309
507
|
cluster: z.ZodObject<{
|
|
1310
508
|
clusterId: z.ZodNumber;
|
|
1311
509
|
displayTitle: z.ZodString;
|
|
510
|
+
isClosed: z.ZodDefault<z.ZodBoolean>;
|
|
511
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
512
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1312
513
|
totalCount: z.ZodNumber;
|
|
1313
514
|
issueCount: z.ZodNumber;
|
|
1314
515
|
pullRequestCount: z.ZodNumber;
|
|
1315
516
|
latestUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
1316
517
|
representativeThreadId: z.ZodNullable<z.ZodNumber>;
|
|
1317
518
|
representativeNumber: z.ZodNullable<z.ZodNumber>;
|
|
1318
|
-
representativeKind: z.ZodNullable<z.ZodEnum<
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
totalCount: number;
|
|
1324
|
-
issueCount: number;
|
|
1325
|
-
pullRequestCount: number;
|
|
1326
|
-
latestUpdatedAt: string | null;
|
|
1327
|
-
representativeNumber: number | null;
|
|
1328
|
-
representativeKind: "issue" | "pull_request" | null;
|
|
1329
|
-
}, {
|
|
1330
|
-
clusterId: number;
|
|
1331
|
-
representativeThreadId: number | null;
|
|
1332
|
-
displayTitle: string;
|
|
1333
|
-
totalCount: number;
|
|
1334
|
-
issueCount: number;
|
|
1335
|
-
pullRequestCount: number;
|
|
1336
|
-
latestUpdatedAt: string | null;
|
|
1337
|
-
representativeNumber: number | null;
|
|
1338
|
-
representativeKind: "issue" | "pull_request" | null;
|
|
1339
|
-
}>;
|
|
519
|
+
representativeKind: z.ZodNullable<z.ZodEnum<{
|
|
520
|
+
issue: "issue";
|
|
521
|
+
pull_request: "pull_request";
|
|
522
|
+
}>>;
|
|
523
|
+
}, z.core.$strip>;
|
|
1340
524
|
members: z.ZodArray<z.ZodObject<{
|
|
1341
525
|
thread: z.ZodObject<{
|
|
1342
526
|
id: z.ZodNumber;
|
|
1343
527
|
repoId: z.ZodNumber;
|
|
1344
528
|
number: z.ZodNumber;
|
|
1345
|
-
kind: z.ZodEnum<
|
|
529
|
+
kind: z.ZodEnum<{
|
|
530
|
+
issue: "issue";
|
|
531
|
+
pull_request: "pull_request";
|
|
532
|
+
}>;
|
|
1346
533
|
state: z.ZodString;
|
|
534
|
+
isClosed: z.ZodBoolean;
|
|
535
|
+
closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
536
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
537
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1347
538
|
title: z.ZodString;
|
|
1348
539
|
body: z.ZodNullable<z.ZodString>;
|
|
1349
540
|
authorLogin: z.ZodNullable<z.ZodString>;
|
|
1350
541
|
htmlUrl: z.ZodString;
|
|
1351
|
-
labels: z.ZodArray<z.ZodString
|
|
542
|
+
labels: z.ZodArray<z.ZodString>;
|
|
1352
543
|
updatedAtGh: z.ZodNullable<z.ZodString>;
|
|
1353
544
|
clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1354
|
-
},
|
|
1355
|
-
number: number;
|
|
1356
|
-
id: number;
|
|
1357
|
-
repoId: number;
|
|
1358
|
-
kind: "issue" | "pull_request";
|
|
1359
|
-
state: string;
|
|
1360
|
-
title: string;
|
|
1361
|
-
body: string | null;
|
|
1362
|
-
authorLogin: string | null;
|
|
1363
|
-
htmlUrl: string;
|
|
1364
|
-
labels: string[];
|
|
1365
|
-
updatedAtGh: string | null;
|
|
1366
|
-
clusterId?: number | null | undefined;
|
|
1367
|
-
}, {
|
|
1368
|
-
number: number;
|
|
1369
|
-
id: number;
|
|
1370
|
-
repoId: number;
|
|
1371
|
-
kind: "issue" | "pull_request";
|
|
1372
|
-
state: string;
|
|
1373
|
-
title: string;
|
|
1374
|
-
body: string | null;
|
|
1375
|
-
authorLogin: string | null;
|
|
1376
|
-
htmlUrl: string;
|
|
1377
|
-
labels: string[];
|
|
1378
|
-
updatedAtGh: string | null;
|
|
1379
|
-
clusterId?: number | null | undefined;
|
|
1380
|
-
}>;
|
|
545
|
+
}, z.core.$strip>;
|
|
1381
546
|
bodySnippet: z.ZodNullable<z.ZodString>;
|
|
1382
547
|
summaries: z.ZodObject<{
|
|
1383
548
|
problem_summary: z.ZodOptional<z.ZodString>;
|
|
1384
549
|
solution_summary: z.ZodOptional<z.ZodString>;
|
|
1385
550
|
maintainer_signal_summary: z.ZodOptional<z.ZodString>;
|
|
1386
551
|
dedupe_summary: z.ZodOptional<z.ZodString>;
|
|
1387
|
-
},
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
maintainer_signal_summary?: string | undefined;
|
|
1391
|
-
dedupe_summary?: string | undefined;
|
|
1392
|
-
}, {
|
|
1393
|
-
problem_summary?: string | undefined;
|
|
1394
|
-
solution_summary?: string | undefined;
|
|
1395
|
-
maintainer_signal_summary?: string | undefined;
|
|
1396
|
-
dedupe_summary?: string | undefined;
|
|
1397
|
-
}>;
|
|
1398
|
-
}, "strip", z.ZodTypeAny, {
|
|
1399
|
-
thread: {
|
|
1400
|
-
number: number;
|
|
1401
|
-
id: number;
|
|
1402
|
-
repoId: number;
|
|
1403
|
-
kind: "issue" | "pull_request";
|
|
1404
|
-
state: string;
|
|
1405
|
-
title: string;
|
|
1406
|
-
body: string | null;
|
|
1407
|
-
authorLogin: string | null;
|
|
1408
|
-
htmlUrl: string;
|
|
1409
|
-
labels: string[];
|
|
1410
|
-
updatedAtGh: string | null;
|
|
1411
|
-
clusterId?: number | null | undefined;
|
|
1412
|
-
};
|
|
1413
|
-
bodySnippet: string | null;
|
|
1414
|
-
summaries: {
|
|
1415
|
-
problem_summary?: string | undefined;
|
|
1416
|
-
solution_summary?: string | undefined;
|
|
1417
|
-
maintainer_signal_summary?: string | undefined;
|
|
1418
|
-
dedupe_summary?: string | undefined;
|
|
1419
|
-
};
|
|
1420
|
-
}, {
|
|
1421
|
-
thread: {
|
|
1422
|
-
number: number;
|
|
1423
|
-
id: number;
|
|
1424
|
-
repoId: number;
|
|
1425
|
-
kind: "issue" | "pull_request";
|
|
1426
|
-
state: string;
|
|
1427
|
-
title: string;
|
|
1428
|
-
body: string | null;
|
|
1429
|
-
authorLogin: string | null;
|
|
1430
|
-
htmlUrl: string;
|
|
1431
|
-
labels: string[];
|
|
1432
|
-
updatedAtGh: string | null;
|
|
1433
|
-
clusterId?: number | null | undefined;
|
|
1434
|
-
};
|
|
1435
|
-
bodySnippet: string | null;
|
|
1436
|
-
summaries: {
|
|
1437
|
-
problem_summary?: string | undefined;
|
|
1438
|
-
solution_summary?: string | undefined;
|
|
1439
|
-
maintainer_signal_summary?: string | undefined;
|
|
1440
|
-
dedupe_summary?: string | undefined;
|
|
1441
|
-
};
|
|
1442
|
-
}>, "many">;
|
|
1443
|
-
}, "strip", z.ZodTypeAny, {
|
|
1444
|
-
repository: {
|
|
1445
|
-
id: number;
|
|
1446
|
-
owner: string;
|
|
1447
|
-
name: string;
|
|
1448
|
-
fullName: string;
|
|
1449
|
-
githubRepoId: string | null;
|
|
1450
|
-
updatedAt: string;
|
|
1451
|
-
};
|
|
1452
|
-
members: {
|
|
1453
|
-
thread: {
|
|
1454
|
-
number: number;
|
|
1455
|
-
id: number;
|
|
1456
|
-
repoId: number;
|
|
1457
|
-
kind: "issue" | "pull_request";
|
|
1458
|
-
state: string;
|
|
1459
|
-
title: string;
|
|
1460
|
-
body: string | null;
|
|
1461
|
-
authorLogin: string | null;
|
|
1462
|
-
htmlUrl: string;
|
|
1463
|
-
labels: string[];
|
|
1464
|
-
updatedAtGh: string | null;
|
|
1465
|
-
clusterId?: number | null | undefined;
|
|
1466
|
-
};
|
|
1467
|
-
bodySnippet: string | null;
|
|
1468
|
-
summaries: {
|
|
1469
|
-
problem_summary?: string | undefined;
|
|
1470
|
-
solution_summary?: string | undefined;
|
|
1471
|
-
maintainer_signal_summary?: string | undefined;
|
|
1472
|
-
dedupe_summary?: string | undefined;
|
|
1473
|
-
};
|
|
1474
|
-
}[];
|
|
1475
|
-
stats: {
|
|
1476
|
-
openIssueCount: number;
|
|
1477
|
-
openPullRequestCount: number;
|
|
1478
|
-
lastGithubReconciliationAt: string | null;
|
|
1479
|
-
lastEmbedRefreshAt: string | null;
|
|
1480
|
-
staleEmbedThreadCount: number;
|
|
1481
|
-
staleEmbedSourceCount: number;
|
|
1482
|
-
latestClusterRunId: number | null;
|
|
1483
|
-
latestClusterRunFinishedAt: string | null;
|
|
1484
|
-
};
|
|
1485
|
-
cluster: {
|
|
1486
|
-
clusterId: number;
|
|
1487
|
-
representativeThreadId: number | null;
|
|
1488
|
-
displayTitle: string;
|
|
1489
|
-
totalCount: number;
|
|
1490
|
-
issueCount: number;
|
|
1491
|
-
pullRequestCount: number;
|
|
1492
|
-
latestUpdatedAt: string | null;
|
|
1493
|
-
representativeNumber: number | null;
|
|
1494
|
-
representativeKind: "issue" | "pull_request" | null;
|
|
1495
|
-
};
|
|
1496
|
-
}, {
|
|
1497
|
-
repository: {
|
|
1498
|
-
id: number;
|
|
1499
|
-
owner: string;
|
|
1500
|
-
name: string;
|
|
1501
|
-
fullName: string;
|
|
1502
|
-
githubRepoId: string | null;
|
|
1503
|
-
updatedAt: string;
|
|
1504
|
-
};
|
|
1505
|
-
members: {
|
|
1506
|
-
thread: {
|
|
1507
|
-
number: number;
|
|
1508
|
-
id: number;
|
|
1509
|
-
repoId: number;
|
|
1510
|
-
kind: "issue" | "pull_request";
|
|
1511
|
-
state: string;
|
|
1512
|
-
title: string;
|
|
1513
|
-
body: string | null;
|
|
1514
|
-
authorLogin: string | null;
|
|
1515
|
-
htmlUrl: string;
|
|
1516
|
-
labels: string[];
|
|
1517
|
-
updatedAtGh: string | null;
|
|
1518
|
-
clusterId?: number | null | undefined;
|
|
1519
|
-
};
|
|
1520
|
-
bodySnippet: string | null;
|
|
1521
|
-
summaries: {
|
|
1522
|
-
problem_summary?: string | undefined;
|
|
1523
|
-
solution_summary?: string | undefined;
|
|
1524
|
-
maintainer_signal_summary?: string | undefined;
|
|
1525
|
-
dedupe_summary?: string | undefined;
|
|
1526
|
-
};
|
|
1527
|
-
}[];
|
|
1528
|
-
stats: {
|
|
1529
|
-
openIssueCount: number;
|
|
1530
|
-
openPullRequestCount: number;
|
|
1531
|
-
lastGithubReconciliationAt: string | null;
|
|
1532
|
-
lastEmbedRefreshAt: string | null;
|
|
1533
|
-
staleEmbedThreadCount: number;
|
|
1534
|
-
staleEmbedSourceCount: number;
|
|
1535
|
-
latestClusterRunId: number | null;
|
|
1536
|
-
latestClusterRunFinishedAt: string | null;
|
|
1537
|
-
};
|
|
1538
|
-
cluster: {
|
|
1539
|
-
clusterId: number;
|
|
1540
|
-
representativeThreadId: number | null;
|
|
1541
|
-
displayTitle: string;
|
|
1542
|
-
totalCount: number;
|
|
1543
|
-
issueCount: number;
|
|
1544
|
-
pullRequestCount: number;
|
|
1545
|
-
latestUpdatedAt: string | null;
|
|
1546
|
-
representativeNumber: number | null;
|
|
1547
|
-
representativeKind: "issue" | "pull_request" | null;
|
|
1548
|
-
};
|
|
1549
|
-
}>;
|
|
552
|
+
}, z.core.$strip>;
|
|
553
|
+
}, z.core.$strip>>;
|
|
554
|
+
}, z.core.$strip>;
|
|
1550
555
|
export type ClusterDetailResponse = z.infer<typeof clusterDetailResponseSchema>;
|
|
1551
556
|
export declare const syncResultSchema: z.ZodObject<{
|
|
1552
557
|
runId: z.ZodNumber;
|
|
1553
558
|
threadsSynced: z.ZodNumber;
|
|
1554
559
|
commentsSynced: z.ZodNumber;
|
|
1555
560
|
threadsClosed: z.ZodNumber;
|
|
1556
|
-
},
|
|
1557
|
-
runId: number;
|
|
1558
|
-
threadsSynced: number;
|
|
1559
|
-
commentsSynced: number;
|
|
1560
|
-
threadsClosed: number;
|
|
1561
|
-
}, {
|
|
1562
|
-
runId: number;
|
|
1563
|
-
threadsSynced: number;
|
|
1564
|
-
commentsSynced: number;
|
|
1565
|
-
threadsClosed: number;
|
|
1566
|
-
}>;
|
|
561
|
+
}, z.core.$strip>;
|
|
1567
562
|
export type SyncResultDto = z.infer<typeof syncResultSchema>;
|
|
1568
563
|
export declare const embedResultSchema: z.ZodObject<{
|
|
1569
564
|
runId: z.ZodNumber;
|
|
1570
565
|
embedded: z.ZodNumber;
|
|
1571
|
-
},
|
|
1572
|
-
runId: number;
|
|
1573
|
-
embedded: number;
|
|
1574
|
-
}, {
|
|
1575
|
-
runId: number;
|
|
1576
|
-
embedded: number;
|
|
1577
|
-
}>;
|
|
566
|
+
}, z.core.$strip>;
|
|
1578
567
|
export type EmbedResultDto = z.infer<typeof embedResultSchema>;
|
|
1579
568
|
export declare const clusterResultSchema: z.ZodObject<{
|
|
1580
569
|
runId: z.ZodNumber;
|
|
1581
570
|
edges: z.ZodNumber;
|
|
1582
571
|
clusters: z.ZodNumber;
|
|
1583
|
-
},
|
|
1584
|
-
clusters: number;
|
|
1585
|
-
runId: number;
|
|
1586
|
-
edges: number;
|
|
1587
|
-
}, {
|
|
1588
|
-
clusters: number;
|
|
1589
|
-
runId: number;
|
|
1590
|
-
edges: number;
|
|
1591
|
-
}>;
|
|
572
|
+
}, z.core.$strip>;
|
|
1592
573
|
export type ClusterResultDto = z.infer<typeof clusterResultSchema>;
|
|
1593
574
|
export declare const refreshRequestSchema: z.ZodObject<{
|
|
1594
575
|
owner: z.ZodString;
|
|
@@ -1596,19 +577,7 @@ export declare const refreshRequestSchema: z.ZodObject<{
|
|
|
1596
577
|
sync: z.ZodOptional<z.ZodBoolean>;
|
|
1597
578
|
embed: z.ZodOptional<z.ZodBoolean>;
|
|
1598
579
|
cluster: z.ZodOptional<z.ZodBoolean>;
|
|
1599
|
-
},
|
|
1600
|
-
owner: string;
|
|
1601
|
-
repo: string;
|
|
1602
|
-
cluster?: boolean | undefined;
|
|
1603
|
-
sync?: boolean | undefined;
|
|
1604
|
-
embed?: boolean | undefined;
|
|
1605
|
-
}, {
|
|
1606
|
-
owner: string;
|
|
1607
|
-
repo: string;
|
|
1608
|
-
cluster?: boolean | undefined;
|
|
1609
|
-
sync?: boolean | undefined;
|
|
1610
|
-
embed?: boolean | undefined;
|
|
1611
|
-
}>;
|
|
580
|
+
}, z.core.$strip>;
|
|
1612
581
|
export type RefreshRequest = z.infer<typeof refreshRequestSchema>;
|
|
1613
582
|
export declare const refreshResponseSchema: z.ZodObject<{
|
|
1614
583
|
repository: z.ZodObject<{
|
|
@@ -1618,167 +587,103 @@ export declare const refreshResponseSchema: z.ZodObject<{
|
|
|
1618
587
|
fullName: z.ZodString;
|
|
1619
588
|
githubRepoId: z.ZodNullable<z.ZodString>;
|
|
1620
589
|
updatedAt: z.ZodString;
|
|
1621
|
-
},
|
|
1622
|
-
id: number;
|
|
1623
|
-
owner: string;
|
|
1624
|
-
name: string;
|
|
1625
|
-
fullName: string;
|
|
1626
|
-
githubRepoId: string | null;
|
|
1627
|
-
updatedAt: string;
|
|
1628
|
-
}, {
|
|
1629
|
-
id: number;
|
|
1630
|
-
owner: string;
|
|
1631
|
-
name: string;
|
|
1632
|
-
fullName: string;
|
|
1633
|
-
githubRepoId: string | null;
|
|
1634
|
-
updatedAt: string;
|
|
1635
|
-
}>;
|
|
590
|
+
}, z.core.$strip>;
|
|
1636
591
|
selected: z.ZodObject<{
|
|
1637
592
|
sync: z.ZodBoolean;
|
|
1638
593
|
embed: z.ZodBoolean;
|
|
1639
594
|
cluster: z.ZodBoolean;
|
|
1640
|
-
},
|
|
1641
|
-
cluster: boolean;
|
|
1642
|
-
sync: boolean;
|
|
1643
|
-
embed: boolean;
|
|
1644
|
-
}, {
|
|
1645
|
-
cluster: boolean;
|
|
1646
|
-
sync: boolean;
|
|
1647
|
-
embed: boolean;
|
|
1648
|
-
}>;
|
|
595
|
+
}, z.core.$strip>;
|
|
1649
596
|
sync: z.ZodNullable<z.ZodObject<{
|
|
1650
597
|
runId: z.ZodNumber;
|
|
1651
598
|
threadsSynced: z.ZodNumber;
|
|
1652
599
|
commentsSynced: z.ZodNumber;
|
|
1653
600
|
threadsClosed: z.ZodNumber;
|
|
1654
|
-
},
|
|
1655
|
-
runId: number;
|
|
1656
|
-
threadsSynced: number;
|
|
1657
|
-
commentsSynced: number;
|
|
1658
|
-
threadsClosed: number;
|
|
1659
|
-
}, {
|
|
1660
|
-
runId: number;
|
|
1661
|
-
threadsSynced: number;
|
|
1662
|
-
commentsSynced: number;
|
|
1663
|
-
threadsClosed: number;
|
|
1664
|
-
}>>;
|
|
601
|
+
}, z.core.$strip>>;
|
|
1665
602
|
embed: z.ZodNullable<z.ZodObject<{
|
|
1666
603
|
runId: z.ZodNumber;
|
|
1667
604
|
embedded: z.ZodNumber;
|
|
1668
|
-
},
|
|
1669
|
-
runId: number;
|
|
1670
|
-
embedded: number;
|
|
1671
|
-
}, {
|
|
1672
|
-
runId: number;
|
|
1673
|
-
embedded: number;
|
|
1674
|
-
}>>;
|
|
605
|
+
}, z.core.$strip>>;
|
|
1675
606
|
cluster: z.ZodNullable<z.ZodObject<{
|
|
1676
607
|
runId: z.ZodNumber;
|
|
1677
608
|
edges: z.ZodNumber;
|
|
1678
609
|
clusters: z.ZodNumber;
|
|
1679
|
-
},
|
|
1680
|
-
|
|
1681
|
-
runId: number;
|
|
1682
|
-
edges: number;
|
|
1683
|
-
}, {
|
|
1684
|
-
clusters: number;
|
|
1685
|
-
runId: number;
|
|
1686
|
-
edges: number;
|
|
1687
|
-
}>>;
|
|
1688
|
-
}, "strip", z.ZodTypeAny, {
|
|
1689
|
-
repository: {
|
|
1690
|
-
id: number;
|
|
1691
|
-
owner: string;
|
|
1692
|
-
name: string;
|
|
1693
|
-
fullName: string;
|
|
1694
|
-
githubRepoId: string | null;
|
|
1695
|
-
updatedAt: string;
|
|
1696
|
-
};
|
|
1697
|
-
cluster: {
|
|
1698
|
-
clusters: number;
|
|
1699
|
-
runId: number;
|
|
1700
|
-
edges: number;
|
|
1701
|
-
} | null;
|
|
1702
|
-
sync: {
|
|
1703
|
-
runId: number;
|
|
1704
|
-
threadsSynced: number;
|
|
1705
|
-
commentsSynced: number;
|
|
1706
|
-
threadsClosed: number;
|
|
1707
|
-
} | null;
|
|
1708
|
-
embed: {
|
|
1709
|
-
runId: number;
|
|
1710
|
-
embedded: number;
|
|
1711
|
-
} | null;
|
|
1712
|
-
selected: {
|
|
1713
|
-
cluster: boolean;
|
|
1714
|
-
sync: boolean;
|
|
1715
|
-
embed: boolean;
|
|
1716
|
-
};
|
|
1717
|
-
}, {
|
|
1718
|
-
repository: {
|
|
1719
|
-
id: number;
|
|
1720
|
-
owner: string;
|
|
1721
|
-
name: string;
|
|
1722
|
-
fullName: string;
|
|
1723
|
-
githubRepoId: string | null;
|
|
1724
|
-
updatedAt: string;
|
|
1725
|
-
};
|
|
1726
|
-
cluster: {
|
|
1727
|
-
clusters: number;
|
|
1728
|
-
runId: number;
|
|
1729
|
-
edges: number;
|
|
1730
|
-
} | null;
|
|
1731
|
-
sync: {
|
|
1732
|
-
runId: number;
|
|
1733
|
-
threadsSynced: number;
|
|
1734
|
-
commentsSynced: number;
|
|
1735
|
-
threadsClosed: number;
|
|
1736
|
-
} | null;
|
|
1737
|
-
embed: {
|
|
1738
|
-
runId: number;
|
|
1739
|
-
embedded: number;
|
|
1740
|
-
} | null;
|
|
1741
|
-
selected: {
|
|
1742
|
-
cluster: boolean;
|
|
1743
|
-
sync: boolean;
|
|
1744
|
-
embed: boolean;
|
|
1745
|
-
};
|
|
1746
|
-
}>;
|
|
610
|
+
}, z.core.$strip>>;
|
|
611
|
+
}, z.core.$strip>;
|
|
1747
612
|
export type RefreshResponse = z.infer<typeof refreshResponseSchema>;
|
|
1748
|
-
export declare const
|
|
613
|
+
export declare const closeThreadRequestSchema: z.ZodObject<{
|
|
614
|
+
owner: z.ZodString;
|
|
615
|
+
repo: z.ZodString;
|
|
616
|
+
threadNumber: z.ZodNumber;
|
|
617
|
+
}, z.core.$strip>;
|
|
618
|
+
export type CloseThreadRequest = z.infer<typeof closeThreadRequestSchema>;
|
|
619
|
+
export declare const closeClusterRequestSchema: z.ZodObject<{
|
|
620
|
+
owner: z.ZodString;
|
|
621
|
+
repo: z.ZodString;
|
|
622
|
+
clusterId: z.ZodNumber;
|
|
623
|
+
}, z.core.$strip>;
|
|
624
|
+
export type CloseClusterRequest = z.infer<typeof closeClusterRequestSchema>;
|
|
625
|
+
export declare const closeResponseSchema: z.ZodObject<{
|
|
626
|
+
ok: z.ZodBoolean;
|
|
627
|
+
repository: z.ZodObject<{
|
|
628
|
+
id: z.ZodNumber;
|
|
629
|
+
owner: z.ZodString;
|
|
630
|
+
name: z.ZodString;
|
|
631
|
+
fullName: z.ZodString;
|
|
632
|
+
githubRepoId: z.ZodNullable<z.ZodString>;
|
|
633
|
+
updatedAt: z.ZodString;
|
|
634
|
+
}, z.core.$strip>;
|
|
635
|
+
thread: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
636
|
+
id: z.ZodNumber;
|
|
637
|
+
repoId: z.ZodNumber;
|
|
638
|
+
number: z.ZodNumber;
|
|
639
|
+
kind: z.ZodEnum<{
|
|
640
|
+
issue: "issue";
|
|
641
|
+
pull_request: "pull_request";
|
|
642
|
+
}>;
|
|
643
|
+
state: z.ZodString;
|
|
644
|
+
isClosed: z.ZodBoolean;
|
|
645
|
+
closedAtGh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
646
|
+
closedAtLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
647
|
+
closeReasonLocal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
648
|
+
title: z.ZodString;
|
|
649
|
+
body: z.ZodNullable<z.ZodString>;
|
|
650
|
+
authorLogin: z.ZodNullable<z.ZodString>;
|
|
651
|
+
htmlUrl: z.ZodString;
|
|
652
|
+
labels: z.ZodArray<z.ZodString>;
|
|
653
|
+
updatedAtGh: z.ZodNullable<z.ZodString>;
|
|
654
|
+
clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
655
|
+
}, z.core.$strip>>>;
|
|
656
|
+
clusterId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
657
|
+
clusterClosed: z.ZodOptional<z.ZodBoolean>;
|
|
658
|
+
message: z.ZodString;
|
|
659
|
+
}, z.core.$strip>;
|
|
660
|
+
export type CloseResponse = z.infer<typeof closeResponseSchema>;
|
|
661
|
+
export declare const rerunActionSchema: z.ZodEnum<{
|
|
662
|
+
cluster: "cluster";
|
|
663
|
+
embed: "embed";
|
|
664
|
+
summarize: "summarize";
|
|
665
|
+
}>;
|
|
1749
666
|
export type RerunAction = z.infer<typeof rerunActionSchema>;
|
|
1750
667
|
export declare const actionRequestSchema: z.ZodObject<{
|
|
1751
668
|
owner: z.ZodString;
|
|
1752
669
|
repo: z.ZodString;
|
|
1753
|
-
action: z.ZodEnum<
|
|
670
|
+
action: z.ZodEnum<{
|
|
671
|
+
cluster: "cluster";
|
|
672
|
+
embed: "embed";
|
|
673
|
+
summarize: "summarize";
|
|
674
|
+
}>;
|
|
1754
675
|
threadNumber: z.ZodOptional<z.ZodNumber>;
|
|
1755
|
-
},
|
|
1756
|
-
owner: string;
|
|
1757
|
-
repo: string;
|
|
1758
|
-
action: "cluster" | "embed" | "summarize";
|
|
1759
|
-
threadNumber?: number | undefined;
|
|
1760
|
-
}, {
|
|
1761
|
-
owner: string;
|
|
1762
|
-
repo: string;
|
|
1763
|
-
action: "cluster" | "embed" | "summarize";
|
|
1764
|
-
threadNumber?: number | undefined;
|
|
1765
|
-
}>;
|
|
676
|
+
}, z.core.$strip>;
|
|
1766
677
|
export type ActionRequest = z.infer<typeof actionRequestSchema>;
|
|
1767
678
|
export declare const actionResponseSchema: z.ZodObject<{
|
|
1768
679
|
ok: z.ZodBoolean;
|
|
1769
|
-
action: z.ZodEnum<
|
|
680
|
+
action: z.ZodEnum<{
|
|
681
|
+
cluster: "cluster";
|
|
682
|
+
embed: "embed";
|
|
683
|
+
summarize: "summarize";
|
|
684
|
+
}>;
|
|
1770
685
|
runId: z.ZodNullable<z.ZodNumber>;
|
|
1771
686
|
message: z.ZodString;
|
|
1772
|
-
},
|
|
1773
|
-
message: string;
|
|
1774
|
-
ok: boolean;
|
|
1775
|
-
runId: number | null;
|
|
1776
|
-
action: "cluster" | "embed" | "summarize";
|
|
1777
|
-
}, {
|
|
1778
|
-
message: string;
|
|
1779
|
-
ok: boolean;
|
|
1780
|
-
runId: number | null;
|
|
1781
|
-
action: "cluster" | "embed" | "summarize";
|
|
1782
|
-
}>;
|
|
687
|
+
}, z.core.$strip>;
|
|
1783
688
|
export type ActionResponse = z.infer<typeof actionResponseSchema>;
|
|
1784
689
|
//# sourceMappingURL=contracts.d.ts.map
|