@merkl/api 0.10.206 → 0.10.208

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/database/api/.generated/edge.js +5 -4
  2. package/dist/database/api/.generated/index-browser.js +2 -1
  3. package/dist/database/api/.generated/index.d.ts +2 -1
  4. package/dist/database/api/.generated/index.js +5 -4
  5. package/dist/database/api/.generated/package.json +1 -1
  6. package/dist/database/api/.generated/schema.prisma +1 -0
  7. package/dist/database/api/.generated/wasm.js +2 -1
  8. package/dist/src/eden/index.d.ts +8672 -2
  9. package/dist/src/index.d.ts +3358 -1
  10. package/dist/src/index.js +4 -4
  11. package/dist/src/modules/v4/campaign/campaign.model.js +2 -2
  12. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -2
  13. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -0
  14. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +31 -1
  15. package/dist/src/modules/v4/protocol/protocol.controller.js +8 -1
  16. package/dist/src/modules/v4/protocol/protocol.model.d.ts +11 -0
  17. package/dist/src/modules/v4/protocol/protocol.model.js +8 -0
  18. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +2 -2
  19. package/dist/src/modules/v4/protocol/protocol.repository.js +12 -3
  20. package/dist/src/modules/v4/protocol/protocol.service.d.ts +9 -1
  21. package/dist/src/modules/v4/protocol/protocol.service.js +3 -0
  22. package/dist/src/modules/v4/router.d.ts +33 -3
  23. package/dist/src/routes/v2/merkl.d.ts +4 -4
  24. package/dist/src/routes/v2/router.d.ts +4 -4
  25. package/dist/src/routes/v3/blacklist.d.ts +38 -2
  26. package/dist/src/routes/v3/campaigns.d.ts +41 -2
  27. package/dist/src/routes/v3/campaignsInfo.d.ts +40 -2
  28. package/dist/src/routes/v3/claims.d.ts +1 -1
  29. package/dist/src/routes/v3/multiChainPositions.d.ts +39 -2
  30. package/dist/src/routes/v3/opportunity.d.ts +42 -2
  31. package/dist/src/routes/v3/positions.d.ts +38 -2
  32. package/dist/src/routes/v3/rewards.d.ts +66 -2
  33. package/dist/src/routes/v3/router.d.ts +773 -1
  34. package/dist/src/routes/v3/updates.d.ts +42 -2
  35. package/dist/src/routes/v3/userRewards.d.ts +56 -2
  36. package/dist/tsconfig.package.tsbuildinfo +1 -1
  37. package/package.json +1 -1
  38. package/dist/src/utils/rateLimit.d.ts +0 -63
  39. package/dist/src/utils/rateLimit.js +0 -13
package/package.json CHANGED
@@ -89,5 +89,5 @@
89
89
  "access": "public",
90
90
  "registry": "https://registry.npmjs.org/"
91
91
  },
92
- "version": "v0.10.206"
92
+ "version": "v0.10.208"
93
93
  }
@@ -1,63 +0,0 @@
1
- declare const _default: {
2
- permissive: (app: import("elysia").default) => import("elysia").default<"", false, {
3
- decorator: {};
4
- store: {};
5
- derive: {};
6
- resolve: {};
7
- }, {
8
- type: {};
9
- error: {};
10
- }, {
11
- schema: {};
12
- macro: {};
13
- }, {}, {
14
- derive: {};
15
- resolve: {};
16
- schema: {};
17
- }, {
18
- derive: {};
19
- resolve: {};
20
- schema: {};
21
- }>;
22
- moderate: (app: import("elysia").default) => import("elysia").default<"", false, {
23
- decorator: {};
24
- store: {};
25
- derive: {};
26
- resolve: {};
27
- }, {
28
- type: {};
29
- error: {};
30
- }, {
31
- schema: {};
32
- macro: {};
33
- }, {}, {
34
- derive: {};
35
- resolve: {};
36
- schema: {};
37
- }, {
38
- derive: {};
39
- resolve: {};
40
- schema: {};
41
- }>;
42
- strict: (app: import("elysia").default) => import("elysia").default<"", false, {
43
- decorator: {};
44
- store: {};
45
- derive: {};
46
- resolve: {};
47
- }, {
48
- type: {};
49
- error: {};
50
- }, {
51
- schema: {};
52
- macro: {};
53
- }, {}, {
54
- derive: {};
55
- resolve: {};
56
- schema: {};
57
- }, {
58
- derive: {};
59
- resolve: {};
60
- schema: {};
61
- }>;
62
- };
63
- export default _default;
@@ -1,13 +0,0 @@
1
- import { rateLimit } from "elysia-rate-limit";
2
- import { app } from "..";
3
- //returns ip from headers if server is null to make elysia-rate-limit logs stfu
4
- const generator = req => {
5
- return (app?.server?.requestIP?.(req)?.address ?? req.headers.get("X-Forwarded-For")?.split(",")?.[0]);
6
- };
7
- //use very permissive rates in local
8
- const rate = (duration, max) => rateLimit(Bun.env.NODE_ENV !== "production" ? { duration: 1, max: 100 } : { duration, max });
9
- export default {
10
- permissive: rate(1000, 18),
11
- moderate: rate(1000, 9),
12
- strict: rate(1000, 3),
13
- };