@longdotxyz/shared 0.0.131 → 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.
Files changed (37) hide show
  1. package/dist/contracts/asset.contract.d.ts +3519 -3547
  2. package/dist/contracts/asset.contract.js +57 -94
  3. package/dist/contracts/asset.contract.js.map +1 -1
  4. package/dist/contracts/auction-template.contract.d.ts +208 -186
  5. package/dist/contracts/auction-template.contract.js +54 -64
  6. package/dist/contracts/auction-template.contract.js.map +1 -1
  7. package/dist/contracts/auction.contract.d.ts +113 -133
  8. package/dist/contracts/auction.contract.js +31 -51
  9. package/dist/contracts/auction.contract.js.map +1 -1
  10. package/dist/contracts/charts.contract.d.ts +91 -119
  11. package/dist/contracts/charts.contract.js +13 -32
  12. package/dist/contracts/charts.contract.js.map +1 -1
  13. package/dist/contracts/community.contract.d.ts +73 -86
  14. package/dist/contracts/community.contract.js +7 -27
  15. package/dist/contracts/community.contract.js.map +1 -1
  16. package/dist/contracts/github-activity.contract.d.ts +507 -0
  17. package/dist/contracts/github-activity.contract.js +43 -0
  18. package/dist/contracts/github-activity.contract.js.map +1 -0
  19. package/dist/contracts/index.d.ts +6071 -6159
  20. package/dist/contracts/index.js +5 -4
  21. package/dist/contracts/index.js.map +1 -1
  22. package/dist/contracts/ipfs.contract.d.ts +66 -83
  23. package/dist/contracts/ipfs.contract.js +30 -49
  24. package/dist/contracts/ipfs.contract.js.map +1 -1
  25. package/dist/contracts/market.contract.d.ts +1268 -1418
  26. package/dist/contracts/market.contract.js +69 -132
  27. package/dist/contracts/market.contract.js.map +1 -1
  28. package/dist/contracts/pathfinding.contract.d.ts +191 -202
  29. package/dist/contracts/pathfinding.contract.js +13 -23
  30. package/dist/contracts/pathfinding.contract.js.map +1 -1
  31. package/dist/contracts/sponsorship.contract.d.ts +230 -331
  32. package/dist/contracts/sponsorship.contract.js +78 -138
  33. package/dist/contracts/sponsorship.contract.js.map +1 -1
  34. package/dist/contracts/tokens.contract.d.ts +62 -61
  35. package/dist/contracts/tokens.contract.js +42 -51
  36. package/dist/contracts/tokens.contract.js.map +1 -1
  37. package/package.json +4 -3
@@ -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"}