@lgriffin/esi.ts 9.7.0 → 10.2.0

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 (439) hide show
  1. package/CHANGELOG.md +512 -0
  2. package/README.md +182 -236
  3. package/dist/EsiClient.d.mts +140 -0
  4. package/dist/EsiClient.d.ts +4 -0
  5. package/dist/EsiClient.d.ts.map +1 -1
  6. package/dist/EsiClientBuilder.d.mts +75 -0
  7. package/dist/EsiClientBuilder.d.ts.map +1 -1
  8. package/dist/auth/EsiTokenManager.d.mts +200 -0
  9. package/dist/auth/EsiTokenManager.d.ts +200 -0
  10. package/dist/auth/EsiTokenManager.d.ts.map +1 -0
  11. package/dist/auth/EveSsoClient.d.mts +88 -0
  12. package/dist/auth/EveSsoClient.d.ts +88 -0
  13. package/dist/auth/EveSsoClient.d.ts.map +1 -0
  14. package/dist/auth/errors.d.mts +42 -0
  15. package/dist/auth/errors.d.ts +42 -0
  16. package/dist/auth/errors.d.ts.map +1 -0
  17. package/dist/auth/index.d.mts +14 -0
  18. package/dist/auth/index.d.ts +14 -0
  19. package/dist/auth/index.d.ts.map +1 -0
  20. package/dist/auth/jwt.d.mts +43 -0
  21. package/dist/auth/jwt.d.ts +43 -0
  22. package/dist/auth/jwt.d.ts.map +1 -0
  23. package/dist/auth/pkce.d.mts +21 -0
  24. package/dist/auth/pkce.d.ts +21 -0
  25. package/dist/auth/pkce.d.ts.map +1 -0
  26. package/dist/auth/storage/FileTokenStorage.d.mts +44 -0
  27. package/dist/auth/storage/FileTokenStorage.d.ts +44 -0
  28. package/dist/auth/storage/FileTokenStorage.d.ts.map +1 -0
  29. package/dist/auth/storage/MemoryTokenStorage.d.mts +18 -0
  30. package/dist/auth/storage/MemoryTokenStorage.d.ts +18 -0
  31. package/dist/auth/storage/MemoryTokenStorage.d.ts.map +1 -0
  32. package/dist/auth/types.d.mts +42 -0
  33. package/dist/auth/types.d.ts +42 -0
  34. package/dist/auth/types.d.ts.map +1 -0
  35. package/dist/chunk-3ZI5A37L.mjs +1065 -0
  36. package/dist/chunk-3ZI5A37L.mjs.map +1 -0
  37. package/dist/chunk-BBSHKVPI.js +71 -0
  38. package/dist/chunk-BBSHKVPI.js.map +1 -0
  39. package/dist/chunk-D5L5HZVF.mjs +417 -0
  40. package/dist/chunk-D5L5HZVF.mjs.map +1 -0
  41. package/dist/chunk-JIW4BXLP.mjs +17 -0
  42. package/dist/chunk-JIW4BXLP.mjs.map +1 -0
  43. package/dist/chunk-MSJHIJXA.js +1065 -0
  44. package/dist/chunk-MSJHIJXA.js.map +1 -0
  45. package/dist/chunk-PZ5AY32C.js +10 -0
  46. package/dist/chunk-PZ5AY32C.js.map +1 -0
  47. package/dist/chunk-R7D7M2LQ.mjs +71 -0
  48. package/dist/chunk-R7D7M2LQ.mjs.map +1 -0
  49. package/dist/chunk-SAQBXXTM.js +2614 -0
  50. package/dist/chunk-SAQBXXTM.js.map +1 -0
  51. package/dist/chunk-VZS32UQ3.mjs +2614 -0
  52. package/dist/chunk-VZS32UQ3.mjs.map +1 -0
  53. package/dist/chunk-XIB2OXEZ.js +417 -0
  54. package/dist/chunk-XIB2OXEZ.js.map +1 -0
  55. package/dist/clients/AccessListsClient.d.mts +25 -0
  56. package/dist/clients/AllianceClient.d.mts +59 -0
  57. package/dist/clients/AllianceClient.d.ts.map +1 -1
  58. package/dist/clients/AssetsClient.d.mts +65 -0
  59. package/dist/clients/BaseEsiClient.d.mts +19 -0
  60. package/dist/clients/CalendarClient.d.mts +48 -0
  61. package/dist/clients/CharacterClient.d.mts +134 -0
  62. package/dist/clients/ClonesClient.d.mts +27 -0
  63. package/dist/clients/ContactsClient.d.mts +96 -0
  64. package/dist/clients/ContractsClient.d.mts +91 -0
  65. package/dist/clients/ContractsClient.d.ts +12 -9
  66. package/dist/clients/ContractsClient.d.ts.map +1 -1
  67. package/dist/clients/CorporationProjectsClient.d.mts +54 -0
  68. package/dist/clients/CorporationProjectsClient.d.ts +22 -12
  69. package/dist/clients/CorporationProjectsClient.d.ts.map +1 -1
  70. package/dist/clients/CorporationsClient.d.mts +219 -0
  71. package/dist/clients/CosmeticsClient.d.mts +11 -0
  72. package/dist/clients/DogmaClient.d.mts +42 -0
  73. package/dist/clients/FactionClient.d.mts +60 -0
  74. package/dist/clients/FactionClient.d.ts +4 -4
  75. package/dist/clients/FactionClient.d.ts.map +1 -1
  76. package/dist/clients/FittingsClient.d.mts +38 -0
  77. package/dist/clients/FleetClient.d.mts +134 -0
  78. package/dist/clients/FreelanceJobsClient.d.mts +61 -0
  79. package/dist/clients/FreelanceJobsClient.d.ts +3 -3
  80. package/dist/clients/FreelanceJobsClient.d.ts.map +1 -1
  81. package/dist/clients/IncursionsClient.d.mts +14 -0
  82. package/dist/clients/IndustryClient.d.mts +86 -0
  83. package/dist/clients/IndustryClient.d.ts +4 -4
  84. package/dist/clients/IndustryClient.d.ts.map +1 -1
  85. package/dist/clients/InsuranceClient.d.mts +14 -0
  86. package/dist/clients/KillmailsClient.d.mts +37 -0
  87. package/dist/clients/LocationClient.d.mts +32 -0
  88. package/dist/clients/LoyaltyClient.d.mts +28 -0
  89. package/dist/clients/MailClient.d.mts +104 -0
  90. package/dist/clients/MailClient.d.ts +4 -4
  91. package/dist/clients/MailClient.d.ts.map +1 -1
  92. package/dist/clients/MarketClient.d.mts +102 -0
  93. package/dist/clients/MercenaryClient.d.mts +42 -0
  94. package/dist/clients/MetaClient.d.mts +45 -0
  95. package/dist/clients/MetaClient.d.ts +3 -2
  96. package/dist/clients/MetaClient.d.ts.map +1 -1
  97. package/dist/clients/MilitaryCampaignsClient.d.mts +53 -0
  98. package/dist/clients/ParagonHubClient.d.mts +13 -0
  99. package/dist/clients/PiClient.d.mts +45 -0
  100. package/dist/clients/RouteClient.d.mts +25 -0
  101. package/dist/clients/SearchClient.d.mts +17 -0
  102. package/dist/clients/SkillsClient.d.mts +39 -0
  103. package/dist/clients/SkyhooksClient.d.mts +48 -0
  104. package/dist/clients/SovereigntyClient.d.mts +20 -0
  105. package/dist/clients/StatusClient.d.mts +14 -0
  106. package/dist/clients/UiClient.d.mts +44 -0
  107. package/dist/clients/UniverseClient.d.mts +212 -0
  108. package/dist/clients/WalletClient.d.mts +70 -0
  109. package/dist/clients/WalletClient.d.ts +4 -4
  110. package/dist/clients/WalletClient.d.ts.map +1 -1
  111. package/dist/clients/WarsClient.d.mts +33 -0
  112. package/dist/core/ApiClient.d.mts +73 -0
  113. package/dist/core/ApiClient.d.ts +4 -0
  114. package/dist/core/ApiClient.d.ts.map +1 -1
  115. package/dist/core/ApiClientBuilder.d.mts +24 -0
  116. package/dist/core/ApiRequestHandler.d.ts.map +1 -1
  117. package/dist/core/BatchRequestHandler.d.mts +12 -0
  118. package/dist/core/BatchRequestHandler.d.ts.map +1 -1
  119. package/dist/core/ClientRegistry.d.mts +45 -0
  120. package/dist/core/EsiDiagnostics.d.mts +35 -0
  121. package/dist/core/IDeduplicator.d.mts +22 -0
  122. package/dist/core/IDeduplicator.d.ts +16 -0
  123. package/dist/core/IDeduplicator.d.ts.map +1 -1
  124. package/dist/core/IRetryStrategy.d.mts +5 -0
  125. package/dist/core/RequestDeduplicator.d.mts +21 -0
  126. package/dist/core/RequestDeduplicator.d.ts +13 -0
  127. package/dist/core/RequestDeduplicator.d.ts.map +1 -1
  128. package/dist/core/RetryStrategy.d.mts +21 -0
  129. package/dist/core/RetryStrategy.d.ts +2 -0
  130. package/dist/core/RetryStrategy.d.ts.map +1 -1
  131. package/dist/core/cache/ETagCacheManager.d.mts +75 -0
  132. package/dist/core/cache/ETagCacheManager.d.ts +4 -0
  133. package/dist/core/cache/ETagCacheManager.d.ts.map +1 -1
  134. package/dist/core/cache/ICache.d.mts +27 -0
  135. package/dist/core/cache/cacheKey.d.ts +11 -0
  136. package/dist/core/cache/cacheKey.d.ts.map +1 -1
  137. package/dist/core/circuitBreaker/CircuitBreaker.d.mts +52 -0
  138. package/dist/core/circuitBreaker/CircuitBreaker.d.ts +3 -0
  139. package/dist/core/circuitBreaker/CircuitBreaker.d.ts.map +1 -1
  140. package/dist/core/circuitBreaker/ICircuitBreaker.d.mts +23 -0
  141. package/dist/core/configureApiClient.d.mts +18 -0
  142. package/dist/core/configureApiClient.d.ts.map +1 -1
  143. package/dist/core/constants.d.ts +2 -2
  144. package/dist/core/constants.d.ts.map +1 -1
  145. package/dist/core/endpoints/EndpointDefinition.d.mts +63 -0
  146. package/dist/core/endpoints/accessListEndpoints.d.mts +34 -0
  147. package/dist/core/endpoints/allianceEndpoints.d.mts +43 -0
  148. package/dist/core/endpoints/assetEndpoints.d.mts +76 -0
  149. package/dist/core/endpoints/buildEndpointPath.d.mts +7 -0
  150. package/dist/core/endpoints/calendarEndpoints.d.mts +54 -0
  151. package/dist/core/endpoints/calendarEndpoints.d.ts +7 -7
  152. package/dist/core/endpoints/characterEndpoints.d.mts +185 -0
  153. package/dist/core/endpoints/characterEndpoints.d.ts +2 -2
  154. package/dist/core/endpoints/cloneEndpoints.d.mts +32 -0
  155. package/dist/core/endpoints/cloneEndpoints.d.ts +2 -2
  156. package/dist/core/endpoints/contactEndpoints.d.mts +106 -0
  157. package/dist/core/endpoints/contractEndpoints.d.mts +168 -0
  158. package/dist/core/endpoints/contractEndpoints.d.ts +15 -22
  159. package/dist/core/endpoints/contractEndpoints.d.ts.map +1 -1
  160. package/dist/core/endpoints/corporationEndpoints.d.mts +324 -0
  161. package/dist/core/endpoints/corporationEndpoints.d.ts +19 -22
  162. package/dist/core/endpoints/corporationEndpoints.d.ts.map +1 -1
  163. package/dist/core/endpoints/corporationProjectEndpoints.d.mts +102 -0
  164. package/dist/core/endpoints/corporationProjectEndpoints.d.ts +75 -23
  165. package/dist/core/endpoints/corporationProjectEndpoints.d.ts.map +1 -1
  166. package/dist/core/endpoints/cosmeticsEndpoints.d.mts +52 -0
  167. package/dist/core/endpoints/createClient.d.mts +69 -0
  168. package/dist/core/endpoints/createClient.d.ts.map +1 -1
  169. package/dist/core/endpoints/dogmaEndpoints.d.mts +89 -0
  170. package/dist/core/endpoints/dogmaEndpoints.d.ts +2 -2
  171. package/dist/core/endpoints/esi-cache-ttls.generated.d.ts.map +1 -1
  172. package/dist/core/endpoints/esi-rate-limit-groups.generated.d.mts +7 -0
  173. package/dist/core/endpoints/esi-rate-limit-groups.generated.d.ts.map +1 -1
  174. package/dist/core/endpoints/esi-scopes.generated.d.mts +3 -0
  175. package/dist/core/endpoints/esi-scopes.generated.d.ts.map +1 -1
  176. package/dist/core/endpoints/factionEndpoints.d.mts +194 -0
  177. package/dist/core/endpoints/factionEndpoints.d.ts +36 -36
  178. package/dist/core/endpoints/factionEndpoints.d.ts.map +1 -1
  179. package/dist/core/endpoints/fittingEndpoints.d.mts +34 -0
  180. package/dist/core/endpoints/fleetEndpoints.d.mts +137 -0
  181. package/dist/core/endpoints/fleetEndpoints.d.ts +1 -1
  182. package/dist/core/endpoints/freelanceJobsEndpoints.d.mts +181 -0
  183. package/dist/core/endpoints/freelanceJobsEndpoints.d.ts +131 -122
  184. package/dist/core/endpoints/freelanceJobsEndpoints.d.ts.map +1 -1
  185. package/dist/core/endpoints/incursionEndpoints.d.mts +19 -0
  186. package/dist/core/endpoints/industryEndpoints.d.mts +138 -0
  187. package/dist/core/endpoints/industryEndpoints.d.ts +6 -6
  188. package/dist/core/endpoints/industryEndpoints.d.ts.map +1 -1
  189. package/dist/core/endpoints/insuranceEndpoints.d.mts +17 -0
  190. package/dist/core/endpoints/killmailEndpoints.d.mts +62 -0
  191. package/dist/core/endpoints/locationEndpoints.d.mts +37 -0
  192. package/dist/core/endpoints/loyaltyEndpoints.d.mts +32 -0
  193. package/dist/core/endpoints/mailEndpoints.d.mts +111 -0
  194. package/dist/core/endpoints/mailEndpoints.d.ts +3 -5
  195. package/dist/core/endpoints/mailEndpoints.d.ts.map +1 -1
  196. package/dist/core/endpoints/marketEndpoints.d.mts +191 -0
  197. package/dist/core/endpoints/mercenaryEndpoints.d.mts +79 -0
  198. package/dist/core/endpoints/mercenaryEndpoints.d.ts +1 -1
  199. package/dist/core/endpoints/metaEndpoints.d.mts +50 -0
  200. package/dist/core/endpoints/metaEndpoints.d.ts +5 -1
  201. package/dist/core/endpoints/metaEndpoints.d.ts.map +1 -1
  202. package/dist/core/endpoints/militaryCampaignEndpoints.d.mts +87 -0
  203. package/dist/core/endpoints/paragonHubEndpoints.d.mts +163 -0
  204. package/dist/core/endpoints/piEndpoints.d.mts +101 -0
  205. package/dist/core/endpoints/piEndpoints.d.ts +2 -2
  206. package/dist/core/endpoints/routeEndpoints.d.mts +14 -0
  207. package/dist/core/endpoints/searchEndpoints.d.mts +26 -0
  208. package/dist/core/endpoints/skillEndpoints.d.mts +52 -0
  209. package/dist/core/endpoints/skyhookEndpoints.d.mts +111 -0
  210. package/dist/core/endpoints/sovereigntyEndpoints.d.mts +59 -0
  211. package/dist/core/endpoints/statusEndpoints.d.mts +14 -0
  212. package/dist/core/endpoints/statusEndpoints.d.ts +1 -1
  213. package/dist/core/endpoints/uiEndpoints.d.mts +43 -0
  214. package/dist/core/endpoints/universeEndpoints.d.mts +456 -0
  215. package/dist/core/endpoints/universeEndpoints.d.ts +22 -22
  216. package/dist/core/endpoints/walletEndpoints.d.mts +98 -0
  217. package/dist/core/endpoints/walletEndpoints.d.ts +2 -3
  218. package/dist/core/endpoints/walletEndpoints.d.ts.map +1 -1
  219. package/dist/core/endpoints/warEndpoints.d.mts +51 -0
  220. package/dist/core/logger/DefaultLogger.d.mts +31 -0
  221. package/dist/core/logger/DefaultLogger.d.ts +31 -0
  222. package/dist/core/logger/DefaultLogger.d.ts.map +1 -0
  223. package/dist/core/logger/ILogger.d.mts +17 -0
  224. package/dist/core/logger/ILogger.d.ts +14 -4
  225. package/dist/core/logger/ILogger.d.ts.map +1 -1
  226. package/dist/core/logger/NoopLogger.d.mts +7 -0
  227. package/dist/core/logger/NoopLogger.d.ts +4 -0
  228. package/dist/core/logger/NoopLogger.d.ts.map +1 -1
  229. package/dist/core/logger/clientLog.d.ts +11 -0
  230. package/dist/core/logger/clientLog.d.ts.map +1 -0
  231. package/dist/core/logger/logger.d.ts +11 -3
  232. package/dist/core/logger/logger.d.ts.map +1 -1
  233. package/dist/core/logger/loggerUtil.d.mts +11 -0
  234. package/dist/core/logger/loggerUtil.d.ts +8 -6
  235. package/dist/core/logger/loggerUtil.d.ts.map +1 -1
  236. package/dist/core/logger/resolveLogger.d.ts +10 -0
  237. package/dist/core/logger/resolveLogger.d.ts.map +1 -0
  238. package/dist/core/middleware/Middleware.d.mts +30 -0
  239. package/dist/core/pagination/AsyncPaginationIterator.d.mts +12 -0
  240. package/dist/core/pagination/AsyncPaginationIterator.d.ts.map +1 -1
  241. package/dist/core/pagination/CursorPaginationHandler.d.mts +68 -0
  242. package/dist/core/pagination/CursorPaginationHandler.d.ts.map +1 -1
  243. package/dist/core/pagination/PaginationHandler.d.ts.map +1 -1
  244. package/dist/core/rateLimiter/IRateLimiter.d.mts +27 -0
  245. package/dist/core/rateLimiter/RateLimiter.d.mts +62 -0
  246. package/dist/core/rateLimiter/RateLimiter.d.ts.map +1 -1
  247. package/dist/core/requestPipeline/cachePolicy.d.ts +25 -1
  248. package/dist/core/requestPipeline/cachePolicy.d.ts.map +1 -1
  249. package/dist/core/requestPipeline/fetchExecution.d.ts +1 -1
  250. package/dist/core/requestPipeline/fetchExecution.d.ts.map +1 -1
  251. package/dist/core/requestPipeline/headers.d.ts.map +1 -1
  252. package/dist/core/requestPipeline/index.d.ts +2 -2
  253. package/dist/core/requestPipeline/index.d.ts.map +1 -1
  254. package/dist/core/requestPipeline/paginationOrchestration.d.ts +1 -1
  255. package/dist/core/requestPipeline/paginationOrchestration.d.ts.map +1 -1
  256. package/dist/core/requestPipeline/statusHandling.d.ts +14 -2
  257. package/dist/core/requestPipeline/statusHandling.d.ts.map +1 -1
  258. package/dist/core/util/concurrency.d.ts +29 -0
  259. package/dist/core/util/concurrency.d.ts.map +1 -0
  260. package/dist/core/util/error.d.mts +37 -0
  261. package/dist/core/util/retry.d.mts +8 -0
  262. package/dist/core/util/retry.d.ts.map +1 -1
  263. package/dist/errors.d.mts +5 -0
  264. package/dist/errors.d.ts +1 -0
  265. package/dist/errors.d.ts.map +1 -1
  266. package/dist/errors.js +53 -195
  267. package/dist/errors.js.map +1 -1
  268. package/dist/errors.mjs +37 -129
  269. package/dist/errors.mjs.map +1 -1
  270. package/dist/index.d.mts +81 -0
  271. package/dist/index.d.ts +6 -2
  272. package/dist/index.d.ts.map +1 -1
  273. package/dist/index.js +2195 -3517
  274. package/dist/index.js.map +1 -1
  275. package/dist/index.mjs +1833 -3044
  276. package/dist/index.mjs.map +1 -1
  277. package/dist/schemas/access-lists.d.mts +16 -0
  278. package/dist/schemas/alliance.d.mts +26 -0
  279. package/dist/schemas/assets.d.mts +24 -0
  280. package/dist/schemas/calendar.d.mts +27 -0
  281. package/dist/schemas/calendar.d.ts +9 -7
  282. package/dist/schemas/calendar.d.ts.map +1 -1
  283. package/dist/schemas/character.d.mts +109 -0
  284. package/dist/schemas/character.d.ts +2 -2
  285. package/dist/schemas/clones.d.mts +17 -0
  286. package/dist/schemas/clones.d.ts +2 -2
  287. package/dist/schemas/common.d.mts +74 -0
  288. package/dist/schemas/contacts.d.mts +14 -0
  289. package/dist/schemas/contracts.d.mts +104 -0
  290. package/dist/schemas/contracts.d.ts +69 -6
  291. package/dist/schemas/contracts.d.ts.map +1 -1
  292. package/dist/schemas/corporation-projects.d.mts +104 -0
  293. package/dist/schemas/corporation-projects.d.ts +96 -9
  294. package/dist/schemas/corporation-projects.d.ts.map +1 -1
  295. package/dist/schemas/corporation.d.mts +193 -0
  296. package/dist/schemas/corporation.d.ts +34 -22
  297. package/dist/schemas/corporation.d.ts.map +1 -1
  298. package/dist/schemas/cosmetics.d.mts +58 -0
  299. package/dist/schemas/dogma.d.mts +57 -0
  300. package/dist/schemas/dogma.d.ts +2 -2
  301. package/dist/schemas/esiEnum.d.mts +3 -0
  302. package/dist/schemas/faction-warfare.d.mts +203 -0
  303. package/dist/schemas/faction-warfare.d.ts +125 -12
  304. package/dist/schemas/faction-warfare.d.ts.map +1 -1
  305. package/dist/schemas/fittings.d.mts +13 -0
  306. package/dist/schemas/fleet.d.mts +37 -0
  307. package/dist/schemas/fleet.d.ts +1 -1
  308. package/dist/schemas/freelance-jobs.d.mts +171 -0
  309. package/dist/schemas/freelance-jobs.d.ts +52 -22
  310. package/dist/schemas/freelance-jobs.d.ts.map +1 -1
  311. package/dist/schemas/incursions.d.mts +12 -0
  312. package/dist/schemas/index.d.mts +39 -0
  313. package/dist/schemas/index.js +420 -2479
  314. package/dist/schemas/index.js.map +1 -1
  315. package/dist/schemas/index.mjs +225 -2065
  316. package/dist/schemas/index.mjs.map +1 -1
  317. package/dist/schemas/industry.d.mts +99 -0
  318. package/dist/schemas/industry.d.ts +33 -0
  319. package/dist/schemas/industry.d.ts.map +1 -1
  320. package/dist/schemas/insurance.d.mts +10 -0
  321. package/dist/schemas/killmails.d.mts +38 -0
  322. package/dist/schemas/location.d.mts +18 -0
  323. package/dist/schemas/loyalty.d.mts +18 -0
  324. package/dist/schemas/mail.d.mts +53 -0
  325. package/dist/schemas/mail.d.ts +24 -5
  326. package/dist/schemas/mail.d.ts.map +1 -1
  327. package/dist/schemas/market.d.mts +123 -0
  328. package/dist/schemas/mercenary.d.mts +74 -0
  329. package/dist/schemas/mercenary.d.ts +1 -1
  330. package/dist/schemas/meta.d.mts +36 -0
  331. package/dist/schemas/meta.d.ts +12 -1
  332. package/dist/schemas/meta.d.ts.map +1 -1
  333. package/dist/schemas/military-campaigns.d.mts +26 -0
  334. package/dist/schemas/paragon-hub.d.mts +96 -0
  335. package/dist/schemas/pi.d.mts +71 -0
  336. package/dist/schemas/pi.d.ts +2 -2
  337. package/dist/schemas/skills.d.mts +28 -0
  338. package/dist/schemas/skyhooks.d.mts +129 -0
  339. package/dist/schemas/sovereignty.d.mts +56 -0
  340. package/dist/schemas/status.d.mts +8 -0
  341. package/dist/schemas/status.d.ts +1 -1
  342. package/dist/schemas/universe.d.mts +285 -0
  343. package/dist/schemas/universe.d.ts +22 -22
  344. package/dist/schemas/universe.d.ts.map +1 -1
  345. package/dist/schemas/wallet.d.mts +45 -0
  346. package/dist/schemas/wallet.d.ts +16 -0
  347. package/dist/schemas/wallet.d.ts.map +1 -1
  348. package/dist/schemas/wars.d.mts +27 -0
  349. package/dist/sde/IStaticDataProvider.d.mts +106 -0
  350. package/dist/sde/MemorySdeProvider.d.mts +167 -0
  351. package/dist/sde/SdeDataProvider.d.mts +119 -0
  352. package/dist/sde/SdeDataProvider.d.ts.map +1 -1
  353. package/dist/sde/SdeTestDataFactory.d.mts +33 -0
  354. package/dist/sde/errors.d.mts +23 -0
  355. package/dist/sde/index.d.mts +9 -0
  356. package/dist/sde/index.js +95 -1162
  357. package/dist/sde/index.js.map +1 -1
  358. package/dist/sde/index.mjs +73 -1091
  359. package/dist/sde/index.mjs.map +1 -1
  360. package/dist/sde/ingestion/SdeExtractor.d.ts.map +1 -1
  361. package/dist/sde/ingestion/metadata.d.ts +13 -0
  362. package/dist/sde/ingestion/metadata.d.ts.map +1 -0
  363. package/dist/sde/memory.d.mts +8 -0
  364. package/dist/sde/memory.js +21 -1095
  365. package/dist/sde/memory.js.map +1 -1
  366. package/dist/sde/memory.mjs +13 -1051
  367. package/dist/sde/memory.mjs.map +1 -1
  368. package/dist/sde/optionalPeers.d.ts +25 -0
  369. package/dist/sde/optionalPeers.d.ts.map +1 -0
  370. package/dist/sde/types.d.mts +1039 -0
  371. package/dist/sde/version.d.mts +7 -0
  372. package/dist/testing/TestDataFactory.d.mts +172 -0
  373. package/dist/testing/TestDataFactory.d.ts +28 -1
  374. package/dist/testing/TestDataFactory.d.ts.map +1 -1
  375. package/dist/testing/index.d.mts +2 -0
  376. package/dist/testing/index.js +116 -125
  377. package/dist/testing/index.js.map +1 -1
  378. package/dist/testing/index.mjs +110 -82
  379. package/dist/testing/index.mjs.map +1 -1
  380. package/dist/types/access-lists.d.mts +5 -0
  381. package/dist/types/alliance.d.mts +7 -0
  382. package/dist/types/api-responses.d.mts +40 -0
  383. package/dist/types/assets.d.mts +6 -0
  384. package/dist/types/branded.d.mts +23 -0
  385. package/dist/types/calendar.d.mts +6 -0
  386. package/dist/types/character.d.mts +17 -0
  387. package/dist/types/clones.d.mts +4 -0
  388. package/dist/types/common.d.mts +19 -0
  389. package/dist/types/contacts.d.mts +5 -0
  390. package/dist/types/contracts.d.mts +9 -0
  391. package/dist/types/contracts.d.ts +4 -1
  392. package/dist/types/contracts.d.ts.map +1 -1
  393. package/dist/types/corporation-projects.d.mts +10 -0
  394. package/dist/types/corporation-projects.d.ts +5 -1
  395. package/dist/types/corporation-projects.d.ts.map +1 -1
  396. package/dist/types/corporation.d.mts +19 -0
  397. package/dist/types/cosmetics.d.mts +8 -0
  398. package/dist/types/dogma.d.mts +6 -0
  399. package/dist/types/faction-warfare.d.mts +17 -0
  400. package/dist/types/faction-warfare.d.ts +9 -1
  401. package/dist/types/faction-warfare.d.ts.map +1 -1
  402. package/dist/types/fittings.d.mts +4 -0
  403. package/dist/types/fleet.d.mts +7 -0
  404. package/dist/types/freelance-jobs.d.mts +12 -0
  405. package/dist/types/freelance-jobs.d.ts +2 -1
  406. package/dist/types/freelance-jobs.d.ts.map +1 -1
  407. package/dist/types/generated/esi-spec.generated.d.mts +2136 -0
  408. package/dist/types/generated/esi-spec.generated.d.ts +164 -16
  409. package/dist/types/generated/esi-spec.generated.d.ts.map +1 -1
  410. package/dist/types/generated/spec-alignment.check.d.ts +2 -2
  411. package/dist/types/incursions.d.mts +4 -0
  412. package/dist/types/industry.d.mts +11 -0
  413. package/dist/types/industry.d.ts +2 -1
  414. package/dist/types/industry.d.ts.map +1 -1
  415. package/dist/types/insurance.d.mts +4 -0
  416. package/dist/types/killmails.d.mts +5 -0
  417. package/dist/types/location.d.mts +6 -0
  418. package/dist/types/loyalty.d.mts +5 -0
  419. package/dist/types/mail.d.mts +6 -0
  420. package/dist/types/mail.d.ts +2 -1
  421. package/dist/types/mail.d.ts.map +1 -1
  422. package/dist/types/market.d.mts +12 -0
  423. package/dist/types/mercenary.d.mts +7 -0
  424. package/dist/types/meta.d.mts +9 -0
  425. package/dist/types/meta.d.ts +2 -1
  426. package/dist/types/meta.d.ts.map +1 -1
  427. package/dist/types/military-campaigns.d.mts +6 -0
  428. package/dist/types/paragon-hub.d.mts +8 -0
  429. package/dist/types/pi.d.mts +6 -0
  430. package/dist/types/skills.d.mts +5 -0
  431. package/dist/types/skyhooks.d.mts +8 -0
  432. package/dist/types/sovereignty.d.mts +6 -0
  433. package/dist/types/status.d.mts +4 -0
  434. package/dist/types/universe.d.mts +27 -0
  435. package/dist/types/wallet.d.mts +6 -0
  436. package/dist/types/wallet.d.ts +2 -1
  437. package/dist/types/wallet.d.ts.map +1 -1
  438. package/dist/types/wars.d.mts +4 -0
  439. package/package.json +137 -46
@@ -0,0 +1,2614 @@
1
+ import {
2
+ __export
3
+ } from "./chunk-JIW4BXLP.mjs";
4
+
5
+ // src/schemas/index.ts
6
+ var schemas_exports = {};
7
+ __export(schemas_exports, {
8
+ AccessListEntrySchema: () => AccessListEntrySchema,
9
+ AccessListSchema: () => AccessListSchema,
10
+ AgentResearchSchema: () => AgentResearchSchema,
11
+ AllianceContactLabelSchema: () => AllianceContactLabelSchema,
12
+ AllianceContactSchema: () => AllianceContactSchema,
13
+ AllianceIconSchema: () => AllianceIconSchema,
14
+ AllianceInfoSchema: () => AllianceInfoSchema,
15
+ AncestrySchema: () => AncestrySchema,
16
+ AssetLocationSchema: () => AssetLocationSchema,
17
+ AssetNameSchema: () => AssetNameSchema,
18
+ AsteroidBeltInfoSchema: () => AsteroidBeltInfoSchema,
19
+ BloodlineSchema: () => BloodlineSchema,
20
+ BlueprintSchema: () => BlueprintSchema,
21
+ BulkIdResultSchema: () => BulkIdResultSchema,
22
+ CalendarEventAttendeeSchema: () => CalendarEventAttendeeSchema,
23
+ CalendarEventDetailSchema: () => CalendarEventDetailSchema,
24
+ CalendarEventSchema: () => CalendarEventSchema,
25
+ CharacterAffiliationSchema: () => CharacterAffiliationSchema,
26
+ CharacterAssetSchema: () => CharacterAssetSchema,
27
+ CharacterAttributesSchema: () => CharacterAttributesSchema,
28
+ CharacterFleetInfoSchema: () => CharacterFleetInfoSchema,
29
+ CharacterFreelanceJobsListingSchema: () => CharacterFreelanceJobsListingSchema,
30
+ CharacterInfoSchema: () => CharacterInfoSchema,
31
+ CharacterLocationSchema: () => CharacterLocationSchema,
32
+ CharacterMarketOrderHistorySchema: () => CharacterMarketOrderHistorySchema,
33
+ CharacterMarketOrderSchema: () => CharacterMarketOrderSchema,
34
+ CharacterMilitaryCampaignObjectiveSchema: () => CharacterMilitaryCampaignObjectiveSchema,
35
+ CharacterOnlineSchema: () => CharacterOnlineSchema,
36
+ CharacterPortraitSchema: () => CharacterPortraitSchema,
37
+ CharacterRoleSchema: () => CharacterRoleSchema,
38
+ CharacterShipSchema: () => CharacterShipSchema,
39
+ CharacterSkillSchema: () => CharacterSkillSchema,
40
+ CharacterSkillsResponseSchema: () => CharacterSkillsResponseSchema,
41
+ CharacterSkinrComponentsSchema: () => CharacterSkinrComponentsSchema,
42
+ CharacterSkinrSchema: () => CharacterSkinrSchema,
43
+ CharacterTitleSchema: () => CharacterTitleSchema,
44
+ CloneInfoSchema: () => CloneInfoSchema,
45
+ ColonyLayoutSchema: () => ColonyLayoutSchema,
46
+ ConstellationInfoSchema: () => ConstellationInfoSchema,
47
+ ContactLabelSchema: () => ContactLabelSchema,
48
+ ContactNotificationSchema: () => ContactNotificationSchema,
49
+ ContactSchema: () => ContactSchema,
50
+ ContainerLogSchema: () => ContainerLogSchema,
51
+ ContractBidSchema: () => ContractBidSchema,
52
+ ContractItemSchema: () => ContractItemSchema,
53
+ ContractSchema: () => ContractSchema,
54
+ CorporationAllianceHistorySchema: () => CorporationAllianceHistorySchema,
55
+ CorporationDivisionsSchema: () => CorporationDivisionsSchema,
56
+ CorporationFacilitySchema: () => CorporationFacilitySchema,
57
+ CorporationFreelanceJobsListingSchema: () => CorporationFreelanceJobsListingSchema,
58
+ CorporationHistorySchema: () => CorporationHistorySchema,
59
+ CorporationIconSchema: () => CorporationIconSchema,
60
+ CorporationIndustryJobSchema: () => CorporationIndustryJobSchema,
61
+ CorporationInfoSchema: () => CorporationInfoSchema,
62
+ CorporationIssuedMedalSchema: () => CorporationIssuedMedalSchema,
63
+ CorporationMarketOrderHistorySchema: () => CorporationMarketOrderHistorySchema,
64
+ CorporationMarketOrderSchema: () => CorporationMarketOrderSchema,
65
+ CorporationMedalSchema: () => CorporationMedalSchema,
66
+ CorporationMemberRoleSchema: () => CorporationMemberRoleSchema,
67
+ CorporationMemberTitleSchema: () => CorporationMemberTitleSchema,
68
+ CorporationMemberTrackingSchema: () => CorporationMemberTrackingSchema,
69
+ CorporationProjectContributionSchema: () => CorporationProjectContributionSchema,
70
+ CorporationProjectContributorSchema: () => CorporationProjectContributorSchema,
71
+ CorporationProjectContributorsListingSchema: () => CorporationProjectContributorsListingSchema,
72
+ CorporationProjectCursorSchema: () => CorporationProjectCursorSchema,
73
+ CorporationProjectSchema: () => CorporationProjectSchema,
74
+ CorporationProjectSummarySchema: () => CorporationProjectSummarySchema,
75
+ CorporationProjectsListingSchema: () => CorporationProjectsListingSchema,
76
+ CorporationRoleHistorySchema: () => CorporationRoleHistorySchema,
77
+ CorporationShareholderSchema: () => CorporationShareholderSchema,
78
+ CorporationStandingSchema: () => StandingSchema,
79
+ CorporationStarbaseDetailSchema: () => CorporationStarbaseDetailSchema,
80
+ CorporationStarbaseSchema: () => CorporationStarbaseSchema,
81
+ CorporationStructureSchema: () => CorporationStructureSchema,
82
+ CorporationTitleSchema: () => CorporationTitleSchema,
83
+ CorporationWalletDivisionSchema: () => CorporationWalletDivisionSchema,
84
+ CorporationWalletTransactionSchema: () => CorporationWalletTransactionSchema,
85
+ CustomsOfficeSchema: () => CustomsOfficeSchema,
86
+ DogmaAttributeSchema: () => DogmaAttributeSchema,
87
+ DogmaDynamicItemSchema: () => DogmaDynamicItemSchema,
88
+ DogmaEffectSchema: () => DogmaEffectSchema,
89
+ EsiCursorSchema: () => EsiCursorSchema,
90
+ EsiResponseMetaSchema: () => EsiResponseMetaSchema,
91
+ FactionSchema: () => FactionSchema,
92
+ FactionWarfareCharacterLeaderboardSchema: () => FactionWarfareCharacterLeaderboardSchema,
93
+ FactionWarfareCharacterStatsSchema: () => FactionWarfareCharacterStatsSchema,
94
+ FactionWarfareCorporationLeaderboardSchema: () => FactionWarfareCorporationLeaderboardSchema,
95
+ FactionWarfareCorporationStatsSchema: () => FactionWarfareCorporationStatsSchema,
96
+ FactionWarfareFactionLeaderboardSchema: () => FactionWarfareFactionLeaderboardSchema,
97
+ FactionWarfareLeaderboardSchema: () => FactionWarfareLeaderboardSchema,
98
+ FactionWarfareStatsSchema: () => FactionWarfareStatsSchema,
99
+ FactionWarfareSystemSchema: () => FactionWarfareSystemSchema,
100
+ FactionWarfareWarSchema: () => FactionWarfareWarSchema,
101
+ FittingSchema: () => FittingSchema,
102
+ FleetInfoSchema: () => FleetInfoSchema,
103
+ FleetMemberSchema: () => FleetMemberSchema,
104
+ FleetWingSchema: () => FleetWingSchema,
105
+ FreelanceJobDetailSchema: () => FreelanceJobDetailSchema,
106
+ FreelanceJobParticipantSchema: () => FreelanceJobParticipantSchema,
107
+ FreelanceJobParticipantsListingSchema: () => FreelanceJobParticipantsListingSchema,
108
+ FreelanceJobParticipationSchema: () => FreelanceJobParticipationSchema,
109
+ FreelanceJobSummarySchema: () => FreelanceJobSummarySchema,
110
+ FreelanceJobsListingSchema: () => FreelanceJobsListingSchema,
111
+ GraphicInfoSchema: () => GraphicInfoSchema,
112
+ IncursionSchema: () => IncursionSchema,
113
+ IndustryFacilitySchema: () => IndustryFacilitySchema,
114
+ IndustryJobSchema: () => IndustryJobSchema,
115
+ IndustrySystemSchema: () => IndustrySystemSchema,
116
+ InsurancePriceSchema: () => InsurancePriceSchema,
117
+ ItemCategorySchema: () => ItemCategorySchema,
118
+ ItemGroupSchema: () => ItemGroupSchema,
119
+ JumpFatigueSchema: () => JumpFatigueSchema,
120
+ KillmailSchema: () => KillmailSchema,
121
+ KillmailSummarySchema: () => KillmailSummarySchema,
122
+ LoyaltyPointsSchema: () => LoyaltyPointsSchema,
123
+ LoyaltyStoreOfferSchema: () => LoyaltyStoreOfferSchema,
124
+ MailHeaderSchema: () => MailHeaderSchema,
125
+ MailLabelSchema: () => MailLabelSchema,
126
+ MailLabelsResponseSchema: () => MailLabelsResponseSchema,
127
+ MailMessageSchema: () => MailMessageSchema,
128
+ MailingListSchema: () => MailingListSchema,
129
+ MarketGroupSchema: () => MarketGroupSchema,
130
+ MarketHistorySchema: () => MarketHistorySchema,
131
+ MarketOrderSchema: () => MarketOrderSchema,
132
+ MarketPriceSchema: () => MarketPriceSchema,
133
+ MedalSchema: () => MedalSchema,
134
+ MercenaryDenDetailEvolutionSchema: () => MercenaryDenDetailEvolutionSchema,
135
+ MercenaryDenDetailInfomorphsSchema: () => MercenaryDenDetailInfomorphsSchema,
136
+ MercenaryDenDetailReinforcementTimerSchema: () => MercenaryDenDetailReinforcementTimerSchema,
137
+ MercenaryDenDetailSchema: () => MercenaryDenDetailSchema,
138
+ MercenaryDenDetailSkyhookSchema: () => MercenaryDenDetailSkyhookSchema,
139
+ MercenaryDenSchema: () => MercenaryDenSchema,
140
+ MercenaryTacticalOperationDetailSchema: () => MercenaryTacticalOperationDetailSchema,
141
+ MercenaryTacticalOperationSchema: () => MercenaryTacticalOperationSchema,
142
+ MetaChangelogEntrySchema: () => MetaChangelogEntrySchema,
143
+ MetaChangelogSchema: () => MetaChangelogSchema,
144
+ MetaCompatibilityDatesSchema: () => MetaCompatibilityDatesSchema,
145
+ MetaNameSchema: () => MetaNameSchema,
146
+ MetaRouteStatusSchema: () => MetaRouteStatusSchema,
147
+ MetaStatusSchema: () => MetaStatusSchema,
148
+ MilitaryCampaignObjectiveSchema: () => MilitaryCampaignObjectiveSchema,
149
+ MilitaryCampaignSchema: () => MilitaryCampaignSchema,
150
+ MiningLedgerEntrySchema: () => MiningLedgerEntrySchema,
151
+ MiningObserverEntrySchema: () => MiningObserverEntrySchema,
152
+ MiningObserverSchema: () => MiningObserverSchema,
153
+ MoonExtractionTimerSchema: () => MoonExtractionTimerSchema,
154
+ MoonInfoSchema: () => MoonInfoSchema,
155
+ NameAndCategorySchema: () => NameAndCategorySchema,
156
+ NotificationSchema: () => NotificationSchema,
157
+ OrbitalSkyhookSchema: () => OrbitalSkyhookSchema,
158
+ ParagonHubCharacterListingSchema: () => ParagonHubCharacterListingSchema,
159
+ ParagonHubCharacterSkinrResponseSchema: () => ParagonHubCharacterSkinrResponseSchema,
160
+ ParagonHubCursorSchema: () => ParagonHubCursorSchema,
161
+ ParagonHubSkinrListingSchema: () => ParagonHubSkinrListingSchema,
162
+ ParagonHubSkinrPriceSchema: () => ParagonHubSkinrPriceSchema,
163
+ ParagonHubSkinrResponseSchema: () => ParagonHubSkinrResponseSchema,
164
+ ParagonHubSkinrTargetSchema: () => ParagonHubSkinrTargetSchema,
165
+ PlanetInfoSchema: () => PlanetInfoSchema,
166
+ PlanetaryColonySchema: () => PlanetaryColonySchema,
167
+ PublicContractBidSchema: () => PublicContractBidSchema,
168
+ PublicContractItemSchema: () => PublicContractItemSchema,
169
+ PublicContractSchema: () => PublicContractSchema,
170
+ RaceSchema: () => RaceSchema,
171
+ RaidableSkyhookSchema: () => RaidableSkyhookSchema,
172
+ RateLimitMetaSchema: () => RateLimitMetaSchema,
173
+ RegionInfoSchema: () => RegionInfoSchema,
174
+ SchematicInfoSchema: () => SchematicInfoSchema,
175
+ SearchResultSchema: () => SearchResultSchema,
176
+ ServerStatusSchema: () => ServerStatusSchema,
177
+ SkillQueueSchema: () => SkillQueueSchema,
178
+ SkinrComponentLicenseSchema: () => SkinrComponentLicenseSchema,
179
+ SkinrComponentRunsSchema: () => SkinrComponentRunsSchema,
180
+ SkinrLayoutSchema: () => SkinrLayoutSchema,
181
+ SkinrLayoutSlotSchema: () => SkinrLayoutSlotSchema,
182
+ SkinrLicenseSchema: () => SkinrLicenseSchema,
183
+ SkinrSchema: () => SkinrSchema,
184
+ SkinrTierSchema: () => SkinrTierSchema,
185
+ SkyhookDetailReagentSchema: () => SkyhookDetailReagentSchema,
186
+ SkyhookDetailReinforcementTimerSchema: () => SkyhookDetailReinforcementTimerSchema,
187
+ SkyhookDetailSchema: () => SkyhookDetailSchema,
188
+ SkyhookDetailTheftVulnerabilitySchema: () => SkyhookDetailTheftVulnerabilitySchema,
189
+ SolarSystemInfoSchema: () => SolarSystemInfoSchema,
190
+ SovereigntyCampaignSchema: () => SovereigntyCampaignSchema,
191
+ SovereigntyHubDetailReagentBaySchema: () => SovereigntyHubDetailReagentBaySchema,
192
+ SovereigntyHubDetailReagentSchema: () => SovereigntyHubDetailReagentSchema,
193
+ SovereigntyHubDetailResourceSchema: () => SovereigntyHubDetailResourceSchema,
194
+ SovereigntyHubDetailResourcesSchema: () => SovereigntyHubDetailResourcesSchema,
195
+ SovereigntyHubDetailSchema: () => SovereigntyHubDetailSchema,
196
+ SovereigntyHubDetailTransportSchema: () => SovereigntyHubDetailTransportSchema,
197
+ SovereigntyHubDetailUpgradeSchema: () => SovereigntyHubDetailUpgradeSchema,
198
+ SovereigntyHubDetailVulnerabilityWindowSchema: () => SovereigntyHubDetailVulnerabilityWindowSchema,
199
+ SovereigntyHubSchema: () => SovereigntyHubSchema,
200
+ SovereigntySystemSchema: () => SovereigntySystemSchema,
201
+ SovereigntySystemStructureSchema: () => SovereigntySystemStructureSchema,
202
+ StandingSchema: () => StandingSchema,
203
+ StarInfoSchema: () => StarInfoSchema,
204
+ StargateInfoSchema: () => StargateInfoSchema,
205
+ StationInfoSchema: () => StationInfoSchema,
206
+ StructureInfoSchema: () => StructureInfoSchema,
207
+ StructureMarketOrderSchema: () => StructureMarketOrderSchema,
208
+ SystemJumpSchema: () => SystemJumpSchema,
209
+ SystemKillSchema: () => SystemKillSchema,
210
+ TypeInfoSchema: () => TypeInfoSchema,
211
+ WalletJournalSchema: () => WalletJournalSchema,
212
+ WalletTransactionSchema: () => WalletTransactionSchema,
213
+ WarSchema: () => WarSchema,
214
+ esiEnum: () => esiEnum,
215
+ esiResponse: () => esiResponse
216
+ });
217
+
218
+ // src/schemas/esiEnum.ts
219
+ import { z } from "zod";
220
+ function esiEnum(values) {
221
+ return z.union([
222
+ z.enum(values),
223
+ z.string()
224
+ ]);
225
+ }
226
+
227
+ // src/schemas/common.ts
228
+ import { z as z2 } from "zod";
229
+ var StandingSchema = z2.looseObject({
230
+ from_id: z2.number(),
231
+ from_type: esiEnum(["agent", "npc_corp", "faction"]),
232
+ standing: z2.number()
233
+ });
234
+ var RateLimitMetaSchema = z2.object({
235
+ remaining: z2.number(),
236
+ limit: z2.number(),
237
+ used: z2.number(),
238
+ group: z2.string().nullable()
239
+ });
240
+ var EsiResponseMetaSchema = z2.looseObject({
241
+ headers: z2.record(z2.string(), z2.string()),
242
+ fromCache: z2.boolean(),
243
+ stale: z2.boolean(),
244
+ cacheHitType: z2.enum(["spec-ttl", "etag-304", "stale-on-error"]).optional(),
245
+ warning: z2.object({
246
+ code: z2.number(),
247
+ message: z2.string()
248
+ }).optional(),
249
+ requestId: z2.string().optional(),
250
+ date: z2.string().optional(),
251
+ contentLanguage: z2.string().optional(),
252
+ rateLimit: RateLimitMetaSchema.optional(),
253
+ responseTimeMs: z2.number().optional(),
254
+ etag: z2.string().optional(),
255
+ pages: z2.number().optional(),
256
+ expires: z2.string().optional(),
257
+ errorLimitRemain: z2.number().optional(),
258
+ errorLimitReset: z2.number().optional()
259
+ });
260
+ function esiResponse(dataSchema) {
261
+ return z2.object({
262
+ data: dataSchema,
263
+ meta: EsiResponseMetaSchema
264
+ });
265
+ }
266
+
267
+ // src/schemas/access-lists.ts
268
+ import { z as z3 } from "zod";
269
+ var AccessListEntrySchema = z3.looseObject({
270
+ entity_id: z3.number(),
271
+ entity_type: esiEnum(["character", "corporation", "alliance"]),
272
+ access_type: esiEnum(["allowed", "blocked"])
273
+ });
274
+ var AccessListSchema = z3.looseObject({
275
+ access_list_id: z3.number(),
276
+ name: z3.string(),
277
+ entries: z3.array(AccessListEntrySchema)
278
+ });
279
+
280
+ // src/schemas/alliance.ts
281
+ import { z as z4 } from "zod";
282
+ var AllianceInfoSchema = z4.looseObject({
283
+ alliance_id: z4.number().optional(),
284
+ name: z4.string(),
285
+ ticker: z4.string(),
286
+ creator_id: z4.number(),
287
+ creator_corporation_id: z4.number(),
288
+ executor_corporation_id: z4.number().optional(),
289
+ date_founded: z4.string(),
290
+ faction_id: z4.number().optional()
291
+ });
292
+ var AllianceContactSchema = z4.looseObject({
293
+ contact_id: z4.number(),
294
+ contact_type: esiEnum(["character", "corporation", "alliance"]),
295
+ standing: z4.number(),
296
+ label_ids: z4.array(z4.number()).optional()
297
+ });
298
+ var AllianceContactLabelSchema = z4.looseObject({
299
+ label_id: z4.number(),
300
+ label_name: z4.string()
301
+ });
302
+ var AllianceIconSchema = z4.looseObject({
303
+ px64x64: z4.string().optional(),
304
+ px128x128: z4.string().optional()
305
+ });
306
+
307
+ // src/schemas/assets.ts
308
+ import { z as z5 } from "zod";
309
+ var CharacterAssetSchema = z5.looseObject({
310
+ item_id: z5.number(),
311
+ type_id: z5.number(),
312
+ quantity: z5.number(),
313
+ location_id: z5.number(),
314
+ location_type: esiEnum(["station", "solar_system", "item", "other"]),
315
+ location_flag: z5.string(),
316
+ is_singleton: z5.boolean(),
317
+ is_blueprint_copy: z5.boolean().optional()
318
+ });
319
+ var AssetLocationSchema = z5.looseObject({
320
+ item_id: z5.number(),
321
+ position: z5.looseObject({
322
+ x: z5.number(),
323
+ y: z5.number(),
324
+ z: z5.number()
325
+ })
326
+ });
327
+ var AssetNameSchema = z5.looseObject({
328
+ item_id: z5.number(),
329
+ name: z5.string()
330
+ });
331
+
332
+ // src/schemas/calendar.ts
333
+ import { z as z6 } from "zod";
334
+ var CalendarEventSchema = z6.looseObject({
335
+ event_id: z6.number().optional(),
336
+ event_date: z6.string().optional(),
337
+ title: z6.string().optional(),
338
+ importance: z6.number().optional(),
339
+ event_response: esiEnum([
340
+ "declined",
341
+ "not_responded",
342
+ "accepted",
343
+ "tentative"
344
+ ]).optional()
345
+ });
346
+ var CalendarEventDetailSchema = z6.looseObject({
347
+ event_id: z6.number(),
348
+ date: z6.string(),
349
+ title: z6.string(),
350
+ text: z6.string(),
351
+ owner_id: z6.number(),
352
+ owner_name: z6.string(),
353
+ owner_type: esiEnum([
354
+ "eve_server",
355
+ "corporation",
356
+ "faction",
357
+ "character",
358
+ "alliance"
359
+ ]),
360
+ duration: z6.number(),
361
+ importance: z6.number(),
362
+ response: z6.string()
363
+ });
364
+ var CalendarEventAttendeeSchema = z6.looseObject({
365
+ character_id: z6.number().optional(),
366
+ event_response: esiEnum([
367
+ "declined",
368
+ "not_responded",
369
+ "accepted",
370
+ "tentative"
371
+ ]).optional()
372
+ });
373
+
374
+ // src/schemas/character.ts
375
+ import { z as z7 } from "zod";
376
+ var CharacterInfoSchema = z7.looseObject({
377
+ character_id: z7.number().optional(),
378
+ name: z7.string(),
379
+ description: z7.string().optional(),
380
+ corporation_id: z7.number(),
381
+ alliance_id: z7.number().optional(),
382
+ faction_id: z7.number().optional(),
383
+ ancestry_id: z7.number().optional(),
384
+ bloodline_id: z7.number(),
385
+ race_id: z7.number(),
386
+ gender: esiEnum(["male", "female"]),
387
+ security_status: z7.number().optional(),
388
+ title: z7.string().optional(),
389
+ birthday: z7.string()
390
+ });
391
+ var CharacterPortraitSchema = z7.looseObject({
392
+ px64x64: z7.string().optional(),
393
+ px128x128: z7.string().optional(),
394
+ px256x256: z7.string().optional(),
395
+ px512x512: z7.string().optional()
396
+ });
397
+ var CharacterAttributesSchema = z7.looseObject({
398
+ charisma: z7.number(),
399
+ intelligence: z7.number(),
400
+ memory: z7.number(),
401
+ perception: z7.number(),
402
+ willpower: z7.number(),
403
+ bonus_remaps: z7.number().optional(),
404
+ last_remap_date: z7.string().optional(),
405
+ accrued_remap_cooldown_date: z7.string().optional()
406
+ });
407
+ var AgentResearchSchema = z7.looseObject({
408
+ agent_id: z7.number(),
409
+ skill_type_id: z7.number(),
410
+ started_at: z7.string(),
411
+ points_per_day: z7.number(),
412
+ remainder_points: z7.number()
413
+ });
414
+ var BlueprintSchema = z7.looseObject({
415
+ item_id: z7.number(),
416
+ type_id: z7.number(),
417
+ location_id: z7.number(),
418
+ location_flag: z7.string(),
419
+ quantity: z7.number(),
420
+ time_efficiency: z7.number(),
421
+ material_efficiency: z7.number(),
422
+ runs: z7.number()
423
+ });
424
+ var CorporationHistorySchema = z7.looseObject({
425
+ corporation_id: z7.number(),
426
+ record_id: z7.number(),
427
+ start_date: z7.string(),
428
+ is_deleted: z7.boolean().optional()
429
+ });
430
+ var JumpFatigueSchema = z7.looseObject({
431
+ jump_fatigue_expire_date: z7.string().optional(),
432
+ last_jump_date: z7.string().optional(),
433
+ last_update_date: z7.string().optional()
434
+ });
435
+ var MedalSchema = z7.looseObject({
436
+ medal_id: z7.number(),
437
+ title: z7.string(),
438
+ description: z7.string(),
439
+ date: z7.string(),
440
+ issuer_id: z7.number(),
441
+ corporation_id: z7.number(),
442
+ reason: z7.string(),
443
+ status: esiEnum(["private", "public"]),
444
+ graphics: z7.array(
445
+ z7.looseObject({
446
+ part: z7.number(),
447
+ layer: z7.number(),
448
+ graphic: z7.string(),
449
+ color: z7.number().optional()
450
+ })
451
+ )
452
+ });
453
+ var NotificationSchema = z7.looseObject({
454
+ notification_id: z7.number(),
455
+ type: z7.string(),
456
+ sender_id: z7.number(),
457
+ sender_type: esiEnum([
458
+ "character",
459
+ "corporation",
460
+ "alliance",
461
+ "faction",
462
+ "other"
463
+ ]),
464
+ timestamp: z7.string(),
465
+ text: z7.string().optional(),
466
+ is_read: z7.boolean().optional()
467
+ });
468
+ var CharacterTitleSchema = z7.looseObject({
469
+ title_id: z7.number().optional(),
470
+ name: z7.string().optional()
471
+ });
472
+ var CharacterAffiliationSchema = z7.looseObject({
473
+ character_id: z7.number(),
474
+ corporation_id: z7.number(),
475
+ alliance_id: z7.number().optional(),
476
+ faction_id: z7.number().optional()
477
+ });
478
+ var ContactNotificationSchema = z7.looseObject({
479
+ notification_id: z7.number(),
480
+ sender_character_id: z7.number(),
481
+ message: z7.string(),
482
+ send_date: z7.string(),
483
+ standing_level: z7.number()
484
+ });
485
+ var CharacterRoleSchema = z7.looseObject({
486
+ roles: z7.array(z7.string()).optional(),
487
+ roles_at_hq: z7.array(z7.string()).optional(),
488
+ roles_at_base: z7.array(z7.string()).optional(),
489
+ roles_at_other: z7.array(z7.string()).optional()
490
+ });
491
+
492
+ // src/schemas/clones.ts
493
+ import { z as z8 } from "zod";
494
+ var CloneInfoSchema = z8.looseObject({
495
+ home_location: z8.looseObject({
496
+ location_id: z8.number().optional(),
497
+ location_type: esiEnum(["station", "structure"]).optional()
498
+ }).optional(),
499
+ jump_clones: z8.array(
500
+ z8.looseObject({
501
+ jump_clone_id: z8.number(),
502
+ location_id: z8.number(),
503
+ location_type: esiEnum(["station", "structure"]),
504
+ implants: z8.array(z8.number()),
505
+ name: z8.string().optional()
506
+ })
507
+ ),
508
+ last_clone_jump_date: z8.string().optional(),
509
+ last_station_change_date: z8.string().optional()
510
+ });
511
+
512
+ // src/schemas/contacts.ts
513
+ import { z as z9 } from "zod";
514
+ var ContactSchema = z9.looseObject({
515
+ contact_id: z9.number(),
516
+ contact_type: esiEnum(["character", "corporation", "alliance", "faction"]),
517
+ standing: z9.number(),
518
+ label_ids: z9.array(z9.number()).optional(),
519
+ is_blocked: z9.boolean().optional(),
520
+ is_watched: z9.boolean().optional()
521
+ });
522
+ var ContactLabelSchema = z9.looseObject({
523
+ label_id: z9.number(),
524
+ label_name: z9.string()
525
+ });
526
+
527
+ // src/schemas/contracts.ts
528
+ import { z as z10 } from "zod";
529
+ var ContractTypeSchema = esiEnum([
530
+ "unknown",
531
+ "item_exchange",
532
+ "auction",
533
+ "courier",
534
+ "loan"
535
+ ]);
536
+ var ContractSchema = z10.looseObject({
537
+ contract_id: z10.number(),
538
+ issuer_id: z10.number(),
539
+ issuer_corporation_id: z10.number(),
540
+ assignee_id: z10.number(),
541
+ acceptor_id: z10.number(),
542
+ start_location_id: z10.number().optional(),
543
+ end_location_id: z10.number().optional(),
544
+ type: ContractTypeSchema,
545
+ status: esiEnum([
546
+ "outstanding",
547
+ "in_progress",
548
+ "finished_issuer",
549
+ "finished_contractor",
550
+ "finished",
551
+ "cancelled",
552
+ "rejected",
553
+ "failed",
554
+ "deleted",
555
+ "reversed"
556
+ ]),
557
+ title: z10.string().optional(),
558
+ for_corporation: z10.boolean(),
559
+ availability: esiEnum(["public", "personal", "corporation", "alliance"]),
560
+ date_issued: z10.string(),
561
+ date_expired: z10.string(),
562
+ date_accepted: z10.string().optional(),
563
+ date_completed: z10.string().optional(),
564
+ days_to_complete: z10.number().optional(),
565
+ price: z10.number().optional(),
566
+ reward: z10.number().optional(),
567
+ collateral: z10.number().optional(),
568
+ buyout: z10.number().optional(),
569
+ volume: z10.number().optional()
570
+ });
571
+ var PublicContractSchema = z10.looseObject({
572
+ contract_id: z10.number(),
573
+ issuer_id: z10.number(),
574
+ issuer_corporation_id: z10.number(),
575
+ start_location_id: z10.number().optional(),
576
+ end_location_id: z10.number().optional(),
577
+ type: ContractTypeSchema,
578
+ title: z10.string().optional(),
579
+ for_corporation: z10.boolean().optional(),
580
+ date_issued: z10.string(),
581
+ date_expired: z10.string(),
582
+ days_to_complete: z10.number().optional(),
583
+ price: z10.number().optional(),
584
+ reward: z10.number().optional(),
585
+ collateral: z10.number().optional(),
586
+ buyout: z10.number().optional(),
587
+ volume: z10.number().optional()
588
+ });
589
+ var ContractItemSchema = z10.looseObject({
590
+ record_id: z10.number(),
591
+ type_id: z10.number(),
592
+ quantity: z10.number(),
593
+ raw_quantity: z10.number().optional(),
594
+ is_singleton: z10.boolean(),
595
+ is_included: z10.boolean()
596
+ });
597
+ var PublicContractItemSchema = z10.looseObject({
598
+ record_id: z10.number(),
599
+ type_id: z10.number(),
600
+ quantity: z10.number(),
601
+ is_included: z10.boolean(),
602
+ item_id: z10.number().optional(),
603
+ is_blueprint_copy: z10.boolean().optional(),
604
+ material_efficiency: z10.number().optional(),
605
+ time_efficiency: z10.number().optional(),
606
+ runs: z10.number().optional()
607
+ });
608
+ var ContractBidSchema = z10.looseObject({
609
+ bid_id: z10.number(),
610
+ bidder_id: z10.number(),
611
+ date_bid: z10.string(),
612
+ amount: z10.number()
613
+ });
614
+ var PublicContractBidSchema = z10.looseObject({
615
+ bid_id: z10.number(),
616
+ date_bid: z10.string(),
617
+ amount: z10.number()
618
+ });
619
+
620
+ // src/schemas/cosmetics.ts
621
+ import { z as z11 } from "zod";
622
+ var SkinrLicenseSchema = z11.looseObject({
623
+ skinr_id: z11.string(),
624
+ activated: z11.boolean(),
625
+ unactivated: z11.number()
626
+ });
627
+ var CharacterSkinrSchema = z11.looseObject({
628
+ licenses: z11.array(SkinrLicenseSchema)
629
+ });
630
+ var SkinrComponentRunsSchema = z11.looseObject({
631
+ remaining: z11.number().optional(),
632
+ unlimited: z11.boolean().optional()
633
+ });
634
+ var SkinrComponentLicenseSchema = z11.looseObject({
635
+ component_id: z11.number(),
636
+ type: esiEnum(["nanocoating", "pattern"]),
637
+ runs: SkinrComponentRunsSchema
638
+ });
639
+ var CharacterSkinrComponentsSchema = z11.looseObject({
640
+ licenses: z11.array(SkinrComponentLicenseSchema)
641
+ });
642
+ var SkinrTierSchema = z11.looseObject({
643
+ level: z11.number()
644
+ });
645
+ var SkinrLayoutSlotSchema = z11.looseObject({});
646
+ var SkinrLayoutSchema = z11.looseObject({
647
+ slots: z11.array(SkinrLayoutSlotSchema),
648
+ pattern_blend_mode: esiEnum([
649
+ "normal",
650
+ "subtract",
651
+ "exclusion",
652
+ "nested",
653
+ "nested_inverted"
654
+ ])
655
+ });
656
+ var SkinrSchema = z11.looseObject({
657
+ id: z11.string(),
658
+ name: z11.string(),
659
+ creator_id: z11.number(),
660
+ ship_type_id: z11.number(),
661
+ line: z11.string().optional(),
662
+ tier: SkinrTierSchema,
663
+ layout: SkinrLayoutSchema
664
+ });
665
+
666
+ // src/schemas/corporation.ts
667
+ import { z as z12 } from "zod";
668
+ var CorporationInfoSchema = z12.looseObject({
669
+ corporation_id: z12.number().optional(),
670
+ name: z12.string(),
671
+ ticker: z12.string(),
672
+ description: z12.string().optional(),
673
+ url: z12.string().optional(),
674
+ alliance_id: z12.number().optional(),
675
+ ceo_id: z12.number(),
676
+ creator_id: z12.number(),
677
+ date_founded: z12.string().optional(),
678
+ faction_id: z12.number().optional(),
679
+ home_station_id: z12.number().optional(),
680
+ member_count: z12.number(),
681
+ shares: z12.number().optional(),
682
+ tax_rate: z12.number(),
683
+ war_eligible: z12.boolean().optional()
684
+ });
685
+ var CorporationAllianceHistorySchema = z12.looseObject({
686
+ alliance_id: z12.number().optional(),
687
+ is_deleted: z12.boolean().optional(),
688
+ record_id: z12.number(),
689
+ start_date: z12.string()
690
+ });
691
+ var CorporationMedalSchema = z12.looseObject({
692
+ medal_id: z12.number(),
693
+ title: z12.string(),
694
+ description: z12.string(),
695
+ creator_id: z12.number(),
696
+ created_at: z12.string()
697
+ });
698
+ var CorporationStarbaseSchema = z12.looseObject({
699
+ starbase_id: z12.number(),
700
+ type_id: z12.number(),
701
+ system_id: z12.number(),
702
+ state: esiEnum([
703
+ "offline",
704
+ "online",
705
+ "onlining",
706
+ "reinforced",
707
+ "unanchoring"
708
+ ]).optional(),
709
+ moon_id: z12.number().optional(),
710
+ onlined_since: z12.string().optional(),
711
+ reinforced_until: z12.string().optional(),
712
+ unanchor_at: z12.string().optional()
713
+ });
714
+ var CorporationDivisionsSchema = z12.looseObject({
715
+ hangar: z12.array(
716
+ z12.looseObject({
717
+ division: z12.number().optional(),
718
+ name: z12.string().optional()
719
+ })
720
+ ).optional(),
721
+ wallet: z12.array(
722
+ z12.looseObject({
723
+ division: z12.number().optional(),
724
+ name: z12.string().optional()
725
+ })
726
+ ).optional()
727
+ });
728
+ var CorporationFacilitySchema = z12.looseObject({
729
+ facility_id: z12.number(),
730
+ type_id: z12.number(),
731
+ system_id: z12.number()
732
+ });
733
+ var CorporationIssuedMedalSchema = z12.looseObject({
734
+ medal_id: z12.number(),
735
+ character_id: z12.number(),
736
+ issued_at: z12.string(),
737
+ issuer_id: z12.number(),
738
+ reason: z12.string(),
739
+ status: esiEnum(["private", "public"])
740
+ });
741
+ var CorporationMemberTitleSchema = z12.looseObject({
742
+ character_id: z12.number(),
743
+ titles: z12.array(z12.number())
744
+ });
745
+ var CorporationMemberTrackingSchema = z12.looseObject({
746
+ character_id: z12.number(),
747
+ start_date: z12.string().optional(),
748
+ base_id: z12.number().optional(),
749
+ location_id: z12.number().optional(),
750
+ logoff_date: z12.string().optional(),
751
+ logon_date: z12.string().optional(),
752
+ online: z12.boolean().optional(),
753
+ ship_type_id: z12.number().optional()
754
+ });
755
+ var CorporationMemberRoleSchema = z12.looseObject({
756
+ character_id: z12.number(),
757
+ roles: z12.array(z12.string()).optional(),
758
+ grantable_roles: z12.array(z12.string()).optional(),
759
+ roles_at_hq: z12.array(z12.string()).optional(),
760
+ grantable_roles_at_hq: z12.array(z12.string()).optional(),
761
+ roles_at_base: z12.array(z12.string()).optional(),
762
+ grantable_roles_at_base: z12.array(z12.string()).optional(),
763
+ roles_at_other: z12.array(z12.string()).optional(),
764
+ grantable_roles_at_other: z12.array(z12.string()).optional()
765
+ });
766
+ var CorporationRoleHistorySchema = z12.looseObject({
767
+ character_id: z12.number(),
768
+ changed_at: z12.string(),
769
+ issuer_id: z12.number(),
770
+ role_type: z12.string(),
771
+ old_roles: z12.array(z12.string()),
772
+ new_roles: z12.array(z12.string())
773
+ });
774
+ var CorporationShareholderSchema = z12.looseObject({
775
+ shareholder_id: z12.number(),
776
+ shareholder_type: esiEnum(["character", "corporation"]),
777
+ share_count: z12.number()
778
+ });
779
+ var CorporationStarbaseDetailSchema = z12.looseObject({
780
+ fuels: z12.array(
781
+ z12.looseObject({
782
+ type_id: z12.number(),
783
+ quantity: z12.number()
784
+ })
785
+ ).optional(),
786
+ allow_alliance_members: z12.boolean(),
787
+ allow_corporation_members: z12.boolean(),
788
+ anchor: z12.string(),
789
+ attack_if_at_war: z12.boolean(),
790
+ attack_if_other_security_status_dropping: z12.boolean(),
791
+ attack_security_status_threshold: z12.number().optional(),
792
+ attack_standing_threshold: z12.number().optional(),
793
+ fuel_bay_take: z12.string(),
794
+ fuel_bay_view: z12.string(),
795
+ offline: z12.string(),
796
+ online: z12.string(),
797
+ unanchor: z12.string(),
798
+ use_alliance_standings: z12.boolean()
799
+ });
800
+ var CorporationStructureSchema = z12.looseObject({
801
+ structure_id: z12.number(),
802
+ corporation_id: z12.number(),
803
+ type_id: z12.number(),
804
+ system_id: z12.number(),
805
+ profile_id: z12.number(),
806
+ services: z12.array(
807
+ z12.looseObject({
808
+ name: z12.string(),
809
+ state: esiEnum(["online", "offline", "cleanup"])
810
+ })
811
+ ).optional(),
812
+ fuel_expires: z12.string().optional(),
813
+ name: z12.string().optional(),
814
+ state: z12.string(),
815
+ state_timer_start: z12.string().optional(),
816
+ state_timer_end: z12.string().optional(),
817
+ unanchors_at: z12.string().optional(),
818
+ reinforce_hour: z12.number().optional(),
819
+ next_reinforce_hour: z12.number().optional(),
820
+ next_reinforce_apply: z12.string().optional()
821
+ });
822
+ var CorporationTitleSchema = z12.looseObject({
823
+ title_id: z12.number().optional(),
824
+ name: z12.string().optional(),
825
+ roles: z12.array(z12.string()).optional(),
826
+ grantable_roles: z12.array(z12.string()).optional(),
827
+ roles_at_hq: z12.array(z12.string()).optional(),
828
+ grantable_roles_at_hq: z12.array(z12.string()).optional(),
829
+ roles_at_base: z12.array(z12.string()).optional(),
830
+ grantable_roles_at_base: z12.array(z12.string()).optional(),
831
+ roles_at_other: z12.array(z12.string()).optional(),
832
+ grantable_roles_at_other: z12.array(z12.string()).optional()
833
+ });
834
+ var CorporationIconSchema = z12.looseObject({
835
+ px64x64: z12.string().optional(),
836
+ px128x128: z12.string().optional(),
837
+ px256x256: z12.string().optional()
838
+ });
839
+ var CorporationWalletDivisionSchema = z12.looseObject({
840
+ division: z12.number(),
841
+ balance: z12.number()
842
+ });
843
+ var ContainerLogSchema = z12.looseObject({
844
+ logged_at: z12.string(),
845
+ container_id: z12.number(),
846
+ container_type_id: z12.number(),
847
+ character_id: z12.number(),
848
+ location_id: z12.number(),
849
+ location_flag: z12.string(),
850
+ action: z12.string(),
851
+ password_type: esiEnum(["config", "general"]).optional(),
852
+ type_id: z12.number().optional(),
853
+ quantity: z12.number().optional(),
854
+ old_config_bitmask: z12.number().optional(),
855
+ new_config_bitmask: z12.number().optional()
856
+ });
857
+
858
+ // src/schemas/corporation-projects.ts
859
+ import { z as z13 } from "zod";
860
+ var CorporationProjectCursorSchema = z13.looseObject({
861
+ before: z13.string().optional(),
862
+ after: z13.string().optional()
863
+ });
864
+ var ProjectStateSchema = esiEnum([
865
+ "Unspecified",
866
+ "Active",
867
+ "Closed",
868
+ "Completed",
869
+ "Expired",
870
+ "Deleted"
871
+ ]);
872
+ var ProjectProgressSchema = z13.looseObject({
873
+ current: z13.number(),
874
+ desired: z13.number()
875
+ });
876
+ var ProjectRewardSchema = z13.looseObject({
877
+ initial: z13.number(),
878
+ remaining: z13.number()
879
+ });
880
+ var CorporationProjectSummarySchema = z13.looseObject({
881
+ id: z13.string(),
882
+ name: z13.string(),
883
+ state: ProjectStateSchema,
884
+ last_modified: z13.string(),
885
+ progress: ProjectProgressSchema,
886
+ reward: ProjectRewardSchema.optional()
887
+ });
888
+ var CorporationProjectsListingSchema = z13.looseObject({
889
+ cursor: CorporationProjectCursorSchema.optional(),
890
+ projects: z13.array(CorporationProjectSummarySchema)
891
+ });
892
+ var CorporationProjectSchema = z13.looseObject({
893
+ id: z13.string(),
894
+ name: z13.string(),
895
+ state: ProjectStateSchema,
896
+ last_modified: z13.string(),
897
+ progress: ProjectProgressSchema,
898
+ reward: ProjectRewardSchema.optional(),
899
+ creator: z13.looseObject({
900
+ id: z13.number(),
901
+ name: z13.string()
902
+ }),
903
+ details: z13.looseObject({
904
+ career: esiEnum([
905
+ "Unspecified",
906
+ "Explorer",
907
+ "Industrialist",
908
+ "Enforcer",
909
+ "Soldier of Fortune"
910
+ ]),
911
+ created: z13.string(),
912
+ description: z13.string(),
913
+ expires: z13.string().optional(),
914
+ finished: z13.string().optional()
915
+ }),
916
+ /**
917
+ * What counts as a contribution. ESI sends an object with a single key
918
+ * naming the contribution method (`manual`, `deliver_item`,
919
+ * `destroy_ship`, ...) whose value holds that method's parameters.
920
+ */
921
+ configuration: z13.record(z13.string(), z13.unknown()),
922
+ contribution: z13.looseObject({
923
+ participation_limit: z13.number().optional(),
924
+ reward_per_contribution: z13.number().optional(),
925
+ submission_limit: z13.number().optional(),
926
+ submission_multiplier: z13.number().optional()
927
+ }).optional()
928
+ });
929
+ var CorporationProjectContributionSchema = z13.looseObject({
930
+ contributed: z13.number(),
931
+ last_modified: z13.string().optional()
932
+ });
933
+ var CorporationProjectContributorSchema = z13.looseObject({
934
+ id: z13.number(),
935
+ name: z13.string(),
936
+ contributed: z13.number()
937
+ });
938
+ var CorporationProjectContributorsListingSchema = z13.looseObject({
939
+ contributors: z13.array(CorporationProjectContributorSchema),
940
+ cursor: CorporationProjectCursorSchema.optional()
941
+ });
942
+
943
+ // src/schemas/dogma.ts
944
+ import { z as z14 } from "zod";
945
+ var DogmaAttributeSchema = z14.looseObject({
946
+ attribute_id: z14.number(),
947
+ name: z14.string().optional(),
948
+ description: z14.string().optional(),
949
+ icon_id: z14.number().optional(),
950
+ default_value: z14.number().optional(),
951
+ published: z14.boolean().optional(),
952
+ display_name: z14.string().optional(),
953
+ unit_id: z14.number().optional(),
954
+ stackable: z14.boolean().optional(),
955
+ high_is_good: z14.boolean().optional()
956
+ });
957
+ var DogmaEffectSchema = z14.looseObject({
958
+ effect_id: z14.number(),
959
+ name: z14.string().optional(),
960
+ description: z14.string().optional(),
961
+ icon_id: z14.number().optional(),
962
+ display_name: z14.string().optional(),
963
+ published: z14.boolean().optional(),
964
+ effect_category: z14.number().optional(),
965
+ is_assistance: z14.boolean().optional(),
966
+ is_offensive: z14.boolean().optional(),
967
+ is_warp_safe: z14.boolean().optional(),
968
+ disallow_auto_repeat: z14.boolean().optional(),
969
+ discharge_attribute_id: z14.number().optional(),
970
+ duration_attribute_id: z14.number().optional(),
971
+ electronic_chance: z14.boolean().optional(),
972
+ falloff_attribute_id: z14.number().optional(),
973
+ modifiers: z14.array(
974
+ z14.looseObject({
975
+ domain: z14.string().optional(),
976
+ effect_id: z14.number().optional(),
977
+ func: z14.string(),
978
+ modified_attribute_id: z14.number().optional(),
979
+ modifying_attribute_id: z14.number().optional(),
980
+ operator: z14.number().optional()
981
+ })
982
+ ).optional(),
983
+ post_expression: z14.number().optional(),
984
+ pre_expression: z14.number().optional(),
985
+ range_attribute_id: z14.number().optional(),
986
+ range_chance: z14.boolean().optional(),
987
+ tracking_speed_attribute_id: z14.number().optional()
988
+ });
989
+ var DogmaDynamicItemSchema = z14.looseObject({
990
+ created_by: z14.number(),
991
+ dogma_attributes: z14.array(
992
+ z14.looseObject({
993
+ attribute_id: z14.number(),
994
+ value: z14.number()
995
+ })
996
+ ),
997
+ dogma_effects: z14.array(
998
+ z14.looseObject({
999
+ effect_id: z14.number(),
1000
+ is_default: z14.boolean()
1001
+ })
1002
+ ),
1003
+ mutator_type_id: z14.number(),
1004
+ source_type_id: z14.number()
1005
+ });
1006
+
1007
+ // src/schemas/faction-warfare.ts
1008
+ import { z as z15 } from "zod";
1009
+ var FactionWarfareStatsSchema = z15.looseObject({
1010
+ faction_id: z15.number(),
1011
+ pilots: z15.number(),
1012
+ systems_controlled: z15.number(),
1013
+ kills: z15.looseObject({
1014
+ yesterday: z15.number(),
1015
+ last_week: z15.number(),
1016
+ total: z15.number()
1017
+ }),
1018
+ victory_points: z15.looseObject({
1019
+ yesterday: z15.number(),
1020
+ last_week: z15.number(),
1021
+ total: z15.number()
1022
+ })
1023
+ });
1024
+ var FactionWarfareCharacterStatsSchema = z15.looseObject({
1025
+ faction_id: z15.number().optional(),
1026
+ enlisted_on: z15.string().optional(),
1027
+ current_rank: z15.number().optional(),
1028
+ highest_rank: z15.number().optional(),
1029
+ kills: z15.looseObject({
1030
+ yesterday: z15.number(),
1031
+ last_week: z15.number(),
1032
+ total: z15.number()
1033
+ }),
1034
+ victory_points: z15.looseObject({
1035
+ yesterday: z15.number(),
1036
+ last_week: z15.number(),
1037
+ total: z15.number()
1038
+ })
1039
+ });
1040
+ var FactionWarfareSystemSchema = z15.looseObject({
1041
+ solar_system_id: z15.number(),
1042
+ owner_faction_id: z15.number(),
1043
+ occupier_faction_id: z15.number(),
1044
+ contested: esiEnum(["captured", "contested", "uncontested", "vulnerable"]),
1045
+ victory_points: z15.number(),
1046
+ victory_points_threshold: z15.number()
1047
+ });
1048
+ var FactionWarfareWarSchema = z15.looseObject({
1049
+ faction_id: z15.number(),
1050
+ against_id: z15.number()
1051
+ });
1052
+ function leaderboardSchema(entry) {
1053
+ const rankings = z15.looseObject({
1054
+ yesterday: z15.array(entry),
1055
+ last_week: z15.array(entry),
1056
+ active_total: z15.array(entry)
1057
+ });
1058
+ return z15.looseObject({ kills: rankings, victory_points: rankings });
1059
+ }
1060
+ var FactionWarfareFactionLeaderboardSchema = leaderboardSchema(
1061
+ z15.looseObject({
1062
+ amount: z15.number().optional(),
1063
+ faction_id: z15.number().optional()
1064
+ })
1065
+ );
1066
+ var FactionWarfareCharacterLeaderboardSchema = leaderboardSchema(
1067
+ z15.looseObject({
1068
+ amount: z15.number().optional(),
1069
+ character_id: z15.number().optional()
1070
+ })
1071
+ );
1072
+ var FactionWarfareCorporationLeaderboardSchema = leaderboardSchema(
1073
+ z15.looseObject({
1074
+ amount: z15.number().optional(),
1075
+ corporation_id: z15.number().optional()
1076
+ })
1077
+ );
1078
+ var FactionWarfareLeaderboardSchema = leaderboardSchema(
1079
+ z15.looseObject({
1080
+ amount: z15.number().optional(),
1081
+ faction_id: z15.number().optional(),
1082
+ character_id: z15.number().optional(),
1083
+ corporation_id: z15.number().optional()
1084
+ })
1085
+ );
1086
+ var FactionWarfareCorporationStatsSchema = z15.looseObject({
1087
+ faction_id: z15.number().optional(),
1088
+ enlisted_on: z15.string().optional(),
1089
+ pilots: z15.number().optional(),
1090
+ kills: z15.looseObject({
1091
+ yesterday: z15.number(),
1092
+ last_week: z15.number(),
1093
+ total: z15.number()
1094
+ }),
1095
+ victory_points: z15.looseObject({
1096
+ yesterday: z15.number(),
1097
+ last_week: z15.number(),
1098
+ total: z15.number()
1099
+ })
1100
+ });
1101
+
1102
+ // src/schemas/fittings.ts
1103
+ import { z as z16 } from "zod";
1104
+ var FittingSchema = z16.looseObject({
1105
+ fitting_id: z16.number(),
1106
+ name: z16.string(),
1107
+ description: z16.string(),
1108
+ ship_type_id: z16.number(),
1109
+ items: z16.array(
1110
+ z16.looseObject({
1111
+ type_id: z16.number(),
1112
+ flag: z16.union([z16.number(), z16.string()]),
1113
+ quantity: z16.number()
1114
+ })
1115
+ )
1116
+ });
1117
+
1118
+ // src/schemas/fleet.ts
1119
+ import { z as z17 } from "zod";
1120
+ var FleetInfoSchema = z17.looseObject({
1121
+ fleet_id: z17.number().optional(),
1122
+ fleet_boss_id: z17.number().optional(),
1123
+ is_free_move: z17.boolean(),
1124
+ is_registered: z17.boolean(),
1125
+ is_voice_enabled: z17.boolean(),
1126
+ motd: z17.string()
1127
+ });
1128
+ var FleetMemberSchema = z17.looseObject({
1129
+ character_id: z17.number(),
1130
+ ship_type_id: z17.number(),
1131
+ wing_id: z17.number(),
1132
+ squad_id: z17.number(),
1133
+ role: esiEnum([
1134
+ "fleet_commander",
1135
+ "wing_commander",
1136
+ "squad_commander",
1137
+ "squad_member"
1138
+ ]),
1139
+ role_name: z17.string(),
1140
+ join_time: z17.string(),
1141
+ takes_fleet_warp: z17.boolean(),
1142
+ solar_system_id: z17.number(),
1143
+ station_id: z17.number().optional()
1144
+ });
1145
+ var FleetWingSchema = z17.looseObject({
1146
+ id: z17.number(),
1147
+ name: z17.string(),
1148
+ squads: z17.array(
1149
+ z17.looseObject({
1150
+ id: z17.number(),
1151
+ name: z17.string()
1152
+ })
1153
+ )
1154
+ });
1155
+ var CharacterFleetInfoSchema = z17.looseObject({
1156
+ fleet_id: z17.number(),
1157
+ fleet_boss_id: z17.number(),
1158
+ role: esiEnum([
1159
+ "fleet_commander",
1160
+ "wing_commander",
1161
+ "squad_commander",
1162
+ "squad_member"
1163
+ ]),
1164
+ squad_id: z17.number(),
1165
+ wing_id: z17.number()
1166
+ });
1167
+
1168
+ // src/schemas/freelance-jobs.ts
1169
+ import { z as z18 } from "zod";
1170
+ var EsiCursorSchema = z18.looseObject({
1171
+ before: z18.string().optional(),
1172
+ after: z18.string().optional()
1173
+ });
1174
+ var ParticipationStateSchema = esiEnum([
1175
+ "Unspecified",
1176
+ "Committed",
1177
+ "Kicked",
1178
+ "Resigned"
1179
+ ]);
1180
+ var FreelanceJobSummarySchema = z18.looseObject({
1181
+ id: z18.string(),
1182
+ name: z18.string(),
1183
+ state: z18.string(),
1184
+ last_modified: z18.string(),
1185
+ progress: z18.looseObject({
1186
+ current: z18.number(),
1187
+ desired: z18.number()
1188
+ }),
1189
+ reward: z18.looseObject({
1190
+ initial: z18.number(),
1191
+ remaining: z18.number()
1192
+ }).optional()
1193
+ });
1194
+ var FreelanceJobsListingSchema = z18.looseObject({
1195
+ cursor: EsiCursorSchema.optional(),
1196
+ freelance_jobs: z18.array(FreelanceJobSummarySchema)
1197
+ });
1198
+ var FreelanceJobDetailSchema = z18.looseObject({
1199
+ id: z18.string(),
1200
+ name: z18.string(),
1201
+ state: z18.string(),
1202
+ last_modified: z18.string(),
1203
+ progress: z18.looseObject({
1204
+ current: z18.number(),
1205
+ desired: z18.number()
1206
+ }),
1207
+ reward: z18.looseObject({
1208
+ initial: z18.number(),
1209
+ remaining: z18.number()
1210
+ }).optional(),
1211
+ details: z18.looseObject({
1212
+ description: z18.string(),
1213
+ career: z18.string(),
1214
+ created: z18.string(),
1215
+ expires: z18.string().optional(),
1216
+ finished: z18.string().optional(),
1217
+ creator: z18.looseObject({
1218
+ character: z18.looseObject({
1219
+ id: z18.number(),
1220
+ name: z18.string()
1221
+ }),
1222
+ corporation: z18.looseObject({
1223
+ id: z18.number(),
1224
+ name: z18.string()
1225
+ })
1226
+ })
1227
+ }),
1228
+ configuration: z18.looseObject({
1229
+ version: z18.number(),
1230
+ parameters: z18.record(z18.string(), z18.unknown()),
1231
+ method: z18.string()
1232
+ }),
1233
+ contribution: z18.looseObject({
1234
+ max_committed_participants: z18.number(),
1235
+ contribution_per_participant_limit: z18.number().optional(),
1236
+ reward_per_contribution: z18.number().optional(),
1237
+ submission_limit: z18.number().optional(),
1238
+ submission_multiplier: z18.number().optional()
1239
+ }).optional(),
1240
+ access_and_visibility: z18.looseObject({
1241
+ acl_protected: z18.boolean(),
1242
+ broadcast_locations: z18.array(
1243
+ z18.looseObject({
1244
+ id: z18.number(),
1245
+ name: z18.string()
1246
+ })
1247
+ ).optional(),
1248
+ restrictions: z18.looseObject({
1249
+ minimum_age: z18.number().optional(),
1250
+ maximum_age: z18.number().optional()
1251
+ }).optional()
1252
+ })
1253
+ });
1254
+ var CharacterFreelanceJobsListingSchema = z18.looseObject({
1255
+ cursor: EsiCursorSchema.optional(),
1256
+ freelance_jobs: z18.array(FreelanceJobSummarySchema)
1257
+ });
1258
+ var FreelanceJobParticipationSchema = z18.looseObject({
1259
+ state: ParticipationStateSchema,
1260
+ contributed: z18.number(),
1261
+ last_modified: z18.string()
1262
+ });
1263
+ var CorporationFreelanceJobsListingSchema = z18.looseObject({
1264
+ cursor: EsiCursorSchema.optional(),
1265
+ freelance_jobs: z18.array(FreelanceJobSummarySchema)
1266
+ });
1267
+ var FreelanceJobParticipantSchema = z18.looseObject({
1268
+ id: z18.number(),
1269
+ name: z18.string(),
1270
+ state: ParticipationStateSchema,
1271
+ contributed: z18.number()
1272
+ });
1273
+ var FreelanceJobParticipantsListingSchema = z18.looseObject({
1274
+ cursor: EsiCursorSchema.optional(),
1275
+ participants: z18.array(FreelanceJobParticipantSchema)
1276
+ });
1277
+
1278
+ // src/schemas/incursions.ts
1279
+ import { z as z19 } from "zod";
1280
+ var IncursionSchema = z19.looseObject({
1281
+ type: z19.string(),
1282
+ state: esiEnum(["withdrawing", "mobilizing", "established"]),
1283
+ staging_solar_system_id: z19.number(),
1284
+ constellation_id: z19.number(),
1285
+ infested_solar_systems: z19.array(z19.number()),
1286
+ has_boss: z19.boolean(),
1287
+ faction_id: z19.number(),
1288
+ influence: z19.number()
1289
+ });
1290
+
1291
+ // src/schemas/industry.ts
1292
+ import { z as z20 } from "zod";
1293
+ var IndustryJobStatusSchema = esiEnum([
1294
+ "active",
1295
+ "cancelled",
1296
+ "delivered",
1297
+ "paused",
1298
+ "ready",
1299
+ "reverted"
1300
+ ]);
1301
+ var IndustryJobSchema = z20.looseObject({
1302
+ job_id: z20.number(),
1303
+ installer_id: z20.number(),
1304
+ facility_id: z20.number(),
1305
+ station_id: z20.number(),
1306
+ activity_id: z20.number(),
1307
+ blueprint_id: z20.number(),
1308
+ blueprint_type_id: z20.number(),
1309
+ blueprint_location_id: z20.number(),
1310
+ output_location_id: z20.number(),
1311
+ runs: z20.number(),
1312
+ cost: z20.number().optional(),
1313
+ licensed_runs: z20.number().optional(),
1314
+ probability: z20.number().optional(),
1315
+ product_type_id: z20.number().optional(),
1316
+ status: IndustryJobStatusSchema,
1317
+ duration: z20.number(),
1318
+ start_date: z20.string(),
1319
+ end_date: z20.string(),
1320
+ pause_date: z20.string().optional(),
1321
+ completed_date: z20.string().optional(),
1322
+ completed_character_id: z20.number().optional(),
1323
+ successful_runs: z20.number().optional()
1324
+ });
1325
+ var CorporationIndustryJobSchema = IndustryJobSchema.omit({
1326
+ station_id: true
1327
+ }).extend({
1328
+ location_id: z20.number()
1329
+ });
1330
+ var MiningLedgerEntrySchema = z20.looseObject({
1331
+ date: z20.string(),
1332
+ solar_system_id: z20.number(),
1333
+ type_id: z20.number(),
1334
+ quantity: z20.number()
1335
+ });
1336
+ var IndustryFacilitySchema = z20.looseObject({
1337
+ facility_id: z20.number(),
1338
+ owner_id: z20.number(),
1339
+ region_id: z20.number(),
1340
+ solar_system_id: z20.number(),
1341
+ tax: z20.number().optional(),
1342
+ type_id: z20.number()
1343
+ });
1344
+ var IndustrySystemSchema = z20.looseObject({
1345
+ solar_system_id: z20.number(),
1346
+ cost_indices: z20.array(
1347
+ z20.looseObject({
1348
+ activity: z20.string(),
1349
+ cost_index: z20.number()
1350
+ })
1351
+ )
1352
+ });
1353
+ var MoonExtractionTimerSchema = z20.looseObject({
1354
+ structure_id: z20.number(),
1355
+ moon_id: z20.number(),
1356
+ extraction_start_time: z20.string(),
1357
+ chunk_arrival_time: z20.string(),
1358
+ natural_decay_time: z20.string()
1359
+ });
1360
+ var MiningObserverSchema = z20.looseObject({
1361
+ observer_id: z20.number(),
1362
+ observer_type: z20.string(),
1363
+ last_updated: z20.string()
1364
+ });
1365
+ var MiningObserverEntrySchema = z20.looseObject({
1366
+ character_id: z20.number(),
1367
+ recorded_corporation_id: z20.number(),
1368
+ type_id: z20.number(),
1369
+ quantity: z20.number(),
1370
+ last_updated: z20.string()
1371
+ });
1372
+
1373
+ // src/schemas/insurance.ts
1374
+ import { z as z21 } from "zod";
1375
+ var InsurancePriceSchema = z21.looseObject({
1376
+ type_id: z21.number(),
1377
+ levels: z21.array(
1378
+ z21.looseObject({
1379
+ cost: z21.number(),
1380
+ payout: z21.number(),
1381
+ name: z21.string()
1382
+ })
1383
+ )
1384
+ });
1385
+
1386
+ // src/schemas/killmails.ts
1387
+ import { z as z22 } from "zod";
1388
+ var KillmailSummarySchema = z22.looseObject({
1389
+ killmail_id: z22.number(),
1390
+ killmail_hash: z22.string()
1391
+ });
1392
+ var KillmailSchema = z22.looseObject({
1393
+ killmail_id: z22.number(),
1394
+ killmail_time: z22.string(),
1395
+ solar_system_id: z22.number(),
1396
+ moon_id: z22.number().optional(),
1397
+ war_id: z22.number().optional(),
1398
+ victim: z22.looseObject({
1399
+ character_id: z22.number().optional(),
1400
+ corporation_id: z22.number().optional(),
1401
+ alliance_id: z22.number().optional(),
1402
+ faction_id: z22.number().optional(),
1403
+ ship_type_id: z22.number(),
1404
+ damage_taken: z22.number(),
1405
+ position: z22.looseObject({
1406
+ x: z22.number(),
1407
+ y: z22.number(),
1408
+ z: z22.number()
1409
+ }).optional(),
1410
+ items: z22.array(z22.unknown()).optional()
1411
+ }),
1412
+ attackers: z22.array(
1413
+ z22.looseObject({
1414
+ character_id: z22.number().optional(),
1415
+ corporation_id: z22.number().optional(),
1416
+ alliance_id: z22.number().optional(),
1417
+ faction_id: z22.number().optional(),
1418
+ ship_type_id: z22.number().optional(),
1419
+ weapon_type_id: z22.number().optional(),
1420
+ damage_done: z22.number(),
1421
+ final_blow: z22.boolean(),
1422
+ security_status: z22.number()
1423
+ })
1424
+ )
1425
+ });
1426
+
1427
+ // src/schemas/location.ts
1428
+ import { z as z23 } from "zod";
1429
+ var CharacterLocationSchema = z23.looseObject({
1430
+ solar_system_id: z23.number(),
1431
+ station_id: z23.number().optional(),
1432
+ structure_id: z23.number().optional()
1433
+ });
1434
+ var CharacterOnlineSchema = z23.looseObject({
1435
+ online: z23.boolean(),
1436
+ last_login: z23.string().optional(),
1437
+ last_logout: z23.string().optional(),
1438
+ logins: z23.number().optional()
1439
+ });
1440
+ var CharacterShipSchema = z23.looseObject({
1441
+ ship_item_id: z23.number(),
1442
+ ship_name: z23.string(),
1443
+ ship_type_id: z23.number()
1444
+ });
1445
+
1446
+ // src/schemas/loyalty.ts
1447
+ import { z as z24 } from "zod";
1448
+ var LoyaltyPointsSchema = z24.looseObject({
1449
+ corporation_id: z24.number(),
1450
+ loyalty_points: z24.number()
1451
+ });
1452
+ var LoyaltyStoreOfferSchema = z24.looseObject({
1453
+ offer_id: z24.number(),
1454
+ type_id: z24.number(),
1455
+ quantity: z24.number(),
1456
+ lp_cost: z24.number(),
1457
+ isk_cost: z24.number(),
1458
+ ak_cost: z24.number().optional(),
1459
+ required_items: z24.array(
1460
+ z24.looseObject({
1461
+ type_id: z24.number(),
1462
+ quantity: z24.number()
1463
+ })
1464
+ )
1465
+ });
1466
+
1467
+ // src/schemas/mail.ts
1468
+ import { z as z25 } from "zod";
1469
+ var MailRecipientSchema = z25.looseObject({
1470
+ recipient_id: z25.number(),
1471
+ recipient_type: esiEnum([
1472
+ "alliance",
1473
+ "character",
1474
+ "corporation",
1475
+ "mailing_list"
1476
+ ])
1477
+ });
1478
+ var MailHeaderSchema = z25.looseObject({
1479
+ mail_id: z25.number().optional(),
1480
+ subject: z25.string().optional(),
1481
+ from: z25.number().optional(),
1482
+ timestamp: z25.string().optional(),
1483
+ labels: z25.array(z25.number()).optional(),
1484
+ is_read: z25.boolean().optional(),
1485
+ recipients: z25.array(MailRecipientSchema).optional()
1486
+ });
1487
+ var MailMessageSchema = z25.looseObject({
1488
+ subject: z25.string().optional(),
1489
+ from: z25.number().optional(),
1490
+ timestamp: z25.string().optional(),
1491
+ labels: z25.array(z25.number()).optional(),
1492
+ read: z25.boolean().optional(),
1493
+ body: z25.string().optional(),
1494
+ recipients: z25.array(MailRecipientSchema).optional()
1495
+ });
1496
+ var MailLabelSchema = z25.looseObject({
1497
+ label_id: z25.number().optional(),
1498
+ name: z25.string().optional(),
1499
+ color: z25.string().optional(),
1500
+ unread_count: z25.number().optional()
1501
+ });
1502
+ var MailLabelsResponseSchema = z25.looseObject({
1503
+ labels: z25.array(MailLabelSchema).optional(),
1504
+ total_unread_count: z25.number().optional()
1505
+ });
1506
+ var MailingListSchema = z25.looseObject({
1507
+ mailing_list_id: z25.number(),
1508
+ name: z25.string()
1509
+ });
1510
+
1511
+ // src/schemas/market.ts
1512
+ import { z as z26 } from "zod";
1513
+ var MarketOrderSchema = z26.looseObject({
1514
+ order_id: z26.number(),
1515
+ type_id: z26.number(),
1516
+ location_id: z26.number(),
1517
+ volume_total: z26.number(),
1518
+ volume_remain: z26.number(),
1519
+ min_volume: z26.number(),
1520
+ price: z26.number(),
1521
+ is_buy_order: z26.boolean(),
1522
+ system_id: z26.number(),
1523
+ duration: z26.number(),
1524
+ issued: z26.string(),
1525
+ range: z26.string()
1526
+ });
1527
+ var CharacterMarketOrderSchema = z26.looseObject({
1528
+ order_id: z26.number(),
1529
+ type_id: z26.number(),
1530
+ location_id: z26.number(),
1531
+ volume_total: z26.number(),
1532
+ volume_remain: z26.number(),
1533
+ min_volume: z26.number().optional(),
1534
+ price: z26.number(),
1535
+ is_buy_order: z26.boolean().optional(),
1536
+ is_corporation: z26.boolean(),
1537
+ region_id: z26.number(),
1538
+ duration: z26.number(),
1539
+ issued: z26.string(),
1540
+ range: z26.string(),
1541
+ escrow: z26.number().optional()
1542
+ });
1543
+ var CharacterMarketOrderHistorySchema = z26.looseObject({
1544
+ order_id: z26.number(),
1545
+ type_id: z26.number(),
1546
+ location_id: z26.number(),
1547
+ volume_total: z26.number(),
1548
+ volume_remain: z26.number(),
1549
+ min_volume: z26.number().optional(),
1550
+ price: z26.number(),
1551
+ is_buy_order: z26.boolean().optional(),
1552
+ is_corporation: z26.boolean(),
1553
+ region_id: z26.number(),
1554
+ duration: z26.number(),
1555
+ issued: z26.string(),
1556
+ range: z26.string(),
1557
+ state: esiEnum(["cancelled", "expired"]),
1558
+ escrow: z26.number().optional()
1559
+ });
1560
+ var CorporationMarketOrderSchema = z26.looseObject({
1561
+ order_id: z26.number(),
1562
+ type_id: z26.number(),
1563
+ location_id: z26.number(),
1564
+ volume_total: z26.number(),
1565
+ volume_remain: z26.number(),
1566
+ min_volume: z26.number().optional(),
1567
+ price: z26.number(),
1568
+ is_buy_order: z26.boolean().optional(),
1569
+ issued_by: z26.number(),
1570
+ region_id: z26.number(),
1571
+ wallet_division: z26.number(),
1572
+ duration: z26.number(),
1573
+ issued: z26.string(),
1574
+ range: z26.string(),
1575
+ escrow: z26.number().optional()
1576
+ });
1577
+ var CorporationMarketOrderHistorySchema = z26.looseObject({
1578
+ order_id: z26.number(),
1579
+ type_id: z26.number(),
1580
+ location_id: z26.number(),
1581
+ volume_total: z26.number(),
1582
+ volume_remain: z26.number(),
1583
+ min_volume: z26.number().optional(),
1584
+ price: z26.number(),
1585
+ is_buy_order: z26.boolean().optional(),
1586
+ issued_by: z26.number().optional(),
1587
+ region_id: z26.number(),
1588
+ wallet_division: z26.number(),
1589
+ duration: z26.number(),
1590
+ issued: z26.string(),
1591
+ range: z26.string(),
1592
+ state: esiEnum(["cancelled", "expired"]),
1593
+ escrow: z26.number().optional()
1594
+ });
1595
+ var StructureMarketOrderSchema = z26.looseObject({
1596
+ order_id: z26.number(),
1597
+ type_id: z26.number(),
1598
+ location_id: z26.number(),
1599
+ volume_total: z26.number(),
1600
+ volume_remain: z26.number(),
1601
+ min_volume: z26.number(),
1602
+ price: z26.number(),
1603
+ is_buy_order: z26.boolean(),
1604
+ duration: z26.number(),
1605
+ issued: z26.string(),
1606
+ range: z26.string()
1607
+ });
1608
+ var MarketHistorySchema = z26.looseObject({
1609
+ date: z26.string(),
1610
+ order_count: z26.number(),
1611
+ volume: z26.number(),
1612
+ highest: z26.number(),
1613
+ average: z26.number(),
1614
+ lowest: z26.number()
1615
+ });
1616
+ var MarketGroupSchema = z26.looseObject({
1617
+ market_group_id: z26.number(),
1618
+ name: z26.string(),
1619
+ description: z26.string(),
1620
+ types: z26.array(z26.number()),
1621
+ parent_group_id: z26.number().optional()
1622
+ });
1623
+ var MarketPriceSchema = z26.looseObject({
1624
+ type_id: z26.number(),
1625
+ average_price: z26.number().optional(),
1626
+ adjusted_price: z26.number().optional()
1627
+ });
1628
+
1629
+ // src/schemas/mercenary.ts
1630
+ import { z as z27 } from "zod";
1631
+ var MercenaryDenSchema = z27.looseObject({
1632
+ den_id: z27.number(),
1633
+ system_id: z27.number(),
1634
+ constellation_id: z27.number(),
1635
+ region_id: z27.number(),
1636
+ development_level: z27.number().optional(),
1637
+ anarchy_level: z27.number().optional(),
1638
+ active_operations: z27.number().optional()
1639
+ });
1640
+ var MercenaryTacticalOperationSchema = z27.looseObject({
1641
+ operation_id: z27.number(),
1642
+ den_id: z27.number(),
1643
+ system_id: z27.number(),
1644
+ site_type: z27.string(),
1645
+ status: esiEnum(["spawning", "active", "completed", "expired"]),
1646
+ started_at: z27.string().optional(),
1647
+ expires_at: z27.string().optional()
1648
+ });
1649
+ var MercenaryDenDetailEvolutionLevelSchema = z27.looseObject({
1650
+ level: z27.number().optional(),
1651
+ progress: z27.number().optional()
1652
+ });
1653
+ var MercenaryDenDetailEvolutionSchema = z27.looseObject({
1654
+ development: MercenaryDenDetailEvolutionLevelSchema,
1655
+ anarchy: MercenaryDenDetailEvolutionLevelSchema
1656
+ });
1657
+ var MercenaryDenDetailInfomorphsSchema = z27.looseObject({
1658
+ amount: z27.number()
1659
+ });
1660
+ var MercenaryDenDetailReinforcementTimerSchema = z27.looseObject({
1661
+ end: z27.string()
1662
+ });
1663
+ var MercenaryDenDetailSkyhookSchema = z27.looseObject({
1664
+ id: z27.number(),
1665
+ planet_id: z27.number(),
1666
+ corporation_id: z27.number()
1667
+ });
1668
+ var MercenaryDenDetailSchema = z27.looseObject({
1669
+ id: z27.number(),
1670
+ type_id: z27.number(),
1671
+ state: esiEnum(["Unspecified", "Running", "Paused", "Disabled"]),
1672
+ skyhook: MercenaryDenDetailSkyhookSchema,
1673
+ infomorphs: MercenaryDenDetailInfomorphsSchema,
1674
+ evolution: MercenaryDenDetailEvolutionSchema,
1675
+ reinforcement_timer: MercenaryDenDetailReinforcementTimerSchema.optional()
1676
+ });
1677
+ var MercenaryTacticalOperationDetailSchema = z27.looseObject({
1678
+ id: z27.string(),
1679
+ mercenary_den_id: z27.number(),
1680
+ state: esiEnum([
1681
+ "Unspecified",
1682
+ "Available",
1683
+ "Started",
1684
+ "Completed",
1685
+ "Expired",
1686
+ "Removed"
1687
+ ]),
1688
+ dungeon_type_id: z27.number(),
1689
+ expires: z27.string()
1690
+ });
1691
+
1692
+ // src/schemas/meta.ts
1693
+ import { z as z28 } from "zod";
1694
+ var MetaChangelogEntrySchema = z28.looseObject({
1695
+ method: z28.string(),
1696
+ path: z28.string(),
1697
+ compatibility_date: z28.string(),
1698
+ is_breaking: z28.boolean(),
1699
+ description: z28.string()
1700
+ });
1701
+ var MetaChangelogSchema = z28.record(
1702
+ z28.string(),
1703
+ z28.array(MetaChangelogEntrySchema)
1704
+ );
1705
+ var MetaCompatibilityDatesSchema = z28.looseObject({
1706
+ compatibility_dates: z28.array(z28.string())
1707
+ });
1708
+ var MetaNameSchema = z28.looseObject({
1709
+ name: z28.string()
1710
+ });
1711
+ var MetaRouteStatusSchema = z28.looseObject({
1712
+ method: esiEnum(["GET", "POST", "PUT", "DELETE"]),
1713
+ path: z28.string(),
1714
+ status: esiEnum(["Unknown", "OK", "Degraded", "Down", "Recovering"])
1715
+ });
1716
+ var MetaStatusSchema = z28.looseObject({
1717
+ routes: z28.array(MetaRouteStatusSchema)
1718
+ });
1719
+
1720
+ // src/schemas/paragon-hub.ts
1721
+ import { z as z29 } from "zod";
1722
+ var ParagonHubCursorSchema = z29.looseObject({
1723
+ after: z29.string().optional(),
1724
+ before: z29.string().optional()
1725
+ });
1726
+ var ParagonHubSkinrPriceSchema = z29.looseObject({
1727
+ isk: z29.number().optional(),
1728
+ plex: z29.number().optional()
1729
+ });
1730
+ var ParagonHubSkinrListingSchema = z29.looseObject({
1731
+ id: z29.string(),
1732
+ state: esiEnum(["listed", "sold_out", "expired", "removed"]),
1733
+ last_modified: z29.string(),
1734
+ seller_id: z29.number(),
1735
+ skinr_id: z29.string(),
1736
+ created: z29.string(),
1737
+ expires: z29.string(),
1738
+ quantity: z29.number(),
1739
+ price: ParagonHubSkinrPriceSchema
1740
+ });
1741
+ var ParagonHubSkinrTargetSchema = z29.looseObject({
1742
+ character_id: z29.number().optional(),
1743
+ corporation_id: z29.number().optional(),
1744
+ alliance_id: z29.number().optional(),
1745
+ public: z29.boolean().optional()
1746
+ });
1747
+ var ParagonHubCharacterListingSchema = z29.looseObject({
1748
+ id: z29.string(),
1749
+ state: esiEnum(["listed", "sold_out", "expired", "removed"]),
1750
+ last_modified: z29.string(),
1751
+ seller_id: z29.number(),
1752
+ skinr_id: z29.string(),
1753
+ created: z29.string(),
1754
+ expires: z29.string(),
1755
+ quantity: z29.number(),
1756
+ price: ParagonHubSkinrPriceSchema,
1757
+ target: ParagonHubSkinrTargetSchema
1758
+ });
1759
+ var ParagonHubSkinrResponseSchema = z29.looseObject({
1760
+ cursor: ParagonHubCursorSchema.optional(),
1761
+ listings: z29.array(ParagonHubSkinrListingSchema)
1762
+ });
1763
+ var ParagonHubCharacterSkinrResponseSchema = z29.looseObject({
1764
+ cursor: ParagonHubCursorSchema.optional(),
1765
+ listings: z29.array(ParagonHubCharacterListingSchema)
1766
+ });
1767
+
1768
+ // src/schemas/military-campaigns.ts
1769
+ import { z as z30 } from "zod";
1770
+ var MilitaryCampaignSchema = z30.looseObject({
1771
+ campaign_id: z30.string(),
1772
+ state: z30.string(),
1773
+ progress: z30.number(),
1774
+ start_time: z30.string(),
1775
+ finish_time: z30.string().optional()
1776
+ });
1777
+ var MilitaryCampaignObjectiveSchema = z30.looseObject({
1778
+ objective_id: z30.string(),
1779
+ campaign_id: z30.string(),
1780
+ state: z30.string(),
1781
+ progress: z30.number(),
1782
+ participants: z30.looseObject({
1783
+ total: z30.number(),
1784
+ committed: z30.number(),
1785
+ contributors: z30.number()
1786
+ })
1787
+ });
1788
+ var CharacterMilitaryCampaignObjectiveSchema = z30.looseObject({
1789
+ objective_id: z30.string(),
1790
+ campaign_id: z30.string(),
1791
+ committed: z30.boolean(),
1792
+ contribution: z30.number()
1793
+ });
1794
+
1795
+ // src/schemas/pi.ts
1796
+ import { z as z31 } from "zod";
1797
+ var PlanetaryColonySchema = z31.looseObject({
1798
+ solar_system_id: z31.number(),
1799
+ planet_id: z31.number(),
1800
+ planet_type: esiEnum([
1801
+ "temperate",
1802
+ "barren",
1803
+ "oceanic",
1804
+ "ice",
1805
+ "gas",
1806
+ "lava",
1807
+ "storm",
1808
+ "plasma"
1809
+ ]),
1810
+ owner_id: z31.number(),
1811
+ last_update: z31.string(),
1812
+ upgrade_level: z31.number(),
1813
+ num_pins: z31.number()
1814
+ });
1815
+ var CustomsOfficeSchema = z31.looseObject({
1816
+ office_id: z31.number(),
1817
+ system_id: z31.number(),
1818
+ reinforce_exit_start: z31.number(),
1819
+ reinforce_exit_end: z31.number(),
1820
+ allow_access_with_standings: z31.boolean(),
1821
+ allow_alliance_access: z31.boolean(),
1822
+ alliance_tax_rate: z31.number().optional(),
1823
+ corporation_tax_rate: z31.number().optional(),
1824
+ standing_level: z31.string().optional(),
1825
+ terrible_standing_tax_rate: z31.number().optional(),
1826
+ bad_standing_tax_rate: z31.number().optional(),
1827
+ neutral_standing_tax_rate: z31.number().optional(),
1828
+ good_standing_tax_rate: z31.number().optional(),
1829
+ excellent_standing_tax_rate: z31.number().optional(),
1830
+ type_id: z31.number().optional()
1831
+ });
1832
+ var ColonyLayoutSchema = z31.looseObject({
1833
+ links: z31.array(
1834
+ z31.looseObject({
1835
+ source_pin_id: z31.number(),
1836
+ destination_pin_id: z31.number(),
1837
+ link_level: z31.number()
1838
+ })
1839
+ ),
1840
+ pins: z31.array(
1841
+ z31.looseObject({
1842
+ pin_id: z31.number(),
1843
+ type_id: z31.number(),
1844
+ latitude: z31.number(),
1845
+ longitude: z31.number(),
1846
+ schematic_id: z31.number().optional(),
1847
+ extractor_details: z31.looseObject({
1848
+ heads: z31.array(
1849
+ z31.looseObject({
1850
+ head_id: z31.number(),
1851
+ latitude: z31.number(),
1852
+ longitude: z31.number()
1853
+ })
1854
+ ),
1855
+ product_type_id: z31.number().optional(),
1856
+ cycle_time: z31.number().optional(),
1857
+ head_radius: z31.number().optional(),
1858
+ qty_per_cycle: z31.number().optional()
1859
+ }).optional(),
1860
+ factory_details: z31.looseObject({
1861
+ schematic_id: z31.number()
1862
+ }).optional(),
1863
+ contents: z31.array(
1864
+ z31.looseObject({
1865
+ type_id: z31.number(),
1866
+ amount: z31.number()
1867
+ })
1868
+ ).optional(),
1869
+ install_time: z31.string().optional(),
1870
+ expiry_time: z31.string().optional(),
1871
+ last_cycle_start: z31.string().optional()
1872
+ })
1873
+ ),
1874
+ routes: z31.array(
1875
+ z31.looseObject({
1876
+ route_id: z31.number(),
1877
+ source_pin_id: z31.number(),
1878
+ destination_pin_id: z31.number(),
1879
+ content_type_id: z31.number(),
1880
+ quantity: z31.number(),
1881
+ waypoints: z31.array(z31.number()).optional()
1882
+ })
1883
+ )
1884
+ });
1885
+
1886
+ // src/schemas/skills.ts
1887
+ import { z as z32 } from "zod";
1888
+ var CharacterSkillSchema = z32.looseObject({
1889
+ skill_id: z32.number(),
1890
+ skillpoints_in_skill: z32.number(),
1891
+ trained_skill_level: z32.number(),
1892
+ active_skill_level: z32.number()
1893
+ });
1894
+ var CharacterSkillsResponseSchema = z32.looseObject({
1895
+ skills: z32.array(
1896
+ z32.looseObject({
1897
+ skill_id: z32.number(),
1898
+ skillpoints_in_skill: z32.number(),
1899
+ trained_skill_level: z32.number(),
1900
+ active_skill_level: z32.number()
1901
+ })
1902
+ ),
1903
+ total_sp: z32.number(),
1904
+ unallocated_sp: z32.number().optional()
1905
+ });
1906
+ var SkillQueueSchema = z32.looseObject({
1907
+ skill_id: z32.number(),
1908
+ finished_level: z32.number(),
1909
+ queue_position: z32.number(),
1910
+ level_end_sp: z32.number().optional(),
1911
+ level_start_sp: z32.number().optional(),
1912
+ training_start_sp: z32.number().optional(),
1913
+ start_date: z32.string().optional(),
1914
+ finish_date: z32.string().optional()
1915
+ });
1916
+
1917
+ // src/schemas/skyhooks.ts
1918
+ import { z as z33 } from "zod";
1919
+ var SovereigntyHubSchema = z33.looseObject({
1920
+ structure_id: z33.number(),
1921
+ system_id: z33.number(),
1922
+ corporation_id: z33.number(),
1923
+ alliance_id: z33.number().optional(),
1924
+ online: z33.boolean(),
1925
+ remaining_reagents: z33.number().optional(),
1926
+ installed_upgrades: z33.array(z33.number()).optional()
1927
+ });
1928
+ var OrbitalSkyhookSchema = z33.looseObject({
1929
+ structure_id: z33.number(),
1930
+ system_id: z33.number(),
1931
+ corporation_id: z33.number(),
1932
+ alliance_id: z33.number().optional(),
1933
+ online: z33.boolean(),
1934
+ reagent_silo_capacity: z33.number().optional(),
1935
+ reagent_silo_level: z33.number().optional()
1936
+ });
1937
+ var RaidableSkyhookSchema = z33.looseObject({
1938
+ structure_id: z33.number(),
1939
+ system_id: z33.number(),
1940
+ corporation_id: z33.number(),
1941
+ alliance_id: z33.number().optional(),
1942
+ raidable_at: z33.string().optional(),
1943
+ is_raidable: z33.boolean()
1944
+ });
1945
+ var SkyhookDetailReagentSchema = z33.looseObject({
1946
+ type_id: z33.number(),
1947
+ secured_stock: z33.number(),
1948
+ unsecured_stock: z33.number(),
1949
+ last_cycle: z33.string()
1950
+ });
1951
+ var SkyhookDetailReinforcementTimerSchema = z33.looseObject({
1952
+ end: z33.string()
1953
+ });
1954
+ var SkyhookDetailTheftVulnerabilitySchema = z33.looseObject({
1955
+ start: z33.string(),
1956
+ end: z33.string()
1957
+ });
1958
+ var SkyhookDetailSchema = z33.looseObject({
1959
+ id: z33.number(),
1960
+ planet_id: z33.number(),
1961
+ state: esiEnum([
1962
+ "Unspecified",
1963
+ "ShieldVulnerable",
1964
+ "ArmorReinforced",
1965
+ "ArmorVulnerable",
1966
+ "HullReinforced",
1967
+ "HullVulnerable"
1968
+ ]),
1969
+ is_active: z33.boolean(),
1970
+ effective_workforce: z33.number().optional(),
1971
+ reagents: z33.array(SkyhookDetailReagentSchema).optional(),
1972
+ reinforcement_timer: SkyhookDetailReinforcementTimerSchema.optional(),
1973
+ theft_vulnerability: SkyhookDetailTheftVulnerabilitySchema.optional()
1974
+ });
1975
+ var SovereigntyHubDetailReagentSchema = z33.looseObject({
1976
+ type_id: z33.number(),
1977
+ amount: z33.number(),
1978
+ burning_per_hour: z33.number().optional()
1979
+ });
1980
+ var SovereigntyHubDetailReagentBaySchema = z33.looseObject({
1981
+ last_updated: z33.string(),
1982
+ reagents: z33.array(SovereigntyHubDetailReagentSchema)
1983
+ });
1984
+ var SovereigntyHubDetailResourceSchema = z33.looseObject({
1985
+ available: z33.number().optional(),
1986
+ used: z33.number().optional()
1987
+ });
1988
+ var SovereigntyHubDetailResourcesSchema = z33.looseObject({
1989
+ power: SovereigntyHubDetailResourceSchema,
1990
+ workforce: SovereigntyHubDetailResourceSchema
1991
+ });
1992
+ var SovereigntyHubDetailUpgradeSchema = z33.looseObject({
1993
+ type_id: z33.number(),
1994
+ power_state: esiEnum(["Unspecified", "Online", "Offline", "Low", "Pending"])
1995
+ });
1996
+ var SovereigntyHubDetailVulnerabilityWindowSchema = z33.looseObject({
1997
+ start: z33.string(),
1998
+ end: z33.string()
1999
+ });
2000
+ var SovereigntyHubDetailTransportSchema = z33.looseObject({});
2001
+ var SovereigntyHubDetailSchema = z33.looseObject({
2002
+ id: z33.number(),
2003
+ solar_system_id: z33.number(),
2004
+ upgrades: z33.array(SovereigntyHubDetailUpgradeSchema),
2005
+ reagent_bay: SovereigntyHubDetailReagentBaySchema,
2006
+ resources: SovereigntyHubDetailResourcesSchema,
2007
+ workforce_transport: SovereigntyHubDetailTransportSchema,
2008
+ fuel_access_list_id: z33.number().optional(),
2009
+ vulnerability_window: SovereigntyHubDetailVulnerabilityWindowSchema.optional()
2010
+ });
2011
+
2012
+ // src/schemas/sovereignty.ts
2013
+ import { z as z34 } from "zod";
2014
+ var SovereigntyCampaignSchema = z34.looseObject({
2015
+ campaign_id: z34.number(),
2016
+ structure_id: z34.number(),
2017
+ solar_system_id: z34.number(),
2018
+ constellation_id: z34.number(),
2019
+ event_type: esiEnum([
2020
+ "tcu_defense",
2021
+ "ihub_defense",
2022
+ "station_defense",
2023
+ "station_freeport"
2024
+ ]),
2025
+ start_time: z34.string(),
2026
+ defender_id: z34.number().optional(),
2027
+ defender_score: z34.number().optional(),
2028
+ attackers_score: z34.number().optional(),
2029
+ participants: z34.array(
2030
+ z34.looseObject({
2031
+ alliance_id: z34.number(),
2032
+ score: z34.number()
2033
+ })
2034
+ ).optional()
2035
+ });
2036
+ var SovereigntySystemStructureSchema = z34.looseObject({
2037
+ alliance_id: z34.number().optional(),
2038
+ solar_system_id: z34.number().optional(),
2039
+ structure_id: z34.number(),
2040
+ structure_type_id: z34.number(),
2041
+ vulnerability_occupancy_level: z34.number().optional(),
2042
+ vulnerable_start_time: z34.string().optional(),
2043
+ vulnerable_end_time: z34.string().optional()
2044
+ });
2045
+ var SovereigntyVulnerabilityWindowSchema = z34.looseObject({
2046
+ start: z34.string(),
2047
+ end: z34.string()
2048
+ });
2049
+ var SovereigntyHubSchema2 = z34.looseObject({
2050
+ id: z34.number(),
2051
+ vulnerability_window: SovereigntyVulnerabilityWindowSchema.optional()
2052
+ });
2053
+ var SovereigntyDevelopmentSchema = z34.looseObject({
2054
+ activity_defense_multiplier: z34.number().optional(),
2055
+ military_level: z34.number().optional(),
2056
+ industrial_level: z34.number().optional(),
2057
+ strategic_level: z34.number().optional()
2058
+ });
2059
+ var SovereigntyAllianceClaimSchema = z34.looseObject({
2060
+ alliance_id: z34.number(),
2061
+ corporation_id: z34.number().optional(),
2062
+ claimed_since: z34.string().optional(),
2063
+ sovereignty_hub: SovereigntyHubSchema2.optional(),
2064
+ is_capital_system: z34.boolean().optional(),
2065
+ development: SovereigntyDevelopmentSchema.optional()
2066
+ });
2067
+ var SovereigntyFactionClaimSchema = z34.looseObject({
2068
+ faction_id: z34.number()
2069
+ });
2070
+ var SovereigntyClaimSchema = z34.looseObject({
2071
+ alliance: SovereigntyAllianceClaimSchema.optional(),
2072
+ faction: SovereigntyFactionClaimSchema.optional(),
2073
+ unclaimed: z34.boolean().optional()
2074
+ });
2075
+ var SovereigntySystemEntrySchema = z34.looseObject({
2076
+ solar_system_id: z34.number(),
2077
+ claim: SovereigntyClaimSchema
2078
+ });
2079
+ var SovereigntySystemSchema = z34.looseObject({
2080
+ solar_systems: z34.array(SovereigntySystemEntrySchema)
2081
+ });
2082
+
2083
+ // src/schemas/status.ts
2084
+ import { z as z35 } from "zod";
2085
+ var ServerStatusSchema = z35.looseObject({
2086
+ players: z35.number(),
2087
+ server_version: z35.string(),
2088
+ start_time: z35.string(),
2089
+ vip: z35.boolean()
2090
+ });
2091
+
2092
+ // src/schemas/universe.ts
2093
+ import { z as z36 } from "zod";
2094
+ var PositionSchema = z36.looseObject({
2095
+ x: z36.number(),
2096
+ y: z36.number(),
2097
+ z: z36.number()
2098
+ });
2099
+ var SolarSystemInfoSchema = z36.looseObject({
2100
+ system_id: z36.number(),
2101
+ name: z36.string(),
2102
+ constellation_id: z36.number(),
2103
+ position: PositionSchema,
2104
+ security_class: z36.string().optional(),
2105
+ security_status: z36.number(),
2106
+ star_id: z36.number().optional(),
2107
+ stargates: z36.array(z36.number()).optional(),
2108
+ stations: z36.array(z36.number()).optional(),
2109
+ planets: z36.array(
2110
+ z36.looseObject({
2111
+ asteroid_belts: z36.array(z36.number()).optional(),
2112
+ moons: z36.array(z36.number()).optional(),
2113
+ planet_id: z36.number()
2114
+ })
2115
+ ).optional()
2116
+ });
2117
+ var ConstellationInfoSchema = z36.looseObject({
2118
+ constellation_id: z36.number(),
2119
+ name: z36.string(),
2120
+ region_id: z36.number(),
2121
+ systems: z36.array(z36.number()),
2122
+ position: PositionSchema
2123
+ });
2124
+ var RegionInfoSchema = z36.looseObject({
2125
+ region_id: z36.number(),
2126
+ name: z36.string(),
2127
+ description: z36.string().optional(),
2128
+ constellations: z36.array(z36.number())
2129
+ });
2130
+ var AncestrySchema = z36.looseObject({
2131
+ id: z36.number(),
2132
+ name: z36.string(),
2133
+ bloodline_id: z36.number(),
2134
+ description: z36.string(),
2135
+ short_description: z36.string().optional(),
2136
+ icon_id: z36.number().optional()
2137
+ });
2138
+ var BloodlineSchema = z36.looseObject({
2139
+ bloodline_id: z36.number(),
2140
+ name: z36.string(),
2141
+ description: z36.string(),
2142
+ race_id: z36.number(),
2143
+ corporation_id: z36.number(),
2144
+ ship_type_id: z36.number().nullable(),
2145
+ charisma: z36.number(),
2146
+ intelligence: z36.number(),
2147
+ memory: z36.number(),
2148
+ perception: z36.number(),
2149
+ willpower: z36.number()
2150
+ });
2151
+ var FactionSchema = z36.looseObject({
2152
+ faction_id: z36.number(),
2153
+ name: z36.string(),
2154
+ description: z36.string(),
2155
+ size_factor: z36.number(),
2156
+ station_count: z36.number(),
2157
+ station_system_count: z36.number(),
2158
+ is_unique: z36.boolean(),
2159
+ solar_system_id: z36.number().optional(),
2160
+ corporation_id: z36.number().optional(),
2161
+ militia_corporation_id: z36.number().optional()
2162
+ });
2163
+ var RaceSchema = z36.looseObject({
2164
+ race_id: z36.number(),
2165
+ name: z36.string(),
2166
+ description: z36.string(),
2167
+ alliance_id: z36.number()
2168
+ });
2169
+ var StationInfoSchema = z36.looseObject({
2170
+ station_id: z36.number(),
2171
+ name: z36.string(),
2172
+ owner: z36.number().optional(),
2173
+ system_id: z36.number(),
2174
+ type_id: z36.number(),
2175
+ race_id: z36.number().optional(),
2176
+ reprocessing_efficiency: z36.number(),
2177
+ reprocessing_stations_take: z36.number(),
2178
+ max_dockable_ship_volume: z36.number(),
2179
+ office_rental_cost: z36.number(),
2180
+ services: z36.array(z36.string()),
2181
+ position: PositionSchema
2182
+ });
2183
+ var TypeInfoSchema = z36.looseObject({
2184
+ type_id: z36.number(),
2185
+ name: z36.string(),
2186
+ description: z36.string(),
2187
+ published: z36.boolean(),
2188
+ group_id: z36.number(),
2189
+ market_group_id: z36.number().optional(),
2190
+ radius: z36.number().optional(),
2191
+ volume: z36.number().optional(),
2192
+ packaged_volume: z36.number().optional(),
2193
+ capacity: z36.number().optional(),
2194
+ portion_size: z36.number().optional(),
2195
+ mass: z36.number().optional(),
2196
+ icon_id: z36.number().optional(),
2197
+ graphic_id: z36.number().optional(),
2198
+ dogma_attributes: z36.array(
2199
+ z36.looseObject({
2200
+ attribute_id: z36.number(),
2201
+ value: z36.number()
2202
+ })
2203
+ ).optional(),
2204
+ dogma_effects: z36.array(
2205
+ z36.looseObject({
2206
+ effect_id: z36.number(),
2207
+ is_default: z36.boolean()
2208
+ })
2209
+ ).optional()
2210
+ });
2211
+ var AsteroidBeltInfoSchema = z36.looseObject({
2212
+ name: z36.string(),
2213
+ position: PositionSchema,
2214
+ system_id: z36.number()
2215
+ });
2216
+ var GraphicInfoSchema = z36.looseObject({
2217
+ graphic_id: z36.number(),
2218
+ collision_file: z36.string().optional(),
2219
+ graphic_file: z36.string().optional(),
2220
+ icon_folder: z36.string().optional(),
2221
+ sof_dna: z36.string().optional(),
2222
+ sof_fation_name: z36.string().optional(),
2223
+ sof_hull_name: z36.string().optional(),
2224
+ sof_race_name: z36.string().optional()
2225
+ });
2226
+ var ItemCategorySchema = z36.looseObject({
2227
+ category_id: z36.number(),
2228
+ name: z36.string(),
2229
+ groups: z36.array(z36.number()),
2230
+ published: z36.boolean()
2231
+ });
2232
+ var ItemGroupSchema = z36.looseObject({
2233
+ group_id: z36.number(),
2234
+ name: z36.string(),
2235
+ category_id: z36.number(),
2236
+ types: z36.array(z36.number()),
2237
+ published: z36.boolean()
2238
+ });
2239
+ var MoonInfoSchema = z36.looseObject({
2240
+ moon_id: z36.number(),
2241
+ name: z36.string(),
2242
+ system_id: z36.number(),
2243
+ position: PositionSchema
2244
+ });
2245
+ var PlanetInfoSchema = z36.looseObject({
2246
+ planet_id: z36.number(),
2247
+ name: z36.string(),
2248
+ system_id: z36.number(),
2249
+ type_id: z36.number(),
2250
+ position: PositionSchema
2251
+ });
2252
+ var StarInfoSchema = z36.looseObject({
2253
+ star_id: z36.number().optional(),
2254
+ solar_system_id: z36.number(),
2255
+ name: z36.string(),
2256
+ type_id: z36.number(),
2257
+ age: z36.number(),
2258
+ luminosity: z36.number(),
2259
+ radius: z36.number(),
2260
+ spectral_class: z36.string(),
2261
+ temperature: z36.number()
2262
+ });
2263
+ var StargateInfoSchema = z36.looseObject({
2264
+ stargate_id: z36.number(),
2265
+ name: z36.string(),
2266
+ system_id: z36.number(),
2267
+ type_id: z36.number(),
2268
+ position: PositionSchema,
2269
+ destination: z36.looseObject({
2270
+ system_id: z36.number(),
2271
+ stargate_id: z36.number()
2272
+ })
2273
+ });
2274
+ var StructureInfoSchema = z36.looseObject({
2275
+ structure_id: z36.number().optional(),
2276
+ name: z36.string(),
2277
+ owner_id: z36.number(),
2278
+ solar_system_id: z36.number(),
2279
+ type_id: z36.number().optional(),
2280
+ position: PositionSchema.optional()
2281
+ });
2282
+ var SystemJumpSchema = z36.looseObject({
2283
+ system_id: z36.number(),
2284
+ ship_jumps: z36.number()
2285
+ });
2286
+ var SystemKillSchema = z36.looseObject({
2287
+ system_id: z36.number(),
2288
+ npc_kills: z36.number(),
2289
+ pod_kills: z36.number(),
2290
+ ship_kills: z36.number()
2291
+ });
2292
+ var IdNameSchema = z36.looseObject({
2293
+ id: z36.number().optional(),
2294
+ name: z36.string().optional()
2295
+ });
2296
+ var BulkIdResultSchema = z36.looseObject({
2297
+ agents: z36.array(IdNameSchema).optional(),
2298
+ alliances: z36.array(IdNameSchema).optional(),
2299
+ characters: z36.array(IdNameSchema).optional(),
2300
+ constellations: z36.array(IdNameSchema).optional(),
2301
+ corporations: z36.array(IdNameSchema).optional(),
2302
+ factions: z36.array(IdNameSchema).optional(),
2303
+ inventory_types: z36.array(IdNameSchema).optional(),
2304
+ regions: z36.array(IdNameSchema).optional(),
2305
+ systems: z36.array(IdNameSchema).optional(),
2306
+ stations: z36.array(IdNameSchema).optional()
2307
+ });
2308
+ var NameAndCategorySchema = z36.looseObject({
2309
+ id: z36.number(),
2310
+ name: z36.string(),
2311
+ category: esiEnum([
2312
+ "alliance",
2313
+ "character",
2314
+ "constellation",
2315
+ "corporation",
2316
+ "inventory_type",
2317
+ "region",
2318
+ "solar_system",
2319
+ "station",
2320
+ "faction"
2321
+ ])
2322
+ });
2323
+ var SchematicInfoSchema = z36.looseObject({
2324
+ schematic_name: z36.string(),
2325
+ cycle_time: z36.number()
2326
+ });
2327
+ var SearchResultSchema = z36.looseObject({
2328
+ agent: z36.array(z36.number()).optional(),
2329
+ alliance: z36.array(z36.number()).optional(),
2330
+ character: z36.array(z36.number()).optional(),
2331
+ constellation: z36.array(z36.number()).optional(),
2332
+ corporation: z36.array(z36.number()).optional(),
2333
+ faction: z36.array(z36.number()).optional(),
2334
+ inventory_type: z36.array(z36.number()).optional(),
2335
+ region: z36.array(z36.number()).optional(),
2336
+ solar_system: z36.array(z36.number()).optional(),
2337
+ station: z36.array(z36.number()).optional(),
2338
+ structure: z36.array(z36.number()).optional()
2339
+ });
2340
+
2341
+ // src/schemas/wallet.ts
2342
+ import { z as z37 } from "zod";
2343
+ var WalletTransactionSchema = z37.looseObject({
2344
+ transaction_id: z37.number(),
2345
+ date: z37.string(),
2346
+ type_id: z37.number(),
2347
+ location_id: z37.number(),
2348
+ unit_price: z37.number(),
2349
+ quantity: z37.number(),
2350
+ client_id: z37.number(),
2351
+ is_buy: z37.boolean(),
2352
+ is_personal: z37.boolean(),
2353
+ journal_ref_id: z37.number()
2354
+ });
2355
+ var CorporationWalletTransactionSchema = WalletTransactionSchema.omit({
2356
+ is_personal: true
2357
+ });
2358
+ var WalletJournalSchema = z37.looseObject({
2359
+ id: z37.number(),
2360
+ date: z37.string(),
2361
+ ref_type: z37.string(),
2362
+ first_party_id: z37.number().optional(),
2363
+ second_party_id: z37.number().optional(),
2364
+ amount: z37.number().optional(),
2365
+ balance: z37.number().optional(),
2366
+ reason: z37.string().optional(),
2367
+ description: z37.string(),
2368
+ context_id: z37.number().optional(),
2369
+ context_id_type: z37.string().optional(),
2370
+ tax: z37.number().optional(),
2371
+ tax_receiver_id: z37.number().optional()
2372
+ });
2373
+
2374
+ // src/schemas/wars.ts
2375
+ import { z as z38 } from "zod";
2376
+ var WarSchema = z38.looseObject({
2377
+ id: z38.number(),
2378
+ declared: z38.string(),
2379
+ started: z38.string().optional(),
2380
+ finished: z38.string().optional(),
2381
+ retracted: z38.string().optional(),
2382
+ mutual: z38.boolean(),
2383
+ open_for_allies: z38.boolean(),
2384
+ aggressor: z38.looseObject({
2385
+ corporation_id: z38.number().optional(),
2386
+ alliance_id: z38.number().optional(),
2387
+ isk_destroyed: z38.number(),
2388
+ ships_killed: z38.number()
2389
+ }),
2390
+ defender: z38.looseObject({
2391
+ corporation_id: z38.number().optional(),
2392
+ alliance_id: z38.number().optional(),
2393
+ isk_destroyed: z38.number(),
2394
+ ships_killed: z38.number()
2395
+ }),
2396
+ allies: z38.array(
2397
+ z38.looseObject({
2398
+ corporation_id: z38.number().optional(),
2399
+ alliance_id: z38.number().optional()
2400
+ })
2401
+ ).optional()
2402
+ });
2403
+
2404
+ export {
2405
+ esiEnum,
2406
+ AllianceInfoSchema,
2407
+ AllianceContactSchema,
2408
+ AllianceContactLabelSchema,
2409
+ AllianceIconSchema,
2410
+ ContactSchema,
2411
+ ContactLabelSchema,
2412
+ CharacterAssetSchema,
2413
+ AssetLocationSchema,
2414
+ AssetNameSchema,
2415
+ CalendarEventSchema,
2416
+ CalendarEventDetailSchema,
2417
+ CalendarEventAttendeeSchema,
2418
+ CharacterInfoSchema,
2419
+ CharacterPortraitSchema,
2420
+ CharacterAttributesSchema,
2421
+ AgentResearchSchema,
2422
+ BlueprintSchema,
2423
+ CorporationHistorySchema,
2424
+ JumpFatigueSchema,
2425
+ MedalSchema,
2426
+ NotificationSchema,
2427
+ CharacterTitleSchema,
2428
+ CharacterAffiliationSchema,
2429
+ ContactNotificationSchema,
2430
+ CharacterRoleSchema,
2431
+ StandingSchema,
2432
+ RateLimitMetaSchema,
2433
+ EsiResponseMetaSchema,
2434
+ esiResponse,
2435
+ CloneInfoSchema,
2436
+ ContractSchema,
2437
+ PublicContractSchema,
2438
+ ContractItemSchema,
2439
+ PublicContractItemSchema,
2440
+ ContractBidSchema,
2441
+ PublicContractBidSchema,
2442
+ CorporationInfoSchema,
2443
+ CorporationAllianceHistorySchema,
2444
+ CorporationMedalSchema,
2445
+ CorporationStarbaseSchema,
2446
+ CorporationDivisionsSchema,
2447
+ CorporationFacilitySchema,
2448
+ CorporationIssuedMedalSchema,
2449
+ CorporationMemberTitleSchema,
2450
+ CorporationMemberTrackingSchema,
2451
+ CorporationMemberRoleSchema,
2452
+ CorporationRoleHistorySchema,
2453
+ CorporationShareholderSchema,
2454
+ CorporationStarbaseDetailSchema,
2455
+ CorporationStructureSchema,
2456
+ CorporationTitleSchema,
2457
+ CorporationIconSchema,
2458
+ CorporationWalletDivisionSchema,
2459
+ ContainerLogSchema,
2460
+ CorporationProjectCursorSchema,
2461
+ CorporationProjectSummarySchema,
2462
+ CorporationProjectsListingSchema,
2463
+ CorporationProjectSchema,
2464
+ CorporationProjectContributionSchema,
2465
+ CorporationProjectContributorSchema,
2466
+ CorporationProjectContributorsListingSchema,
2467
+ DogmaAttributeSchema,
2468
+ DogmaEffectSchema,
2469
+ DogmaDynamicItemSchema,
2470
+ FactionWarfareStatsSchema,
2471
+ FactionWarfareCharacterStatsSchema,
2472
+ FactionWarfareSystemSchema,
2473
+ FactionWarfareWarSchema,
2474
+ FactionWarfareFactionLeaderboardSchema,
2475
+ FactionWarfareCharacterLeaderboardSchema,
2476
+ FactionWarfareCorporationLeaderboardSchema,
2477
+ FactionWarfareLeaderboardSchema,
2478
+ FactionWarfareCorporationStatsSchema,
2479
+ FittingSchema,
2480
+ FleetInfoSchema,
2481
+ FleetMemberSchema,
2482
+ FleetWingSchema,
2483
+ CharacterFleetInfoSchema,
2484
+ IncursionSchema,
2485
+ IndustryJobSchema,
2486
+ CorporationIndustryJobSchema,
2487
+ MiningLedgerEntrySchema,
2488
+ IndustryFacilitySchema,
2489
+ IndustrySystemSchema,
2490
+ MoonExtractionTimerSchema,
2491
+ MiningObserverSchema,
2492
+ MiningObserverEntrySchema,
2493
+ InsurancePriceSchema,
2494
+ KillmailSummarySchema,
2495
+ KillmailSchema,
2496
+ CharacterLocationSchema,
2497
+ CharacterOnlineSchema,
2498
+ CharacterShipSchema,
2499
+ LoyaltyPointsSchema,
2500
+ LoyaltyStoreOfferSchema,
2501
+ MailHeaderSchema,
2502
+ MailMessageSchema,
2503
+ MailLabelSchema,
2504
+ MailLabelsResponseSchema,
2505
+ MailingListSchema,
2506
+ MarketOrderSchema,
2507
+ CharacterMarketOrderSchema,
2508
+ CharacterMarketOrderHistorySchema,
2509
+ CorporationMarketOrderSchema,
2510
+ CorporationMarketOrderHistorySchema,
2511
+ StructureMarketOrderSchema,
2512
+ MarketHistorySchema,
2513
+ MarketGroupSchema,
2514
+ MarketPriceSchema,
2515
+ PlanetaryColonySchema,
2516
+ CustomsOfficeSchema,
2517
+ ColonyLayoutSchema,
2518
+ SolarSystemInfoSchema,
2519
+ ConstellationInfoSchema,
2520
+ RegionInfoSchema,
2521
+ AncestrySchema,
2522
+ BloodlineSchema,
2523
+ FactionSchema,
2524
+ RaceSchema,
2525
+ StationInfoSchema,
2526
+ TypeInfoSchema,
2527
+ AsteroidBeltInfoSchema,
2528
+ GraphicInfoSchema,
2529
+ ItemCategorySchema,
2530
+ ItemGroupSchema,
2531
+ MoonInfoSchema,
2532
+ PlanetInfoSchema,
2533
+ StarInfoSchema,
2534
+ StargateInfoSchema,
2535
+ StructureInfoSchema,
2536
+ SystemJumpSchema,
2537
+ SystemKillSchema,
2538
+ BulkIdResultSchema,
2539
+ NameAndCategorySchema,
2540
+ SchematicInfoSchema,
2541
+ SearchResultSchema,
2542
+ CharacterSkillSchema,
2543
+ CharacterSkillsResponseSchema,
2544
+ SkillQueueSchema,
2545
+ SovereigntyCampaignSchema,
2546
+ SovereigntySystemStructureSchema,
2547
+ SovereigntySystemSchema,
2548
+ ServerStatusSchema,
2549
+ WalletTransactionSchema,
2550
+ CorporationWalletTransactionSchema,
2551
+ WalletJournalSchema,
2552
+ WarSchema,
2553
+ MetaChangelogEntrySchema,
2554
+ MetaChangelogSchema,
2555
+ MetaCompatibilityDatesSchema,
2556
+ MetaNameSchema,
2557
+ MetaRouteStatusSchema,
2558
+ MetaStatusSchema,
2559
+ EsiCursorSchema,
2560
+ FreelanceJobSummarySchema,
2561
+ FreelanceJobsListingSchema,
2562
+ FreelanceJobDetailSchema,
2563
+ CharacterFreelanceJobsListingSchema,
2564
+ FreelanceJobParticipationSchema,
2565
+ CorporationFreelanceJobsListingSchema,
2566
+ FreelanceJobParticipantSchema,
2567
+ FreelanceJobParticipantsListingSchema,
2568
+ SovereigntyHubSchema,
2569
+ OrbitalSkyhookSchema,
2570
+ RaidableSkyhookSchema,
2571
+ SkyhookDetailReagentSchema,
2572
+ SkyhookDetailReinforcementTimerSchema,
2573
+ SkyhookDetailTheftVulnerabilitySchema,
2574
+ SkyhookDetailSchema,
2575
+ SovereigntyHubDetailReagentSchema,
2576
+ SovereigntyHubDetailReagentBaySchema,
2577
+ SovereigntyHubDetailResourceSchema,
2578
+ SovereigntyHubDetailResourcesSchema,
2579
+ SovereigntyHubDetailUpgradeSchema,
2580
+ SovereigntyHubDetailVulnerabilityWindowSchema,
2581
+ SovereigntyHubDetailTransportSchema,
2582
+ SovereigntyHubDetailSchema,
2583
+ MercenaryDenSchema,
2584
+ MercenaryTacticalOperationSchema,
2585
+ MercenaryDenDetailEvolutionSchema,
2586
+ MercenaryDenDetailInfomorphsSchema,
2587
+ MercenaryDenDetailReinforcementTimerSchema,
2588
+ MercenaryDenDetailSkyhookSchema,
2589
+ MercenaryDenDetailSchema,
2590
+ MercenaryTacticalOperationDetailSchema,
2591
+ AccessListEntrySchema,
2592
+ AccessListSchema,
2593
+ SkinrLicenseSchema,
2594
+ CharacterSkinrSchema,
2595
+ SkinrComponentRunsSchema,
2596
+ SkinrComponentLicenseSchema,
2597
+ CharacterSkinrComponentsSchema,
2598
+ SkinrTierSchema,
2599
+ SkinrLayoutSlotSchema,
2600
+ SkinrLayoutSchema,
2601
+ SkinrSchema,
2602
+ ParagonHubCursorSchema,
2603
+ ParagonHubSkinrPriceSchema,
2604
+ ParagonHubSkinrListingSchema,
2605
+ ParagonHubSkinrTargetSchema,
2606
+ ParagonHubCharacterListingSchema,
2607
+ ParagonHubSkinrResponseSchema,
2608
+ ParagonHubCharacterSkinrResponseSchema,
2609
+ MilitaryCampaignSchema,
2610
+ MilitaryCampaignObjectiveSchema,
2611
+ CharacterMilitaryCampaignObjectiveSchema,
2612
+ schemas_exports
2613
+ };
2614
+ //# sourceMappingURL=chunk-VZS32UQ3.mjs.map