@merkl/api 0.0.22

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 (447) hide show
  1. package/README.md +90 -0
  2. package/dist/src/cache/declaration.d.ts +133 -0
  3. package/dist/src/cache/index.d.ts +61 -0
  4. package/dist/src/cache/redis.d.ts +312 -0
  5. package/dist/src/constants.d.ts +86 -0
  6. package/dist/src/eden/index.d.ts +19165 -0
  7. package/dist/src/eden/index.js +2 -0
  8. package/dist/src/engine/deprecated/dynamicData/implementations/Ajna.d.ts +7 -0
  9. package/dist/src/engine/deprecated/dynamicData/implementations/Badger.d.ts +7 -0
  10. package/dist/src/engine/deprecated/dynamicData/implementations/Clamm.d.ts +7 -0
  11. package/dist/src/engine/deprecated/dynamicData/implementations/Compound.d.ts +7 -0
  12. package/dist/src/engine/deprecated/dynamicData/implementations/CompoundV3.d.ts +7 -0
  13. package/dist/src/engine/deprecated/dynamicData/implementations/Dolomite.d.ts +7 -0
  14. package/dist/src/engine/deprecated/dynamicData/implementations/ERC721.d.ts +7 -0
  15. package/dist/src/engine/deprecated/dynamicData/implementations/ERCMultiToken.d.ts +7 -0
  16. package/dist/src/engine/deprecated/dynamicData/implementations/EigenLayer.d.ts +7 -0
  17. package/dist/src/engine/deprecated/dynamicData/implementations/Encompassing.d.ts +7 -0
  18. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +108 -0
  19. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20Snapshot.d.ts +7 -0
  20. package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.d.ts +7 -0
  21. package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.d.ts +7 -0
  22. package/dist/src/engine/deprecated/dynamicData/implementations/Morpho.d.ts +9 -0
  23. package/dist/src/engine/deprecated/dynamicData/implementations/Radiant.d.ts +7 -0
  24. package/dist/src/engine/deprecated/dynamicData/implementations/Silo.d.ts +9 -0
  25. package/dist/src/engine/deprecated/dynamicData/implementations/UniswapV4.d.ts +7 -0
  26. package/dist/src/engine/deprecated/dynamicData/implementations/Vest.d.ts +9 -0
  27. package/dist/src/engine/deprecated/dynamicData/implementations/default.d.ts +5 -0
  28. package/dist/src/engine/deprecated/dynamicData/utils/fetchA51Strategies.d.ts +18 -0
  29. package/dist/src/engine/deprecated/dynamicData/utils/fetchClamInfo.d.ts +2 -0
  30. package/dist/src/engine/deprecated/dynamicData/utils/fetchLogs.d.ts +14 -0
  31. package/dist/src/engine/deprecated/dynamicData/utils/getCompV2ForksVaults.d.ts +19 -0
  32. package/dist/src/engine/deprecated/dynamicData/utils/getContractCreationBlock.d.ts +2 -0
  33. package/dist/src/engine/deprecated/dynamicData/utils/getDolomiteMarkets.d.ts +8 -0
  34. package/dist/src/engine/deprecated/dynamicData/utils/getEulerV2Vaults.d.ts +9 -0
  35. package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.d.ts +8 -0
  36. package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.d.ts +103 -0
  37. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/eulerVaultNames.d.ts +1 -0
  38. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +5 -0
  39. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/getBlacklistedSupply.d.ts +2 -0
  40. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/getCrossCurveTokenPrice.d.ts +1 -0
  41. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/hardcoded.d.ts +3 -0
  42. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.d.ts +2 -0
  43. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/spliceTVL.d.ts +8 -0
  44. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/treasuryFinder.d.ts +2 -0
  45. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +30 -0
  46. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +35 -0
  47. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AssetProcessor.d.ts +35 -0
  48. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +107 -0
  49. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +85 -0
  50. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +75 -0
  51. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +88 -0
  52. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +44 -0
  53. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BeefyProcessor.d.ts +48 -0
  54. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BunniV2Processor.d.ts +45 -0
  55. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +44 -0
  56. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ERC4626Processor.d.ts +34 -0
  57. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EnzymeProcessor.d.ts +40 -0
  58. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EqualizerGaugeProcessor.d.ts +28 -0
  59. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerBorrowProcessor.d.ts +36 -0
  60. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerLendProcessor.d.ts +35 -0
  61. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +39 -0
  62. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FraxProcessor.d.ts +33 -0
  63. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaALMProcessor.d.ts +30 -0
  64. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GammaProcessor.d.ts +43 -0
  65. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +44 -0
  66. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +43 -0
  67. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HoldStationProcessor.d.ts +29 -0
  68. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +36 -0
  69. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MaverickBPProcessor.d.ts +50 -0
  70. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +33 -0
  71. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/NoLinkVaultProcessor.d.ts +38 -0
  72. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleProcessor.d.ts +29 -0
  73. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/PendleYTProcessor.d.ts +29 -0
  74. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +32 -0
  75. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +40 -0
  76. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.d.ts +34 -0
  77. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraProcessor.d.ts +31 -0
  78. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpectraYTProcessor.d.ts +31 -0
  79. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +16 -0
  80. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.d.ts +29 -0
  81. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +39 -0
  82. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TempestVaultProcessor.d.ts +52 -0
  83. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +32 -0
  84. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +30 -0
  85. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/UniswapProcessor.d.ts +44 -0
  86. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/VicunaProcessor.d.ts +28 -0
  87. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +32 -0
  88. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/ZkSwapThreePoolProcessor.d.ts +53 -0
  89. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +39 -0
  90. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +49 -0
  91. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +4 -0
  92. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +54 -0
  93. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +38 -0
  94. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesPrices.d.ts +5 -0
  95. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound1.d.ts +4 -0
  96. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound2.d.ts +3 -0
  97. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound3.d.ts +3 -0
  98. package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesRound4.d.ts +3 -0
  99. package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeStruct.d.ts +7 -0
  100. package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +7 -0
  101. package/dist/src/engine/implementations/Ajna/metadata.d.ts +19 -0
  102. package/dist/src/engine/implementations/Ajna/tvl.d.ts +7 -0
  103. package/dist/src/engine/implementations/Ambient/metadata.d.ts +19 -0
  104. package/dist/src/engine/implementations/Ambient/tvl.d.ts +7 -0
  105. package/dist/src/engine/implementations/Badger/metadata.d.ts +19 -0
  106. package/dist/src/engine/implementations/Clamm/metadata.d.ts +45 -0
  107. package/dist/src/engine/implementations/Compound/metadata.d.ts +18 -0
  108. package/dist/src/engine/implementations/CompoundV3/metadata.d.ts +18 -0
  109. package/dist/src/engine/implementations/Default/metadata.d.ts +13 -0
  110. package/dist/src/engine/implementations/Dolomite/metadata.d.ts +18 -0
  111. package/dist/src/engine/implementations/EigenLayer/metadata.d.ts +17 -0
  112. package/dist/src/engine/implementations/EigenLayer/tvl.d.ts +7 -0
  113. package/dist/src/engine/implementations/Encompassing/metadata.d.ts +16 -0
  114. package/dist/src/engine/implementations/Erc20/metadata.d.ts +18 -0
  115. package/dist/src/engine/implementations/Erc20/subTypes/detect.d.ts +8 -0
  116. package/dist/src/engine/implementations/Erc20/subTypes/factories.d.ts +5 -0
  117. package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.d.ts +30 -0
  118. package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/tvl.d.ts +6 -0
  119. package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.d.ts +19 -0
  120. package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.d.ts +5 -0
  121. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +17 -0
  122. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/tvl.d.ts +6 -0
  123. package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.d.ts +30 -0
  124. package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/tvl.d.ts +6 -0
  125. package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +16 -0
  126. package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.d.ts +6 -0
  127. package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts +17 -0
  128. package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/tvl.d.ts +6 -0
  129. package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +17 -0
  130. package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/tvl.d.ts +6 -0
  131. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts +17 -0
  132. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/tvl.d.ts +6 -0
  133. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts +18 -0
  134. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/tvl.d.ts +6 -0
  135. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +30 -0
  136. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/metadata.d.ts +30 -0
  137. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/tvl.d.ts +6 -0
  138. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/tvl.d.ts +6 -0
  139. package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +123 -0
  140. package/dist/src/engine/implementations/Erc20/tvl.d.ts +6 -0
  141. package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +15 -0
  142. package/dist/src/engine/implementations/Erc721/metadata.d.ts +17 -0
  143. package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +29 -0
  144. package/dist/src/engine/implementations/EventBased/metadata.d.ts +24 -0
  145. package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +24 -0
  146. package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +18 -0
  147. package/dist/src/engine/implementations/FraxLend/tvlBorrow.d.ts +7 -0
  148. package/dist/src/engine/implementations/FraxLend/tvlCollateral.d.ts +7 -0
  149. package/dist/src/engine/implementations/Hyperdrive/metadata.d.ts +20 -0
  150. package/dist/src/engine/implementations/Invalid/metadata.d.ts +11 -0
  151. package/dist/src/engine/implementations/Ion/metadata.d.ts +17 -0
  152. package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +24 -0
  153. package/dist/src/engine/implementations/Locker/metadata.d.ts +24 -0
  154. package/dist/src/engine/implementations/Locker/tvl.d.ts +7 -0
  155. package/dist/src/engine/implementations/Morpho/metadata.d.ts +26 -0
  156. package/dist/src/engine/implementations/MultiLog/metadata.d.ts +8 -0
  157. package/dist/src/engine/implementations/MultiLog/tvl.d.ts +7 -0
  158. package/dist/src/engine/implementations/Radiant/metadata.d.ts +18 -0
  159. package/dist/src/engine/implementations/Silo/metadata.d.ts +18 -0
  160. package/dist/src/engine/implementations/UniswapV4/metadata.d.ts +20 -0
  161. package/dist/src/engine/implementations/UniswapV4/tvl.d.ts +7 -0
  162. package/dist/src/engine/implementations/Vest/metadata.d.ts +17 -0
  163. package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +20 -0
  164. package/dist/src/engine/implementations/morphoBorrow/tvl.d.ts +7 -0
  165. package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +20 -0
  166. package/dist/src/engine/implementations/morphoCollateral/tvl.d.ts +7 -0
  167. package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +20 -0
  168. package/dist/src/engine/implementations/morphoSupply/tvl.d.ts +7 -0
  169. package/dist/src/engine/metadata/factory.d.ts +3 -0
  170. package/dist/src/engine/tvl/factory.d.ts +6 -0
  171. package/dist/src/engine/tvl/logStates.d.ts +17 -0
  172. package/dist/src/errors/BadRequest.error.d.ts +4 -0
  173. package/dist/src/errors/Conflict.error.d.ts +4 -0
  174. package/dist/src/errors/HttpError.d.ts +11 -0
  175. package/dist/src/errors/InvalidParameter.error.d.ts +4 -0
  176. package/dist/src/errors/NotFound.error.d.ts +8 -0
  177. package/dist/src/errors/Opportunity.error.d.ts +6 -0
  178. package/dist/src/errors/UnableToFindPrice.error.d.ts +4 -0
  179. package/dist/src/errors/Unauthorized.error.d.ts +4 -0
  180. package/dist/src/errors/VoidString.error.d.ts +4 -0
  181. package/dist/src/errors/index.d.ts +6 -0
  182. package/dist/src/guards/BackOffice.guard.d.ts +7 -0
  183. package/dist/src/guards/Engine.guard.d.ts +7 -0
  184. package/dist/src/guards/TokenAuth.guard.d.ts +7 -0
  185. package/dist/src/guards/VerifyJwt.guard.d.ts +10 -0
  186. package/dist/src/hooks/checkQueryAddressValidity.d.ts +26 -0
  187. package/dist/src/hooks/checkQueryChainIdValidity.d.ts +26 -0
  188. package/dist/src/index.d.ts +10260 -0
  189. package/dist/src/jobs/pendings.d.ts +1 -0
  190. package/dist/src/jobs/prices.d.ts +1 -0
  191. package/dist/src/jobs/reward-breakdowns.d.ts +1 -0
  192. package/dist/src/jobs/rewards.d.ts +1 -0
  193. package/dist/src/jobs/set-dungeon-keeper.d.ts +1 -0
  194. package/dist/src/jobs/update-analytics.d.ts +1 -0
  195. package/dist/src/jobs/update-dynamic-data.d.ts +1 -0
  196. package/dist/src/jobs/update-euler-vaults.d.ts +1 -0
  197. package/dist/src/jobs/update-rpc-calls-cache.d.ts +1 -0
  198. package/dist/src/jobs/update-uniswap-v4-pools.d.ts +1 -0
  199. package/dist/src/jobs/update-v3-caches.d.ts +12 -0
  200. package/dist/src/libs/computeFee.d.ts +4 -0
  201. package/dist/src/libs/deprecated-merklv3/index.d.ts +5 -0
  202. package/dist/src/libs/getTokensList.d.ts +23 -0
  203. package/dist/src/libs/merklChainData.d.ts +4 -0
  204. package/dist/src/libs/parse/marketsWithCache.d.ts +4 -0
  205. package/dist/src/libs/positions/EigenLayer/index.d.ts +6 -0
  206. package/dist/src/libs/positions/ajna/index.d.ts +6 -0
  207. package/dist/src/libs/positions/badger/index.d.ts +6 -0
  208. package/dist/src/libs/positions/clamm/index.d.ts +7 -0
  209. package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +5 -0
  210. package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +8 -0
  211. package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +10 -0
  212. package/dist/src/libs/positions/clamm/thegraph/index.d.ts +40 -0
  213. package/dist/src/libs/positions/compound/index.d.ts +24 -0
  214. package/dist/src/libs/positions/dolomite/index.d.ts +17 -0
  215. package/dist/src/libs/positions/erc20/index.d.ts +5 -0
  216. package/dist/src/libs/positions/euler/index.d.ts +5 -0
  217. package/dist/src/libs/positions/index.d.ts +3 -0
  218. package/dist/src/libs/positions/morpho/index.d.ts +6 -0
  219. package/dist/src/libs/positions/prepareFetch.d.ts +22 -0
  220. package/dist/src/libs/positions/silo/index.d.ts +5 -0
  221. package/dist/src/libs/positions/types.d.ts +75 -0
  222. package/dist/src/libs/staticCampaigns.d.ts +7 -0
  223. package/dist/src/libs/tokens/allowances.d.ts +1 -0
  224. package/dist/src/libs/tokens/balances.d.ts +11 -0
  225. package/dist/src/libs/tokens/tokenInfo.d.ts +8 -0
  226. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +284 -0
  227. package/dist/src/modules/v4/accounting/accounting.model.d.ts +32 -0
  228. package/dist/src/modules/v4/accounting/accounting.repository.d.ts +99 -0
  229. package/dist/src/modules/v4/accounting/accounting.service.d.ts +59 -0
  230. package/dist/src/modules/v4/airflow/airflow.service.d.ts +3 -0
  231. package/dist/src/modules/v4/apr/apr.model.d.ts +54 -0
  232. package/dist/src/modules/v4/apr/apr.service.d.ts +9 -0
  233. package/dist/src/modules/v4/authentication/authentication.controller.d.ts +74 -0
  234. package/dist/src/modules/v4/authentication/authentication.model.d.ts +10 -0
  235. package/dist/src/modules/v4/authentication/authentication.service.d.ts +10 -0
  236. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +150 -0
  237. package/dist/src/modules/v4/blacklist/blacklist.model.d.ts +15 -0
  238. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +21 -0
  239. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +24 -0
  240. package/dist/src/modules/v4/boost/boost.controller.d.ts +110 -0
  241. package/dist/src/modules/v4/boost/boost.model.d.ts +12 -0
  242. package/dist/src/modules/v4/boost/boost.service.d.ts +11 -0
  243. package/dist/src/modules/v4/bucket/bucket.model.d.ts +10 -0
  244. package/dist/src/modules/v4/bucket/bucket.service.d.ts +14 -0
  245. package/dist/src/modules/v4/cache/cache.model.d.ts +13 -0
  246. package/dist/src/modules/v4/cache/cache.repository.d.ts +8 -0
  247. package/dist/src/modules/v4/cache/cache.service.d.ts +12 -0
  248. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +1084 -0
  249. package/dist/src/modules/v4/campaign/campaign.model.d.ts +223 -0
  250. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +901 -0
  251. package/dist/src/modules/v4/campaign/campaign.service.d.ts +1103 -0
  252. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +566 -0
  253. package/dist/src/modules/v4/chain/chain.controller.d.ts +194 -0
  254. package/dist/src/modules/v4/chain/chain.model.d.ts +52 -0
  255. package/dist/src/modules/v4/chain/chain.repository.d.ts +104 -0
  256. package/dist/src/modules/v4/chain/chain.service.d.ts +83 -0
  257. package/dist/src/modules/v4/chainInteraction/chainInteraction.service.d.ts +2 -0
  258. package/dist/src/modules/v4/claims/claims.controller.d.ts +55 -0
  259. package/dist/src/modules/v4/claims/claims.model.d.ts +9 -0
  260. package/dist/src/modules/v4/claims/claims.repository.d.ts +5 -0
  261. package/dist/src/modules/v4/claims/claims.service.d.ts +9 -0
  262. package/dist/src/modules/v4/coingecko/coingecko.model.d.ts +0 -0
  263. package/dist/src/modules/v4/coingecko/coingecko.repository.d.ts +14 -0
  264. package/dist/src/modules/v4/coingecko/coingecko.service.d.ts +16 -0
  265. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +162 -0
  266. package/dist/src/modules/v4/computedValue/computedValue.model.d.ts +27 -0
  267. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +19 -0
  268. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +20 -0
  269. package/dist/src/modules/v4/creator/creator.controller.d.ts +616 -0
  270. package/dist/src/modules/v4/creator/creator.model.d.ts +59 -0
  271. package/dist/src/modules/v4/creator/creator.repository.d.ts +97 -0
  272. package/dist/src/modules/v4/creator/creator.service.d.ts +352 -0
  273. package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +62 -0
  274. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +14 -0
  275. package/dist/src/modules/v4/enso/enso.model.d.ts +166 -0
  276. package/dist/src/modules/v4/enso/enso.service.d.ts +69 -0
  277. package/dist/src/modules/v4/explorer/explorer.controller.d.ts +58 -0
  278. package/dist/src/modules/v4/explorer/explorer.model.d.ts +16 -0
  279. package/dist/src/modules/v4/explorer/explorer.repository.d.ts +21 -0
  280. package/dist/src/modules/v4/explorer/explorer.service.d.ts +28 -0
  281. package/dist/src/modules/v4/icon/icon.model.d.ts +4 -0
  282. package/dist/src/modules/v4/icon/icon.service.d.ts +5 -0
  283. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +128 -0
  284. package/dist/src/modules/v4/interaction/interaction.model.d.ts +110 -0
  285. package/dist/src/modules/v4/interaction/interaction.service.d.ts +38 -0
  286. package/dist/src/modules/v4/kyberzap/kyberzap.model.d.ts +114 -0
  287. package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +34 -0
  288. package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +6 -0
  289. package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.d.ts +6 -0
  290. package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.d.ts +6 -0
  291. package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +6 -0
  292. package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.d.ts +6 -0
  293. package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.d.ts +6 -0
  294. package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +50 -0
  295. package/dist/src/modules/v4/liquidity/liquidity.model.d.ts +25 -0
  296. package/dist/src/modules/v4/liquidity/liquidity.repository.d.ts +14 -0
  297. package/dist/src/modules/v4/liquidity/liquidity.service.d.ts +5 -0
  298. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +113 -0
  299. package/dist/src/modules/v4/merklRoot/merklRoot.model.d.ts +13 -0
  300. package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +23 -0
  301. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +45 -0
  302. package/dist/src/modules/v4/nodes/node.controller.d.ts +65 -0
  303. package/dist/src/modules/v4/nodes/node.model.d.ts +21 -0
  304. package/dist/src/modules/v4/nodes/node.repository.d.ts +21 -0
  305. package/dist/src/modules/v4/nodes/node.service.d.ts +21 -0
  306. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +1459 -0
  307. package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +119 -0
  308. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +487 -0
  309. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +1054 -0
  310. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +1316 -0
  311. package/dist/src/modules/v4/opportunity/transform-id.pipe.d.ts +5 -0
  312. package/dist/src/modules/v4/opportunity/validate-id.pipe.d.ts +5 -0
  313. package/dist/src/modules/v4/parse/parse.controller.d.ts +64 -0
  314. package/dist/src/modules/v4/parse/parse.model.d.ts +10 -0
  315. package/dist/src/modules/v4/payload/payload.controller.d.ts +127 -0
  316. package/dist/src/modules/v4/payload/payload.model.d.ts +309 -0
  317. package/dist/src/modules/v4/payload/payload.service.d.ts +27 -0
  318. package/dist/src/modules/v4/price/price.controller.d.ts +228 -0
  319. package/dist/src/modules/v4/price/price.model.d.ts +34 -0
  320. package/dist/src/modules/v4/price/price.repository.d.ts +36 -0
  321. package/dist/src/modules/v4/price/price.service.d.ts +40 -0
  322. package/dist/src/modules/v4/prisma/index.d.ts +32 -0
  323. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +1082 -0
  324. package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +316 -0
  325. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +2451 -0
  326. package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +50 -0
  327. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +290 -0
  328. package/dist/src/modules/v4/protocol/protocol.model.d.ts +107 -0
  329. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +89 -0
  330. package/dist/src/modules/v4/protocol/protocol.service.d.ts +35 -0
  331. package/dist/src/modules/v4/referral/referral.controller.d.ts +104 -0
  332. package/dist/src/modules/v4/referral/referral.model.d.ts +10 -0
  333. package/dist/src/modules/v4/referral/referral.service.d.ts +216 -0
  334. package/dist/src/modules/v4/reward/reward.controller.d.ts +599 -0
  335. package/dist/src/modules/v4/reward/reward.converter.d.ts +14 -0
  336. package/dist/src/modules/v4/reward/reward.model.d.ts +260 -0
  337. package/dist/src/modules/v4/reward/reward.repository.d.ts +174 -0
  338. package/dist/src/modules/v4/reward/reward.service.d.ts +833 -0
  339. package/dist/src/modules/v4/router.d.ts +8706 -0
  340. package/dist/src/modules/v4/status/status.controller.d.ts +303 -0
  341. package/dist/src/modules/v4/status/status.model.d.ts +64 -0
  342. package/dist/src/modules/v4/status/status.repository.d.ts +104 -0
  343. package/dist/src/modules/v4/status/status.service.d.ts +89 -0
  344. package/dist/src/modules/v4/token/token.controller.d.ts +498 -0
  345. package/dist/src/modules/v4/token/token.model.d.ts +124 -0
  346. package/dist/src/modules/v4/token/token.repository.d.ts +122 -0
  347. package/dist/src/modules/v4/token/token.service.d.ts +361 -0
  348. package/dist/src/modules/v4/tracer/tracer.service.d.ts +3 -0
  349. package/dist/src/modules/v4/turtle/turtle.controller.d.ts +81 -0
  350. package/dist/src/modules/v4/turtle/turtle.repository.d.ts +14 -0
  351. package/dist/src/modules/v4/turtle/turtle.service.d.ts +17 -0
  352. package/dist/src/modules/v4/tvl/tvl.model.d.ts +35 -0
  353. package/dist/src/modules/v4/tvl/tvl.service.d.ts +9 -0
  354. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +407 -0
  355. package/dist/src/modules/v4/uniswap/uniswap.model.d.ts +53 -0
  356. package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +13 -0
  357. package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +18 -0
  358. package/dist/src/modules/v4/user/user.controller.d.ts +444 -0
  359. package/dist/src/modules/v4/user/user.model.d.ts +84 -0
  360. package/dist/src/modules/v4/user/user.repository.d.ts +34 -0
  361. package/dist/src/modules/v4/user/user.service.d.ts +37 -0
  362. package/dist/src/plugins/error-handling.plugin.d.ts +33 -0
  363. package/dist/src/routes/v1/allowances.d.ts +80 -0
  364. package/dist/src/routes/v1/balances.d.ts +63 -0
  365. package/dist/src/routes/v1/prices.d.ts +55 -0
  366. package/dist/src/routes/v1/router.d.ts +142 -0
  367. package/dist/src/routes/v1/tokens.d.ts +58 -0
  368. package/dist/src/routes/v2/merkl.d.ts +92 -0
  369. package/dist/src/routes/v2/router.d.ts +83 -0
  370. package/dist/src/routes/v3/app.d.ts +61 -0
  371. package/dist/src/routes/v3/blacklist.d.ts +58 -0
  372. package/dist/src/routes/v3/campaign/delay.d.ts +60 -0
  373. package/dist/src/routes/v3/campaignClaims.d.ts +61 -0
  374. package/dist/src/routes/v3/campaignUnclaimed.d.ts +60 -0
  375. package/dist/src/routes/v3/campaigns.d.ts +71 -0
  376. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +67 -0
  377. package/dist/src/routes/v3/campaignsRewardsReport.d.ts +60 -0
  378. package/dist/src/routes/v3/claims.d.ts +61 -0
  379. package/dist/src/routes/v3/compoundV2.d.ts +55 -0
  380. package/dist/src/routes/v3/createCampaign.d.ts +60 -0
  381. package/dist/src/routes/v3/dolomite.d.ts +59 -0
  382. package/dist/src/routes/v3/euler.d.ts +114 -0
  383. package/dist/src/routes/v3/fetch.d.ts +59 -0
  384. package/dist/src/routes/v3/health.d.ts +53 -0
  385. package/dist/src/routes/v3/lostyield.d.ts +66 -0
  386. package/dist/src/routes/v3/merkl.d.ts +116 -0
  387. package/dist/src/routes/v3/morphoMarkets.d.ts +75 -0
  388. package/dist/src/routes/v3/morphoVaults.d.ts +65 -0
  389. package/dist/src/routes/v3/multiChainPositions.d.ts +58 -0
  390. package/dist/src/routes/v3/opportunity.d.ts +119 -0
  391. package/dist/src/routes/v3/overview.d.ts +91 -0
  392. package/dist/src/routes/v3/parse.d.ts +60 -0
  393. package/dist/src/routes/v3/payload.d.ts +71 -0
  394. package/dist/src/routes/v3/poolInfo.d.ts +62 -0
  395. package/dist/src/routes/v3/positions.d.ts +75 -0
  396. package/dist/src/routes/v3/radiant.d.ts +69 -0
  397. package/dist/src/routes/v3/recipients.d.ts +59 -0
  398. package/dist/src/routes/v3/rewards.d.ts +86 -0
  399. package/dist/src/routes/v3/rewardsReport.d.ts +69 -0
  400. package/dist/src/routes/v3/router.d.ts +1387 -0
  401. package/dist/src/routes/v3/silo.d.ts +66 -0
  402. package/dist/src/routes/v3/token.d.ts +64 -0
  403. package/dist/src/routes/v3/twt/participants.d.ts +52 -0
  404. package/dist/src/routes/v3/uniswapv4.d.ts +246 -0
  405. package/dist/src/routes/v3/updates.d.ts +66 -0
  406. package/dist/src/routes/v3/userRewards.d.ts +82 -0
  407. package/dist/src/scripts/fill-coingecko-data.d.ts +1 -0
  408. package/dist/src/scripts/fill-descriptions.d.ts +1 -0
  409. package/dist/src/scripts/fill-unknown-tokens.d.ts +1 -0
  410. package/dist/src/scripts/reparse-opportunities.d.ts +1 -0
  411. package/dist/src/types/external/spectraAPI.d.ts +88 -0
  412. package/dist/src/types/index.d.ts +20 -0
  413. package/dist/src/utils/TailSampler.d.ts +8 -0
  414. package/dist/src/utils/bigintToString.d.ts +1 -0
  415. package/dist/src/utils/caseChanges.d.ts +4 -0
  416. package/dist/src/utils/decodeCalls.d.ts +3 -0
  417. package/dist/src/utils/encodeCalls.d.ts +3 -0
  418. package/dist/src/utils/error.d.ts +70 -0
  419. package/dist/src/utils/execute.d.ts +22 -0
  420. package/dist/src/utils/generateCardName.d.ts +6 -0
  421. package/dist/src/utils/generic.d.ts +7 -0
  422. package/dist/src/utils/hashArray.d.ts +2 -0
  423. package/dist/src/utils/lastBlockBefore.d.ts +3 -0
  424. package/dist/src/utils/logger.d.ts +54 -0
  425. package/dist/src/utils/parseDistributionType.d.ts +1 -0
  426. package/dist/src/utils/pricer.d.ts +57 -0
  427. package/dist/src/utils/prices/chainlinkRead.d.ts +4 -0
  428. package/dist/src/utils/prices/curveVirtualPrice.d.ts +4 -0
  429. package/dist/src/utils/prices/getDQUICK.d.ts +4 -0
  430. package/dist/src/utils/prices/priceFetcherFactory.d.ts +10 -0
  431. package/dist/src/utils/prices/priceService.d.ts +13 -0
  432. package/dist/src/utils/prices/services/OnChainCallService.d.ts +8 -0
  433. package/dist/src/utils/prices/services/coinGeckoService.d.ts +12 -0
  434. package/dist/src/utils/prices/services/defillamaService.d.ts +12 -0
  435. package/dist/src/utils/prices/services/dexScreenerService.d.ts +12 -0
  436. package/dist/src/utils/prices/services/erc4626Service.d.ts +9 -0
  437. package/dist/src/utils/prices/services/getERC4626.d.ts +4 -0
  438. package/dist/src/utils/prices/services/indexCoopService.d.ts +12 -0
  439. package/dist/src/utils/prices/services/priceFetcher.d.ts +8 -0
  440. package/dist/src/utils/prices/uniV2Price.d.ts +7 -0
  441. package/dist/src/utils/providers.d.ts +124 -0
  442. package/dist/src/utils/queries/allCampaigns.d.ts +1 -0
  443. package/dist/src/utils/sanitizeChain.d.ts +2 -0
  444. package/dist/src/utils/stryke.d.ts +2 -0
  445. package/dist/src/utils/throw.d.ts +22 -0
  446. package/dist/tsconfig.tsbuildinfo +1 -0
  447. package/package.json +26 -0
@@ -0,0 +1,1084 @@
1
+ import Elysia from "elysia";
2
+ export declare const CampaignController: Elysia<"/campaigns", {
3
+ decorator: {};
4
+ store: {};
5
+ derive: {};
6
+ resolve: {};
7
+ }, {
8
+ typebox: {};
9
+ error: {};
10
+ }, {
11
+ schema: {};
12
+ standaloneSchema: {};
13
+ macro: {};
14
+ macroFn: {};
15
+ parser: {};
16
+ }, {
17
+ campaigns: {
18
+ engine: {
19
+ post: {
20
+ body: {
21
+ subType?: number | undefined;
22
+ rootCampaignId?: string | undefined;
23
+ parentCampaignId?: string | undefined;
24
+ identifier?: string | undefined;
25
+ tags?: string[] | undefined;
26
+ campaignId: string;
27
+ creator: string;
28
+ params: string;
29
+ amount: string;
30
+ chainId: number;
31
+ startTimestamp: string;
32
+ rewardTokenAddress: string;
33
+ type: number;
34
+ computeChainId: number;
35
+ endTimestamp: string;
36
+ opportunityIdentifier: string;
37
+ };
38
+ params: {};
39
+ query: unknown;
40
+ headers: {
41
+ authorization: string;
42
+ };
43
+ response: {
44
+ 200: {
45
+ campaignId: string;
46
+ description: string | null;
47
+ id: string;
48
+ params: import("@prisma/client/runtime/library").JsonValue;
49
+ amount: string;
50
+ startTimestamp: bigint;
51
+ type: string;
52
+ computeChainId: number;
53
+ distributionChainId: number;
54
+ endTimestamp: bigint;
55
+ opportunityId: string;
56
+ creatorAddress: string;
57
+ distributionType: import("@package/databases").DistributionType;
58
+ subType: number | null;
59
+ rewardTokenId: string;
60
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
61
+ createdAt: Date;
62
+ rootCampaignId: string | null;
63
+ parentCampaignId: string | null;
64
+ } | {
65
+ id: string;
66
+ chainId: number;
67
+ type: string;
68
+ identifier: string;
69
+ name: string;
70
+ status: "PAST" | "LIVE" | "SOON";
71
+ action: any;
72
+ tokens: ({
73
+ symbol: string;
74
+ name: string | null;
75
+ decimals: number;
76
+ address: string;
77
+ id: string;
78
+ chainId: number;
79
+ icon: string;
80
+ isNative: boolean;
81
+ isPoint: boolean;
82
+ isPreTGE: boolean;
83
+ isTest: boolean;
84
+ verified: boolean;
85
+ } & {
86
+ price?: number | null | undefined;
87
+ isTokenWrapper?: boolean | undefined;
88
+ tokenWrapperAddress?: string | undefined;
89
+ })[];
90
+ mainProtocol: "splice" | "curve" | "morpho" | "compound" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "mimswap" | "ichi" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
91
+ description: string;
92
+ howToSteps: string[];
93
+ depositUrl: string | undefined;
94
+ explorerAddress: string | undefined;
95
+ tags: string[];
96
+ } | {
97
+ Tokens: {
98
+ symbol: string;
99
+ name: string | null;
100
+ decimals: number;
101
+ price: number | null;
102
+ address: string;
103
+ id: string;
104
+ chainId: number;
105
+ icon: string;
106
+ isNative: boolean;
107
+ isPoint: boolean;
108
+ isPreTGE: boolean;
109
+ isTest: boolean;
110
+ verified: boolean;
111
+ displaySymbol: string;
112
+ }[];
113
+ Protocols: {
114
+ name: string;
115
+ description: string;
116
+ id: string;
117
+ url: string;
118
+ icon: string;
119
+ tags: string[];
120
+ }[];
121
+ name: string;
122
+ apr: number;
123
+ tvl: number;
124
+ description: string;
125
+ id: string;
126
+ status: import("@package/databases").Status;
127
+ chainId: number;
128
+ action: import("@package/databases").OpportunityAction;
129
+ type: string;
130
+ depositUrl: string | null;
131
+ explorerAddress: string | null;
132
+ howToSteps: string[];
133
+ mainProtocolId: string | null;
134
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
135
+ identifier: string;
136
+ dailyRewards: number;
137
+ tags: string[];
138
+ lastCampaignCreatedAt: Date;
139
+ } | undefined;
140
+ 422: {
141
+ type: "validation";
142
+ on: string;
143
+ summary?: string;
144
+ message?: string;
145
+ found?: unknown;
146
+ property?: string;
147
+ expected?: string;
148
+ };
149
+ };
150
+ };
151
+ };
152
+ } & {
153
+ reparse: {
154
+ ":id": {
155
+ put: {
156
+ body: unknown;
157
+ params: {
158
+ id: string;
159
+ };
160
+ query: unknown;
161
+ headers: {
162
+ authorization: string;
163
+ };
164
+ response: {
165
+ 200: {
166
+ campaignId: string;
167
+ description: string | null;
168
+ id: string;
169
+ params: import("@prisma/client/runtime/library").JsonValue;
170
+ amount: string;
171
+ startTimestamp: bigint;
172
+ type: string;
173
+ computeChainId: number;
174
+ distributionChainId: number;
175
+ endTimestamp: bigint;
176
+ opportunityId: string;
177
+ creatorAddress: string;
178
+ distributionType: import("@package/databases").DistributionType;
179
+ subType: number | null;
180
+ rewardTokenId: string;
181
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
182
+ createdAt: Date;
183
+ rootCampaignId: string | null;
184
+ parentCampaignId: string | null;
185
+ } | {
186
+ id: string;
187
+ chainId: number;
188
+ type: string;
189
+ identifier: string;
190
+ name: string;
191
+ status: "PAST" | "LIVE" | "SOON";
192
+ action: any;
193
+ tokens: ({
194
+ symbol: string;
195
+ name: string | null;
196
+ decimals: number;
197
+ address: string;
198
+ id: string;
199
+ chainId: number;
200
+ icon: string;
201
+ isNative: boolean;
202
+ isPoint: boolean;
203
+ isPreTGE: boolean;
204
+ isTest: boolean;
205
+ verified: boolean;
206
+ } & {
207
+ price?: number | null | undefined;
208
+ isTokenWrapper?: boolean | undefined;
209
+ tokenWrapperAddress?: string | undefined;
210
+ })[];
211
+ mainProtocol: "splice" | "curve" | "morpho" | "compound" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "mimswap" | "ichi" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
212
+ description: string;
213
+ howToSteps: string[];
214
+ depositUrl: string | undefined;
215
+ explorerAddress: string | undefined;
216
+ tags: string[];
217
+ } | {
218
+ Tokens: {
219
+ symbol: string;
220
+ name: string | null;
221
+ decimals: number;
222
+ price: number | null;
223
+ address: string;
224
+ id: string;
225
+ chainId: number;
226
+ icon: string;
227
+ isNative: boolean;
228
+ isPoint: boolean;
229
+ isPreTGE: boolean;
230
+ isTest: boolean;
231
+ verified: boolean;
232
+ displaySymbol: string;
233
+ }[];
234
+ Protocols: {
235
+ name: string;
236
+ description: string;
237
+ id: string;
238
+ url: string;
239
+ icon: string;
240
+ tags: string[];
241
+ }[];
242
+ name: string;
243
+ apr: number;
244
+ tvl: number;
245
+ description: string;
246
+ id: string;
247
+ status: import("@package/databases").Status;
248
+ chainId: number;
249
+ action: import("@package/databases").OpportunityAction;
250
+ type: string;
251
+ depositUrl: string | null;
252
+ explorerAddress: string | null;
253
+ howToSteps: string[];
254
+ mainProtocolId: string | null;
255
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
256
+ identifier: string;
257
+ dailyRewards: number;
258
+ tags: string[];
259
+ lastCampaignCreatedAt: Date;
260
+ } | undefined;
261
+ 422: {
262
+ type: "validation";
263
+ on: string;
264
+ summary?: string;
265
+ message?: string;
266
+ found?: unknown;
267
+ property?: string;
268
+ expected?: string;
269
+ };
270
+ };
271
+ };
272
+ };
273
+ };
274
+ } & {
275
+ opportunity: {
276
+ patch: {
277
+ body: {
278
+ opportunityIdentifier?: string | undefined;
279
+ campaignId: string;
280
+ distributionChain: number;
281
+ };
282
+ params: {};
283
+ query: unknown;
284
+ headers: {
285
+ authorization: string;
286
+ };
287
+ response: {
288
+ 200: string;
289
+ 422: {
290
+ type: "validation";
291
+ on: string;
292
+ summary?: string;
293
+ message?: string;
294
+ found?: unknown;
295
+ property?: string;
296
+ expected?: string;
297
+ };
298
+ };
299
+ };
300
+ };
301
+ } & {
302
+ creator: {
303
+ patch: {
304
+ body: {
305
+ campaignId: string;
306
+ creatorAddress: string;
307
+ distributionChain: number;
308
+ };
309
+ params: {};
310
+ query: unknown;
311
+ headers: {
312
+ authorization: string;
313
+ };
314
+ response: {
315
+ 200: void;
316
+ 422: {
317
+ type: "validation";
318
+ on: string;
319
+ summary?: string;
320
+ message?: string;
321
+ found?: unknown;
322
+ property?: string;
323
+ expected?: string;
324
+ };
325
+ };
326
+ };
327
+ };
328
+ } & {
329
+ "remove-override": {
330
+ patch: {
331
+ body: {
332
+ campaignId: string;
333
+ distributionChain: number;
334
+ field: "opportunityId" | "creatorAddress";
335
+ };
336
+ params: {};
337
+ query: unknown;
338
+ headers: {
339
+ authorization: string;
340
+ };
341
+ response: {
342
+ 200: void;
343
+ 422: {
344
+ type: "validation";
345
+ on: string;
346
+ summary?: string;
347
+ message?: string;
348
+ found?: unknown;
349
+ property?: string;
350
+ expected?: string;
351
+ };
352
+ };
353
+ };
354
+ };
355
+ } & {
356
+ metadata: {
357
+ patch: {
358
+ body: {
359
+ campaignId: string;
360
+ url: string;
361
+ distributionChain: number;
362
+ };
363
+ params: {};
364
+ query: unknown;
365
+ headers: {
366
+ authorization: string;
367
+ };
368
+ response: {
369
+ 200: {
370
+ campaignId: string;
371
+ description: string | null;
372
+ id: string;
373
+ params: import("@prisma/client/runtime/library").JsonValue;
374
+ amount: string;
375
+ startTimestamp: bigint;
376
+ type: string;
377
+ computeChainId: number;
378
+ distributionChainId: number;
379
+ endTimestamp: bigint;
380
+ opportunityId: string;
381
+ creatorAddress: string;
382
+ distributionType: import("@package/databases").DistributionType;
383
+ subType: number | null;
384
+ rewardTokenId: string;
385
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
386
+ createdAt: Date;
387
+ rootCampaignId: string | null;
388
+ parentCampaignId: string | null;
389
+ };
390
+ 422: {
391
+ type: "validation";
392
+ on: string;
393
+ summary?: string;
394
+ message?: string;
395
+ found?: unknown;
396
+ property?: string;
397
+ expected?: string;
398
+ };
399
+ };
400
+ };
401
+ };
402
+ } & {
403
+ tvls: {
404
+ ":opportunityId": {
405
+ put: {
406
+ body: unknown;
407
+ params: {
408
+ opportunityId: string;
409
+ };
410
+ query: unknown;
411
+ headers: {
412
+ authorization: string;
413
+ };
414
+ response: {
415
+ 200: unknown[];
416
+ 422: {
417
+ type: "validation";
418
+ on: string;
419
+ summary?: string;
420
+ message?: string;
421
+ found?: unknown;
422
+ property?: string;
423
+ expected?: string;
424
+ };
425
+ };
426
+ };
427
+ };
428
+ };
429
+ } & {
430
+ get: {
431
+ body: unknown;
432
+ params: {};
433
+ query: {
434
+ campaignId?: string | undefined;
435
+ id?: string | undefined;
436
+ tokenAddress?: string | undefined;
437
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
438
+ chainId?: number | undefined;
439
+ startTimestamp?: string | undefined;
440
+ items?: number | undefined;
441
+ point?: boolean | undefined;
442
+ tokenSymbol?: string | undefined;
443
+ type?: string | undefined;
444
+ endTimestamp?: string | undefined;
445
+ opportunityId?: string | undefined;
446
+ creatorAddress?: string | undefined;
447
+ subType?: number | undefined;
448
+ rootCampaignId?: string | undefined;
449
+ parentCampaignId?: string | undefined;
450
+ creatorId?: string | undefined;
451
+ mainParameter?: string | undefined;
452
+ page?: number | undefined;
453
+ test?: boolean | undefined;
454
+ creatorTag?: string | undefined;
455
+ distributionChainIds?: number[] | undefined;
456
+ types?: string[] | undefined;
457
+ withOpportunity?: boolean | undefined;
458
+ createdAfter?: Date | null | undefined;
459
+ };
460
+ headers: unknown;
461
+ response: {
462
+ 200: {
463
+ description?: string | undefined;
464
+ creator?: {
465
+ tags?: string[] | undefined;
466
+ creatorId?: string | null | undefined;
467
+ address: string;
468
+ } | undefined;
469
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
470
+ rootCampaignId?: string | undefined;
471
+ parentCampaignId?: string | undefined;
472
+ campaignStatus?: {
473
+ error?: string | undefined;
474
+ details?: any;
475
+ campaignId: string;
476
+ status: string;
477
+ computedUntil: string | number;
478
+ processingStarted: string | number;
479
+ } | undefined;
480
+ distributionChain?: {
481
+ explorers?: {
482
+ chainId: number;
483
+ type: "ETHERSCAN" | "BLOCKSCOUT";
484
+ url: string;
485
+ }[] | undefined;
486
+ name: string;
487
+ id: number;
488
+ icon: string;
489
+ } | undefined;
490
+ rewardToken: {
491
+ price?: number | null | undefined;
492
+ symbol: string;
493
+ name: string | null;
494
+ decimals: number;
495
+ address: string;
496
+ id: string;
497
+ chainId: number;
498
+ icon: string;
499
+ isNative: boolean;
500
+ isPoint: boolean;
501
+ isPreTGE: boolean;
502
+ isTest: boolean;
503
+ verified: boolean;
504
+ };
505
+ campaignId: string;
506
+ id: string;
507
+ params: any;
508
+ amount: string;
509
+ startTimestamp: string | number;
510
+ type: string;
511
+ computeChainId: number;
512
+ distributionChainId: number;
513
+ endTimestamp: string | number;
514
+ opportunityId: string;
515
+ creatorAddress: string;
516
+ subType: number | null;
517
+ rewardTokenId: string;
518
+ createdAt: string;
519
+ chain: {
520
+ explorers?: {
521
+ chainId: number;
522
+ type: "ETHERSCAN" | "BLOCKSCOUT";
523
+ url: string;
524
+ }[] | undefined;
525
+ name: string;
526
+ id: number;
527
+ icon: string;
528
+ };
529
+ }[];
530
+ 422: {
531
+ type: "validation";
532
+ on: string;
533
+ summary?: string;
534
+ message?: string;
535
+ found?: unknown;
536
+ property?: string;
537
+ expected?: string;
538
+ };
539
+ };
540
+ };
541
+ } & {
542
+ ":id": {
543
+ get: {
544
+ body: unknown;
545
+ params: {
546
+ id: string;
547
+ };
548
+ query: unknown;
549
+ headers: unknown;
550
+ response: {
551
+ 200: {
552
+ description?: string | undefined;
553
+ creator?: {
554
+ tags?: string[] | undefined;
555
+ creatorId?: string | null | undefined;
556
+ address: string;
557
+ } | undefined;
558
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
559
+ rootCampaignId?: string | undefined;
560
+ parentCampaignId?: string | undefined;
561
+ campaignStatus?: {
562
+ error?: string | undefined;
563
+ details?: any;
564
+ campaignId: string;
565
+ status: string;
566
+ computedUntil: string | number;
567
+ processingStarted: string | number;
568
+ } | undefined;
569
+ distributionChain?: {
570
+ explorers?: {
571
+ chainId: number;
572
+ type: "ETHERSCAN" | "BLOCKSCOUT";
573
+ url: string;
574
+ }[] | undefined;
575
+ name: string;
576
+ id: number;
577
+ icon: string;
578
+ } | undefined;
579
+ rewardToken: {
580
+ price?: number | null | undefined;
581
+ symbol: string;
582
+ name: string | null;
583
+ decimals: number;
584
+ address: string;
585
+ id: string;
586
+ chainId: number;
587
+ icon: string;
588
+ isNative: boolean;
589
+ isPoint: boolean;
590
+ isPreTGE: boolean;
591
+ isTest: boolean;
592
+ verified: boolean;
593
+ };
594
+ campaignId: string;
595
+ id: string;
596
+ params: any;
597
+ amount: string;
598
+ startTimestamp: string | number;
599
+ type: string;
600
+ computeChainId: number;
601
+ distributionChainId: number;
602
+ endTimestamp: string | number;
603
+ opportunityId: string;
604
+ creatorAddress: string;
605
+ subType: number | null;
606
+ rewardTokenId: string;
607
+ createdAt: string;
608
+ chain: {
609
+ explorers?: {
610
+ chainId: number;
611
+ type: "ETHERSCAN" | "BLOCKSCOUT";
612
+ url: string;
613
+ }[] | undefined;
614
+ name: string;
615
+ id: number;
616
+ icon: string;
617
+ };
618
+ };
619
+ 422: {
620
+ type: "validation";
621
+ on: string;
622
+ summary?: string;
623
+ message?: string;
624
+ found?: unknown;
625
+ property?: string;
626
+ expected?: string;
627
+ };
628
+ };
629
+ };
630
+ };
631
+ } & {
632
+ ":id": {
633
+ metrics: {
634
+ get: {
635
+ body: unknown;
636
+ params: {
637
+ id: string;
638
+ };
639
+ query: unknown;
640
+ headers: unknown;
641
+ response: {
642
+ 200: {
643
+ tvlRecords: {
644
+ timestamp: bigint;
645
+ total: number;
646
+ }[];
647
+ aprRecords: {
648
+ timestamp: bigint;
649
+ apr: number;
650
+ }[];
651
+ dailyRewardsRecords: {
652
+ timestamp: bigint;
653
+ total: number;
654
+ }[];
655
+ walletCount: {
656
+ timestamp: bigint;
657
+ walletCount: number;
658
+ }[];
659
+ tvlInflowPerDollar: number;
660
+ };
661
+ 422: {
662
+ type: "validation";
663
+ on: string;
664
+ summary?: string;
665
+ message?: string;
666
+ found?: unknown;
667
+ property?: string;
668
+ expected?: string;
669
+ };
670
+ };
671
+ };
672
+ };
673
+ };
674
+ } & {
675
+ "campaigns-to-process": {
676
+ get: {
677
+ body: unknown;
678
+ params: {};
679
+ query: {
680
+ chainId: number;
681
+ };
682
+ headers: unknown;
683
+ response: {
684
+ 200: {
685
+ campaignId: string;
686
+ endTimestamp: bigint;
687
+ CampaignStatus: {
688
+ status: import("@package/databases").RunStatus;
689
+ computedUntil: bigint;
690
+ processingStarted: bigint;
691
+ }[];
692
+ }[];
693
+ 422: {
694
+ type: "validation";
695
+ on: string;
696
+ summary?: string;
697
+ message?: string;
698
+ found?: unknown;
699
+ property?: string;
700
+ expected?: string;
701
+ };
702
+ };
703
+ };
704
+ };
705
+ } & {
706
+ "campaigns-to-process": {
707
+ count: {
708
+ get: {
709
+ body: unknown;
710
+ params: {};
711
+ query: {
712
+ chainId: number;
713
+ };
714
+ headers: unknown;
715
+ response: {
716
+ 200: number;
717
+ 422: {
718
+ type: "validation";
719
+ on: string;
720
+ summary?: string;
721
+ message?: string;
722
+ found?: unknown;
723
+ property?: string;
724
+ expected?: string;
725
+ };
726
+ };
727
+ };
728
+ };
729
+ };
730
+ } & {
731
+ "campaigns-to-process": {
732
+ next: {
733
+ get: {
734
+ body: unknown;
735
+ params: {};
736
+ query: {
737
+ chainId: number;
738
+ };
739
+ headers: unknown;
740
+ response: {
741
+ 200: {
742
+ campaignId: string;
743
+ };
744
+ 422: {
745
+ type: "validation";
746
+ on: string;
747
+ summary?: string;
748
+ message?: string;
749
+ found?: unknown;
750
+ property?: string;
751
+ expected?: string;
752
+ };
753
+ };
754
+ };
755
+ };
756
+ };
757
+ } & {
758
+ "campaigns-to-process": {
759
+ engine: {
760
+ post: {
761
+ body: unknown;
762
+ params: {};
763
+ query: {
764
+ chainId: number;
765
+ };
766
+ headers: {
767
+ authorization: string;
768
+ };
769
+ response: {
770
+ 200: {
771
+ campaignId: string;
772
+ };
773
+ 422: {
774
+ type: "validation";
775
+ on: string;
776
+ summary?: string;
777
+ message?: string;
778
+ found?: unknown;
779
+ property?: string;
780
+ expected?: string;
781
+ };
782
+ };
783
+ };
784
+ };
785
+ };
786
+ };
787
+ } & {
788
+ campaigns: {
789
+ tx: {
790
+ get: {
791
+ body: unknown;
792
+ params: {};
793
+ query: {
794
+ chainId: number;
795
+ hash: string;
796
+ };
797
+ headers: unknown;
798
+ response: {
799
+ 200: string[];
800
+ 422: {
801
+ type: "validation";
802
+ on: string;
803
+ summary?: string;
804
+ message?: string;
805
+ found?: unknown;
806
+ property?: string;
807
+ expected?: string;
808
+ };
809
+ };
810
+ };
811
+ };
812
+ };
813
+ } & {
814
+ campaigns: {
815
+ get: {
816
+ body: unknown;
817
+ params: {};
818
+ query: {
819
+ campaignId?: string | undefined;
820
+ id?: string | undefined;
821
+ tokenAddress?: string | undefined;
822
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
823
+ chainId?: number | undefined;
824
+ startTimestamp?: string | undefined;
825
+ items?: number | undefined;
826
+ point?: boolean | undefined;
827
+ tokenSymbol?: string | undefined;
828
+ type?: string | undefined;
829
+ endTimestamp?: string | undefined;
830
+ opportunityId?: string | undefined;
831
+ creatorAddress?: string | undefined;
832
+ subType?: number | undefined;
833
+ rootCampaignId?: string | undefined;
834
+ parentCampaignId?: string | undefined;
835
+ creatorId?: string | undefined;
836
+ mainParameter?: string | undefined;
837
+ page?: number | undefined;
838
+ test?: boolean | undefined;
839
+ creatorTag?: string | undefined;
840
+ distributionChainIds?: number[] | undefined;
841
+ types?: string[] | undefined;
842
+ withOpportunity?: boolean | undefined;
843
+ createdAfter?: Date | null | undefined;
844
+ };
845
+ headers: unknown;
846
+ response: {
847
+ 200: {
848
+ description?: string | undefined;
849
+ creator?: {
850
+ tags?: string[] | undefined;
851
+ creatorId?: string | null | undefined;
852
+ address: string;
853
+ } | undefined;
854
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
855
+ rootCampaignId?: string | undefined;
856
+ parentCampaignId?: string | undefined;
857
+ campaignStatus?: {
858
+ error?: string | undefined;
859
+ details?: any;
860
+ campaignId: string;
861
+ status: string;
862
+ computedUntil: string | number;
863
+ processingStarted: string | number;
864
+ } | undefined;
865
+ distributionChain?: {
866
+ explorers?: {
867
+ chainId: number;
868
+ type: "ETHERSCAN" | "BLOCKSCOUT";
869
+ url: string;
870
+ }[] | undefined;
871
+ name: string;
872
+ id: number;
873
+ icon: string;
874
+ } | undefined;
875
+ rewardToken: {
876
+ price?: number | null | undefined;
877
+ symbol: string;
878
+ name: string | null;
879
+ decimals: number;
880
+ address: string;
881
+ id: string;
882
+ chainId: number;
883
+ icon: string;
884
+ isNative: boolean;
885
+ isPoint: boolean;
886
+ isPreTGE: boolean;
887
+ isTest: boolean;
888
+ verified: boolean;
889
+ };
890
+ campaignId: string;
891
+ id: string;
892
+ params: any;
893
+ amount: string;
894
+ startTimestamp: string | number;
895
+ type: string;
896
+ computeChainId: number;
897
+ distributionChainId: number;
898
+ endTimestamp: string | number;
899
+ opportunityId: string;
900
+ creatorAddress: string;
901
+ subType: number | null;
902
+ rewardTokenId: string;
903
+ createdAt: string;
904
+ chain: {
905
+ explorers?: {
906
+ chainId: number;
907
+ type: "ETHERSCAN" | "BLOCKSCOUT";
908
+ url: string;
909
+ }[] | undefined;
910
+ name: string;
911
+ id: number;
912
+ icon: string;
913
+ };
914
+ }[];
915
+ 422: {
916
+ type: "validation";
917
+ on: string;
918
+ summary?: string;
919
+ message?: string;
920
+ found?: unknown;
921
+ property?: string;
922
+ expected?: string;
923
+ };
924
+ };
925
+ };
926
+ };
927
+ } & {
928
+ campaigns: {
929
+ count: {
930
+ get: {
931
+ body: unknown;
932
+ params: {};
933
+ query: {
934
+ campaignId?: string | undefined;
935
+ id?: string | undefined;
936
+ tokenAddress?: string | undefined;
937
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
938
+ chainId?: number | undefined;
939
+ startTimestamp?: string | undefined;
940
+ items?: number | undefined;
941
+ point?: boolean | undefined;
942
+ tokenSymbol?: string | undefined;
943
+ type?: string | undefined;
944
+ endTimestamp?: string | undefined;
945
+ opportunityId?: string | undefined;
946
+ creatorAddress?: string | undefined;
947
+ subType?: number | undefined;
948
+ rootCampaignId?: string | undefined;
949
+ parentCampaignId?: string | undefined;
950
+ creatorId?: string | undefined;
951
+ mainParameter?: string | undefined;
952
+ page?: number | undefined;
953
+ test?: boolean | undefined;
954
+ creatorTag?: string | undefined;
955
+ distributionChainIds?: number[] | undefined;
956
+ types?: string[] | undefined;
957
+ withOpportunity?: boolean | undefined;
958
+ createdAfter?: Date | null | undefined;
959
+ };
960
+ headers: unknown;
961
+ response: {
962
+ 200: number;
963
+ 422: {
964
+ type: "validation";
965
+ on: string;
966
+ summary?: string;
967
+ message?: string;
968
+ found?: unknown;
969
+ property?: string;
970
+ expected?: string;
971
+ };
972
+ };
973
+ };
974
+ };
975
+ };
976
+ } & {
977
+ campaignscount: {
978
+ "by-chains": {
979
+ get: {
980
+ body: unknown;
981
+ params: {};
982
+ query: unknown;
983
+ headers: {
984
+ authorization: string;
985
+ };
986
+ response: {
987
+ 200: {
988
+ [x: string]: number;
989
+ };
990
+ 422: {
991
+ type: "validation";
992
+ on: string;
993
+ summary?: string;
994
+ message?: string;
995
+ found?: unknown;
996
+ property?: string;
997
+ expected?: string;
998
+ };
999
+ };
1000
+ };
1001
+ };
1002
+ };
1003
+ } & {
1004
+ campaigns: {
1005
+ count: {
1006
+ "by-types": {
1007
+ get: {
1008
+ body: unknown;
1009
+ params: {};
1010
+ query: unknown;
1011
+ headers: {
1012
+ authorization: string;
1013
+ };
1014
+ response: {
1015
+ 200: {
1016
+ [x: string]: number;
1017
+ };
1018
+ 422: {
1019
+ type: "validation";
1020
+ on: string;
1021
+ summary?: string;
1022
+ message?: string;
1023
+ found?: unknown;
1024
+ property?: string;
1025
+ expected?: string;
1026
+ };
1027
+ };
1028
+ };
1029
+ };
1030
+ };
1031
+ };
1032
+ } & {
1033
+ campaigns: {
1034
+ count: {
1035
+ "by-protocols": {
1036
+ get: {
1037
+ body: unknown;
1038
+ params: {};
1039
+ query: unknown;
1040
+ headers: {
1041
+ authorization: string;
1042
+ };
1043
+ response: {
1044
+ 200: {
1045
+ [x: string]: number;
1046
+ };
1047
+ 422: {
1048
+ type: "validation";
1049
+ on: string;
1050
+ summary?: string;
1051
+ message?: string;
1052
+ found?: unknown;
1053
+ property?: string;
1054
+ expected?: string;
1055
+ };
1056
+ };
1057
+ };
1058
+ };
1059
+ };
1060
+ };
1061
+ }, {
1062
+ derive: {};
1063
+ resolve: {};
1064
+ schema: {};
1065
+ standaloneSchema: {};
1066
+ }, {
1067
+ derive: {};
1068
+ resolve: {};
1069
+ schema: {
1070
+ body: unknown;
1071
+ headers: {
1072
+ authorization: string;
1073
+ };
1074
+ query: unknown;
1075
+ params: {};
1076
+ cookie: unknown;
1077
+ response: {
1078
+ 200: {
1079
+ [x: string]: number;
1080
+ };
1081
+ };
1082
+ };
1083
+ standaloneSchema: {};
1084
+ }>;