@eyettea/zeta-backend 0.0.1-rc.3 → 0.0.1-rc.5

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.
@@ -1,4 +1,5 @@
1
1
  import { Elysia } from 'elysia';
2
+ import { BadRequest, NotFound, ValidationError, InternalServerError } from './lib/errors';
2
3
  export declare function createApp(): Elysia<"", {
3
4
  decorator: {};
4
5
  store: {};
@@ -7,6 +8,14 @@ export declare function createApp(): Elysia<"", {
7
8
  }, {
8
9
  typebox: {};
9
10
  error: {};
11
+ } & {
12
+ typebox: {};
13
+ error: {
14
+ readonly BadRequest: BadRequest;
15
+ readonly NotFound: NotFound;
16
+ readonly ValidationError: ValidationError;
17
+ readonly InternalServerError: InternalServerError;
18
+ };
10
19
  } & {
11
20
  typebox: {};
12
21
  error: {};
@@ -27,29 +36,7 @@ export declare function createApp(): Elysia<"", {
27
36
  macroFn: {};
28
37
  parser: {};
29
38
  response: {
30
- 200: {
31
- success: boolean;
32
- error: string;
33
- message: string;
34
- details?: undefined;
35
- } | {
36
- success: boolean;
37
- error: string;
38
- message: string;
39
- details: ({
40
- summary: undefined;
41
- } | {
42
- summary: string;
43
- } | {
44
- summary: string;
45
- type: import("@sinclair/typebox/build/cjs/errors").ValueErrorType;
46
- schema: import("elysia").TSchema;
47
- path: string;
48
- value: unknown;
49
- message: string;
50
- errors: import("@sinclair/typebox/build/cjs/errors").ValueErrorIterator[];
51
- })[];
52
- };
39
+ 200: Response;
53
40
  };
54
41
  } & {
55
42
  schema: {};
@@ -64,6 +51,7 @@ export declare function createApp(): Elysia<"", {
64
51
  macro: {};
65
52
  macroFn: {};
66
53
  parser: {};
54
+ response: {};
67
55
  }, {
68
56
  "token-list": {
69
57
  "devnet.json": {
@@ -73,29 +61,7 @@ export declare function createApp(): Elysia<"", {
73
61
  query: unknown;
74
62
  headers: unknown;
75
63
  response: {
76
- 200: Response | {
77
- success: boolean;
78
- error: string;
79
- message: string;
80
- details?: undefined;
81
- } | {
82
- success: boolean;
83
- error: string;
84
- message: string;
85
- details: ({
86
- summary: undefined;
87
- } | {
88
- summary: string;
89
- } | {
90
- summary: string;
91
- type: import("@sinclair/typebox/build/cjs/errors").ValueErrorType;
92
- schema: import("elysia").TSchema;
93
- path: string;
94
- value: unknown;
95
- message: string;
96
- errors: import("@sinclair/typebox/build/cjs/errors").ValueErrorIterator[];
97
- })[];
98
- };
64
+ 200: Response;
99
65
  };
100
66
  };
101
67
  };
@@ -109,7 +75,27 @@ export declare function createApp(): Elysia<"", {
109
75
  query: unknown;
110
76
  headers: unknown;
111
77
  response: {
112
- 200: import("./api").ApiResponse<import("./routes/pools").TokenListResponse>;
78
+ 400: {
79
+ message: string;
80
+ error: "Bad request";
81
+ details?: Record<string, unknown> | undefined;
82
+ };
83
+ 404: {
84
+ message: string;
85
+ error: "Resource not found";
86
+ details?: Record<string, unknown> | undefined;
87
+ };
88
+ 422: {
89
+ message: string;
90
+ error: "Validation error";
91
+ details?: Record<string, unknown> | undefined;
92
+ };
93
+ 500: {
94
+ message: string;
95
+ error: "Internal server error";
96
+ details?: Record<string, unknown> | undefined;
97
+ };
98
+ 200: import("./routes/pools").TokenListResponse;
113
99
  };
114
100
  };
115
101
  };
@@ -126,16 +112,27 @@ export declare function createApp(): Elysia<"", {
126
112
  };
127
113
  headers: unknown;
128
114
  response: {
129
- 200: import("./api").ApiResponse<import("./routes/pools").ClmmLiquidityLinePayload>;
115
+ 400: {
116
+ message: string;
117
+ error: "Bad request";
118
+ details?: Record<string, unknown> | undefined;
119
+ };
120
+ 404: {
121
+ message: string;
122
+ error: "Resource not found";
123
+ details?: Record<string, unknown> | undefined;
124
+ };
130
125
  422: {
131
- type: "validation";
132
- on: string;
133
- summary?: string;
134
- message?: string;
135
- found?: unknown;
136
- property?: string;
137
- expected?: string;
126
+ message: string;
127
+ error: "Validation error";
128
+ details?: Record<string, unknown> | undefined;
129
+ };
130
+ 500: {
131
+ message: string;
132
+ error: "Internal server error";
133
+ details?: Record<string, unknown> | undefined;
138
134
  };
135
+ 200: import("./routes/pools").ClmmLiquidityLinePayload;
139
136
  };
140
137
  };
141
138
  };
@@ -153,16 +150,27 @@ export declare function createApp(): Elysia<"", {
153
150
  };
154
151
  headers: unknown;
155
152
  response: {
156
- 200: import("./api").ApiResponse<import("./routes/pools").TokenPricesResponse>;
153
+ 400: {
154
+ message: string;
155
+ error: "Bad request";
156
+ details?: Record<string, unknown> | undefined;
157
+ };
158
+ 404: {
159
+ message: string;
160
+ error: "Resource not found";
161
+ details?: Record<string, unknown> | undefined;
162
+ };
157
163
  422: {
158
- type: "validation";
159
- on: string;
160
- summary?: string;
161
- message?: string;
162
- found?: unknown;
163
- property?: string;
164
- expected?: string;
164
+ message: string;
165
+ error: "Validation error";
166
+ details?: Record<string, unknown> | undefined;
165
167
  };
168
+ 500: {
169
+ message: string;
170
+ error: "Internal server error";
171
+ details?: Record<string, unknown> | undefined;
172
+ };
173
+ 200: import("./routes/pools").TokenPricesResponse;
166
174
  };
167
175
  };
168
176
  };
@@ -183,16 +191,27 @@ export declare function createApp(): Elysia<"", {
183
191
  };
184
192
  headers: unknown;
185
193
  response: {
186
- 200: import("./api").ApiResponse<import("./routes/pools").PoolListResponse>;
194
+ 400: {
195
+ message: string;
196
+ error: "Bad request";
197
+ details?: Record<string, unknown> | undefined;
198
+ };
199
+ 404: {
200
+ message: string;
201
+ error: "Resource not found";
202
+ details?: Record<string, unknown> | undefined;
203
+ };
187
204
  422: {
188
- type: "validation";
189
- on: string;
190
- summary?: string;
191
- message?: string;
192
- found?: unknown;
193
- property?: string;
194
- expected?: string;
205
+ message: string;
206
+ error: "Validation error";
207
+ details?: Record<string, unknown> | undefined;
208
+ };
209
+ 500: {
210
+ message: string;
211
+ error: "Internal server error";
212
+ details?: Record<string, unknown> | undefined;
195
213
  };
214
+ 200: import("./api").PaginatedApiResponse<import("./routes/pools").PoolListResponse>;
196
215
  };
197
216
  };
198
217
  };
@@ -210,16 +229,27 @@ export declare function createApp(): Elysia<"", {
210
229
  };
211
230
  headers: unknown;
212
231
  response: {
213
- 200: import("./api").ApiResponse<import("./routes/pools").PoolListFromIdsResponse>;
232
+ 400: {
233
+ message: string;
234
+ error: "Bad request";
235
+ details?: Record<string, unknown> | undefined;
236
+ };
237
+ 404: {
238
+ message: string;
239
+ error: "Resource not found";
240
+ details?: Record<string, unknown> | undefined;
241
+ };
214
242
  422: {
215
- type: "validation";
216
- on: string;
217
- summary?: string;
218
- message?: string;
219
- found?: unknown;
220
- property?: string;
221
- expected?: string;
243
+ message: string;
244
+ error: "Validation error";
245
+ details?: Record<string, unknown> | undefined;
222
246
  };
247
+ 500: {
248
+ message: string;
249
+ error: "Internal server error";
250
+ details?: Record<string, unknown> | undefined;
251
+ };
252
+ 200: import("./routes/pools").PoolListFromIdsResponse;
223
253
  };
224
254
  };
225
255
  };
@@ -237,16 +267,27 @@ export declare function createApp(): Elysia<"", {
237
267
  };
238
268
  headers: unknown;
239
269
  response: {
240
- 200: import("./api").ApiResponse<import("./routes/pools").Events>;
270
+ 400: {
271
+ message: string;
272
+ error: "Bad request";
273
+ details?: Record<string, unknown> | undefined;
274
+ };
275
+ 404: {
276
+ message: string;
277
+ error: "Resource not found";
278
+ details?: Record<string, unknown> | undefined;
279
+ };
241
280
  422: {
242
- type: "validation";
243
- on: string;
244
- summary?: string;
245
- message?: string;
246
- found?: unknown;
247
- property?: string;
248
- expected?: string;
281
+ message: string;
282
+ error: "Validation error";
283
+ details?: Record<string, unknown> | undefined;
284
+ };
285
+ 500: {
286
+ message: string;
287
+ error: "Internal server error";
288
+ details?: Record<string, unknown> | undefined;
249
289
  };
290
+ 200: import("./routes/pools").Events;
250
291
  };
251
292
  };
252
293
  };
@@ -264,16 +305,27 @@ export declare function createApp(): Elysia<"", {
264
305
  };
265
306
  headers: unknown;
266
307
  response: {
267
- 200: import("./api").ApiResponse<import("./api").ClmmPosition[]>;
308
+ 400: {
309
+ message: string;
310
+ error: "Bad request";
311
+ details?: Record<string, unknown> | undefined;
312
+ };
313
+ 404: {
314
+ message: string;
315
+ error: "Resource not found";
316
+ details?: Record<string, unknown> | undefined;
317
+ };
268
318
  422: {
269
- type: "validation";
270
- on: string;
271
- summary?: string;
272
- message?: string;
273
- found?: unknown;
274
- property?: string;
275
- expected?: string;
319
+ message: string;
320
+ error: "Validation error";
321
+ details?: Record<string, unknown> | undefined;
322
+ };
323
+ 500: {
324
+ message: string;
325
+ error: "Internal server error";
326
+ details?: Record<string, unknown> | undefined;
276
327
  };
328
+ 200: import("./api").ClmmPosition[];
277
329
  };
278
330
  };
279
331
  };
@@ -294,16 +346,27 @@ export declare function createApp(): Elysia<"", {
294
346
  };
295
347
  headers: unknown;
296
348
  response: {
297
- 200: import("./api").ApiResponse<import("./routes/pools").PoolListResponse>;
349
+ 400: {
350
+ message: string;
351
+ error: "Bad request";
352
+ details?: Record<string, unknown> | undefined;
353
+ };
354
+ 404: {
355
+ message: string;
356
+ error: "Resource not found";
357
+ details?: Record<string, unknown> | undefined;
358
+ };
298
359
  422: {
299
- type: "validation";
300
- on: string;
301
- summary?: string;
302
- message?: string;
303
- found?: unknown;
304
- property?: string;
305
- expected?: string;
360
+ message: string;
361
+ error: "Validation error";
362
+ details?: Record<string, unknown> | undefined;
306
363
  };
364
+ 500: {
365
+ message: string;
366
+ error: "Internal server error";
367
+ details?: Record<string, unknown> | undefined;
368
+ };
369
+ 200: import("./api").PaginatedApiResponse<import("./routes/pools").PoolListResponse>;
307
370
  };
308
371
  };
309
372
  };
@@ -323,16 +386,27 @@ export declare function createApp(): Elysia<"", {
323
386
  };
324
387
  headers: unknown;
325
388
  response: {
326
- 200: import("./api").ApiResponse<import("./api").LiquidityLineData>;
389
+ 400: {
390
+ message: string;
391
+ error: "Bad request";
392
+ details?: Record<string, unknown> | undefined;
393
+ };
394
+ 404: {
395
+ message: string;
396
+ error: "Resource not found";
397
+ details?: Record<string, unknown> | undefined;
398
+ };
327
399
  422: {
328
- type: "validation";
329
- on: string;
330
- summary?: string;
331
- message?: string;
332
- found?: unknown;
333
- property?: string;
334
- expected?: string;
400
+ message: string;
401
+ error: "Validation error";
402
+ details?: Record<string, unknown> | undefined;
403
+ };
404
+ 500: {
405
+ message: string;
406
+ error: "Internal server error";
407
+ details?: Record<string, unknown> | undefined;
335
408
  };
409
+ 200: import("./api").LiquidityLineData;
336
410
  };
337
411
  };
338
412
  };
@@ -353,16 +427,27 @@ export declare function createApp(): Elysia<"", {
353
427
  };
354
428
  headers: unknown;
355
429
  response: {
356
- 200: import("./api").ApiResponse<import("./api").SwapComputeResult>;
430
+ 400: {
431
+ message: string;
432
+ error: "Bad request";
433
+ details?: Record<string, unknown> | undefined;
434
+ };
435
+ 404: {
436
+ message: string;
437
+ error: "Resource not found";
438
+ details?: Record<string, unknown> | undefined;
439
+ };
357
440
  422: {
358
- type: "validation";
359
- on: string;
360
- summary?: string;
361
- message?: string;
362
- found?: unknown;
363
- property?: string;
364
- expected?: string;
441
+ message: string;
442
+ error: "Validation error";
443
+ details?: Record<string, unknown> | undefined;
365
444
  };
445
+ 500: {
446
+ message: string;
447
+ error: "Internal server error";
448
+ details?: Record<string, unknown> | undefined;
449
+ };
450
+ 200: import("./api").SwapComputeResult;
366
451
  };
367
452
  };
368
453
  };
@@ -382,16 +467,27 @@ export declare function createApp(): Elysia<"", {
382
467
  };
383
468
  headers: unknown;
384
469
  response: {
385
- 200: import("./api").ApiResponse<import("./api").SwapComputeResult>;
470
+ 400: {
471
+ message: string;
472
+ error: "Bad request";
473
+ details?: Record<string, unknown> | undefined;
474
+ };
475
+ 404: {
476
+ message: string;
477
+ error: "Resource not found";
478
+ details?: Record<string, unknown> | undefined;
479
+ };
386
480
  422: {
387
- type: "validation";
388
- on: string;
389
- summary?: string;
390
- message?: string;
391
- found?: unknown;
392
- property?: string;
393
- expected?: string;
481
+ message: string;
482
+ error: "Validation error";
483
+ details?: Record<string, unknown> | undefined;
484
+ };
485
+ 500: {
486
+ message: string;
487
+ error: "Internal server error";
488
+ details?: Record<string, unknown> | undefined;
394
489
  };
490
+ 200: import("./api").SwapComputeResult;
395
491
  };
396
492
  };
397
493
  };
@@ -413,16 +509,27 @@ export declare function createApp(): Elysia<"", {
413
509
  };
414
510
  headers: unknown;
415
511
  response: {
416
- 200: import("./api").ApiResponse<import("./api").OHLVCResult>;
512
+ 400: {
513
+ message: string;
514
+ error: "Bad request";
515
+ details?: Record<string, unknown> | undefined;
516
+ };
517
+ 404: {
518
+ message: string;
519
+ error: "Resource not found";
520
+ details?: Record<string, unknown> | undefined;
521
+ };
417
522
  422: {
418
- type: "validation";
419
- on: string;
420
- summary?: string;
421
- message?: string;
422
- found?: unknown;
423
- property?: string;
424
- expected?: string;
523
+ message: string;
524
+ error: "Validation error";
525
+ details?: Record<string, unknown> | undefined;
425
526
  };
527
+ 500: {
528
+ message: string;
529
+ error: "Internal server error";
530
+ details?: Record<string, unknown> | undefined;
531
+ };
532
+ 200: import("./api").OHLVCResult;
426
533
  };
427
534
  };
428
535
  };
@@ -469,6 +576,7 @@ export declare function createApp(): Elysia<"", {
469
576
  resolve: {};
470
577
  schema: {};
471
578
  standaloneSchema: {};
579
+ response: {};
472
580
  }>;
473
581
  export declare const app: Elysia<"", {
474
582
  decorator: {};
@@ -478,6 +586,14 @@ export declare const app: Elysia<"", {
478
586
  }, {
479
587
  typebox: {};
480
588
  error: {};
589
+ } & {
590
+ typebox: {};
591
+ error: {
592
+ readonly BadRequest: BadRequest;
593
+ readonly NotFound: NotFound;
594
+ readonly ValidationError: ValidationError;
595
+ readonly InternalServerError: InternalServerError;
596
+ };
481
597
  } & {
482
598
  typebox: {};
483
599
  error: {};
@@ -498,29 +614,7 @@ export declare const app: Elysia<"", {
498
614
  macroFn: {};
499
615
  parser: {};
500
616
  response: {
501
- 200: {
502
- success: boolean;
503
- error: string;
504
- message: string;
505
- details?: undefined;
506
- } | {
507
- success: boolean;
508
- error: string;
509
- message: string;
510
- details: ({
511
- summary: undefined;
512
- } | {
513
- summary: string;
514
- } | {
515
- summary: string;
516
- type: import("@sinclair/typebox/build/cjs/errors").ValueErrorType;
517
- schema: import("elysia").TSchema;
518
- path: string;
519
- value: unknown;
520
- message: string;
521
- errors: import("@sinclair/typebox/build/cjs/errors").ValueErrorIterator[];
522
- })[];
523
- };
617
+ 200: Response;
524
618
  };
525
619
  } & {
526
620
  schema: {};
@@ -535,6 +629,7 @@ export declare const app: Elysia<"", {
535
629
  macro: {};
536
630
  macroFn: {};
537
631
  parser: {};
632
+ response: {};
538
633
  }, {
539
634
  "token-list": {
540
635
  "devnet.json": {
@@ -544,29 +639,7 @@ export declare const app: Elysia<"", {
544
639
  query: unknown;
545
640
  headers: unknown;
546
641
  response: {
547
- 200: Response | {
548
- success: boolean;
549
- error: string;
550
- message: string;
551
- details?: undefined;
552
- } | {
553
- success: boolean;
554
- error: string;
555
- message: string;
556
- details: ({
557
- summary: undefined;
558
- } | {
559
- summary: string;
560
- } | {
561
- summary: string;
562
- type: import("@sinclair/typebox/build/cjs/errors").ValueErrorType;
563
- schema: import("elysia").TSchema;
564
- path: string;
565
- value: unknown;
566
- message: string;
567
- errors: import("@sinclair/typebox/build/cjs/errors").ValueErrorIterator[];
568
- })[];
569
- };
642
+ 200: Response;
570
643
  };
571
644
  };
572
645
  };
@@ -580,7 +653,27 @@ export declare const app: Elysia<"", {
580
653
  query: unknown;
581
654
  headers: unknown;
582
655
  response: {
583
- 200: import("./api").ApiResponse<import("./routes/pools").TokenListResponse>;
656
+ 400: {
657
+ message: string;
658
+ error: "Bad request";
659
+ details?: Record<string, unknown> | undefined;
660
+ };
661
+ 404: {
662
+ message: string;
663
+ error: "Resource not found";
664
+ details?: Record<string, unknown> | undefined;
665
+ };
666
+ 422: {
667
+ message: string;
668
+ error: "Validation error";
669
+ details?: Record<string, unknown> | undefined;
670
+ };
671
+ 500: {
672
+ message: string;
673
+ error: "Internal server error";
674
+ details?: Record<string, unknown> | undefined;
675
+ };
676
+ 200: import("./routes/pools").TokenListResponse;
584
677
  };
585
678
  };
586
679
  };
@@ -597,16 +690,27 @@ export declare const app: Elysia<"", {
597
690
  };
598
691
  headers: unknown;
599
692
  response: {
600
- 200: import("./api").ApiResponse<import("./routes/pools").ClmmLiquidityLinePayload>;
693
+ 400: {
694
+ message: string;
695
+ error: "Bad request";
696
+ details?: Record<string, unknown> | undefined;
697
+ };
698
+ 404: {
699
+ message: string;
700
+ error: "Resource not found";
701
+ details?: Record<string, unknown> | undefined;
702
+ };
601
703
  422: {
602
- type: "validation";
603
- on: string;
604
- summary?: string;
605
- message?: string;
606
- found?: unknown;
607
- property?: string;
608
- expected?: string;
704
+ message: string;
705
+ error: "Validation error";
706
+ details?: Record<string, unknown> | undefined;
707
+ };
708
+ 500: {
709
+ message: string;
710
+ error: "Internal server error";
711
+ details?: Record<string, unknown> | undefined;
609
712
  };
713
+ 200: import("./routes/pools").ClmmLiquidityLinePayload;
610
714
  };
611
715
  };
612
716
  };
@@ -624,16 +728,27 @@ export declare const app: Elysia<"", {
624
728
  };
625
729
  headers: unknown;
626
730
  response: {
627
- 200: import("./api").ApiResponse<import("./routes/pools").TokenPricesResponse>;
731
+ 400: {
732
+ message: string;
733
+ error: "Bad request";
734
+ details?: Record<string, unknown> | undefined;
735
+ };
736
+ 404: {
737
+ message: string;
738
+ error: "Resource not found";
739
+ details?: Record<string, unknown> | undefined;
740
+ };
628
741
  422: {
629
- type: "validation";
630
- on: string;
631
- summary?: string;
632
- message?: string;
633
- found?: unknown;
634
- property?: string;
635
- expected?: string;
742
+ message: string;
743
+ error: "Validation error";
744
+ details?: Record<string, unknown> | undefined;
636
745
  };
746
+ 500: {
747
+ message: string;
748
+ error: "Internal server error";
749
+ details?: Record<string, unknown> | undefined;
750
+ };
751
+ 200: import("./routes/pools").TokenPricesResponse;
637
752
  };
638
753
  };
639
754
  };
@@ -654,16 +769,27 @@ export declare const app: Elysia<"", {
654
769
  };
655
770
  headers: unknown;
656
771
  response: {
657
- 200: import("./api").ApiResponse<import("./routes/pools").PoolListResponse>;
772
+ 400: {
773
+ message: string;
774
+ error: "Bad request";
775
+ details?: Record<string, unknown> | undefined;
776
+ };
777
+ 404: {
778
+ message: string;
779
+ error: "Resource not found";
780
+ details?: Record<string, unknown> | undefined;
781
+ };
658
782
  422: {
659
- type: "validation";
660
- on: string;
661
- summary?: string;
662
- message?: string;
663
- found?: unknown;
664
- property?: string;
665
- expected?: string;
783
+ message: string;
784
+ error: "Validation error";
785
+ details?: Record<string, unknown> | undefined;
786
+ };
787
+ 500: {
788
+ message: string;
789
+ error: "Internal server error";
790
+ details?: Record<string, unknown> | undefined;
666
791
  };
792
+ 200: import("./api").PaginatedApiResponse<import("./routes/pools").PoolListResponse>;
667
793
  };
668
794
  };
669
795
  };
@@ -681,16 +807,27 @@ export declare const app: Elysia<"", {
681
807
  };
682
808
  headers: unknown;
683
809
  response: {
684
- 200: import("./api").ApiResponse<import("./routes/pools").PoolListFromIdsResponse>;
810
+ 400: {
811
+ message: string;
812
+ error: "Bad request";
813
+ details?: Record<string, unknown> | undefined;
814
+ };
815
+ 404: {
816
+ message: string;
817
+ error: "Resource not found";
818
+ details?: Record<string, unknown> | undefined;
819
+ };
685
820
  422: {
686
- type: "validation";
687
- on: string;
688
- summary?: string;
689
- message?: string;
690
- found?: unknown;
691
- property?: string;
692
- expected?: string;
821
+ message: string;
822
+ error: "Validation error";
823
+ details?: Record<string, unknown> | undefined;
693
824
  };
825
+ 500: {
826
+ message: string;
827
+ error: "Internal server error";
828
+ details?: Record<string, unknown> | undefined;
829
+ };
830
+ 200: import("./routes/pools").PoolListFromIdsResponse;
694
831
  };
695
832
  };
696
833
  };
@@ -708,16 +845,27 @@ export declare const app: Elysia<"", {
708
845
  };
709
846
  headers: unknown;
710
847
  response: {
711
- 200: import("./api").ApiResponse<import("./routes/pools").Events>;
848
+ 400: {
849
+ message: string;
850
+ error: "Bad request";
851
+ details?: Record<string, unknown> | undefined;
852
+ };
853
+ 404: {
854
+ message: string;
855
+ error: "Resource not found";
856
+ details?: Record<string, unknown> | undefined;
857
+ };
712
858
  422: {
713
- type: "validation";
714
- on: string;
715
- summary?: string;
716
- message?: string;
717
- found?: unknown;
718
- property?: string;
719
- expected?: string;
859
+ message: string;
860
+ error: "Validation error";
861
+ details?: Record<string, unknown> | undefined;
862
+ };
863
+ 500: {
864
+ message: string;
865
+ error: "Internal server error";
866
+ details?: Record<string, unknown> | undefined;
720
867
  };
868
+ 200: import("./routes/pools").Events;
721
869
  };
722
870
  };
723
871
  };
@@ -735,16 +883,27 @@ export declare const app: Elysia<"", {
735
883
  };
736
884
  headers: unknown;
737
885
  response: {
738
- 200: import("./api").ApiResponse<import("./api").ClmmPosition[]>;
886
+ 400: {
887
+ message: string;
888
+ error: "Bad request";
889
+ details?: Record<string, unknown> | undefined;
890
+ };
891
+ 404: {
892
+ message: string;
893
+ error: "Resource not found";
894
+ details?: Record<string, unknown> | undefined;
895
+ };
739
896
  422: {
740
- type: "validation";
741
- on: string;
742
- summary?: string;
743
- message?: string;
744
- found?: unknown;
745
- property?: string;
746
- expected?: string;
897
+ message: string;
898
+ error: "Validation error";
899
+ details?: Record<string, unknown> | undefined;
900
+ };
901
+ 500: {
902
+ message: string;
903
+ error: "Internal server error";
904
+ details?: Record<string, unknown> | undefined;
747
905
  };
906
+ 200: import("./api").ClmmPosition[];
748
907
  };
749
908
  };
750
909
  };
@@ -765,16 +924,27 @@ export declare const app: Elysia<"", {
765
924
  };
766
925
  headers: unknown;
767
926
  response: {
768
- 200: import("./api").ApiResponse<import("./routes/pools").PoolListResponse>;
927
+ 400: {
928
+ message: string;
929
+ error: "Bad request";
930
+ details?: Record<string, unknown> | undefined;
931
+ };
932
+ 404: {
933
+ message: string;
934
+ error: "Resource not found";
935
+ details?: Record<string, unknown> | undefined;
936
+ };
769
937
  422: {
770
- type: "validation";
771
- on: string;
772
- summary?: string;
773
- message?: string;
774
- found?: unknown;
775
- property?: string;
776
- expected?: string;
938
+ message: string;
939
+ error: "Validation error";
940
+ details?: Record<string, unknown> | undefined;
777
941
  };
942
+ 500: {
943
+ message: string;
944
+ error: "Internal server error";
945
+ details?: Record<string, unknown> | undefined;
946
+ };
947
+ 200: import("./api").PaginatedApiResponse<import("./routes/pools").PoolListResponse>;
778
948
  };
779
949
  };
780
950
  };
@@ -794,16 +964,27 @@ export declare const app: Elysia<"", {
794
964
  };
795
965
  headers: unknown;
796
966
  response: {
797
- 200: import("./api").ApiResponse<import("./api").LiquidityLineData>;
967
+ 400: {
968
+ message: string;
969
+ error: "Bad request";
970
+ details?: Record<string, unknown> | undefined;
971
+ };
972
+ 404: {
973
+ message: string;
974
+ error: "Resource not found";
975
+ details?: Record<string, unknown> | undefined;
976
+ };
798
977
  422: {
799
- type: "validation";
800
- on: string;
801
- summary?: string;
802
- message?: string;
803
- found?: unknown;
804
- property?: string;
805
- expected?: string;
978
+ message: string;
979
+ error: "Validation error";
980
+ details?: Record<string, unknown> | undefined;
981
+ };
982
+ 500: {
983
+ message: string;
984
+ error: "Internal server error";
985
+ details?: Record<string, unknown> | undefined;
806
986
  };
987
+ 200: import("./api").LiquidityLineData;
807
988
  };
808
989
  };
809
990
  };
@@ -824,16 +1005,27 @@ export declare const app: Elysia<"", {
824
1005
  };
825
1006
  headers: unknown;
826
1007
  response: {
827
- 200: import("./api").ApiResponse<import("./api").SwapComputeResult>;
1008
+ 400: {
1009
+ message: string;
1010
+ error: "Bad request";
1011
+ details?: Record<string, unknown> | undefined;
1012
+ };
1013
+ 404: {
1014
+ message: string;
1015
+ error: "Resource not found";
1016
+ details?: Record<string, unknown> | undefined;
1017
+ };
828
1018
  422: {
829
- type: "validation";
830
- on: string;
831
- summary?: string;
832
- message?: string;
833
- found?: unknown;
834
- property?: string;
835
- expected?: string;
1019
+ message: string;
1020
+ error: "Validation error";
1021
+ details?: Record<string, unknown> | undefined;
836
1022
  };
1023
+ 500: {
1024
+ message: string;
1025
+ error: "Internal server error";
1026
+ details?: Record<string, unknown> | undefined;
1027
+ };
1028
+ 200: import("./api").SwapComputeResult;
837
1029
  };
838
1030
  };
839
1031
  };
@@ -853,16 +1045,27 @@ export declare const app: Elysia<"", {
853
1045
  };
854
1046
  headers: unknown;
855
1047
  response: {
856
- 200: import("./api").ApiResponse<import("./api").SwapComputeResult>;
1048
+ 400: {
1049
+ message: string;
1050
+ error: "Bad request";
1051
+ details?: Record<string, unknown> | undefined;
1052
+ };
1053
+ 404: {
1054
+ message: string;
1055
+ error: "Resource not found";
1056
+ details?: Record<string, unknown> | undefined;
1057
+ };
857
1058
  422: {
858
- type: "validation";
859
- on: string;
860
- summary?: string;
861
- message?: string;
862
- found?: unknown;
863
- property?: string;
864
- expected?: string;
1059
+ message: string;
1060
+ error: "Validation error";
1061
+ details?: Record<string, unknown> | undefined;
1062
+ };
1063
+ 500: {
1064
+ message: string;
1065
+ error: "Internal server error";
1066
+ details?: Record<string, unknown> | undefined;
865
1067
  };
1068
+ 200: import("./api").SwapComputeResult;
866
1069
  };
867
1070
  };
868
1071
  };
@@ -884,16 +1087,27 @@ export declare const app: Elysia<"", {
884
1087
  };
885
1088
  headers: unknown;
886
1089
  response: {
887
- 200: import("./api").ApiResponse<import("./api").OHLVCResult>;
1090
+ 400: {
1091
+ message: string;
1092
+ error: "Bad request";
1093
+ details?: Record<string, unknown> | undefined;
1094
+ };
1095
+ 404: {
1096
+ message: string;
1097
+ error: "Resource not found";
1098
+ details?: Record<string, unknown> | undefined;
1099
+ };
888
1100
  422: {
889
- type: "validation";
890
- on: string;
891
- summary?: string;
892
- message?: string;
893
- found?: unknown;
894
- property?: string;
895
- expected?: string;
1101
+ message: string;
1102
+ error: "Validation error";
1103
+ details?: Record<string, unknown> | undefined;
896
1104
  };
1105
+ 500: {
1106
+ message: string;
1107
+ error: "Internal server error";
1108
+ details?: Record<string, unknown> | undefined;
1109
+ };
1110
+ 200: import("./api").OHLVCResult;
897
1111
  };
898
1112
  };
899
1113
  };
@@ -940,6 +1154,7 @@ export declare const app: Elysia<"", {
940
1154
  resolve: {};
941
1155
  schema: {};
942
1156
  standaloneSchema: {};
1157
+ response: {};
943
1158
  }>;
944
1159
  export type App = typeof app;
945
1160
  //# sourceMappingURL=app.d.ts.map