@lgriffin/esi.ts 8.0.0 → 9.1.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 (153) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/LICENSE +26 -26
  3. package/README.md +988 -967
  4. package/dist/EsiClient.d.ts +4 -0
  5. package/dist/EsiClient.d.ts.map +1 -1
  6. package/dist/clients/AccessListsClient.d.ts +11 -1
  7. package/dist/clients/AccessListsClient.d.ts.map +1 -1
  8. package/dist/clients/CorporationProjectsClient.d.ts +44 -0
  9. package/dist/clients/CorporationProjectsClient.d.ts.map +1 -0
  10. package/dist/clients/MercenaryClient.d.ts +6 -2
  11. package/dist/clients/MercenaryClient.d.ts.map +1 -1
  12. package/dist/clients/MetaClient.d.ts +25 -0
  13. package/dist/clients/MetaClient.d.ts.map +1 -1
  14. package/dist/clients/MilitaryCampaignsClient.d.ts +53 -0
  15. package/dist/clients/MilitaryCampaignsClient.d.ts.map +1 -0
  16. package/dist/clients/SkyhooksClient.d.ts +6 -2
  17. package/dist/clients/SkyhooksClient.d.ts.map +1 -1
  18. package/dist/config/jest/globalSetup.d.ts.map +1 -1
  19. package/dist/config/jest/globalTeardown.d.ts.map +1 -1
  20. package/dist/core/ClientRegistry.d.ts +5 -3
  21. package/dist/core/ClientRegistry.d.ts.map +1 -1
  22. package/dist/core/configureApiClient.d.ts.map +1 -1
  23. package/dist/core/constants.d.ts +2 -2
  24. package/dist/core/endpoints/accessListEndpoints.d.ts +34 -11
  25. package/dist/core/endpoints/accessListEndpoints.d.ts.map +1 -1
  26. package/dist/core/endpoints/corporationProjectEndpoints.d.ts +50 -0
  27. package/dist/core/endpoints/corporationProjectEndpoints.d.ts.map +1 -0
  28. package/dist/core/endpoints/industryEndpoints.d.ts +3 -3
  29. package/dist/core/endpoints/mercenaryEndpoints.d.ts +6 -4
  30. package/dist/core/endpoints/mercenaryEndpoints.d.ts.map +1 -1
  31. package/dist/core/endpoints/metaEndpoints.d.ts +36 -0
  32. package/dist/core/endpoints/metaEndpoints.d.ts.map +1 -1
  33. package/dist/core/endpoints/militaryCampaignEndpoints.d.ts +87 -0
  34. package/dist/core/endpoints/militaryCampaignEndpoints.d.ts.map +1 -0
  35. package/dist/core/endpoints/skyhookEndpoints.d.ts +7 -5
  36. package/dist/core/endpoints/skyhookEndpoints.d.ts.map +1 -1
  37. package/dist/core/pagination/CursorPaginationHandler.d.ts +9 -4
  38. package/dist/core/pagination/CursorPaginationHandler.d.ts.map +1 -1
  39. package/dist/core/pagination/PaginationHandler.d.ts +6 -5
  40. package/dist/core/pagination/PaginationHandler.d.ts.map +1 -1
  41. package/dist/core/requestPipeline/cachePolicy.d.ts +1 -0
  42. package/dist/core/requestPipeline/cachePolicy.d.ts.map +1 -1
  43. package/dist/core/requestPipeline/paginationOrchestration.d.ts.map +1 -1
  44. package/dist/core/requestPipeline/statusHandling.d.ts.map +1 -1
  45. package/dist/core/util/error.d.ts +2 -0
  46. package/dist/core/util/error.d.ts.map +1 -1
  47. package/dist/errors.d.ts +4 -0
  48. package/dist/errors.d.ts.map +1 -0
  49. package/dist/errors.js +196 -0
  50. package/dist/errors.js.map +1 -0
  51. package/dist/errors.mjs +146 -0
  52. package/dist/errors.mjs.map +1 -0
  53. package/dist/index.d.ts +3 -1
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +1862 -1463
  56. package/dist/index.js.map +1 -1
  57. package/dist/index.mjs +1859 -1463
  58. package/dist/index.mjs.map +1 -1
  59. package/dist/schemas/corporation-projects.d.ts +17 -0
  60. package/dist/schemas/corporation-projects.d.ts.map +1 -0
  61. package/dist/schemas/index.d.ts +3 -0
  62. package/dist/schemas/index.d.ts.map +1 -1
  63. package/dist/schemas/index.js +2177 -0
  64. package/dist/schemas/index.js.map +1 -0
  65. package/dist/schemas/index.mjs +1993 -0
  66. package/dist/schemas/index.mjs.map +1 -0
  67. package/dist/schemas/meta.d.ts +25 -0
  68. package/dist/schemas/meta.d.ts.map +1 -0
  69. package/dist/schemas/military-campaigns.d.ts +26 -0
  70. package/dist/schemas/military-campaigns.d.ts.map +1 -0
  71. package/dist/testing/index.d.ts +2 -0
  72. package/dist/testing/index.d.ts.map +1 -0
  73. package/dist/testing/index.js +935 -0
  74. package/dist/testing/index.js.map +1 -0
  75. package/dist/testing/index.mjs +898 -0
  76. package/dist/testing/index.mjs.map +1 -0
  77. package/dist/types/api-responses.d.ts +3 -0
  78. package/dist/types/api-responses.d.ts.map +1 -1
  79. package/dist/types/corporation-projects.d.ts +6 -0
  80. package/dist/types/corporation-projects.d.ts.map +1 -0
  81. package/dist/types/generated/esi-spec.generated.d.ts +3 -3
  82. package/dist/types/generated/esi-spec.generated.d.ts.map +1 -1
  83. package/dist/types/meta.d.ts +8 -0
  84. package/dist/types/meta.d.ts.map +1 -0
  85. package/dist/types/military-campaigns.d.ts +6 -0
  86. package/dist/types/military-campaigns.d.ts.map +1 -0
  87. package/package.json +257 -235
  88. package/dist/schemas/generated/alliance.generated.d.ts +0 -15
  89. package/dist/schemas/generated/alliance.generated.d.ts.map +0 -1
  90. package/dist/schemas/generated/assets.generated.d.ts +0 -272
  91. package/dist/schemas/generated/assets.generated.d.ts.map +0 -1
  92. package/dist/schemas/generated/calendar.generated.d.ts +0 -41
  93. package/dist/schemas/generated/calendar.generated.d.ts.map +0 -1
  94. package/dist/schemas/generated/character.generated.d.ts +0 -670
  95. package/dist/schemas/generated/character.generated.d.ts.map +0 -1
  96. package/dist/schemas/generated/clones.generated.d.ts +0 -23
  97. package/dist/schemas/generated/clones.generated.d.ts.map +0 -1
  98. package/dist/schemas/generated/contacts.generated.d.ts +0 -50
  99. package/dist/schemas/generated/contacts.generated.d.ts.map +0 -1
  100. package/dist/schemas/generated/contracts.generated.d.ts +0 -162
  101. package/dist/schemas/generated/contracts.generated.d.ts.map +0 -1
  102. package/dist/schemas/generated/corporation-projects.generated.d.ts +0 -89
  103. package/dist/schemas/generated/corporation-projects.generated.d.ts.map +0 -1
  104. package/dist/schemas/generated/corporation.generated.d.ts +0 -1515
  105. package/dist/schemas/generated/corporation.generated.d.ts.map +0 -1
  106. package/dist/schemas/generated/dogma.generated.d.ts +0 -57
  107. package/dist/schemas/generated/dogma.generated.d.ts.map +0 -1
  108. package/dist/schemas/generated/faction-warfare.generated.d.ts +0 -155
  109. package/dist/schemas/generated/faction-warfare.generated.d.ts.map +0 -1
  110. package/dist/schemas/generated/fittings.generated.d.ts +0 -57
  111. package/dist/schemas/generated/fittings.generated.d.ts.map +0 -1
  112. package/dist/schemas/generated/fleets.generated.d.ts +0 -45
  113. package/dist/schemas/generated/fleets.generated.d.ts.map +0 -1
  114. package/dist/schemas/generated/freelance-jobs.generated.d.ts +0 -173
  115. package/dist/schemas/generated/freelance-jobs.generated.d.ts.map +0 -1
  116. package/dist/schemas/generated/incursions.generated.d.ts +0 -16
  117. package/dist/schemas/generated/incursions.generated.d.ts.map +0 -1
  118. package/dist/schemas/generated/index.d.ts +0 -33
  119. package/dist/schemas/generated/index.d.ts.map +0 -1
  120. package/dist/schemas/generated/industry.generated.d.ts +0 -117
  121. package/dist/schemas/generated/industry.generated.d.ts.map +0 -1
  122. package/dist/schemas/generated/insurance.generated.d.ts +0 -10
  123. package/dist/schemas/generated/insurance.generated.d.ts.map +0 -1
  124. package/dist/schemas/generated/killmails.generated.d.ts +0 -55
  125. package/dist/schemas/generated/killmails.generated.d.ts.map +0 -1
  126. package/dist/schemas/generated/location.generated.d.ts +0 -18
  127. package/dist/schemas/generated/location.generated.d.ts.map +0 -1
  128. package/dist/schemas/generated/loyalty.generated.d.ts +0 -18
  129. package/dist/schemas/generated/loyalty.generated.d.ts.map +0 -1
  130. package/dist/schemas/generated/mail.generated.d.ts +0 -68
  131. package/dist/schemas/generated/mail.generated.d.ts.map +0 -1
  132. package/dist/schemas/generated/market.generated.d.ts +0 -201
  133. package/dist/schemas/generated/market.generated.d.ts.map +0 -1
  134. package/dist/schemas/generated/meta.generated.d.ts +0 -26
  135. package/dist/schemas/generated/meta.generated.d.ts.map +0 -1
  136. package/dist/schemas/generated/planetary-interaction.generated.d.ts +0 -90
  137. package/dist/schemas/generated/planetary-interaction.generated.d.ts.map +0 -1
  138. package/dist/schemas/generated/routes.generated.d.ts +0 -5
  139. package/dist/schemas/generated/routes.generated.d.ts.map +0 -1
  140. package/dist/schemas/generated/search.generated.d.ts +0 -15
  141. package/dist/schemas/generated/search.generated.d.ts.map +0 -1
  142. package/dist/schemas/generated/skills.generated.d.ts +0 -32
  143. package/dist/schemas/generated/skills.generated.d.ts.map +0 -1
  144. package/dist/schemas/generated/sovereignty.generated.d.ts +0 -37
  145. package/dist/schemas/generated/sovereignty.generated.d.ts.map +0 -1
  146. package/dist/schemas/generated/status.generated.d.ts +0 -8
  147. package/dist/schemas/generated/status.generated.d.ts.map +0 -1
  148. package/dist/schemas/generated/universe.generated.d.ts +0 -394
  149. package/dist/schemas/generated/universe.generated.d.ts.map +0 -1
  150. package/dist/schemas/generated/wallet.generated.d.ts +0 -411
  151. package/dist/schemas/generated/wallet.generated.d.ts.map +0 -1
  152. package/dist/schemas/generated/wars.generated.d.ts +0 -31
  153. package/dist/schemas/generated/wars.generated.d.ts.map +0 -1
@@ -0,0 +1,1993 @@
1
+ // src/schemas/common.ts
2
+ import { z } from "zod";
3
+ var StandingSchema = z.looseObject({
4
+ from_id: z.number(),
5
+ from_type: z.enum(["agent", "npc_corp", "faction"]),
6
+ standing: z.number()
7
+ });
8
+ var RateLimitMetaSchema = z.object({
9
+ remaining: z.number(),
10
+ limit: z.number(),
11
+ used: z.number(),
12
+ group: z.string().nullable()
13
+ });
14
+ var EsiResponseMetaSchema = z.looseObject({
15
+ headers: z.record(z.string(), z.string()),
16
+ fromCache: z.boolean(),
17
+ stale: z.boolean(),
18
+ cacheHitType: z.enum(["spec-ttl", "etag-304", "stale-on-error"]).optional(),
19
+ warning: z.object({
20
+ code: z.number(),
21
+ message: z.string()
22
+ }).optional(),
23
+ requestId: z.string().optional(),
24
+ date: z.string().optional(),
25
+ contentLanguage: z.string().optional(),
26
+ rateLimit: RateLimitMetaSchema.optional(),
27
+ responseTimeMs: z.number().optional()
28
+ });
29
+ function esiResponse(dataSchema) {
30
+ return z.object({
31
+ data: dataSchema,
32
+ meta: EsiResponseMetaSchema
33
+ });
34
+ }
35
+
36
+ // src/schemas/access-lists.ts
37
+ import { z as z2 } from "zod";
38
+ var AccessListEntrySchema = z2.looseObject({
39
+ entity_id: z2.number(),
40
+ entity_type: z2.enum(["character", "corporation", "alliance"]),
41
+ access_type: z2.enum(["allowed", "blocked"])
42
+ });
43
+ var AccessListSchema = z2.looseObject({
44
+ access_list_id: z2.number(),
45
+ name: z2.string(),
46
+ entries: z2.array(AccessListEntrySchema)
47
+ });
48
+
49
+ // src/schemas/alliance.ts
50
+ import { z as z3 } from "zod";
51
+ var AllianceInfoSchema = z3.looseObject({
52
+ alliance_id: z3.number().optional(),
53
+ name: z3.string(),
54
+ ticker: z3.string(),
55
+ creator_id: z3.number(),
56
+ creator_corporation_id: z3.number(),
57
+ executor_corporation_id: z3.number().optional(),
58
+ date_founded: z3.string(),
59
+ faction_id: z3.number().optional()
60
+ });
61
+ var AllianceContactSchema = z3.looseObject({
62
+ contact_id: z3.number(),
63
+ contact_type: z3.enum(["character", "corporation", "alliance"]),
64
+ standing: z3.number(),
65
+ label_ids: z3.array(z3.number()).optional()
66
+ });
67
+ var AllianceContactLabelSchema = z3.looseObject({
68
+ label_id: z3.number(),
69
+ label_name: z3.string()
70
+ });
71
+ var AllianceIconSchema = z3.looseObject({
72
+ px64x64: z3.string().optional(),
73
+ px128x128: z3.string().optional()
74
+ });
75
+
76
+ // src/schemas/assets.ts
77
+ import { z as z4 } from "zod";
78
+ var CharacterAssetSchema = z4.looseObject({
79
+ item_id: z4.number(),
80
+ type_id: z4.number(),
81
+ quantity: z4.number(),
82
+ location_id: z4.number(),
83
+ location_type: z4.enum(["station", "solar_system", "item", "other"]),
84
+ location_flag: z4.string(),
85
+ is_singleton: z4.boolean(),
86
+ is_blueprint_copy: z4.boolean().optional()
87
+ });
88
+ var AssetLocationSchema = z4.looseObject({
89
+ item_id: z4.number(),
90
+ position: z4.looseObject({
91
+ x: z4.number(),
92
+ y: z4.number(),
93
+ z: z4.number()
94
+ })
95
+ });
96
+ var AssetNameSchema = z4.looseObject({
97
+ item_id: z4.number(),
98
+ name: z4.string()
99
+ });
100
+
101
+ // src/schemas/calendar.ts
102
+ import { z as z5 } from "zod";
103
+ var CalendarEventSchema = z5.looseObject({
104
+ event_id: z5.number(),
105
+ event_date: z5.string(),
106
+ title: z5.string(),
107
+ importance: z5.number(),
108
+ event_response: z5.enum([
109
+ "declined",
110
+ "not_responded",
111
+ "accepted",
112
+ "tentative"
113
+ ])
114
+ });
115
+ var CalendarEventDetailSchema = z5.looseObject({
116
+ event_id: z5.number(),
117
+ date: z5.string(),
118
+ title: z5.string(),
119
+ text: z5.string(),
120
+ owner_id: z5.number(),
121
+ owner_name: z5.string(),
122
+ owner_type: z5.enum([
123
+ "eve_server",
124
+ "corporation",
125
+ "faction",
126
+ "character",
127
+ "alliance"
128
+ ]),
129
+ duration: z5.number(),
130
+ importance: z5.number(),
131
+ response: z5.string()
132
+ });
133
+ var CalendarEventAttendeeSchema = z5.looseObject({
134
+ character_id: z5.number(),
135
+ event_response: z5.enum([
136
+ "declined",
137
+ "not_responded",
138
+ "accepted",
139
+ "tentative"
140
+ ])
141
+ });
142
+
143
+ // src/schemas/character.ts
144
+ import { z as z6 } from "zod";
145
+ var CharacterInfoSchema = z6.looseObject({
146
+ character_id: z6.number().optional(),
147
+ name: z6.string(),
148
+ description: z6.string().optional(),
149
+ corporation_id: z6.number(),
150
+ alliance_id: z6.number().optional(),
151
+ faction_id: z6.number().optional(),
152
+ ancestry_id: z6.number().optional(),
153
+ bloodline_id: z6.number(),
154
+ race_id: z6.number(),
155
+ gender: z6.enum(["male", "female"]),
156
+ security_status: z6.number().optional(),
157
+ title: z6.string().optional(),
158
+ birthday: z6.string()
159
+ });
160
+ var CharacterPortraitSchema = z6.looseObject({
161
+ px64x64: z6.string().optional(),
162
+ px128x128: z6.string().optional(),
163
+ px256x256: z6.string().optional(),
164
+ px512x512: z6.string().optional()
165
+ });
166
+ var CharacterAttributesSchema = z6.looseObject({
167
+ charisma: z6.number(),
168
+ intelligence: z6.number(),
169
+ memory: z6.number(),
170
+ perception: z6.number(),
171
+ willpower: z6.number(),
172
+ bonus_remaps: z6.number().optional(),
173
+ last_remap_date: z6.string().optional(),
174
+ accrued_remap_cooldown_date: z6.string().optional()
175
+ });
176
+ var AgentResearchSchema = z6.looseObject({
177
+ agent_id: z6.number(),
178
+ skill_type_id: z6.number(),
179
+ started_at: z6.string(),
180
+ points_per_day: z6.number(),
181
+ remainder_points: z6.number()
182
+ });
183
+ var BlueprintSchema = z6.looseObject({
184
+ item_id: z6.number(),
185
+ type_id: z6.number(),
186
+ location_id: z6.number(),
187
+ location_flag: z6.string(),
188
+ quantity: z6.number(),
189
+ time_efficiency: z6.number(),
190
+ material_efficiency: z6.number(),
191
+ runs: z6.number()
192
+ });
193
+ var CorporationHistorySchema = z6.looseObject({
194
+ corporation_id: z6.number(),
195
+ record_id: z6.number(),
196
+ start_date: z6.string(),
197
+ is_deleted: z6.boolean().optional()
198
+ });
199
+ var JumpFatigueSchema = z6.looseObject({
200
+ jump_fatigue_expire_date: z6.string().optional(),
201
+ last_jump_date: z6.string().optional(),
202
+ last_update_date: z6.string().optional()
203
+ });
204
+ var MedalSchema = z6.looseObject({
205
+ medal_id: z6.number(),
206
+ title: z6.string(),
207
+ description: z6.string(),
208
+ date: z6.string(),
209
+ issuer_id: z6.number(),
210
+ corporation_id: z6.number(),
211
+ reason: z6.string(),
212
+ status: z6.enum(["private", "public"]),
213
+ graphics: z6.array(
214
+ z6.looseObject({
215
+ part: z6.number(),
216
+ layer: z6.number(),
217
+ graphic: z6.string(),
218
+ color: z6.number().optional()
219
+ })
220
+ )
221
+ });
222
+ var NotificationSchema = z6.looseObject({
223
+ notification_id: z6.number(),
224
+ type: z6.string(),
225
+ sender_id: z6.number(),
226
+ sender_type: z6.enum([
227
+ "character",
228
+ "corporation",
229
+ "alliance",
230
+ "faction",
231
+ "other"
232
+ ]),
233
+ timestamp: z6.string(),
234
+ text: z6.string().optional(),
235
+ is_read: z6.boolean().optional()
236
+ });
237
+ var CharacterTitleSchema = z6.looseObject({
238
+ title_id: z6.number(),
239
+ name: z6.string()
240
+ });
241
+ var CharacterAffiliationSchema = z6.looseObject({
242
+ character_id: z6.number(),
243
+ corporation_id: z6.number(),
244
+ alliance_id: z6.number().optional(),
245
+ faction_id: z6.number().optional()
246
+ });
247
+ var ContactNotificationSchema = z6.looseObject({
248
+ notification_id: z6.number(),
249
+ sender_character_id: z6.number(),
250
+ message: z6.string(),
251
+ send_date: z6.string(),
252
+ standing_level: z6.number()
253
+ });
254
+ var CharacterRoleSchema = z6.looseObject({
255
+ roles: z6.array(z6.string()).optional(),
256
+ roles_at_hq: z6.array(z6.string()).optional(),
257
+ roles_at_base: z6.array(z6.string()).optional(),
258
+ roles_at_other: z6.array(z6.string()).optional()
259
+ });
260
+
261
+ // src/schemas/clones.ts
262
+ import { z as z7 } from "zod";
263
+ var CloneInfoSchema = z7.looseObject({
264
+ home_location: z7.looseObject({
265
+ location_id: z7.number(),
266
+ location_type: z7.enum(["station", "structure"])
267
+ }).optional(),
268
+ jump_clones: z7.array(
269
+ z7.looseObject({
270
+ jump_clone_id: z7.number(),
271
+ location_id: z7.number(),
272
+ location_type: z7.enum(["station", "structure"]),
273
+ implants: z7.array(z7.number()),
274
+ name: z7.string().optional()
275
+ })
276
+ ),
277
+ last_clone_jump_date: z7.string().optional(),
278
+ last_station_change_date: z7.string().optional()
279
+ });
280
+
281
+ // src/schemas/contacts.ts
282
+ import { z as z8 } from "zod";
283
+ var ContactSchema = z8.looseObject({
284
+ contact_id: z8.number(),
285
+ contact_type: z8.enum(["character", "corporation", "alliance", "faction"]),
286
+ standing: z8.number(),
287
+ label_ids: z8.array(z8.number()).optional(),
288
+ is_blocked: z8.boolean().optional(),
289
+ is_watched: z8.boolean().optional()
290
+ });
291
+ var ContactLabelSchema = z8.looseObject({
292
+ label_id: z8.number(),
293
+ label_name: z8.string()
294
+ });
295
+
296
+ // src/schemas/contracts.ts
297
+ import { z as z9 } from "zod";
298
+ var ContractSchema = z9.looseObject({
299
+ contract_id: z9.number(),
300
+ issuer_id: z9.number(),
301
+ issuer_corporation_id: z9.number(),
302
+ assignee_id: z9.number().optional(),
303
+ acceptor_id: z9.number().optional(),
304
+ start_location_id: z9.number().optional(),
305
+ end_location_id: z9.number().optional(),
306
+ type: z9.enum(["unknown", "item_exchange", "auction", "courier", "loan"]),
307
+ status: z9.enum([
308
+ "outstanding",
309
+ "in_progress",
310
+ "finished_issuer",
311
+ "finished_contractor",
312
+ "finished",
313
+ "cancelled",
314
+ "rejected",
315
+ "failed",
316
+ "deleted",
317
+ "reversed"
318
+ ]).optional(),
319
+ title: z9.string().optional(),
320
+ for_corporation: z9.boolean().optional(),
321
+ availability: z9.enum(["public", "personal", "corporation", "alliance"]).optional(),
322
+ date_issued: z9.string(),
323
+ date_expired: z9.string(),
324
+ date_accepted: z9.string().optional(),
325
+ date_completed: z9.string().optional(),
326
+ days_to_complete: z9.number().optional(),
327
+ price: z9.number().optional(),
328
+ reward: z9.number().optional(),
329
+ collateral: z9.number().optional(),
330
+ buyout: z9.number().optional(),
331
+ volume: z9.number().optional()
332
+ });
333
+ var ContractItemSchema = z9.looseObject({
334
+ record_id: z9.number(),
335
+ type_id: z9.number(),
336
+ quantity: z9.number(),
337
+ raw_quantity: z9.number().optional(),
338
+ is_singleton: z9.boolean(),
339
+ is_blueprint_copy: z9.boolean().optional(),
340
+ is_included: z9.boolean()
341
+ });
342
+ var ContractBidSchema = z9.looseObject({
343
+ bid_id: z9.number(),
344
+ bidder_id: z9.number(),
345
+ date_bid: z9.string(),
346
+ amount: z9.number()
347
+ });
348
+
349
+ // src/schemas/corporation.ts
350
+ import { z as z10 } from "zod";
351
+ var CorporationInfoSchema = z10.looseObject({
352
+ corporation_id: z10.number().optional(),
353
+ name: z10.string(),
354
+ ticker: z10.string(),
355
+ description: z10.string().optional(),
356
+ url: z10.string().optional(),
357
+ alliance_id: z10.number().optional(),
358
+ ceo_id: z10.number(),
359
+ creator_id: z10.number(),
360
+ date_founded: z10.string().optional(),
361
+ faction_id: z10.number().optional(),
362
+ home_station_id: z10.number().optional(),
363
+ member_count: z10.number(),
364
+ shares: z10.number().optional(),
365
+ tax_rate: z10.number(),
366
+ war_eligible: z10.boolean().optional()
367
+ });
368
+ var CorporationAllianceHistorySchema = z10.looseObject({
369
+ alliance_id: z10.number().optional(),
370
+ is_deleted: z10.boolean().optional(),
371
+ record_id: z10.number(),
372
+ start_date: z10.string()
373
+ });
374
+ var CorporationMedalSchema = z10.looseObject({
375
+ medal_id: z10.number(),
376
+ title: z10.string(),
377
+ description: z10.string(),
378
+ creator_id: z10.number(),
379
+ date: z10.string()
380
+ });
381
+ var CorporationStarbaseSchema = z10.looseObject({
382
+ starbase_id: z10.number(),
383
+ type_id: z10.number(),
384
+ system_id: z10.number(),
385
+ state: z10.enum(["offline", "online", "onlining", "reinforced", "unanchoring"]),
386
+ moon_id: z10.number().optional(),
387
+ onlined_since: z10.string().optional(),
388
+ reinforced_until: z10.string().optional(),
389
+ unanchor_at: z10.string().optional()
390
+ });
391
+ var CorporationDivisionsSchema = z10.looseObject({
392
+ hangar: z10.array(
393
+ z10.looseObject({
394
+ division: z10.number(),
395
+ name: z10.string().optional()
396
+ })
397
+ ).optional(),
398
+ wallet: z10.array(
399
+ z10.looseObject({
400
+ division: z10.number(),
401
+ name: z10.string().optional()
402
+ })
403
+ ).optional()
404
+ });
405
+ var CorporationFacilitySchema = z10.looseObject({
406
+ facility_id: z10.number(),
407
+ type_id: z10.number(),
408
+ system_id: z10.number()
409
+ });
410
+ var CorporationIssuedMedalSchema = z10.looseObject({
411
+ medal_id: z10.number(),
412
+ title: z10.string(),
413
+ description: z10.string(),
414
+ character_id: z10.number(),
415
+ issued_at: z10.string(),
416
+ issuer_id: z10.number(),
417
+ reason: z10.string(),
418
+ status: z10.enum(["private", "public"])
419
+ });
420
+ var CorporationMemberTitleSchema = z10.looseObject({
421
+ character_id: z10.number(),
422
+ titles: z10.array(z10.number())
423
+ });
424
+ var CorporationMemberTrackingSchema = z10.looseObject({
425
+ character_id: z10.number(),
426
+ start_date: z10.string(),
427
+ base_id: z10.number().optional(),
428
+ location_id: z10.number().optional(),
429
+ logoff_date: z10.string().optional(),
430
+ logon_date: z10.string().optional(),
431
+ online: z10.boolean().optional(),
432
+ ship_type_id: z10.number().optional()
433
+ });
434
+ var CorporationMemberRoleSchema = z10.looseObject({
435
+ character_id: z10.number(),
436
+ roles: z10.array(z10.string()).optional(),
437
+ grantable_roles: z10.array(z10.string()).optional(),
438
+ roles_at_hq: z10.array(z10.string()).optional(),
439
+ grantable_roles_at_hq: z10.array(z10.string()).optional(),
440
+ roles_at_base: z10.array(z10.string()).optional(),
441
+ grantable_roles_at_base: z10.array(z10.string()).optional(),
442
+ roles_at_other: z10.array(z10.string()).optional(),
443
+ grantable_roles_at_other: z10.array(z10.string()).optional()
444
+ });
445
+ var CorporationRoleHistorySchema = z10.looseObject({
446
+ character_id: z10.number(),
447
+ changed_at: z10.string(),
448
+ issuer_id: z10.number(),
449
+ role_type: z10.string(),
450
+ before: z10.array(z10.string()),
451
+ after: z10.array(z10.string())
452
+ });
453
+ var CorporationShareholderSchema = z10.looseObject({
454
+ shareholder_id: z10.number(),
455
+ shareholder_type: z10.enum(["character", "corporation"]),
456
+ share_count: z10.number()
457
+ });
458
+ var CorporationStarbaseDetailSchema = z10.looseObject({
459
+ state: z10.enum(["offline", "online", "onlining", "reinforced", "unanchoring"]),
460
+ fuels: z10.array(
461
+ z10.looseObject({
462
+ type_id: z10.number(),
463
+ quantity: z10.number()
464
+ })
465
+ ).optional(),
466
+ allow_alliance_members: z10.boolean().optional(),
467
+ allow_corporation_members: z10.boolean().optional(),
468
+ anchor: z10.string().optional(),
469
+ attack_if_at_war: z10.boolean().optional(),
470
+ attack_if_other_security_status_dropping: z10.boolean().optional(),
471
+ attack_security_status_threshold: z10.number().optional(),
472
+ attack_standing_threshold: z10.number().optional(),
473
+ fuel_bay_take: z10.string().optional(),
474
+ fuel_bay_view: z10.string().optional(),
475
+ offline: z10.string().optional(),
476
+ online: z10.string().optional(),
477
+ unanchor: z10.string().optional(),
478
+ use_alliance_standings: z10.boolean().optional()
479
+ });
480
+ var CorporationStructureSchema = z10.looseObject({
481
+ structure_id: z10.number(),
482
+ corporation_id: z10.number(),
483
+ type_id: z10.number(),
484
+ system_id: z10.number(),
485
+ profile_id: z10.number(),
486
+ services: z10.array(
487
+ z10.looseObject({
488
+ name: z10.string(),
489
+ state: z10.enum(["online", "offline", "cleanup"])
490
+ })
491
+ ).optional(),
492
+ fuel_expires: z10.string().optional(),
493
+ name: z10.string().optional(),
494
+ state: z10.string(),
495
+ state_timer_start: z10.string().optional(),
496
+ state_timer_end: z10.string().optional(),
497
+ unanchors_at: z10.string().optional(),
498
+ reinforce_hour: z10.number().optional(),
499
+ next_reinforce_hour: z10.number().optional(),
500
+ next_reinforce_apply: z10.string().optional()
501
+ });
502
+ var CorporationTitleSchema = z10.looseObject({
503
+ title_id: z10.number(),
504
+ name: z10.string().optional(),
505
+ roles: z10.array(z10.string()).optional(),
506
+ grantable_roles: z10.array(z10.string()).optional(),
507
+ roles_at_hq: z10.array(z10.string()).optional(),
508
+ grantable_roles_at_hq: z10.array(z10.string()).optional(),
509
+ roles_at_base: z10.array(z10.string()).optional(),
510
+ grantable_roles_at_base: z10.array(z10.string()).optional(),
511
+ roles_at_other: z10.array(z10.string()).optional(),
512
+ grantable_roles_at_other: z10.array(z10.string()).optional()
513
+ });
514
+ var CorporationIconSchema = z10.looseObject({
515
+ px64x64: z10.string().optional(),
516
+ px128x128: z10.string().optional(),
517
+ px256x256: z10.string().optional()
518
+ });
519
+ var CorporationWalletDivisionSchema = z10.looseObject({
520
+ division: z10.number(),
521
+ balance: z10.number()
522
+ });
523
+ var ContainerLogSchema = z10.looseObject({
524
+ logged_at: z10.string(),
525
+ container_id: z10.number(),
526
+ container_type_id: z10.number(),
527
+ character_id: z10.number(),
528
+ location_id: z10.number(),
529
+ location_flag: z10.string(),
530
+ action: z10.string(),
531
+ password_type: z10.enum(["config", "general"]).optional(),
532
+ type_id: z10.number().optional(),
533
+ quantity: z10.number().optional(),
534
+ old_config_bitmask: z10.number().optional(),
535
+ new_config_bitmask: z10.number().optional()
536
+ });
537
+
538
+ // src/schemas/corporation-projects.ts
539
+ import { z as z11 } from "zod";
540
+ var CorporationProjectSchema = z11.looseObject({
541
+ project_id: z11.number(),
542
+ state: z11.string(),
543
+ progress: z11.number(),
544
+ start_time: z11.string(),
545
+ finish_time: z11.string().optional()
546
+ });
547
+ var CorporationProjectContributionSchema = z11.looseObject({
548
+ character_id: z11.number(),
549
+ contribution: z11.number()
550
+ });
551
+ var CorporationProjectContributorSchema = z11.looseObject({
552
+ character_id: z11.number(),
553
+ contribution: z11.number()
554
+ });
555
+
556
+ // src/schemas/dogma.ts
557
+ import { z as z12 } from "zod";
558
+ var DogmaAttributeSchema = z12.looseObject({
559
+ attribute_id: z12.number(),
560
+ name: z12.string(),
561
+ description: z12.string().optional(),
562
+ icon_id: z12.number().optional(),
563
+ default_value: z12.number().optional(),
564
+ published: z12.boolean().optional(),
565
+ display_name: z12.string().optional(),
566
+ unit_id: z12.number().optional(),
567
+ stackable: z12.boolean().optional(),
568
+ high_is_good: z12.boolean().optional()
569
+ });
570
+ var DogmaEffectSchema = z12.looseObject({
571
+ effect_id: z12.number(),
572
+ name: z12.string(),
573
+ description: z12.string().optional(),
574
+ icon_id: z12.number().optional(),
575
+ display_name: z12.string().optional(),
576
+ published: z12.boolean().optional(),
577
+ effect_category: z12.number().optional(),
578
+ is_assistance: z12.boolean().optional(),
579
+ is_offensive: z12.boolean().optional(),
580
+ is_warp_safe: z12.boolean().optional(),
581
+ disallow_auto_repeat: z12.boolean().optional(),
582
+ discharge_attribute_id: z12.number().optional(),
583
+ duration_attribute_id: z12.number().optional(),
584
+ electronic_chance: z12.boolean().optional(),
585
+ falloff_attribute_id: z12.number().optional(),
586
+ modifiers: z12.array(
587
+ z12.looseObject({
588
+ domain: z12.string().optional(),
589
+ effect_id: z12.number().optional(),
590
+ func: z12.string(),
591
+ modified_attribute_id: z12.number().optional(),
592
+ modifying_attribute_id: z12.number().optional(),
593
+ operator: z12.number().optional()
594
+ })
595
+ ).optional(),
596
+ post_expression: z12.number().optional(),
597
+ pre_expression: z12.number().optional(),
598
+ range_attribute_id: z12.number().optional(),
599
+ range_chance: z12.boolean().optional(),
600
+ tracking_speed_attribute_id: z12.number().optional()
601
+ });
602
+ var DogmaDynamicItemSchema = z12.looseObject({
603
+ created_by: z12.number(),
604
+ dogma_attributes: z12.array(
605
+ z12.looseObject({
606
+ attribute_id: z12.number(),
607
+ value: z12.number()
608
+ })
609
+ ),
610
+ dogma_effects: z12.array(
611
+ z12.looseObject({
612
+ effect_id: z12.number(),
613
+ is_default: z12.boolean()
614
+ })
615
+ ),
616
+ mutator_type_id: z12.number(),
617
+ source_type_id: z12.number()
618
+ });
619
+
620
+ // src/schemas/faction-warfare.ts
621
+ import { z as z13 } from "zod";
622
+ var FactionWarfareStatsSchema = z13.looseObject({
623
+ faction_id: z13.number(),
624
+ pilots: z13.number(),
625
+ systems_controlled: z13.number(),
626
+ kills: z13.looseObject({
627
+ yesterday: z13.number(),
628
+ last_week: z13.number(),
629
+ total: z13.number()
630
+ }),
631
+ victory_points: z13.looseObject({
632
+ yesterday: z13.number(),
633
+ last_week: z13.number(),
634
+ total: z13.number()
635
+ })
636
+ });
637
+ var FactionWarfareCharacterStatsSchema = z13.looseObject({
638
+ faction_id: z13.number().optional(),
639
+ enlisted_on: z13.string().optional(),
640
+ current_rank: z13.number().optional(),
641
+ highest_rank: z13.number().optional(),
642
+ kills: z13.looseObject({
643
+ yesterday: z13.number(),
644
+ last_week: z13.number(),
645
+ total: z13.number()
646
+ }),
647
+ victory_points: z13.looseObject({
648
+ yesterday: z13.number(),
649
+ last_week: z13.number(),
650
+ total: z13.number()
651
+ })
652
+ });
653
+ var FactionWarfareSystemSchema = z13.looseObject({
654
+ solar_system_id: z13.number(),
655
+ owner_faction_id: z13.number(),
656
+ occupier_faction_id: z13.number(),
657
+ contested: z13.enum(["captured", "contested", "uncontested", "vulnerable"]),
658
+ victory_points: z13.number(),
659
+ victory_points_threshold: z13.number()
660
+ });
661
+ var FactionWarfareWarSchema = z13.looseObject({
662
+ faction_id: z13.number(),
663
+ against_id: z13.number()
664
+ });
665
+ var FactionWarfareLeaderboardSchema = z13.looseObject({
666
+ kills: z13.looseObject({
667
+ yesterday: z13.array(
668
+ z13.looseObject({
669
+ amount: z13.number(),
670
+ id: z13.number().optional()
671
+ })
672
+ ),
673
+ last_week: z13.array(
674
+ z13.looseObject({
675
+ amount: z13.number(),
676
+ id: z13.number().optional()
677
+ })
678
+ ),
679
+ active_total: z13.array(
680
+ z13.looseObject({
681
+ amount: z13.number(),
682
+ id: z13.number().optional()
683
+ })
684
+ )
685
+ }),
686
+ victory_points: z13.looseObject({
687
+ yesterday: z13.array(
688
+ z13.looseObject({
689
+ amount: z13.number(),
690
+ id: z13.number().optional()
691
+ })
692
+ ),
693
+ last_week: z13.array(
694
+ z13.looseObject({
695
+ amount: z13.number(),
696
+ id: z13.number().optional()
697
+ })
698
+ ),
699
+ active_total: z13.array(
700
+ z13.looseObject({
701
+ amount: z13.number(),
702
+ id: z13.number().optional()
703
+ })
704
+ )
705
+ })
706
+ });
707
+ var FactionWarfareCorporationStatsSchema = z13.looseObject({
708
+ faction_id: z13.number().optional(),
709
+ enlisted_on: z13.string().optional(),
710
+ pilots: z13.number().optional(),
711
+ kills: z13.looseObject({
712
+ yesterday: z13.number(),
713
+ last_week: z13.number(),
714
+ total: z13.number()
715
+ }),
716
+ victory_points: z13.looseObject({
717
+ yesterday: z13.number(),
718
+ last_week: z13.number(),
719
+ total: z13.number()
720
+ })
721
+ });
722
+
723
+ // src/schemas/fittings.ts
724
+ import { z as z14 } from "zod";
725
+ var FittingSchema = z14.looseObject({
726
+ fitting_id: z14.number(),
727
+ name: z14.string(),
728
+ description: z14.string(),
729
+ ship_type_id: z14.number(),
730
+ items: z14.array(
731
+ z14.looseObject({
732
+ type_id: z14.number(),
733
+ flag: z14.union([z14.number(), z14.string()]),
734
+ quantity: z14.number()
735
+ })
736
+ )
737
+ });
738
+
739
+ // src/schemas/fleet.ts
740
+ import { z as z15 } from "zod";
741
+ var FleetInfoSchema = z15.looseObject({
742
+ fleet_id: z15.number().optional(),
743
+ fleet_boss_id: z15.number().optional(),
744
+ is_free_move: z15.boolean(),
745
+ is_registered: z15.boolean(),
746
+ is_voice_enabled: z15.boolean(),
747
+ motd: z15.string()
748
+ });
749
+ var FleetMemberSchema = z15.looseObject({
750
+ character_id: z15.number(),
751
+ ship_type_id: z15.number(),
752
+ wing_id: z15.number(),
753
+ squad_id: z15.number(),
754
+ role: z15.enum([
755
+ "fleet_commander",
756
+ "wing_commander",
757
+ "squad_commander",
758
+ "squad_member"
759
+ ]),
760
+ role_name: z15.string(),
761
+ join_time: z15.string(),
762
+ takes_fleet_warp: z15.boolean(),
763
+ solar_system_id: z15.number(),
764
+ station_id: z15.number().optional()
765
+ });
766
+ var FleetWingSchema = z15.looseObject({
767
+ id: z15.number(),
768
+ name: z15.string(),
769
+ squads: z15.array(
770
+ z15.looseObject({
771
+ id: z15.number(),
772
+ name: z15.string()
773
+ })
774
+ )
775
+ });
776
+ var CharacterFleetInfoSchema = z15.looseObject({
777
+ fleet_id: z15.number(),
778
+ fleet_boss_id: z15.number().optional(),
779
+ role: z15.enum([
780
+ "fleet_commander",
781
+ "wing_commander",
782
+ "squad_commander",
783
+ "squad_member"
784
+ ]),
785
+ squad_id: z15.number(),
786
+ wing_id: z15.number()
787
+ });
788
+
789
+ // src/schemas/freelance-jobs.ts
790
+ import { z as z16 } from "zod";
791
+ var EsiCursorSchema = z16.looseObject({
792
+ before: z16.string().nullable(),
793
+ after: z16.string().nullable()
794
+ });
795
+ var FreelanceJobSummarySchema = z16.looseObject({
796
+ id: z16.string(),
797
+ name: z16.string(),
798
+ state: z16.string(),
799
+ last_modified: z16.string(),
800
+ progress: z16.looseObject({
801
+ current: z16.number(),
802
+ desired: z16.number()
803
+ }),
804
+ reward: z16.looseObject({
805
+ initial: z16.number(),
806
+ remaining: z16.number()
807
+ }).optional()
808
+ });
809
+ var FreelanceJobsListingSchema = z16.looseObject({
810
+ cursor: EsiCursorSchema.optional(),
811
+ freelance_jobs: z16.array(FreelanceJobSummarySchema)
812
+ });
813
+ var FreelanceJobDetailSchema = z16.looseObject({
814
+ id: z16.string(),
815
+ name: z16.string(),
816
+ state: z16.string(),
817
+ last_modified: z16.string(),
818
+ progress: z16.looseObject({
819
+ current: z16.number(),
820
+ desired: z16.number()
821
+ }),
822
+ reward: z16.looseObject({
823
+ initial: z16.number(),
824
+ remaining: z16.number()
825
+ }).optional(),
826
+ details: z16.looseObject({
827
+ description: z16.string(),
828
+ career: z16.string(),
829
+ created: z16.string(),
830
+ expires: z16.string(),
831
+ creator: z16.looseObject({
832
+ character: z16.looseObject({
833
+ id: z16.number(),
834
+ name: z16.string()
835
+ }),
836
+ corporation: z16.looseObject({
837
+ id: z16.number(),
838
+ name: z16.string()
839
+ })
840
+ })
841
+ }),
842
+ configuration: z16.looseObject({
843
+ version: z16.number(),
844
+ parameters: z16.record(z16.string(), z16.unknown()),
845
+ method: z16.string()
846
+ }),
847
+ contribution: z16.looseObject({
848
+ max_committed_participants: z16.number(),
849
+ reward_per_contribution: z16.number().optional(),
850
+ submission_multiplier: z16.number().optional()
851
+ }),
852
+ access_and_visibility: z16.looseObject({
853
+ acl_protected: z16.boolean(),
854
+ broadcast_locations: z16.array(
855
+ z16.looseObject({
856
+ id: z16.number(),
857
+ name: z16.string()
858
+ })
859
+ )
860
+ })
861
+ });
862
+ var CharacterFreelanceJobsListingSchema = z16.looseObject({
863
+ cursor: EsiCursorSchema.optional(),
864
+ freelance_jobs: z16.array(FreelanceJobSummarySchema)
865
+ });
866
+ var FreelanceJobParticipationSchema = z16.looseObject({
867
+ job_id: z16.string(),
868
+ character_id: z16.number(),
869
+ status: z16.string(),
870
+ contributions: z16.number(),
871
+ last_contribution: z16.string().optional()
872
+ });
873
+ var CorporationFreelanceJobsListingSchema = z16.looseObject({
874
+ cursor: EsiCursorSchema.optional(),
875
+ freelance_jobs: z16.array(FreelanceJobSummarySchema)
876
+ });
877
+ var FreelanceJobParticipantSchema = z16.looseObject({
878
+ character_id: z16.number(),
879
+ corporation_id: z16.number(),
880
+ status: z16.string(),
881
+ contributions: z16.number(),
882
+ last_contribution: z16.string().optional()
883
+ });
884
+
885
+ // src/schemas/incursions.ts
886
+ import { z as z17 } from "zod";
887
+ var IncursionSchema = z17.looseObject({
888
+ type: z17.string(),
889
+ state: z17.enum(["withdrawing", "mobilizing", "established"]),
890
+ staging_solar_system_id: z17.number(),
891
+ constellation_id: z17.number(),
892
+ infested_solar_systems: z17.array(z17.number()),
893
+ has_boss: z17.boolean(),
894
+ faction_id: z17.number(),
895
+ influence: z17.number()
896
+ });
897
+
898
+ // src/schemas/industry.ts
899
+ import { z as z18 } from "zod";
900
+ var IndustryJobSchema = z18.looseObject({
901
+ job_id: z18.number(),
902
+ installer_id: z18.number(),
903
+ facility_id: z18.number(),
904
+ station_id: z18.number(),
905
+ activity_id: z18.number(),
906
+ blueprint_id: z18.number(),
907
+ blueprint_type_id: z18.number(),
908
+ blueprint_location_id: z18.number(),
909
+ output_location_id: z18.number(),
910
+ runs: z18.number(),
911
+ cost: z18.number().optional(),
912
+ licensed_runs: z18.number().optional(),
913
+ probability: z18.number().optional(),
914
+ product_type_id: z18.number().optional(),
915
+ status: z18.enum([
916
+ "active",
917
+ "cancelled",
918
+ "delivered",
919
+ "paused",
920
+ "ready",
921
+ "reverted"
922
+ ]),
923
+ duration: z18.number(),
924
+ start_date: z18.string(),
925
+ end_date: z18.string(),
926
+ pause_date: z18.string().optional(),
927
+ completed_date: z18.string().optional(),
928
+ completed_character_id: z18.number().optional(),
929
+ successful_runs: z18.number().optional()
930
+ });
931
+ var MiningLedgerEntrySchema = z18.looseObject({
932
+ date: z18.string(),
933
+ solar_system_id: z18.number(),
934
+ type_id: z18.number(),
935
+ quantity: z18.number()
936
+ });
937
+ var IndustryFacilitySchema = z18.looseObject({
938
+ facility_id: z18.number(),
939
+ owner_id: z18.number(),
940
+ region_id: z18.number(),
941
+ solar_system_id: z18.number(),
942
+ tax: z18.number().optional(),
943
+ type_id: z18.number()
944
+ });
945
+ var IndustrySystemSchema = z18.looseObject({
946
+ solar_system_id: z18.number(),
947
+ cost_indices: z18.array(
948
+ z18.looseObject({
949
+ activity: z18.string(),
950
+ cost_index: z18.number()
951
+ })
952
+ )
953
+ });
954
+ var MoonExtractionTimerSchema = z18.looseObject({
955
+ structure_id: z18.number(),
956
+ moon_id: z18.number(),
957
+ extraction_start_time: z18.string(),
958
+ chunk_arrival_time: z18.string(),
959
+ natural_decay_time: z18.string()
960
+ });
961
+ var MiningObserverSchema = z18.looseObject({
962
+ observer_id: z18.number(),
963
+ observer_type: z18.string(),
964
+ last_updated: z18.string()
965
+ });
966
+ var MiningObserverEntrySchema = z18.looseObject({
967
+ character_id: z18.number(),
968
+ recorded_corporation_id: z18.number(),
969
+ type_id: z18.number(),
970
+ quantity: z18.number(),
971
+ last_updated: z18.string()
972
+ });
973
+
974
+ // src/schemas/insurance.ts
975
+ import { z as z19 } from "zod";
976
+ var InsurancePriceSchema = z19.looseObject({
977
+ type_id: z19.number(),
978
+ levels: z19.array(
979
+ z19.looseObject({
980
+ cost: z19.number(),
981
+ payout: z19.number(),
982
+ name: z19.string()
983
+ })
984
+ )
985
+ });
986
+
987
+ // src/schemas/killmails.ts
988
+ import { z as z20 } from "zod";
989
+ var KillmailSummarySchema = z20.looseObject({
990
+ killmail_id: z20.number(),
991
+ killmail_hash: z20.string()
992
+ });
993
+ var KillmailSchema = z20.looseObject({
994
+ killmail_id: z20.number(),
995
+ killmail_time: z20.string(),
996
+ solar_system_id: z20.number(),
997
+ moon_id: z20.number().optional(),
998
+ war_id: z20.number().optional(),
999
+ victim: z20.looseObject({
1000
+ character_id: z20.number().optional(),
1001
+ corporation_id: z20.number().optional(),
1002
+ alliance_id: z20.number().optional(),
1003
+ faction_id: z20.number().optional(),
1004
+ ship_type_id: z20.number(),
1005
+ damage_taken: z20.number(),
1006
+ position: z20.looseObject({
1007
+ x: z20.number(),
1008
+ y: z20.number(),
1009
+ z: z20.number()
1010
+ }).optional(),
1011
+ items: z20.array(z20.unknown()).optional()
1012
+ }),
1013
+ attackers: z20.array(
1014
+ z20.looseObject({
1015
+ character_id: z20.number().optional(),
1016
+ corporation_id: z20.number().optional(),
1017
+ alliance_id: z20.number().optional(),
1018
+ faction_id: z20.number().optional(),
1019
+ ship_type_id: z20.number().optional(),
1020
+ weapon_type_id: z20.number().optional(),
1021
+ damage_done: z20.number(),
1022
+ final_blow: z20.boolean(),
1023
+ security_status: z20.number()
1024
+ })
1025
+ )
1026
+ });
1027
+
1028
+ // src/schemas/location.ts
1029
+ import { z as z21 } from "zod";
1030
+ var CharacterLocationSchema = z21.looseObject({
1031
+ solar_system_id: z21.number(),
1032
+ station_id: z21.number().optional(),
1033
+ structure_id: z21.number().optional()
1034
+ });
1035
+ var CharacterOnlineSchema = z21.looseObject({
1036
+ online: z21.boolean(),
1037
+ last_login: z21.string().optional(),
1038
+ last_logout: z21.string().optional(),
1039
+ logins: z21.number().optional()
1040
+ });
1041
+ var CharacterShipSchema = z21.looseObject({
1042
+ ship_item_id: z21.number(),
1043
+ ship_name: z21.string(),
1044
+ ship_type_id: z21.number()
1045
+ });
1046
+
1047
+ // src/schemas/loyalty.ts
1048
+ import { z as z22 } from "zod";
1049
+ var LoyaltyPointsSchema = z22.looseObject({
1050
+ corporation_id: z22.number(),
1051
+ loyalty_points: z22.number()
1052
+ });
1053
+ var LoyaltyStoreOfferSchema = z22.looseObject({
1054
+ offer_id: z22.number(),
1055
+ type_id: z22.number(),
1056
+ quantity: z22.number(),
1057
+ lp_cost: z22.number(),
1058
+ isk_cost: z22.number(),
1059
+ ak_cost: z22.number().optional(),
1060
+ required_items: z22.array(
1061
+ z22.looseObject({
1062
+ type_id: z22.number(),
1063
+ quantity: z22.number()
1064
+ })
1065
+ )
1066
+ });
1067
+
1068
+ // src/schemas/mail.ts
1069
+ import { z as z23 } from "zod";
1070
+ var MailMessageSchema = z23.looseObject({
1071
+ mail_id: z23.number().optional(),
1072
+ subject: z23.string().optional(),
1073
+ from: z23.number().optional(),
1074
+ timestamp: z23.string().optional(),
1075
+ labels: z23.array(z23.number()).optional(),
1076
+ is_read: z23.boolean().optional(),
1077
+ body: z23.string().optional(),
1078
+ recipients: z23.array(
1079
+ z23.looseObject({
1080
+ recipient_id: z23.number(),
1081
+ recipient_type: z23.enum([
1082
+ "alliance",
1083
+ "character",
1084
+ "corporation",
1085
+ "mailing_list"
1086
+ ])
1087
+ })
1088
+ ).optional()
1089
+ });
1090
+ var MailLabelSchema = z23.looseObject({
1091
+ label_id: z23.number(),
1092
+ name: z23.string(),
1093
+ color: z23.string().optional(),
1094
+ unread_count: z23.number().optional()
1095
+ });
1096
+ var MailLabelsResponseSchema = z23.looseObject({
1097
+ labels: z23.array(MailLabelSchema).optional(),
1098
+ total_unread_count: z23.number().optional()
1099
+ });
1100
+ var MailingListSchema = z23.looseObject({
1101
+ mailing_list_id: z23.number(),
1102
+ name: z23.string()
1103
+ });
1104
+
1105
+ // src/schemas/market.ts
1106
+ import { z as z24 } from "zod";
1107
+ var MarketOrderSchema = z24.looseObject({
1108
+ order_id: z24.number(),
1109
+ type_id: z24.number(),
1110
+ location_id: z24.number(),
1111
+ volume_total: z24.number(),
1112
+ volume_remain: z24.number(),
1113
+ min_volume: z24.number(),
1114
+ price: z24.number(),
1115
+ is_buy_order: z24.boolean(),
1116
+ system_id: z24.number(),
1117
+ duration: z24.number(),
1118
+ issued: z24.string(),
1119
+ range: z24.string()
1120
+ });
1121
+ var CharacterMarketOrderSchema = z24.looseObject({
1122
+ order_id: z24.number(),
1123
+ type_id: z24.number(),
1124
+ location_id: z24.number(),
1125
+ volume_total: z24.number(),
1126
+ volume_remain: z24.number(),
1127
+ min_volume: z24.number().optional(),
1128
+ price: z24.number(),
1129
+ is_buy_order: z24.boolean().optional(),
1130
+ is_corporation: z24.boolean(),
1131
+ region_id: z24.number(),
1132
+ duration: z24.number(),
1133
+ issued: z24.string(),
1134
+ range: z24.string(),
1135
+ escrow: z24.number().optional()
1136
+ });
1137
+ var CharacterMarketOrderHistorySchema = z24.looseObject({
1138
+ order_id: z24.number(),
1139
+ type_id: z24.number(),
1140
+ location_id: z24.number(),
1141
+ volume_total: z24.number(),
1142
+ volume_remain: z24.number(),
1143
+ min_volume: z24.number().optional(),
1144
+ price: z24.number(),
1145
+ is_buy_order: z24.boolean().optional(),
1146
+ is_corporation: z24.boolean(),
1147
+ region_id: z24.number(),
1148
+ duration: z24.number(),
1149
+ issued: z24.string(),
1150
+ range: z24.string(),
1151
+ state: z24.enum(["cancelled", "expired"]),
1152
+ escrow: z24.number().optional()
1153
+ });
1154
+ var CorporationMarketOrderSchema = z24.looseObject({
1155
+ order_id: z24.number(),
1156
+ type_id: z24.number(),
1157
+ location_id: z24.number(),
1158
+ volume_total: z24.number(),
1159
+ volume_remain: z24.number(),
1160
+ min_volume: z24.number().optional(),
1161
+ price: z24.number(),
1162
+ is_buy_order: z24.boolean().optional(),
1163
+ issued_by: z24.number(),
1164
+ region_id: z24.number(),
1165
+ wallet_division: z24.number(),
1166
+ duration: z24.number(),
1167
+ issued: z24.string(),
1168
+ range: z24.string(),
1169
+ escrow: z24.number().optional()
1170
+ });
1171
+ var CorporationMarketOrderHistorySchema = z24.looseObject({
1172
+ order_id: z24.number(),
1173
+ type_id: z24.number(),
1174
+ location_id: z24.number(),
1175
+ volume_total: z24.number(),
1176
+ volume_remain: z24.number(),
1177
+ min_volume: z24.number().optional(),
1178
+ price: z24.number(),
1179
+ is_buy_order: z24.boolean().optional(),
1180
+ issued_by: z24.number().optional(),
1181
+ region_id: z24.number(),
1182
+ wallet_division: z24.number(),
1183
+ duration: z24.number(),
1184
+ issued: z24.string(),
1185
+ range: z24.string(),
1186
+ state: z24.enum(["cancelled", "expired"]),
1187
+ escrow: z24.number().optional()
1188
+ });
1189
+ var StructureMarketOrderSchema = z24.looseObject({
1190
+ order_id: z24.number(),
1191
+ type_id: z24.number(),
1192
+ location_id: z24.number(),
1193
+ volume_total: z24.number(),
1194
+ volume_remain: z24.number(),
1195
+ min_volume: z24.number(),
1196
+ price: z24.number(),
1197
+ is_buy_order: z24.boolean(),
1198
+ duration: z24.number(),
1199
+ issued: z24.string(),
1200
+ range: z24.string()
1201
+ });
1202
+ var MarketHistorySchema = z24.looseObject({
1203
+ date: z24.string(),
1204
+ order_count: z24.number(),
1205
+ volume: z24.number(),
1206
+ highest: z24.number(),
1207
+ average: z24.number(),
1208
+ lowest: z24.number()
1209
+ });
1210
+ var MarketGroupSchema = z24.looseObject({
1211
+ market_group_id: z24.number(),
1212
+ name: z24.string(),
1213
+ description: z24.string(),
1214
+ types: z24.array(z24.number()),
1215
+ parent_group_id: z24.number().optional()
1216
+ });
1217
+ var MarketPriceSchema = z24.looseObject({
1218
+ type_id: z24.number(),
1219
+ average_price: z24.number().optional(),
1220
+ adjusted_price: z24.number().optional()
1221
+ });
1222
+
1223
+ // src/schemas/mercenary.ts
1224
+ import { z as z25 } from "zod";
1225
+ var MercenaryDenSchema = z25.looseObject({
1226
+ den_id: z25.number(),
1227
+ system_id: z25.number(),
1228
+ constellation_id: z25.number(),
1229
+ region_id: z25.number(),
1230
+ development_level: z25.number().optional(),
1231
+ anarchy_level: z25.number().optional(),
1232
+ active_operations: z25.number().optional()
1233
+ });
1234
+ var MercenaryTacticalOperationSchema = z25.looseObject({
1235
+ operation_id: z25.number(),
1236
+ den_id: z25.number(),
1237
+ system_id: z25.number(),
1238
+ site_type: z25.string(),
1239
+ status: z25.enum(["spawning", "active", "completed", "expired"]),
1240
+ started_at: z25.string().optional(),
1241
+ expires_at: z25.string().optional()
1242
+ });
1243
+
1244
+ // src/schemas/meta.ts
1245
+ import { z as z26 } from "zod";
1246
+ var MetaChangelogEntrySchema = z26.looseObject({
1247
+ method: z26.string(),
1248
+ path: z26.string(),
1249
+ compatibility_date: z26.string(),
1250
+ is_breaking: z26.boolean(),
1251
+ description: z26.string()
1252
+ });
1253
+ var MetaChangelogSchema = z26.record(
1254
+ z26.string(),
1255
+ z26.array(MetaChangelogEntrySchema)
1256
+ );
1257
+ var MetaCompatibilityDatesSchema = z26.looseObject({
1258
+ compatibility_dates: z26.array(z26.string())
1259
+ });
1260
+ var MetaNameSchema = z26.looseObject({
1261
+ name: z26.string()
1262
+ });
1263
+ var MetaStatusSchema = z26.looseObject({
1264
+ status: z26.string()
1265
+ });
1266
+
1267
+ // src/schemas/military-campaigns.ts
1268
+ import { z as z27 } from "zod";
1269
+ var MilitaryCampaignSchema = z27.looseObject({
1270
+ campaign_id: z27.string(),
1271
+ state: z27.string(),
1272
+ progress: z27.number(),
1273
+ start_time: z27.string(),
1274
+ finish_time: z27.string().optional()
1275
+ });
1276
+ var MilitaryCampaignObjectiveSchema = z27.looseObject({
1277
+ objective_id: z27.string(),
1278
+ campaign_id: z27.string(),
1279
+ state: z27.string(),
1280
+ progress: z27.number(),
1281
+ participants: z27.looseObject({
1282
+ total: z27.number(),
1283
+ committed: z27.number(),
1284
+ contributors: z27.number()
1285
+ })
1286
+ });
1287
+ var CharacterMilitaryCampaignObjectiveSchema = z27.looseObject({
1288
+ objective_id: z27.string(),
1289
+ campaign_id: z27.string(),
1290
+ committed: z27.boolean(),
1291
+ contribution: z27.number()
1292
+ });
1293
+
1294
+ // src/schemas/pi.ts
1295
+ import { z as z28 } from "zod";
1296
+ var PlanetaryColonySchema = z28.looseObject({
1297
+ solar_system_id: z28.number(),
1298
+ planet_id: z28.number(),
1299
+ planet_type: z28.enum([
1300
+ "temperate",
1301
+ "barren",
1302
+ "oceanic",
1303
+ "ice",
1304
+ "gas",
1305
+ "lava",
1306
+ "storm",
1307
+ "plasma"
1308
+ ]),
1309
+ owner_id: z28.number(),
1310
+ last_update: z28.string(),
1311
+ upgrade_level: z28.number(),
1312
+ num_pins: z28.number()
1313
+ });
1314
+ var CustomsOfficeSchema = z28.looseObject({
1315
+ office_id: z28.number(),
1316
+ system_id: z28.number(),
1317
+ reinforce_exit_start: z28.number(),
1318
+ reinforce_exit_end: z28.number(),
1319
+ allow_access_with_standings: z28.boolean().optional(),
1320
+ allow_alliance_access: z28.boolean().optional(),
1321
+ alliance_tax_rate: z28.number().optional(),
1322
+ corporation_tax_rate: z28.number().optional(),
1323
+ standing_level: z28.string().optional(),
1324
+ terrible_standing_tax_rate: z28.number().optional(),
1325
+ bad_standing_tax_rate: z28.number().optional(),
1326
+ neutral_standing_tax_rate: z28.number().optional(),
1327
+ good_standing_tax_rate: z28.number().optional(),
1328
+ excellent_standing_tax_rate: z28.number().optional(),
1329
+ type_id: z28.number().optional()
1330
+ });
1331
+ var ColonyLayoutSchema = z28.looseObject({
1332
+ links: z28.array(
1333
+ z28.looseObject({
1334
+ source_pin_id: z28.number(),
1335
+ destination_pin_id: z28.number(),
1336
+ link_level: z28.number()
1337
+ })
1338
+ ),
1339
+ pins: z28.array(
1340
+ z28.looseObject({
1341
+ pin_id: z28.number(),
1342
+ type_id: z28.number(),
1343
+ latitude: z28.number(),
1344
+ longitude: z28.number(),
1345
+ schematic_id: z28.number().optional(),
1346
+ extractor_details: z28.looseObject({
1347
+ heads: z28.array(
1348
+ z28.looseObject({
1349
+ head_id: z28.number(),
1350
+ latitude: z28.number(),
1351
+ longitude: z28.number()
1352
+ })
1353
+ ),
1354
+ product_type_id: z28.number().optional(),
1355
+ cycle_time: z28.number().optional(),
1356
+ head_radius: z28.number().optional(),
1357
+ qty_per_cycle: z28.number().optional()
1358
+ }).optional(),
1359
+ factory_details: z28.looseObject({
1360
+ schematic_id: z28.number()
1361
+ }).optional(),
1362
+ contents: z28.array(
1363
+ z28.looseObject({
1364
+ type_id: z28.number(),
1365
+ amount: z28.number()
1366
+ })
1367
+ ).optional(),
1368
+ install_time: z28.string().optional(),
1369
+ expiry_time: z28.string().optional(),
1370
+ last_cycle_start: z28.string().optional()
1371
+ })
1372
+ ),
1373
+ routes: z28.array(
1374
+ z28.looseObject({
1375
+ route_id: z28.number(),
1376
+ source_pin_id: z28.number(),
1377
+ destination_pin_id: z28.number(),
1378
+ content_type_id: z28.number(),
1379
+ quantity: z28.number(),
1380
+ waypoints: z28.array(z28.number()).optional()
1381
+ })
1382
+ )
1383
+ });
1384
+
1385
+ // src/schemas/skills.ts
1386
+ import { z as z29 } from "zod";
1387
+ var CharacterSkillSchema = z29.looseObject({
1388
+ skill_id: z29.number(),
1389
+ skillpoints_in_skill: z29.number(),
1390
+ trained_skill_level: z29.number(),
1391
+ active_skill_level: z29.number()
1392
+ });
1393
+ var CharacterSkillsResponseSchema = z29.looseObject({
1394
+ skills: z29.array(
1395
+ z29.looseObject({
1396
+ skill_id: z29.number(),
1397
+ skillpoints_in_skill: z29.number(),
1398
+ trained_skill_level: z29.number(),
1399
+ active_skill_level: z29.number()
1400
+ })
1401
+ ),
1402
+ total_sp: z29.number(),
1403
+ unallocated_sp: z29.number().optional()
1404
+ });
1405
+ var SkillQueueSchema = z29.looseObject({
1406
+ skill_id: z29.number(),
1407
+ finished_level: z29.number(),
1408
+ queue_position: z29.number(),
1409
+ level_end_sp: z29.number().optional(),
1410
+ level_start_sp: z29.number().optional(),
1411
+ training_start_sp: z29.number().optional(),
1412
+ start_date: z29.string().optional(),
1413
+ finish_date: z29.string().optional()
1414
+ });
1415
+
1416
+ // src/schemas/skyhooks.ts
1417
+ import { z as z30 } from "zod";
1418
+ var SovereigntyHubSchema = z30.looseObject({
1419
+ structure_id: z30.number(),
1420
+ system_id: z30.number(),
1421
+ corporation_id: z30.number(),
1422
+ alliance_id: z30.number().optional(),
1423
+ online: z30.boolean(),
1424
+ remaining_reagents: z30.number().optional(),
1425
+ installed_upgrades: z30.array(z30.number()).optional()
1426
+ });
1427
+ var OrbitalSkyhookSchema = z30.looseObject({
1428
+ structure_id: z30.number(),
1429
+ system_id: z30.number(),
1430
+ corporation_id: z30.number(),
1431
+ alliance_id: z30.number().optional(),
1432
+ online: z30.boolean(),
1433
+ reagent_silo_capacity: z30.number().optional(),
1434
+ reagent_silo_level: z30.number().optional()
1435
+ });
1436
+ var RaidableSkyhookSchema = z30.looseObject({
1437
+ structure_id: z30.number(),
1438
+ system_id: z30.number(),
1439
+ corporation_id: z30.number(),
1440
+ alliance_id: z30.number().optional(),
1441
+ raidable_at: z30.string().optional(),
1442
+ is_raidable: z30.boolean()
1443
+ });
1444
+
1445
+ // src/schemas/sovereignty.ts
1446
+ import { z as z31 } from "zod";
1447
+ var SovereigntyCampaignSchema = z31.looseObject({
1448
+ campaign_id: z31.number(),
1449
+ structure_id: z31.number(),
1450
+ solar_system_id: z31.number(),
1451
+ constellation_id: z31.number(),
1452
+ event_type: z31.enum([
1453
+ "tcu_defense",
1454
+ "ihub_defense",
1455
+ "station_defense",
1456
+ "station_freeport"
1457
+ ]),
1458
+ start_time: z31.string(),
1459
+ defender_id: z31.number().optional(),
1460
+ defender_score: z31.number().optional(),
1461
+ attackers_score: z31.number().optional(),
1462
+ participants: z31.array(
1463
+ z31.looseObject({
1464
+ alliance_id: z31.number(),
1465
+ score: z31.number()
1466
+ })
1467
+ ).optional()
1468
+ });
1469
+ var SovereigntySystemStructureSchema = z31.looseObject({
1470
+ alliance_id: z31.number().optional(),
1471
+ solar_system_id: z31.number().optional(),
1472
+ structure_id: z31.number(),
1473
+ structure_type_id: z31.number(),
1474
+ vulnerability_occupancy_level: z31.number().optional(),
1475
+ vulnerable_start_time: z31.string().optional(),
1476
+ vulnerable_end_time: z31.string().optional()
1477
+ });
1478
+ var SovereigntyVulnerabilityWindowSchema = z31.looseObject({
1479
+ start: z31.string(),
1480
+ end: z31.string()
1481
+ });
1482
+ var SovereigntyHubSchema2 = z31.looseObject({
1483
+ id: z31.number(),
1484
+ vulnerability_window: SovereigntyVulnerabilityWindowSchema.optional()
1485
+ });
1486
+ var SovereigntyDevelopmentSchema = z31.looseObject({
1487
+ activity_defense_multiplier: z31.number().optional(),
1488
+ military_level: z31.number().optional(),
1489
+ industrial_level: z31.number().optional(),
1490
+ strategic_level: z31.number().optional()
1491
+ });
1492
+ var SovereigntyAllianceClaimSchema = z31.looseObject({
1493
+ alliance_id: z31.number(),
1494
+ corporation_id: z31.number().optional(),
1495
+ claimed_since: z31.string().optional(),
1496
+ sovereignty_hub: SovereigntyHubSchema2.optional(),
1497
+ is_capital_system: z31.boolean().optional(),
1498
+ development: SovereigntyDevelopmentSchema.optional()
1499
+ });
1500
+ var SovereigntyFactionClaimSchema = z31.looseObject({
1501
+ faction_id: z31.number()
1502
+ });
1503
+ var SovereigntyClaimSchema = z31.looseObject({
1504
+ alliance: SovereigntyAllianceClaimSchema.optional(),
1505
+ faction: SovereigntyFactionClaimSchema.optional(),
1506
+ unclaimed: z31.boolean().optional()
1507
+ });
1508
+ var SovereigntySystemEntrySchema = z31.looseObject({
1509
+ solar_system_id: z31.number(),
1510
+ claim: SovereigntyClaimSchema
1511
+ });
1512
+ var SovereigntySystemSchema = z31.looseObject({
1513
+ solar_systems: z31.array(SovereigntySystemEntrySchema)
1514
+ });
1515
+
1516
+ // src/schemas/status.ts
1517
+ import { z as z32 } from "zod";
1518
+ var ServerStatusSchema = z32.looseObject({
1519
+ players: z32.number(),
1520
+ server_version: z32.string(),
1521
+ start_time: z32.string(),
1522
+ vip: z32.boolean().optional()
1523
+ });
1524
+
1525
+ // src/schemas/universe.ts
1526
+ import { z as z33 } from "zod";
1527
+ var PositionSchema = z33.looseObject({
1528
+ x: z33.number(),
1529
+ y: z33.number(),
1530
+ z: z33.number()
1531
+ });
1532
+ var SolarSystemInfoSchema = z33.looseObject({
1533
+ system_id: z33.number(),
1534
+ name: z33.string(),
1535
+ constellation_id: z33.number(),
1536
+ position: PositionSchema.optional(),
1537
+ security_class: z33.string().optional(),
1538
+ security_status: z33.number(),
1539
+ star_id: z33.number().optional(),
1540
+ stargates: z33.array(z33.number()).optional(),
1541
+ stations: z33.array(z33.number()).optional(),
1542
+ planets: z33.array(
1543
+ z33.looseObject({
1544
+ asteroid_belts: z33.array(z33.number()).optional(),
1545
+ moons: z33.array(z33.number()).optional(),
1546
+ planet_id: z33.number()
1547
+ })
1548
+ ).optional()
1549
+ });
1550
+ var ConstellationInfoSchema = z33.looseObject({
1551
+ constellation_id: z33.number(),
1552
+ name: z33.string(),
1553
+ region_id: z33.number(),
1554
+ systems: z33.array(z33.number()),
1555
+ position: PositionSchema
1556
+ });
1557
+ var RegionInfoSchema = z33.looseObject({
1558
+ region_id: z33.number(),
1559
+ name: z33.string(),
1560
+ description: z33.string().optional(),
1561
+ constellations: z33.array(z33.number())
1562
+ });
1563
+ var AncestrySchema = z33.looseObject({
1564
+ id: z33.number(),
1565
+ name: z33.string(),
1566
+ bloodline_id: z33.number(),
1567
+ description: z33.string(),
1568
+ short_description: z33.string().optional(),
1569
+ icon_id: z33.number().optional()
1570
+ });
1571
+ var BloodlineSchema = z33.looseObject({
1572
+ bloodline_id: z33.number(),
1573
+ name: z33.string(),
1574
+ description: z33.string(),
1575
+ race_id: z33.number(),
1576
+ corporation_id: z33.number(),
1577
+ ship_type_id: z33.number().nullable(),
1578
+ charisma: z33.number(),
1579
+ intelligence: z33.number(),
1580
+ memory: z33.number(),
1581
+ perception: z33.number(),
1582
+ willpower: z33.number()
1583
+ });
1584
+ var FactionSchema = z33.looseObject({
1585
+ faction_id: z33.number(),
1586
+ name: z33.string(),
1587
+ description: z33.string(),
1588
+ size_factor: z33.number(),
1589
+ station_count: z33.number(),
1590
+ station_system_count: z33.number(),
1591
+ is_unique: z33.boolean(),
1592
+ solar_system_id: z33.number().optional(),
1593
+ corporation_id: z33.number().optional(),
1594
+ militia_corporation_id: z33.number().optional()
1595
+ });
1596
+ var RaceSchema = z33.looseObject({
1597
+ race_id: z33.number(),
1598
+ name: z33.string(),
1599
+ description: z33.string(),
1600
+ alliance_id: z33.number()
1601
+ });
1602
+ var StationInfoSchema = z33.looseObject({
1603
+ station_id: z33.number(),
1604
+ name: z33.string(),
1605
+ owner: z33.number().optional(),
1606
+ system_id: z33.number(),
1607
+ type_id: z33.number(),
1608
+ race_id: z33.number().optional(),
1609
+ reprocessing_efficiency: z33.number(),
1610
+ reprocessing_stations_take: z33.number(),
1611
+ max_dockable_ship_volume: z33.number(),
1612
+ office_rental_cost: z33.number(),
1613
+ services: z33.array(z33.string()),
1614
+ position: PositionSchema
1615
+ });
1616
+ var TypeInfoSchema = z33.looseObject({
1617
+ type_id: z33.number(),
1618
+ name: z33.string(),
1619
+ description: z33.string(),
1620
+ published: z33.boolean(),
1621
+ group_id: z33.number(),
1622
+ market_group_id: z33.number().optional(),
1623
+ radius: z33.number().optional(),
1624
+ volume: z33.number().optional(),
1625
+ packaged_volume: z33.number().optional(),
1626
+ capacity: z33.number().optional(),
1627
+ portion_size: z33.number().optional(),
1628
+ mass: z33.number().optional(),
1629
+ icon_id: z33.number().optional(),
1630
+ graphic_id: z33.number().optional(),
1631
+ dogma_attributes: z33.array(
1632
+ z33.looseObject({
1633
+ attribute_id: z33.number(),
1634
+ value: z33.number()
1635
+ })
1636
+ ).optional(),
1637
+ dogma_effects: z33.array(
1638
+ z33.looseObject({
1639
+ effect_id: z33.number(),
1640
+ is_default: z33.boolean()
1641
+ })
1642
+ ).optional()
1643
+ });
1644
+ var AsteroidBeltInfoSchema = z33.looseObject({
1645
+ name: z33.string(),
1646
+ position: PositionSchema,
1647
+ system_id: z33.number()
1648
+ });
1649
+ var GraphicInfoSchema = z33.looseObject({
1650
+ graphic_id: z33.number(),
1651
+ collision_file: z33.string().optional(),
1652
+ graphic_file: z33.string().optional(),
1653
+ icon_folder: z33.string().optional(),
1654
+ sof_dna: z33.string().optional(),
1655
+ sof_fation_name: z33.string().optional(),
1656
+ sof_hull_name: z33.string().optional(),
1657
+ sof_race_name: z33.string().optional()
1658
+ });
1659
+ var ItemCategorySchema = z33.looseObject({
1660
+ category_id: z33.number(),
1661
+ name: z33.string(),
1662
+ groups: z33.array(z33.number()),
1663
+ published: z33.boolean()
1664
+ });
1665
+ var ItemGroupSchema = z33.looseObject({
1666
+ group_id: z33.number(),
1667
+ name: z33.string(),
1668
+ category_id: z33.number(),
1669
+ types: z33.array(z33.number()),
1670
+ published: z33.boolean()
1671
+ });
1672
+ var MoonInfoSchema = z33.looseObject({
1673
+ moon_id: z33.number(),
1674
+ name: z33.string(),
1675
+ system_id: z33.number(),
1676
+ position: PositionSchema
1677
+ });
1678
+ var PlanetInfoSchema = z33.looseObject({
1679
+ planet_id: z33.number(),
1680
+ name: z33.string(),
1681
+ system_id: z33.number(),
1682
+ type_id: z33.number(),
1683
+ position: PositionSchema
1684
+ });
1685
+ var StarInfoSchema = z33.looseObject({
1686
+ star_id: z33.number().optional(),
1687
+ solar_system_id: z33.number(),
1688
+ name: z33.string(),
1689
+ type_id: z33.number(),
1690
+ age: z33.number(),
1691
+ luminosity: z33.number(),
1692
+ radius: z33.number(),
1693
+ spectral_class: z33.string(),
1694
+ temperature: z33.number()
1695
+ });
1696
+ var StargateInfoSchema = z33.looseObject({
1697
+ stargate_id: z33.number(),
1698
+ name: z33.string(),
1699
+ system_id: z33.number(),
1700
+ type_id: z33.number(),
1701
+ position: PositionSchema,
1702
+ destination: z33.looseObject({
1703
+ system_id: z33.number(),
1704
+ stargate_id: z33.number()
1705
+ })
1706
+ });
1707
+ var StructureInfoSchema = z33.looseObject({
1708
+ structure_id: z33.number().optional(),
1709
+ name: z33.string(),
1710
+ owner_id: z33.number(),
1711
+ solar_system_id: z33.number(),
1712
+ type_id: z33.number().optional(),
1713
+ position: PositionSchema.optional()
1714
+ });
1715
+ var SystemJumpSchema = z33.looseObject({
1716
+ system_id: z33.number(),
1717
+ ship_jumps: z33.number()
1718
+ });
1719
+ var SystemKillSchema = z33.looseObject({
1720
+ system_id: z33.number(),
1721
+ npc_kills: z33.number(),
1722
+ pod_kills: z33.number(),
1723
+ ship_kills: z33.number()
1724
+ });
1725
+ var IdNameSchema = z33.looseObject({
1726
+ id: z33.number(),
1727
+ name: z33.string()
1728
+ });
1729
+ var BulkIdResultSchema = z33.looseObject({
1730
+ agents: z33.array(IdNameSchema).optional(),
1731
+ alliances: z33.array(IdNameSchema).optional(),
1732
+ characters: z33.array(IdNameSchema).optional(),
1733
+ constellations: z33.array(IdNameSchema).optional(),
1734
+ corporations: z33.array(IdNameSchema).optional(),
1735
+ factions: z33.array(IdNameSchema).optional(),
1736
+ inventory_types: z33.array(IdNameSchema).optional(),
1737
+ regions: z33.array(IdNameSchema).optional(),
1738
+ systems: z33.array(IdNameSchema).optional(),
1739
+ stations: z33.array(IdNameSchema).optional()
1740
+ });
1741
+ var NameAndCategorySchema = z33.looseObject({
1742
+ id: z33.number(),
1743
+ name: z33.string(),
1744
+ category: z33.enum([
1745
+ "alliance",
1746
+ "character",
1747
+ "constellation",
1748
+ "corporation",
1749
+ "inventory_type",
1750
+ "region",
1751
+ "solar_system",
1752
+ "station",
1753
+ "faction"
1754
+ ])
1755
+ });
1756
+ var SchematicInfoSchema = z33.looseObject({
1757
+ schematic_name: z33.string(),
1758
+ cycle_time: z33.number()
1759
+ });
1760
+ var SearchResultSchema = z33.looseObject({
1761
+ agent: z33.array(z33.number()).optional(),
1762
+ alliance: z33.array(z33.number()).optional(),
1763
+ character: z33.array(z33.number()).optional(),
1764
+ constellation: z33.array(z33.number()).optional(),
1765
+ corporation: z33.array(z33.number()).optional(),
1766
+ faction: z33.array(z33.number()).optional(),
1767
+ inventory_type: z33.array(z33.number()).optional(),
1768
+ region: z33.array(z33.number()).optional(),
1769
+ solar_system: z33.array(z33.number()).optional(),
1770
+ station: z33.array(z33.number()).optional(),
1771
+ structure: z33.array(z33.number()).optional()
1772
+ });
1773
+
1774
+ // src/schemas/wallet.ts
1775
+ import { z as z34 } from "zod";
1776
+ var WalletTransactionSchema = z34.looseObject({
1777
+ transaction_id: z34.number(),
1778
+ date: z34.string(),
1779
+ type_id: z34.number(),
1780
+ location_id: z34.number(),
1781
+ unit_price: z34.number(),
1782
+ quantity: z34.number(),
1783
+ client_id: z34.number(),
1784
+ is_buy: z34.boolean(),
1785
+ is_personal: z34.boolean(),
1786
+ journal_ref_id: z34.number()
1787
+ });
1788
+ var WalletJournalSchema = z34.looseObject({
1789
+ id: z34.number(),
1790
+ date: z34.string(),
1791
+ ref_type: z34.string(),
1792
+ first_party_id: z34.number().optional(),
1793
+ second_party_id: z34.number().optional(),
1794
+ amount: z34.number().optional(),
1795
+ balance: z34.number().optional(),
1796
+ reason: z34.string().optional(),
1797
+ description: z34.string(),
1798
+ context_id: z34.number().optional(),
1799
+ context_id_type: z34.string().optional(),
1800
+ tax: z34.number().optional(),
1801
+ tax_receiver_id: z34.number().optional()
1802
+ });
1803
+
1804
+ // src/schemas/wars.ts
1805
+ import { z as z35 } from "zod";
1806
+ var WarSchema = z35.looseObject({
1807
+ id: z35.number(),
1808
+ declared: z35.string(),
1809
+ started: z35.string().optional(),
1810
+ finished: z35.string().optional(),
1811
+ retracted: z35.string().optional(),
1812
+ mutual: z35.boolean(),
1813
+ open_for_allies: z35.boolean(),
1814
+ aggressor: z35.looseObject({
1815
+ corporation_id: z35.number().optional(),
1816
+ alliance_id: z35.number().optional(),
1817
+ isk_destroyed: z35.number(),
1818
+ ships_killed: z35.number()
1819
+ }),
1820
+ defender: z35.looseObject({
1821
+ corporation_id: z35.number().optional(),
1822
+ alliance_id: z35.number().optional(),
1823
+ isk_destroyed: z35.number(),
1824
+ ships_killed: z35.number()
1825
+ }),
1826
+ allies: z35.array(
1827
+ z35.looseObject({
1828
+ corporation_id: z35.number().optional(),
1829
+ alliance_id: z35.number().optional()
1830
+ })
1831
+ ).optional()
1832
+ });
1833
+ export {
1834
+ AccessListEntrySchema,
1835
+ AccessListSchema,
1836
+ AgentResearchSchema,
1837
+ AllianceContactLabelSchema,
1838
+ AllianceContactSchema,
1839
+ AllianceIconSchema,
1840
+ AllianceInfoSchema,
1841
+ AncestrySchema,
1842
+ AssetLocationSchema,
1843
+ AssetNameSchema,
1844
+ AsteroidBeltInfoSchema,
1845
+ BloodlineSchema,
1846
+ BlueprintSchema,
1847
+ BulkIdResultSchema,
1848
+ CalendarEventAttendeeSchema,
1849
+ CalendarEventDetailSchema,
1850
+ CalendarEventSchema,
1851
+ CharacterAffiliationSchema,
1852
+ CharacterAssetSchema,
1853
+ CharacterAttributesSchema,
1854
+ CharacterFleetInfoSchema,
1855
+ CharacterFreelanceJobsListingSchema,
1856
+ CharacterInfoSchema,
1857
+ CharacterLocationSchema,
1858
+ CharacterMarketOrderHistorySchema,
1859
+ CharacterMarketOrderSchema,
1860
+ CharacterMilitaryCampaignObjectiveSchema,
1861
+ CharacterOnlineSchema,
1862
+ CharacterPortraitSchema,
1863
+ CharacterRoleSchema,
1864
+ CharacterShipSchema,
1865
+ CharacterSkillSchema,
1866
+ CharacterSkillsResponseSchema,
1867
+ CharacterTitleSchema,
1868
+ CloneInfoSchema,
1869
+ ColonyLayoutSchema,
1870
+ ConstellationInfoSchema,
1871
+ ContactLabelSchema,
1872
+ ContactNotificationSchema,
1873
+ ContactSchema,
1874
+ ContainerLogSchema,
1875
+ ContractBidSchema,
1876
+ ContractItemSchema,
1877
+ ContractSchema,
1878
+ CorporationAllianceHistorySchema,
1879
+ CorporationDivisionsSchema,
1880
+ CorporationFacilitySchema,
1881
+ CorporationFreelanceJobsListingSchema,
1882
+ CorporationHistorySchema,
1883
+ CorporationIconSchema,
1884
+ CorporationInfoSchema,
1885
+ CorporationIssuedMedalSchema,
1886
+ CorporationMarketOrderHistorySchema,
1887
+ CorporationMarketOrderSchema,
1888
+ CorporationMedalSchema,
1889
+ CorporationMemberRoleSchema,
1890
+ CorporationMemberTitleSchema,
1891
+ CorporationMemberTrackingSchema,
1892
+ CorporationProjectContributionSchema,
1893
+ CorporationProjectContributorSchema,
1894
+ CorporationProjectSchema,
1895
+ CorporationRoleHistorySchema,
1896
+ CorporationShareholderSchema,
1897
+ StandingSchema as CorporationStandingSchema,
1898
+ CorporationStarbaseDetailSchema,
1899
+ CorporationStarbaseSchema,
1900
+ CorporationStructureSchema,
1901
+ CorporationTitleSchema,
1902
+ CorporationWalletDivisionSchema,
1903
+ CustomsOfficeSchema,
1904
+ DogmaAttributeSchema,
1905
+ DogmaDynamicItemSchema,
1906
+ DogmaEffectSchema,
1907
+ EsiCursorSchema,
1908
+ EsiResponseMetaSchema,
1909
+ FactionSchema,
1910
+ FactionWarfareCharacterStatsSchema,
1911
+ FactionWarfareCorporationStatsSchema,
1912
+ FactionWarfareLeaderboardSchema,
1913
+ FactionWarfareStatsSchema,
1914
+ FactionWarfareSystemSchema,
1915
+ FactionWarfareWarSchema,
1916
+ FittingSchema,
1917
+ FleetInfoSchema,
1918
+ FleetMemberSchema,
1919
+ FleetWingSchema,
1920
+ FreelanceJobDetailSchema,
1921
+ FreelanceJobParticipantSchema,
1922
+ FreelanceJobParticipationSchema,
1923
+ FreelanceJobSummarySchema,
1924
+ FreelanceJobsListingSchema,
1925
+ GraphicInfoSchema,
1926
+ IncursionSchema,
1927
+ IndustryFacilitySchema,
1928
+ IndustryJobSchema,
1929
+ IndustrySystemSchema,
1930
+ InsurancePriceSchema,
1931
+ ItemCategorySchema,
1932
+ ItemGroupSchema,
1933
+ JumpFatigueSchema,
1934
+ KillmailSchema,
1935
+ KillmailSummarySchema,
1936
+ LoyaltyPointsSchema,
1937
+ LoyaltyStoreOfferSchema,
1938
+ MailLabelSchema,
1939
+ MailLabelsResponseSchema,
1940
+ MailMessageSchema,
1941
+ MailingListSchema,
1942
+ MarketGroupSchema,
1943
+ MarketHistorySchema,
1944
+ MarketOrderSchema,
1945
+ MarketPriceSchema,
1946
+ MedalSchema,
1947
+ MercenaryDenSchema,
1948
+ MercenaryTacticalOperationSchema,
1949
+ MetaChangelogEntrySchema,
1950
+ MetaChangelogSchema,
1951
+ MetaCompatibilityDatesSchema,
1952
+ MetaNameSchema,
1953
+ MetaStatusSchema,
1954
+ MilitaryCampaignObjectiveSchema,
1955
+ MilitaryCampaignSchema,
1956
+ MiningLedgerEntrySchema,
1957
+ MiningObserverEntrySchema,
1958
+ MiningObserverSchema,
1959
+ MoonExtractionTimerSchema,
1960
+ MoonInfoSchema,
1961
+ NameAndCategorySchema,
1962
+ NotificationSchema,
1963
+ OrbitalSkyhookSchema,
1964
+ PlanetInfoSchema,
1965
+ PlanetaryColonySchema,
1966
+ RaceSchema,
1967
+ RaidableSkyhookSchema,
1968
+ RateLimitMetaSchema,
1969
+ RegionInfoSchema,
1970
+ SchematicInfoSchema,
1971
+ SearchResultSchema,
1972
+ ServerStatusSchema,
1973
+ SkillQueueSchema,
1974
+ SolarSystemInfoSchema,
1975
+ SovereigntyCampaignSchema,
1976
+ SovereigntyHubSchema,
1977
+ SovereigntySystemSchema,
1978
+ SovereigntySystemStructureSchema,
1979
+ StandingSchema,
1980
+ StarInfoSchema,
1981
+ StargateInfoSchema,
1982
+ StationInfoSchema,
1983
+ StructureInfoSchema,
1984
+ StructureMarketOrderSchema,
1985
+ SystemJumpSchema,
1986
+ SystemKillSchema,
1987
+ TypeInfoSchema,
1988
+ WalletJournalSchema,
1989
+ WalletTransactionSchema,
1990
+ WarSchema,
1991
+ esiResponse
1992
+ };
1993
+ //# sourceMappingURL=index.mjs.map