@longdotxyz/shared 0.0.132 → 0.0.133
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/contracts/github-activity.contract.d.ts +507 -0
- package/dist/contracts/github-activity.contract.js +43 -0
- package/dist/contracts/github-activity.contract.js.map +1 -0
- package/dist/contracts/index.d.ts +261 -4
- package/dist/contracts/index.js +3 -0
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/pathfinding.contract.d.ts +8 -8
- package/package.json +1 -1
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
declare const TierEnum: z.ZodEnum<["inactive", "casual", "active", "builder", "elite"]>;
|
|
3
|
+
declare const GitHubActivityResponseSchema: z.ZodObject<{
|
|
4
|
+
result: z.ZodObject<{
|
|
5
|
+
username: z.ZodString;
|
|
6
|
+
score: z.ZodNumber;
|
|
7
|
+
tier: z.ZodEnum<["inactive", "casual", "active", "builder", "elite"]>;
|
|
8
|
+
breakdown: z.ZodObject<{
|
|
9
|
+
accountMaturity: z.ZodObject<{
|
|
10
|
+
score: z.ZodNumber;
|
|
11
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
score: number;
|
|
14
|
+
details: Record<string, any>;
|
|
15
|
+
}, {
|
|
16
|
+
score: number;
|
|
17
|
+
details: Record<string, any>;
|
|
18
|
+
}>;
|
|
19
|
+
repositoryQuality: z.ZodObject<{
|
|
20
|
+
score: z.ZodNumber;
|
|
21
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
score: number;
|
|
24
|
+
details: Record<string, any>;
|
|
25
|
+
}, {
|
|
26
|
+
score: number;
|
|
27
|
+
details: Record<string, any>;
|
|
28
|
+
}>;
|
|
29
|
+
externalContributions: z.ZodObject<{
|
|
30
|
+
score: z.ZodNumber;
|
|
31
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
score: number;
|
|
34
|
+
details: Record<string, any>;
|
|
35
|
+
}, {
|
|
36
|
+
score: number;
|
|
37
|
+
details: Record<string, any>;
|
|
38
|
+
}>;
|
|
39
|
+
codeReviewActivity: z.ZodObject<{
|
|
40
|
+
score: z.ZodNumber;
|
|
41
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
score: number;
|
|
44
|
+
details: Record<string, any>;
|
|
45
|
+
}, {
|
|
46
|
+
score: number;
|
|
47
|
+
details: Record<string, any>;
|
|
48
|
+
}>;
|
|
49
|
+
communityEngagement: z.ZodObject<{
|
|
50
|
+
score: z.ZodNumber;
|
|
51
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
score: number;
|
|
54
|
+
details: Record<string, any>;
|
|
55
|
+
}, {
|
|
56
|
+
score: number;
|
|
57
|
+
details: Record<string, any>;
|
|
58
|
+
}>;
|
|
59
|
+
recentActivity: z.ZodObject<{
|
|
60
|
+
score: z.ZodNumber;
|
|
61
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
score: number;
|
|
64
|
+
details: Record<string, any>;
|
|
65
|
+
}, {
|
|
66
|
+
score: number;
|
|
67
|
+
details: Record<string, any>;
|
|
68
|
+
}>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
accountMaturity: {
|
|
71
|
+
score: number;
|
|
72
|
+
details: Record<string, any>;
|
|
73
|
+
};
|
|
74
|
+
repositoryQuality: {
|
|
75
|
+
score: number;
|
|
76
|
+
details: Record<string, any>;
|
|
77
|
+
};
|
|
78
|
+
externalContributions: {
|
|
79
|
+
score: number;
|
|
80
|
+
details: Record<string, any>;
|
|
81
|
+
};
|
|
82
|
+
codeReviewActivity: {
|
|
83
|
+
score: number;
|
|
84
|
+
details: Record<string, any>;
|
|
85
|
+
};
|
|
86
|
+
communityEngagement: {
|
|
87
|
+
score: number;
|
|
88
|
+
details: Record<string, any>;
|
|
89
|
+
};
|
|
90
|
+
recentActivity: {
|
|
91
|
+
score: number;
|
|
92
|
+
details: Record<string, any>;
|
|
93
|
+
};
|
|
94
|
+
}, {
|
|
95
|
+
accountMaturity: {
|
|
96
|
+
score: number;
|
|
97
|
+
details: Record<string, any>;
|
|
98
|
+
};
|
|
99
|
+
repositoryQuality: {
|
|
100
|
+
score: number;
|
|
101
|
+
details: Record<string, any>;
|
|
102
|
+
};
|
|
103
|
+
externalContributions: {
|
|
104
|
+
score: number;
|
|
105
|
+
details: Record<string, any>;
|
|
106
|
+
};
|
|
107
|
+
codeReviewActivity: {
|
|
108
|
+
score: number;
|
|
109
|
+
details: Record<string, any>;
|
|
110
|
+
};
|
|
111
|
+
communityEngagement: {
|
|
112
|
+
score: number;
|
|
113
|
+
details: Record<string, any>;
|
|
114
|
+
};
|
|
115
|
+
recentActivity: {
|
|
116
|
+
score: number;
|
|
117
|
+
details: Record<string, any>;
|
|
118
|
+
};
|
|
119
|
+
}>;
|
|
120
|
+
fetchedAt: z.ZodString;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
score: number;
|
|
123
|
+
username: string;
|
|
124
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
125
|
+
breakdown: {
|
|
126
|
+
accountMaturity: {
|
|
127
|
+
score: number;
|
|
128
|
+
details: Record<string, any>;
|
|
129
|
+
};
|
|
130
|
+
repositoryQuality: {
|
|
131
|
+
score: number;
|
|
132
|
+
details: Record<string, any>;
|
|
133
|
+
};
|
|
134
|
+
externalContributions: {
|
|
135
|
+
score: number;
|
|
136
|
+
details: Record<string, any>;
|
|
137
|
+
};
|
|
138
|
+
codeReviewActivity: {
|
|
139
|
+
score: number;
|
|
140
|
+
details: Record<string, any>;
|
|
141
|
+
};
|
|
142
|
+
communityEngagement: {
|
|
143
|
+
score: number;
|
|
144
|
+
details: Record<string, any>;
|
|
145
|
+
};
|
|
146
|
+
recentActivity: {
|
|
147
|
+
score: number;
|
|
148
|
+
details: Record<string, any>;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
fetchedAt: string;
|
|
152
|
+
}, {
|
|
153
|
+
score: number;
|
|
154
|
+
username: string;
|
|
155
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
156
|
+
breakdown: {
|
|
157
|
+
accountMaturity: {
|
|
158
|
+
score: number;
|
|
159
|
+
details: Record<string, any>;
|
|
160
|
+
};
|
|
161
|
+
repositoryQuality: {
|
|
162
|
+
score: number;
|
|
163
|
+
details: Record<string, any>;
|
|
164
|
+
};
|
|
165
|
+
externalContributions: {
|
|
166
|
+
score: number;
|
|
167
|
+
details: Record<string, any>;
|
|
168
|
+
};
|
|
169
|
+
codeReviewActivity: {
|
|
170
|
+
score: number;
|
|
171
|
+
details: Record<string, any>;
|
|
172
|
+
};
|
|
173
|
+
communityEngagement: {
|
|
174
|
+
score: number;
|
|
175
|
+
details: Record<string, any>;
|
|
176
|
+
};
|
|
177
|
+
recentActivity: {
|
|
178
|
+
score: number;
|
|
179
|
+
details: Record<string, any>;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
fetchedAt: string;
|
|
183
|
+
}>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
result: {
|
|
186
|
+
score: number;
|
|
187
|
+
username: string;
|
|
188
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
189
|
+
breakdown: {
|
|
190
|
+
accountMaturity: {
|
|
191
|
+
score: number;
|
|
192
|
+
details: Record<string, any>;
|
|
193
|
+
};
|
|
194
|
+
repositoryQuality: {
|
|
195
|
+
score: number;
|
|
196
|
+
details: Record<string, any>;
|
|
197
|
+
};
|
|
198
|
+
externalContributions: {
|
|
199
|
+
score: number;
|
|
200
|
+
details: Record<string, any>;
|
|
201
|
+
};
|
|
202
|
+
codeReviewActivity: {
|
|
203
|
+
score: number;
|
|
204
|
+
details: Record<string, any>;
|
|
205
|
+
};
|
|
206
|
+
communityEngagement: {
|
|
207
|
+
score: number;
|
|
208
|
+
details: Record<string, any>;
|
|
209
|
+
};
|
|
210
|
+
recentActivity: {
|
|
211
|
+
score: number;
|
|
212
|
+
details: Record<string, any>;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
fetchedAt: string;
|
|
216
|
+
};
|
|
217
|
+
}, {
|
|
218
|
+
result: {
|
|
219
|
+
score: number;
|
|
220
|
+
username: string;
|
|
221
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
222
|
+
breakdown: {
|
|
223
|
+
accountMaturity: {
|
|
224
|
+
score: number;
|
|
225
|
+
details: Record<string, any>;
|
|
226
|
+
};
|
|
227
|
+
repositoryQuality: {
|
|
228
|
+
score: number;
|
|
229
|
+
details: Record<string, any>;
|
|
230
|
+
};
|
|
231
|
+
externalContributions: {
|
|
232
|
+
score: number;
|
|
233
|
+
details: Record<string, any>;
|
|
234
|
+
};
|
|
235
|
+
codeReviewActivity: {
|
|
236
|
+
score: number;
|
|
237
|
+
details: Record<string, any>;
|
|
238
|
+
};
|
|
239
|
+
communityEngagement: {
|
|
240
|
+
score: number;
|
|
241
|
+
details: Record<string, any>;
|
|
242
|
+
};
|
|
243
|
+
recentActivity: {
|
|
244
|
+
score: number;
|
|
245
|
+
details: Record<string, any>;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
fetchedAt: string;
|
|
249
|
+
};
|
|
250
|
+
}>;
|
|
251
|
+
declare const githubActivityContract: {
|
|
252
|
+
getActivityScore: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
253
|
+
username: z.ZodString;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
username: string;
|
|
256
|
+
}, {
|
|
257
|
+
username: string;
|
|
258
|
+
}>, z.ZodObject<{
|
|
259
|
+
result: z.ZodObject<{
|
|
260
|
+
username: z.ZodString;
|
|
261
|
+
score: z.ZodNumber;
|
|
262
|
+
tier: z.ZodEnum<["inactive", "casual", "active", "builder", "elite"]>;
|
|
263
|
+
breakdown: z.ZodObject<{
|
|
264
|
+
accountMaturity: z.ZodObject<{
|
|
265
|
+
score: z.ZodNumber;
|
|
266
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
score: number;
|
|
269
|
+
details: Record<string, any>;
|
|
270
|
+
}, {
|
|
271
|
+
score: number;
|
|
272
|
+
details: Record<string, any>;
|
|
273
|
+
}>;
|
|
274
|
+
repositoryQuality: z.ZodObject<{
|
|
275
|
+
score: z.ZodNumber;
|
|
276
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
score: number;
|
|
279
|
+
details: Record<string, any>;
|
|
280
|
+
}, {
|
|
281
|
+
score: number;
|
|
282
|
+
details: Record<string, any>;
|
|
283
|
+
}>;
|
|
284
|
+
externalContributions: z.ZodObject<{
|
|
285
|
+
score: z.ZodNumber;
|
|
286
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
score: number;
|
|
289
|
+
details: Record<string, any>;
|
|
290
|
+
}, {
|
|
291
|
+
score: number;
|
|
292
|
+
details: Record<string, any>;
|
|
293
|
+
}>;
|
|
294
|
+
codeReviewActivity: z.ZodObject<{
|
|
295
|
+
score: z.ZodNumber;
|
|
296
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
297
|
+
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
score: number;
|
|
299
|
+
details: Record<string, any>;
|
|
300
|
+
}, {
|
|
301
|
+
score: number;
|
|
302
|
+
details: Record<string, any>;
|
|
303
|
+
}>;
|
|
304
|
+
communityEngagement: z.ZodObject<{
|
|
305
|
+
score: z.ZodNumber;
|
|
306
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
308
|
+
score: number;
|
|
309
|
+
details: Record<string, any>;
|
|
310
|
+
}, {
|
|
311
|
+
score: number;
|
|
312
|
+
details: Record<string, any>;
|
|
313
|
+
}>;
|
|
314
|
+
recentActivity: z.ZodObject<{
|
|
315
|
+
score: z.ZodNumber;
|
|
316
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
score: number;
|
|
319
|
+
details: Record<string, any>;
|
|
320
|
+
}, {
|
|
321
|
+
score: number;
|
|
322
|
+
details: Record<string, any>;
|
|
323
|
+
}>;
|
|
324
|
+
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
accountMaturity: {
|
|
326
|
+
score: number;
|
|
327
|
+
details: Record<string, any>;
|
|
328
|
+
};
|
|
329
|
+
repositoryQuality: {
|
|
330
|
+
score: number;
|
|
331
|
+
details: Record<string, any>;
|
|
332
|
+
};
|
|
333
|
+
externalContributions: {
|
|
334
|
+
score: number;
|
|
335
|
+
details: Record<string, any>;
|
|
336
|
+
};
|
|
337
|
+
codeReviewActivity: {
|
|
338
|
+
score: number;
|
|
339
|
+
details: Record<string, any>;
|
|
340
|
+
};
|
|
341
|
+
communityEngagement: {
|
|
342
|
+
score: number;
|
|
343
|
+
details: Record<string, any>;
|
|
344
|
+
};
|
|
345
|
+
recentActivity: {
|
|
346
|
+
score: number;
|
|
347
|
+
details: Record<string, any>;
|
|
348
|
+
};
|
|
349
|
+
}, {
|
|
350
|
+
accountMaturity: {
|
|
351
|
+
score: number;
|
|
352
|
+
details: Record<string, any>;
|
|
353
|
+
};
|
|
354
|
+
repositoryQuality: {
|
|
355
|
+
score: number;
|
|
356
|
+
details: Record<string, any>;
|
|
357
|
+
};
|
|
358
|
+
externalContributions: {
|
|
359
|
+
score: number;
|
|
360
|
+
details: Record<string, any>;
|
|
361
|
+
};
|
|
362
|
+
codeReviewActivity: {
|
|
363
|
+
score: number;
|
|
364
|
+
details: Record<string, any>;
|
|
365
|
+
};
|
|
366
|
+
communityEngagement: {
|
|
367
|
+
score: number;
|
|
368
|
+
details: Record<string, any>;
|
|
369
|
+
};
|
|
370
|
+
recentActivity: {
|
|
371
|
+
score: number;
|
|
372
|
+
details: Record<string, any>;
|
|
373
|
+
};
|
|
374
|
+
}>;
|
|
375
|
+
fetchedAt: z.ZodString;
|
|
376
|
+
}, "strip", z.ZodTypeAny, {
|
|
377
|
+
score: number;
|
|
378
|
+
username: string;
|
|
379
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
380
|
+
breakdown: {
|
|
381
|
+
accountMaturity: {
|
|
382
|
+
score: number;
|
|
383
|
+
details: Record<string, any>;
|
|
384
|
+
};
|
|
385
|
+
repositoryQuality: {
|
|
386
|
+
score: number;
|
|
387
|
+
details: Record<string, any>;
|
|
388
|
+
};
|
|
389
|
+
externalContributions: {
|
|
390
|
+
score: number;
|
|
391
|
+
details: Record<string, any>;
|
|
392
|
+
};
|
|
393
|
+
codeReviewActivity: {
|
|
394
|
+
score: number;
|
|
395
|
+
details: Record<string, any>;
|
|
396
|
+
};
|
|
397
|
+
communityEngagement: {
|
|
398
|
+
score: number;
|
|
399
|
+
details: Record<string, any>;
|
|
400
|
+
};
|
|
401
|
+
recentActivity: {
|
|
402
|
+
score: number;
|
|
403
|
+
details: Record<string, any>;
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
fetchedAt: string;
|
|
407
|
+
}, {
|
|
408
|
+
score: number;
|
|
409
|
+
username: string;
|
|
410
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
411
|
+
breakdown: {
|
|
412
|
+
accountMaturity: {
|
|
413
|
+
score: number;
|
|
414
|
+
details: Record<string, any>;
|
|
415
|
+
};
|
|
416
|
+
repositoryQuality: {
|
|
417
|
+
score: number;
|
|
418
|
+
details: Record<string, any>;
|
|
419
|
+
};
|
|
420
|
+
externalContributions: {
|
|
421
|
+
score: number;
|
|
422
|
+
details: Record<string, any>;
|
|
423
|
+
};
|
|
424
|
+
codeReviewActivity: {
|
|
425
|
+
score: number;
|
|
426
|
+
details: Record<string, any>;
|
|
427
|
+
};
|
|
428
|
+
communityEngagement: {
|
|
429
|
+
score: number;
|
|
430
|
+
details: Record<string, any>;
|
|
431
|
+
};
|
|
432
|
+
recentActivity: {
|
|
433
|
+
score: number;
|
|
434
|
+
details: Record<string, any>;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
fetchedAt: string;
|
|
438
|
+
}>;
|
|
439
|
+
}, "strip", z.ZodTypeAny, {
|
|
440
|
+
result: {
|
|
441
|
+
score: number;
|
|
442
|
+
username: string;
|
|
443
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
444
|
+
breakdown: {
|
|
445
|
+
accountMaturity: {
|
|
446
|
+
score: number;
|
|
447
|
+
details: Record<string, any>;
|
|
448
|
+
};
|
|
449
|
+
repositoryQuality: {
|
|
450
|
+
score: number;
|
|
451
|
+
details: Record<string, any>;
|
|
452
|
+
};
|
|
453
|
+
externalContributions: {
|
|
454
|
+
score: number;
|
|
455
|
+
details: Record<string, any>;
|
|
456
|
+
};
|
|
457
|
+
codeReviewActivity: {
|
|
458
|
+
score: number;
|
|
459
|
+
details: Record<string, any>;
|
|
460
|
+
};
|
|
461
|
+
communityEngagement: {
|
|
462
|
+
score: number;
|
|
463
|
+
details: Record<string, any>;
|
|
464
|
+
};
|
|
465
|
+
recentActivity: {
|
|
466
|
+
score: number;
|
|
467
|
+
details: Record<string, any>;
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
fetchedAt: string;
|
|
471
|
+
};
|
|
472
|
+
}, {
|
|
473
|
+
result: {
|
|
474
|
+
score: number;
|
|
475
|
+
username: string;
|
|
476
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
477
|
+
breakdown: {
|
|
478
|
+
accountMaturity: {
|
|
479
|
+
score: number;
|
|
480
|
+
details: Record<string, any>;
|
|
481
|
+
};
|
|
482
|
+
repositoryQuality: {
|
|
483
|
+
score: number;
|
|
484
|
+
details: Record<string, any>;
|
|
485
|
+
};
|
|
486
|
+
externalContributions: {
|
|
487
|
+
score: number;
|
|
488
|
+
details: Record<string, any>;
|
|
489
|
+
};
|
|
490
|
+
codeReviewActivity: {
|
|
491
|
+
score: number;
|
|
492
|
+
details: Record<string, any>;
|
|
493
|
+
};
|
|
494
|
+
communityEngagement: {
|
|
495
|
+
score: number;
|
|
496
|
+
details: Record<string, any>;
|
|
497
|
+
};
|
|
498
|
+
recentActivity: {
|
|
499
|
+
score: number;
|
|
500
|
+
details: Record<string, any>;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
fetchedAt: string;
|
|
504
|
+
};
|
|
505
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
506
|
+
};
|
|
507
|
+
export { githubActivityContract, GitHubActivityResponseSchema, TierEnum };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TierEnum = exports.GitHubActivityResponseSchema = exports.githubActivityContract = void 0;
|
|
7
|
+
const contract_1 = require("@orpc/contract");
|
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
|
9
|
+
const TierEnum = zod_1.default.enum(["inactive", "casual", "active", "builder", "elite"]);
|
|
10
|
+
exports.TierEnum = TierEnum;
|
|
11
|
+
const DimensionScoreSchema = zod_1.default.object({
|
|
12
|
+
score: zod_1.default.number(),
|
|
13
|
+
details: zod_1.default.record(zod_1.default.string(), zod_1.default.any()),
|
|
14
|
+
});
|
|
15
|
+
const GitHubActivityResponseSchema = zod_1.default.object({
|
|
16
|
+
result: zod_1.default.object({
|
|
17
|
+
username: zod_1.default.string(),
|
|
18
|
+
score: zod_1.default.number(),
|
|
19
|
+
tier: TierEnum,
|
|
20
|
+
breakdown: zod_1.default.object({
|
|
21
|
+
accountMaturity: DimensionScoreSchema,
|
|
22
|
+
repositoryQuality: DimensionScoreSchema,
|
|
23
|
+
externalContributions: DimensionScoreSchema,
|
|
24
|
+
codeReviewActivity: DimensionScoreSchema,
|
|
25
|
+
communityEngagement: DimensionScoreSchema,
|
|
26
|
+
recentActivity: DimensionScoreSchema,
|
|
27
|
+
}),
|
|
28
|
+
fetchedAt: zod_1.default.string(),
|
|
29
|
+
}),
|
|
30
|
+
});
|
|
31
|
+
exports.GitHubActivityResponseSchema = GitHubActivityResponseSchema;
|
|
32
|
+
const getActivityScore = contract_1.oc
|
|
33
|
+
.route({
|
|
34
|
+
method: "GET",
|
|
35
|
+
path: "/github/activity/{username}",
|
|
36
|
+
description: "Get open-source activity score for a GitHub user",
|
|
37
|
+
tags: ["github-activity"],
|
|
38
|
+
})
|
|
39
|
+
.input(zod_1.default.object({ username: zod_1.default.string() }))
|
|
40
|
+
.output(GitHubActivityResponseSchema);
|
|
41
|
+
const githubActivityContract = { getActivityScore };
|
|
42
|
+
exports.githubActivityContract = githubActivityContract;
|
|
43
|
+
//# sourceMappingURL=github-activity.contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-activity.contract.js","sourceRoot":"","sources":["../../src/contracts/github-activity.contract.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAoC;AACpC,8CAAoB;AAEpB,MAAM,QAAQ,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAoCf,4BAAQ;AAlCvE,MAAM,oBAAoB,GAAG,aAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,aAAC,CAAC,MAAM,CAAC,aAAC,CAAC,MAAM,EAAE,EAAE,aAAC,CAAC,GAAG,EAAE,CAAC;CACzC,CAAC,CAAC;AAEH,MAAM,4BAA4B,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;QACb,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;QACpB,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;QACjB,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC;YAChB,eAAe,EAAE,oBAAoB;YACrC,iBAAiB,EAAE,oBAAoB;YACvC,qBAAqB,EAAE,oBAAoB;YAC3C,kBAAkB,EAAE,oBAAoB;YACxC,mBAAmB,EAAE,oBAAoB;YACzC,cAAc,EAAE,oBAAoB;SACvC,CAAC;QACF,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;KACxB,CAAC;CACL,CAAC,CAAC;AAc8B,oEAA4B;AAZ7D,MAAM,gBAAgB,GAAG,aAAE;KACtB,KAAK,CAAC;IACH,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE,kDAAkD;IAC/D,IAAI,EAAE,CAAC,iBAAiB,CAAC;CAC5B,CAAC;KACD,KAAK,CAAC,aAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KACzC,MAAM,CAAC,4BAA4B,CAAC,CAAC;AAE1C,MAAM,sBAAsB,GAAG,EAAE,gBAAgB,EAAE,CAAC;AAE3C,wDAAsB"}
|
|
@@ -4170,6 +4170,262 @@ export declare const rootContract: {
|
|
|
4170
4170
|
};
|
|
4171
4171
|
}>, Record<never, never>, Record<never, never>>;
|
|
4172
4172
|
};
|
|
4173
|
+
githubActivity: {
|
|
4174
|
+
getActivityScore: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
4175
|
+
username: import("zod").ZodString;
|
|
4176
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4177
|
+
username: string;
|
|
4178
|
+
}, {
|
|
4179
|
+
username: string;
|
|
4180
|
+
}>, import("zod").ZodObject<{
|
|
4181
|
+
result: import("zod").ZodObject<{
|
|
4182
|
+
username: import("zod").ZodString;
|
|
4183
|
+
score: import("zod").ZodNumber;
|
|
4184
|
+
tier: import("zod").ZodEnum<["inactive", "casual", "active", "builder", "elite"]>;
|
|
4185
|
+
breakdown: import("zod").ZodObject<{
|
|
4186
|
+
accountMaturity: import("zod").ZodObject<{
|
|
4187
|
+
score: import("zod").ZodNumber;
|
|
4188
|
+
details: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
4189
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4190
|
+
score: number;
|
|
4191
|
+
details: Record<string, any>;
|
|
4192
|
+
}, {
|
|
4193
|
+
score: number;
|
|
4194
|
+
details: Record<string, any>;
|
|
4195
|
+
}>;
|
|
4196
|
+
repositoryQuality: import("zod").ZodObject<{
|
|
4197
|
+
score: import("zod").ZodNumber;
|
|
4198
|
+
details: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
4199
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4200
|
+
score: number;
|
|
4201
|
+
details: Record<string, any>;
|
|
4202
|
+
}, {
|
|
4203
|
+
score: number;
|
|
4204
|
+
details: Record<string, any>;
|
|
4205
|
+
}>;
|
|
4206
|
+
externalContributions: import("zod").ZodObject<{
|
|
4207
|
+
score: import("zod").ZodNumber;
|
|
4208
|
+
details: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
4209
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4210
|
+
score: number;
|
|
4211
|
+
details: Record<string, any>;
|
|
4212
|
+
}, {
|
|
4213
|
+
score: number;
|
|
4214
|
+
details: Record<string, any>;
|
|
4215
|
+
}>;
|
|
4216
|
+
codeReviewActivity: import("zod").ZodObject<{
|
|
4217
|
+
score: import("zod").ZodNumber;
|
|
4218
|
+
details: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
4219
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4220
|
+
score: number;
|
|
4221
|
+
details: Record<string, any>;
|
|
4222
|
+
}, {
|
|
4223
|
+
score: number;
|
|
4224
|
+
details: Record<string, any>;
|
|
4225
|
+
}>;
|
|
4226
|
+
communityEngagement: import("zod").ZodObject<{
|
|
4227
|
+
score: import("zod").ZodNumber;
|
|
4228
|
+
details: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
4229
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4230
|
+
score: number;
|
|
4231
|
+
details: Record<string, any>;
|
|
4232
|
+
}, {
|
|
4233
|
+
score: number;
|
|
4234
|
+
details: Record<string, any>;
|
|
4235
|
+
}>;
|
|
4236
|
+
recentActivity: import("zod").ZodObject<{
|
|
4237
|
+
score: import("zod").ZodNumber;
|
|
4238
|
+
details: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
4239
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4240
|
+
score: number;
|
|
4241
|
+
details: Record<string, any>;
|
|
4242
|
+
}, {
|
|
4243
|
+
score: number;
|
|
4244
|
+
details: Record<string, any>;
|
|
4245
|
+
}>;
|
|
4246
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4247
|
+
accountMaturity: {
|
|
4248
|
+
score: number;
|
|
4249
|
+
details: Record<string, any>;
|
|
4250
|
+
};
|
|
4251
|
+
repositoryQuality: {
|
|
4252
|
+
score: number;
|
|
4253
|
+
details: Record<string, any>;
|
|
4254
|
+
};
|
|
4255
|
+
externalContributions: {
|
|
4256
|
+
score: number;
|
|
4257
|
+
details: Record<string, any>;
|
|
4258
|
+
};
|
|
4259
|
+
codeReviewActivity: {
|
|
4260
|
+
score: number;
|
|
4261
|
+
details: Record<string, any>;
|
|
4262
|
+
};
|
|
4263
|
+
communityEngagement: {
|
|
4264
|
+
score: number;
|
|
4265
|
+
details: Record<string, any>;
|
|
4266
|
+
};
|
|
4267
|
+
recentActivity: {
|
|
4268
|
+
score: number;
|
|
4269
|
+
details: Record<string, any>;
|
|
4270
|
+
};
|
|
4271
|
+
}, {
|
|
4272
|
+
accountMaturity: {
|
|
4273
|
+
score: number;
|
|
4274
|
+
details: Record<string, any>;
|
|
4275
|
+
};
|
|
4276
|
+
repositoryQuality: {
|
|
4277
|
+
score: number;
|
|
4278
|
+
details: Record<string, any>;
|
|
4279
|
+
};
|
|
4280
|
+
externalContributions: {
|
|
4281
|
+
score: number;
|
|
4282
|
+
details: Record<string, any>;
|
|
4283
|
+
};
|
|
4284
|
+
codeReviewActivity: {
|
|
4285
|
+
score: number;
|
|
4286
|
+
details: Record<string, any>;
|
|
4287
|
+
};
|
|
4288
|
+
communityEngagement: {
|
|
4289
|
+
score: number;
|
|
4290
|
+
details: Record<string, any>;
|
|
4291
|
+
};
|
|
4292
|
+
recentActivity: {
|
|
4293
|
+
score: number;
|
|
4294
|
+
details: Record<string, any>;
|
|
4295
|
+
};
|
|
4296
|
+
}>;
|
|
4297
|
+
fetchedAt: import("zod").ZodString;
|
|
4298
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4299
|
+
score: number;
|
|
4300
|
+
username: string;
|
|
4301
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
4302
|
+
breakdown: {
|
|
4303
|
+
accountMaturity: {
|
|
4304
|
+
score: number;
|
|
4305
|
+
details: Record<string, any>;
|
|
4306
|
+
};
|
|
4307
|
+
repositoryQuality: {
|
|
4308
|
+
score: number;
|
|
4309
|
+
details: Record<string, any>;
|
|
4310
|
+
};
|
|
4311
|
+
externalContributions: {
|
|
4312
|
+
score: number;
|
|
4313
|
+
details: Record<string, any>;
|
|
4314
|
+
};
|
|
4315
|
+
codeReviewActivity: {
|
|
4316
|
+
score: number;
|
|
4317
|
+
details: Record<string, any>;
|
|
4318
|
+
};
|
|
4319
|
+
communityEngagement: {
|
|
4320
|
+
score: number;
|
|
4321
|
+
details: Record<string, any>;
|
|
4322
|
+
};
|
|
4323
|
+
recentActivity: {
|
|
4324
|
+
score: number;
|
|
4325
|
+
details: Record<string, any>;
|
|
4326
|
+
};
|
|
4327
|
+
};
|
|
4328
|
+
fetchedAt: string;
|
|
4329
|
+
}, {
|
|
4330
|
+
score: number;
|
|
4331
|
+
username: string;
|
|
4332
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
4333
|
+
breakdown: {
|
|
4334
|
+
accountMaturity: {
|
|
4335
|
+
score: number;
|
|
4336
|
+
details: Record<string, any>;
|
|
4337
|
+
};
|
|
4338
|
+
repositoryQuality: {
|
|
4339
|
+
score: number;
|
|
4340
|
+
details: Record<string, any>;
|
|
4341
|
+
};
|
|
4342
|
+
externalContributions: {
|
|
4343
|
+
score: number;
|
|
4344
|
+
details: Record<string, any>;
|
|
4345
|
+
};
|
|
4346
|
+
codeReviewActivity: {
|
|
4347
|
+
score: number;
|
|
4348
|
+
details: Record<string, any>;
|
|
4349
|
+
};
|
|
4350
|
+
communityEngagement: {
|
|
4351
|
+
score: number;
|
|
4352
|
+
details: Record<string, any>;
|
|
4353
|
+
};
|
|
4354
|
+
recentActivity: {
|
|
4355
|
+
score: number;
|
|
4356
|
+
details: Record<string, any>;
|
|
4357
|
+
};
|
|
4358
|
+
};
|
|
4359
|
+
fetchedAt: string;
|
|
4360
|
+
}>;
|
|
4361
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4362
|
+
result: {
|
|
4363
|
+
score: number;
|
|
4364
|
+
username: string;
|
|
4365
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
4366
|
+
breakdown: {
|
|
4367
|
+
accountMaturity: {
|
|
4368
|
+
score: number;
|
|
4369
|
+
details: Record<string, any>;
|
|
4370
|
+
};
|
|
4371
|
+
repositoryQuality: {
|
|
4372
|
+
score: number;
|
|
4373
|
+
details: Record<string, any>;
|
|
4374
|
+
};
|
|
4375
|
+
externalContributions: {
|
|
4376
|
+
score: number;
|
|
4377
|
+
details: Record<string, any>;
|
|
4378
|
+
};
|
|
4379
|
+
codeReviewActivity: {
|
|
4380
|
+
score: number;
|
|
4381
|
+
details: Record<string, any>;
|
|
4382
|
+
};
|
|
4383
|
+
communityEngagement: {
|
|
4384
|
+
score: number;
|
|
4385
|
+
details: Record<string, any>;
|
|
4386
|
+
};
|
|
4387
|
+
recentActivity: {
|
|
4388
|
+
score: number;
|
|
4389
|
+
details: Record<string, any>;
|
|
4390
|
+
};
|
|
4391
|
+
};
|
|
4392
|
+
fetchedAt: string;
|
|
4393
|
+
};
|
|
4394
|
+
}, {
|
|
4395
|
+
result: {
|
|
4396
|
+
score: number;
|
|
4397
|
+
username: string;
|
|
4398
|
+
tier: "inactive" | "casual" | "active" | "builder" | "elite";
|
|
4399
|
+
breakdown: {
|
|
4400
|
+
accountMaturity: {
|
|
4401
|
+
score: number;
|
|
4402
|
+
details: Record<string, any>;
|
|
4403
|
+
};
|
|
4404
|
+
repositoryQuality: {
|
|
4405
|
+
score: number;
|
|
4406
|
+
details: Record<string, any>;
|
|
4407
|
+
};
|
|
4408
|
+
externalContributions: {
|
|
4409
|
+
score: number;
|
|
4410
|
+
details: Record<string, any>;
|
|
4411
|
+
};
|
|
4412
|
+
codeReviewActivity: {
|
|
4413
|
+
score: number;
|
|
4414
|
+
details: Record<string, any>;
|
|
4415
|
+
};
|
|
4416
|
+
communityEngagement: {
|
|
4417
|
+
score: number;
|
|
4418
|
+
details: Record<string, any>;
|
|
4419
|
+
};
|
|
4420
|
+
recentActivity: {
|
|
4421
|
+
score: number;
|
|
4422
|
+
details: Record<string, any>;
|
|
4423
|
+
};
|
|
4424
|
+
};
|
|
4425
|
+
fetchedAt: string;
|
|
4426
|
+
};
|
|
4427
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
4428
|
+
};
|
|
4173
4429
|
ipfs: {
|
|
4174
4430
|
uploadImage: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithInputOutput<import("zod").ZodAny, import("zod").ZodObject<{
|
|
4175
4431
|
result: import("zod").ZodString;
|
|
@@ -5631,10 +5887,10 @@ export declare const rootContract: {
|
|
|
5631
5887
|
liquidity_usd: number | null;
|
|
5632
5888
|
}>, "many">;
|
|
5633
5889
|
}, "strip", import("zod").ZodTypeAny, {
|
|
5890
|
+
score: number;
|
|
5634
5891
|
source: "codex" | "kyber";
|
|
5635
5892
|
start_token_address: string;
|
|
5636
5893
|
end_token_address: string;
|
|
5637
|
-
score: number;
|
|
5638
5894
|
hops: {
|
|
5639
5895
|
fee: number | null;
|
|
5640
5896
|
hooks: string | null;
|
|
@@ -5655,10 +5911,10 @@ export declare const rootContract: {
|
|
|
5655
5911
|
amount_out?: string | undefined;
|
|
5656
5912
|
gas_estimate?: string | undefined;
|
|
5657
5913
|
}, {
|
|
5914
|
+
score: number;
|
|
5658
5915
|
source: "codex" | "kyber";
|
|
5659
5916
|
start_token_address: string;
|
|
5660
5917
|
end_token_address: string;
|
|
5661
|
-
score: number;
|
|
5662
5918
|
hops: {
|
|
5663
5919
|
fee: number | null;
|
|
5664
5920
|
hooks: string | null;
|
|
@@ -5683,10 +5939,10 @@ export declare const rootContract: {
|
|
|
5683
5939
|
token_address: string;
|
|
5684
5940
|
paths_count: number;
|
|
5685
5941
|
paths: {
|
|
5942
|
+
score: number;
|
|
5686
5943
|
source: "codex" | "kyber";
|
|
5687
5944
|
start_token_address: string;
|
|
5688
5945
|
end_token_address: string;
|
|
5689
|
-
score: number;
|
|
5690
5946
|
hops: {
|
|
5691
5947
|
fee: number | null;
|
|
5692
5948
|
hooks: string | null;
|
|
@@ -5711,10 +5967,10 @@ export declare const rootContract: {
|
|
|
5711
5967
|
token_address: string;
|
|
5712
5968
|
paths_count: number;
|
|
5713
5969
|
paths: {
|
|
5970
|
+
score: number;
|
|
5714
5971
|
source: "codex" | "kyber";
|
|
5715
5972
|
start_token_address: string;
|
|
5716
5973
|
end_token_address: string;
|
|
5717
|
-
score: number;
|
|
5718
5974
|
hops: {
|
|
5719
5975
|
fee: number | null;
|
|
5720
5976
|
hooks: string | null;
|
|
@@ -6136,6 +6392,7 @@ export * from "./auction.contract";
|
|
|
6136
6392
|
export * from "./auction-template.contract";
|
|
6137
6393
|
export * from "./charts.contract";
|
|
6138
6394
|
export * from "./community.contract";
|
|
6395
|
+
export * from "./github-activity.contract";
|
|
6139
6396
|
export * from "./ipfs.contract";
|
|
6140
6397
|
export * from "./market.contract";
|
|
6141
6398
|
export * from "./pathfinding.contract";
|
package/dist/contracts/index.js
CHANGED
|
@@ -20,6 +20,7 @@ const auction_template_contract_1 = require("./auction-template.contract");
|
|
|
20
20
|
const auction_contract_1 = require("./auction.contract");
|
|
21
21
|
const charts_contract_1 = require("./charts.contract");
|
|
22
22
|
const community_contract_1 = require("./community.contract");
|
|
23
|
+
const github_activity_contract_1 = require("./github-activity.contract");
|
|
23
24
|
const ipfs_contract_1 = require("./ipfs.contract");
|
|
24
25
|
const market_contract_1 = require("./market.contract");
|
|
25
26
|
const pathfinding_contract_1 = require("./pathfinding.contract");
|
|
@@ -31,6 +32,7 @@ exports.rootContract = {
|
|
|
31
32
|
auctionTemplates: auction_template_contract_1.auctionTemplateContract,
|
|
32
33
|
charts: charts_contract_1.chartsContract,
|
|
33
34
|
communities: community_contract_1.communityContract,
|
|
35
|
+
githubActivity: github_activity_contract_1.githubActivityContract,
|
|
34
36
|
ipfs: ipfs_contract_1.ipfsContract,
|
|
35
37
|
market: market_contract_1.marketContract,
|
|
36
38
|
pathfinding: pathfinding_contract_1.pathfindingContract,
|
|
@@ -42,6 +44,7 @@ __exportStar(require("./auction.contract"), exports);
|
|
|
42
44
|
__exportStar(require("./auction-template.contract"), exports);
|
|
43
45
|
__exportStar(require("./charts.contract"), exports);
|
|
44
46
|
__exportStar(require("./community.contract"), exports);
|
|
47
|
+
__exportStar(require("./github-activity.contract"), exports);
|
|
45
48
|
__exportStar(require("./ipfs.contract"), exports);
|
|
46
49
|
__exportStar(require("./market.contract"), exports);
|
|
47
50
|
__exportStar(require("./pathfinding.contract"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAiD;AACjD,2EAAsE;AACtE,yDAAqD;AACrD,uDAAmD;AACnD,6DAAyD;AACzD,mDAA+C;AAC/C,uDAAmD;AACnD,iEAA6D;AAC7D,iEAA6D;AAC7D,uDAAmD;AAEtC,QAAA,YAAY,GAAG;IACxB,MAAM,EAAE,8BAAa;IACrB,QAAQ,EAAE,kCAAe;IACzB,gBAAgB,EAAE,mDAAuB;IACzC,MAAM,EAAE,gCAAc;IACtB,WAAW,EAAE,sCAAiB;IAC9B,IAAI,EAAE,4BAAY;IAClB,MAAM,EAAE,gCAAc;IACtB,WAAW,EAAE,0CAAmB;IAChC,YAAY,EAAE,0CAAmB;IACjC,MAAM,EAAE,gCAAc;CACzB,CAAC;AAEF,mDAAiC;AACjC,qDAAmC;AACnC,8DAA4C;AAC5C,oDAAkC;AAClC,uDAAqC;AACrC,kDAAgC;AAChC,oDAAkC;AAClC,yDAAuC;AACvC,yDAAuC;AACvC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAiD;AACjD,2EAAsE;AACtE,yDAAqD;AACrD,uDAAmD;AACnD,6DAAyD;AACzD,yEAAoE;AACpE,mDAA+C;AAC/C,uDAAmD;AACnD,iEAA6D;AAC7D,iEAA6D;AAC7D,uDAAmD;AAEtC,QAAA,YAAY,GAAG;IACxB,MAAM,EAAE,8BAAa;IACrB,QAAQ,EAAE,kCAAe;IACzB,gBAAgB,EAAE,mDAAuB;IACzC,MAAM,EAAE,gCAAc;IACtB,WAAW,EAAE,sCAAiB;IAC9B,cAAc,EAAE,iDAAsB;IACtC,IAAI,EAAE,4BAAY;IAClB,MAAM,EAAE,gCAAc;IACtB,WAAW,EAAE,0CAAmB;IAChC,YAAY,EAAE,0CAAmB;IACjC,MAAM,EAAE,gCAAc;CACzB,CAAC;AAEF,mDAAiC;AACjC,qDAAmC;AACnC,8DAA4C;AAC5C,oDAAkC;AAClC,uDAAqC;AACrC,6DAA2C;AAC3C,kDAAgC;AAChC,oDAAkC;AAClC,yDAAuC;AACvC,yDAAuC;AACvC,oDAAkC"}
|
|
@@ -47,10 +47,10 @@ declare const FetchTokensPathsResponseSchema: z.ZodObject<{
|
|
|
47
47
|
liquidity_usd: number | null;
|
|
48
48
|
}>, "many">;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
score: number;
|
|
50
51
|
source: "codex" | "kyber";
|
|
51
52
|
start_token_address: string;
|
|
52
53
|
end_token_address: string;
|
|
53
|
-
score: number;
|
|
54
54
|
hops: {
|
|
55
55
|
fee: number | null;
|
|
56
56
|
hooks: string | null;
|
|
@@ -71,10 +71,10 @@ declare const FetchTokensPathsResponseSchema: z.ZodObject<{
|
|
|
71
71
|
amount_out?: string | undefined;
|
|
72
72
|
gas_estimate?: string | undefined;
|
|
73
73
|
}, {
|
|
74
|
+
score: number;
|
|
74
75
|
source: "codex" | "kyber";
|
|
75
76
|
start_token_address: string;
|
|
76
77
|
end_token_address: string;
|
|
77
|
-
score: number;
|
|
78
78
|
hops: {
|
|
79
79
|
fee: number | null;
|
|
80
80
|
hooks: string | null;
|
|
@@ -99,10 +99,10 @@ declare const FetchTokensPathsResponseSchema: z.ZodObject<{
|
|
|
99
99
|
token_address: string;
|
|
100
100
|
paths_count: number;
|
|
101
101
|
paths: {
|
|
102
|
+
score: number;
|
|
102
103
|
source: "codex" | "kyber";
|
|
103
104
|
start_token_address: string;
|
|
104
105
|
end_token_address: string;
|
|
105
|
-
score: number;
|
|
106
106
|
hops: {
|
|
107
107
|
fee: number | null;
|
|
108
108
|
hooks: string | null;
|
|
@@ -127,10 +127,10 @@ declare const FetchTokensPathsResponseSchema: z.ZodObject<{
|
|
|
127
127
|
token_address: string;
|
|
128
128
|
paths_count: number;
|
|
129
129
|
paths: {
|
|
130
|
+
score: number;
|
|
130
131
|
source: "codex" | "kyber";
|
|
131
132
|
start_token_address: string;
|
|
132
133
|
end_token_address: string;
|
|
133
|
-
score: number;
|
|
134
134
|
hops: {
|
|
135
135
|
fee: number | null;
|
|
136
136
|
hooks: string | null;
|
|
@@ -238,10 +238,10 @@ declare const pathfindingContract: {
|
|
|
238
238
|
liquidity_usd: number | null;
|
|
239
239
|
}>, "many">;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
score: number;
|
|
241
242
|
source: "codex" | "kyber";
|
|
242
243
|
start_token_address: string;
|
|
243
244
|
end_token_address: string;
|
|
244
|
-
score: number;
|
|
245
245
|
hops: {
|
|
246
246
|
fee: number | null;
|
|
247
247
|
hooks: string | null;
|
|
@@ -262,10 +262,10 @@ declare const pathfindingContract: {
|
|
|
262
262
|
amount_out?: string | undefined;
|
|
263
263
|
gas_estimate?: string | undefined;
|
|
264
264
|
}, {
|
|
265
|
+
score: number;
|
|
265
266
|
source: "codex" | "kyber";
|
|
266
267
|
start_token_address: string;
|
|
267
268
|
end_token_address: string;
|
|
268
|
-
score: number;
|
|
269
269
|
hops: {
|
|
270
270
|
fee: number | null;
|
|
271
271
|
hooks: string | null;
|
|
@@ -290,10 +290,10 @@ declare const pathfindingContract: {
|
|
|
290
290
|
token_address: string;
|
|
291
291
|
paths_count: number;
|
|
292
292
|
paths: {
|
|
293
|
+
score: number;
|
|
293
294
|
source: "codex" | "kyber";
|
|
294
295
|
start_token_address: string;
|
|
295
296
|
end_token_address: string;
|
|
296
|
-
score: number;
|
|
297
297
|
hops: {
|
|
298
298
|
fee: number | null;
|
|
299
299
|
hooks: string | null;
|
|
@@ -318,10 +318,10 @@ declare const pathfindingContract: {
|
|
|
318
318
|
token_address: string;
|
|
319
319
|
paths_count: number;
|
|
320
320
|
paths: {
|
|
321
|
+
score: number;
|
|
321
322
|
source: "codex" | "kyber";
|
|
322
323
|
start_token_address: string;
|
|
323
324
|
end_token_address: string;
|
|
324
|
-
score: number;
|
|
325
325
|
hops: {
|
|
326
326
|
fee: number | null;
|
|
327
327
|
hooks: string | null;
|