eve-esi-types 3.1.6 → 3.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 (227) hide show
  1. package/CHANGELOG.md +182 -0
  2. package/jsconfig.json +28 -0
  3. package/lib/rq-util.mjs +1 -1
  4. package/lib/tagged-request-api.mjs +5 -6
  5. package/package.json +14 -8
  6. package/v2/esi-tagged-types.d.ts +9 -5
  7. package/v2/{get_alliances_alliance_id_ok.d.ts → globals/alliance.d.ts} +44 -0
  8. package/v2/globals/assets.d.ts +443 -0
  9. package/v2/globals/calendar.d.ts +130 -0
  10. package/v2/globals/character.d.ts +1084 -0
  11. package/v2/{get_characters_character_id_clones_ok.d.ts → globals/clones.d.ts} +15 -0
  12. package/v2/globals/contacts.d.ts +212 -0
  13. package/v2/globals/contracts.d.ts +546 -0
  14. package/v2/globals/corporation.d.ts +2329 -0
  15. package/v2/globals/dogma.d.ts +262 -0
  16. package/v2/globals/factionwarfare.d.ts +668 -0
  17. package/v2/{get_characters_character_id_fittings_ok.d.ts → globals/fittings.d.ts} +23 -0
  18. package/v2/globals/fleets.d.ts +201 -0
  19. package/v2/{get_incursions_ok.d.ts → globals/incursions.d.ts} +5 -0
  20. package/v2/globals/industry.d.ts +445 -0
  21. package/v2/globals/insurance.d.ts +47 -0
  22. package/v2/{get_killmails_killmail_id_killmail_hash_ok.d.ts → globals/killmails.d.ts} +55 -0
  23. package/v2/globals/location.d.ts +74 -0
  24. package/v2/{get_loyalty_stores_corporation_id_offers_ok.d.ts → globals/loyalty.d.ts} +30 -0
  25. package/v2/globals/mail.d.ts +237 -0
  26. package/v2/globals/market.d.ts +615 -0
  27. package/v2/globals/planetaryinteraction.d.ts +344 -0
  28. package/v2/globals/routes.d.ts +14 -0
  29. package/v2/{get_characters_character_id_search_ok.d.ts → globals/search.d.ts} +5 -0
  30. package/v2/globals/skills.d.ts +144 -0
  31. package/v2/globals/sovereignty.d.ts +168 -0
  32. package/v2/{get_status_ok.d.ts → globals/status.d.ts} +5 -0
  33. package/v2/globals/universe.d.ts +1297 -0
  34. package/v2/globals/wallet.d.ts +601 -0
  35. package/v2/{get_wars_war_id_ok.d.ts → globals/wars.d.ts} +40 -0
  36. package/v2/index.d.ts +38 -163
  37. package/v2/response-map.d.ts +22 -45
  38. package/v2/types-index.d.ts +31 -182
  39. package/v2/types-util.d.ts +335 -0
  40. package/v2/util.d.ts +4 -2
  41. package/web/index.html +1 -1
  42. package/docs/esi-tagged-types.md +0 -120
  43. package/docs/v2/identify-parameters.md +0 -74
  44. package/docs/v2/if-parameterized-path.md +0 -70
  45. package/docs/v2/infer-esi-response-result.md +0 -44
  46. package/docs/v2/require-these.md +0 -57
  47. package/docs/v3/esi-enhanced-function-signature.md +0 -67
  48. package/docs/v3/esi-types-util3.md +0 -319
  49. package/docs/v3/has-require-params.md +0 -50
  50. package/docs/v3/infer-endpoint-origin.md +0 -57
  51. package/docs/v3/infer-path-params.md +0 -41
  52. package/docs/v3/pick-require-params.md +0 -56
  53. package/docs/v3/replace-path-params.md +0 -60
  54. package/docs/v3/resolved-endpoint.md +0 -44
  55. package/tsconfig.json +0 -28
  56. package/v2/get_alliances_alliance_id_contacts_labels_ok.d.ts +0 -24
  57. package/v2/get_alliances_alliance_id_contacts_ok.d.ts +0 -35
  58. package/v2/get_alliances_alliance_id_corporations_ok.d.ts +0 -9
  59. package/v2/get_alliances_alliance_id_icons_ok.d.ts +0 -18
  60. package/v2/get_alliances_ok.d.ts +0 -9
  61. package/v2/get_characters_character_id_agents_research_ok.d.ts +0 -33
  62. package/v2/get_characters_character_id_assets_ok.d.ts +0 -134
  63. package/v2/get_characters_character_id_attributes_ok.d.ts +0 -42
  64. package/v2/get_characters_character_id_blueprints_ok.d.ts +0 -122
  65. package/v2/get_characters_character_id_calendar_event_id_attendees_ok.d.ts +0 -30
  66. package/v2/get_characters_character_id_calendar_event_id_ok.d.ts +0 -56
  67. package/v2/get_characters_character_id_calendar_ok.d.ts +0 -37
  68. package/v2/get_characters_character_id_contacts_labels_ok.d.ts +0 -24
  69. package/v2/get_characters_character_id_contacts_ok.d.ts +0 -43
  70. package/v2/get_characters_character_id_contracts_contract_id_bids_ok.d.ts +0 -32
  71. package/v2/get_characters_character_id_contracts_contract_id_items_ok.d.ts +0 -38
  72. package/v2/get_characters_character_id_contracts_ok.d.ts +0 -117
  73. package/v2/get_characters_character_id_corporationhistory_ok.d.ts +0 -32
  74. package/v2/get_characters_character_id_fatigue_ok.d.ts +0 -22
  75. package/v2/get_characters_character_id_fleet_ok.d.ts +0 -31
  76. package/v2/get_characters_character_id_fw_stats_ok.d.ts +0 -64
  77. package/v2/get_characters_character_id_implants_ok.d.ts +0 -9
  78. package/v2/get_characters_character_id_industry_jobs_ok.d.ts +0 -105
  79. package/v2/get_characters_character_id_killmails_recent_ok.d.ts +0 -24
  80. package/v2/get_characters_character_id_location_ok.d.ts +0 -22
  81. package/v2/get_characters_character_id_loyalty_points_ok.d.ts +0 -24
  82. package/v2/get_characters_character_id_mail_labels_ok.d.ts +0 -62
  83. package/v2/get_characters_character_id_mail_lists_ok.d.ts +0 -24
  84. package/v2/get_characters_character_id_mail_mail_id_ok.d.ts +0 -59
  85. package/v2/get_characters_character_id_mail_ok.d.ts +0 -65
  86. package/v2/get_characters_character_id_medals_ok.d.ts +0 -135
  87. package/v2/get_characters_character_id_mining_ok.d.ts +0 -29
  88. package/v2/get_characters_character_id_notifications_contacts_ok.d.ts +0 -36
  89. package/v2/get_characters_character_id_notifications_ok.d.ts +0 -291
  90. package/v2/get_characters_character_id_ok.d.ts +0 -55
  91. package/v2/get_characters_character_id_online_ok.d.ts +0 -26
  92. package/v2/get_characters_character_id_opportunities_ok.d.ts +0 -24
  93. package/v2/get_characters_character_id_orders_history_ok.d.ts +0 -87
  94. package/v2/get_characters_character_id_orders_ok.d.ts +0 -82
  95. package/v2/get_characters_character_id_planets_ok.d.ts +0 -124
  96. package/v2/get_characters_character_id_planets_planet_id_ok.d.ts +0 -283
  97. package/v2/get_characters_character_id_portrait_ok.d.ts +0 -26
  98. package/v2/get_characters_character_id_roles_ok.d.ts +0 -270
  99. package/v2/get_characters_character_id_ship_ok.d.ts +0 -19
  100. package/v2/get_characters_character_id_skillqueue_ok.d.ts +0 -48
  101. package/v2/get_characters_character_id_skills_ok.d.ts +0 -47
  102. package/v2/get_characters_character_id_standings_ok.d.ts +0 -29
  103. package/v2/get_characters_character_id_titles_ok.d.ts +0 -184
  104. package/v2/get_characters_character_id_wallet_journal_ok.d.ts +0 -228
  105. package/v2/get_characters_character_id_wallet_ok.d.ts +0 -7
  106. package/v2/get_characters_character_id_wallet_transactions_ok.d.ts +0 -53
  107. package/v2/get_contracts_public_bids_contract_id_ok.d.ts +0 -28
  108. package/v2/get_contracts_public_items_contract_id_ok.d.ts +0 -49
  109. package/v2/get_contracts_public_region_id_ok.d.ts +0 -81
  110. package/v2/get_corporation_corporation_id_mining_extractions_ok.d.ts +0 -39
  111. package/v2/get_corporation_corporation_id_mining_observers_observer_id_ok.d.ts +0 -36
  112. package/v2/get_corporation_corporation_id_mining_observers_ok.d.ts +0 -30
  113. package/v2/get_corporations_corporation_id_alliancehistory_ok.d.ts +0 -32
  114. package/v2/get_corporations_corporation_id_assets_ok.d.ts +0 -170
  115. package/v2/get_corporations_corporation_id_blueprints_ok.d.ts +0 -163
  116. package/v2/get_corporations_corporation_id_contacts_labels_ok.d.ts +0 -24
  117. package/v2/get_corporations_corporation_id_contacts_ok.d.ts +0 -39
  118. package/v2/get_corporations_corporation_id_containers_logs_ok.d.ts +0 -188
  119. package/v2/get_corporations_corporation_id_contracts_contract_id_bids_ok.d.ts +0 -33
  120. package/v2/get_corporations_corporation_id_contracts_contract_id_items_ok.d.ts +0 -38
  121. package/v2/get_corporations_corporation_id_contracts_ok.d.ts +0 -117
  122. package/v2/get_corporations_corporation_id_customs_offices_ok.d.ts +0 -78
  123. package/v2/get_corporations_corporation_id_divisions_ok.d.ts +0 -128
  124. package/v2/get_corporations_corporation_id_facilities_ok.d.ts +0 -25
  125. package/v2/get_corporations_corporation_id_fw_stats_ok.d.ts +0 -60
  126. package/v2/get_corporations_corporation_id_icons_ok.d.ts +0 -22
  127. package/v2/get_corporations_corporation_id_industry_jobs_ok.d.ts +0 -105
  128. package/v2/get_corporations_corporation_id_killmails_recent_ok.d.ts +0 -24
  129. package/v2/get_corporations_corporation_id_medals_issued_ok.d.ts +0 -41
  130. package/v2/get_corporations_corporation_id_medals_ok.d.ts +0 -36
  131. package/v2/get_corporations_corporation_id_members_limit_ok.d.ts +0 -7
  132. package/v2/get_corporations_corporation_id_members_ok.d.ts +0 -9
  133. package/v2/get_corporations_corporation_id_members_titles_ok.d.ts +0 -194
  134. package/v2/get_corporations_corporation_id_membertracking_ok.d.ts +0 -41
  135. package/v2/get_corporations_corporation_id_ok.d.ts +0 -66
  136. package/v2/get_corporations_corporation_id_orders_history_ok.d.ts +0 -91
  137. package/v2/get_corporations_corporation_id_orders_ok.d.ts +0 -86
  138. package/v2/get_corporations_corporation_id_roles_history_ok.d.ts +0 -171
  139. package/v2/get_corporations_corporation_id_roles_ok.d.ts +0 -543
  140. package/v2/get_corporations_corporation_id_shareholders_ok.d.ts +0 -29
  141. package/v2/get_corporations_corporation_id_standings_ok.d.ts +0 -29
  142. package/v2/get_corporations_corporation_id_starbases_ok.d.ts +0 -51
  143. package/v2/get_corporations_corporation_id_starbases_starbase_id_ok.d.ts +0 -110
  144. package/v2/get_corporations_corporation_id_structures_ok.d.ts +0 -176
  145. package/v2/get_corporations_corporation_id_titles_ok.d.ts +0 -548
  146. package/v2/get_corporations_corporation_id_wallets_division_journal_ok.d.ts +0 -229
  147. package/v2/get_corporations_corporation_id_wallets_division_transactions_ok.d.ts +0 -50
  148. package/v2/get_corporations_corporation_id_wallets_ok.d.ts +0 -62
  149. package/v2/get_corporations_npccorps_ok.d.ts +0 -9
  150. package/v2/get_dogma_attributes_attribute_id_ok.d.ts +0 -50
  151. package/v2/get_dogma_attributes_ok.d.ts +0 -9
  152. package/v2/get_dogma_dynamic_items_type_id_item_id_ok.d.ts +0 -58
  153. package/v2/get_dogma_effects_effect_id_ok.d.ts +0 -127
  154. package/v2/get_dogma_effects_ok.d.ts +0 -9
  155. package/v2/get_fleets_fleet_id_members_ok.d.ts +0 -54
  156. package/v2/get_fleets_fleet_id_ok.d.ts +0 -26
  157. package/v2/get_fleets_fleet_id_wings_ok.d.ts +0 -45
  158. package/v2/get_fw_leaderboards_characters_ok.d.ts +0 -110
  159. package/v2/get_fw_leaderboards_corporations_ok.d.ts +0 -109
  160. package/v2/get_fw_leaderboards_ok.d.ts +0 -182
  161. package/v2/get_fw_stats_ok.d.ts +0 -66
  162. package/v2/get_fw_systems_ok.d.ts +0 -41
  163. package/v2/get_fw_wars_ok.d.ts +0 -24
  164. package/v2/get_industry_facilities_ok.d.ts +0 -37
  165. package/v2/get_industry_systems_ok.d.ts +0 -119
  166. package/v2/get_insurance_prices_ok.d.ts +0 -62
  167. package/v2/get_markets_groups_market_group_id_ok.d.ts +0 -27
  168. package/v2/get_markets_groups_ok.d.ts +0 -9
  169. package/v2/get_markets_prices_ok.d.ts +0 -25
  170. package/v2/get_markets_region_id_history_ok.d.ts +0 -40
  171. package/v2/get_markets_region_id_orders_ok.d.ts +0 -74
  172. package/v2/get_markets_region_id_types_ok.d.ts +0 -9
  173. package/v2/get_markets_structures_structure_id_ok.d.ts +0 -70
  174. package/v2/get_opportunities_groups_group_id_ok.d.ts +0 -38
  175. package/v2/get_opportunities_groups_ok.d.ts +0 -9
  176. package/v2/get_opportunities_tasks_ok.d.ts +0 -9
  177. package/v2/get_opportunities_tasks_task_id_ok.d.ts +0 -26
  178. package/v2/get_route_origin_destination_ok.d.ts +0 -9
  179. package/v2/get_sovereignty_campaigns_ok.d.ts +0 -83
  180. package/v2/get_sovereignty_map_ok.d.ts +0 -32
  181. package/v2/get_sovereignty_structures_ok.d.ts +0 -46
  182. package/v2/get_universe_ancestries_ok.d.ts +0 -40
  183. package/v2/get_universe_asteroid_belts_asteroid_belt_id_ok.d.ts +0 -37
  184. package/v2/get_universe_bloodlines_ok.d.ts +0 -57
  185. package/v2/get_universe_categories_category_id_ok.d.ts +0 -28
  186. package/v2/get_universe_categories_ok.d.ts +0 -9
  187. package/v2/get_universe_constellations_constellation_id_ok.d.ts +0 -47
  188. package/v2/get_universe_constellations_ok.d.ts +0 -9
  189. package/v2/get_universe_factions_ok.d.ts +0 -56
  190. package/v2/get_universe_graphics_graphic_id_ok.d.ts +0 -42
  191. package/v2/get_universe_graphics_ok.d.ts +0 -9
  192. package/v2/get_universe_groups_group_id_ok.d.ts +0 -27
  193. package/v2/get_universe_groups_ok.d.ts +0 -9
  194. package/v2/get_universe_moons_moon_id_ok.d.ts +0 -41
  195. package/v2/get_universe_planets_planet_id_ok.d.ts +0 -42
  196. package/v2/get_universe_races_ok.d.ts +0 -52
  197. package/v2/get_universe_regions_ok.d.ts +0 -9
  198. package/v2/get_universe_regions_region_id_ok.d.ts +0 -28
  199. package/v2/get_universe_schematics_schematic_id_ok.d.ts +0 -18
  200. package/v2/get_universe_stargates_stargate_id_ok.d.ts +0 -57
  201. package/v2/get_universe_stars_star_id_ok.d.ts +0 -129
  202. package/v2/get_universe_stations_station_id_ok.d.ts +0 -104
  203. package/v2/get_universe_structures_ok.d.ts +0 -9
  204. package/v2/get_universe_structures_structure_id_ok.d.ts +0 -43
  205. package/v2/get_universe_system_jumps_ok.d.ts +0 -24
  206. package/v2/get_universe_system_kills_ok.d.ts +0 -32
  207. package/v2/get_universe_systems_ok.d.ts +0 -9
  208. package/v2/get_universe_systems_system_id_ok.d.ts +0 -94
  209. package/v2/get_universe_types_ok.d.ts +0 -9
  210. package/v2/get_universe_types_type_id_ok.d.ts +0 -105
  211. package/v2/get_wars_ok.d.ts +0 -9
  212. package/v2/get_wars_war_id_killmails_ok.d.ts +0 -24
  213. package/v2/post_characters_affiliation_ok.d.ts +0 -32
  214. package/v2/post_characters_character_id_assets_locations_ok.d.ts +0 -39
  215. package/v2/post_characters_character_id_assets_names_ok.d.ts +0 -24
  216. package/v2/post_characters_character_id_contacts_created.d.ts +0 -9
  217. package/v2/post_characters_character_id_cspa_created.d.ts +0 -7
  218. package/v2/post_characters_character_id_fittings_created.d.ts +0 -14
  219. package/v2/post_characters_character_id_mail_created.d.ts +0 -7
  220. package/v2/post_characters_character_id_mail_labels_created.d.ts +0 -7
  221. package/v2/post_corporations_corporation_id_assets_locations_ok.d.ts +0 -39
  222. package/v2/post_corporations_corporation_id_assets_names_ok.d.ts +0 -24
  223. package/v2/post_fleets_fleet_id_wings_created.d.ts +0 -14
  224. package/v2/post_fleets_fleet_id_wings_wing_id_squads_created.d.ts +0 -14
  225. package/v2/post_universe_ids_ok.d.ts +0 -86
  226. package/v2/post_universe_names_ok.d.ts +0 -38
  227. /package/v2/{extra-types.d.ts → globals/extra-types.d.ts} +0 -0
package/v2/index.d.ts CHANGED
@@ -9,162 +9,26 @@
9
9
  * THIS DTS IS AUTO GENERATED, DO NOT EDIT
10
10
  *
11
11
  * @file eve-esi-types/v2/index.d.ts
12
- * @summary This file is auto-generated and defines version 3.1.6 of the EVE Online ESI response types.
12
+ * @summary This file is auto-generated and defines version 3.2.0 of the EVE Online ESI response types.
13
13
  */
14
14
  import type { TESIResponseOKMap } from "./response-map.d.ts";
15
- export type { TESIResponseOKMap } from "./response-map.d.ts";
16
-
17
15
  import type { PickPathParameters, InferKeysLen } from "./util.d.ts";
16
+ import type {
17
+ _ESIResponseType,
18
+ _IfNeedPathParams,
19
+ TPathParamsNever,
20
+ // ESIEndpointUnions,
21
+ // IESIRequestFunction2,
22
+ // InferESIResponseResultEX,
23
+ // InferNextEndpoint2, InferNextEndpointLoos,
24
+ // InferNextEndpoint,
25
+ // TESICachedSeconds, TESIRequestFunctionMethods2,
26
+ // __IdentifyParameters, __InferESIResponseResult,
27
+ } from "./types-util.d.ts";
28
+ export type * from "./response-map.d.ts";
29
+ export type * from "./types-util.d.ts";
30
+ export type * from "./util.d.ts";
18
31
 
19
- /**
20
- * Represents a function that can make ESI requests with various HTTP methods.
21
- *
22
- * @template ActualOpt - The actual type of the options.
23
- *
24
- * @example
25
- * ```ts
26
- * // @ ts-expect-error
27
- * export const request: IESIRequestFunction2<ESIRequestOptions> = (method, endpoint, opt) => {
28
- * // Implementation for "get" | "post" | "put" | "delete" request
29
- * };
30
- * // You can easily implement "get" | "post" | "put" | "delete" requests
31
- * // with code like the following:
32
- * (["get", "post", "put", "delete"] as (keyof typeof request)[]).forEach((method) => {
33
- * request[method] = function (this: typeof request, endpoint, opt) {
34
- * return this(method, endpoint, opt);
35
- * } as TESIRequestFunctionEachMethod2<typeof method>;
36
- * });
37
- * ```
38
- */
39
- export interface IESIRequestFunction2<ActualOpt extends Record<string, unknown>>
40
- extends TESIRequestFunctionSignature2<ActualOpt>, TESIRequestFunctionMethods2<ActualOpt> {
41
- }
42
-
43
- /**
44
- * Represents the methods available for making ESI requests.
45
- *
46
- * + This interface is used when you already have implementation code such as
47
- * TESIRequestFunctionSignature2 and you want to implement additional shorthand methods.
48
- *
49
- * @template ActualOpt - The actual type of the options.
50
- *
51
- * @example
52
- * ```ts
53
- * export const request: TESIRequestFunctionSignature2<ESIRequestOptions> = (method, endpoint, opt) => {
54
- * // Implementation for "get" | "post" | "put" | "delete" request
55
- * };
56
- * // You can easily implement "get" | "post" | "put" | "delete" requests
57
- * // with code like the following:
58
- * const esiMethods = {} as TESIRequestFunctionMethods2<ESIRequestOptions>;
59
- * (["get", "post", "put", "delete"] as (keyof TESIRequestFunctionMethods2)[]).forEach((method) => {
60
- * esiMethods[method] = function (endpoint, opt) {
61
- * return request(method, endpoint, opt);
62
- * } as TESIRequestFunctionEachMethod2<typeof method>;
63
- * });
64
- * ```
65
- */
66
- export type TESIRequestFunctionMethods2<ActualOpt extends Record<string, unknown>> = {
67
- [method in TESIEntryMethod]: TESIRequestFunctionEachMethod2<method, ActualOpt>;
68
- }
69
-
70
- /**
71
- * List of "x-cached-seconds"
72
- *
73
- * ```ts
74
- * // const cacheSecGet: 3600 | 300 | 604800 | 120 | 5 | 600 | 86400 | 60 | 30 | 1200 | 1800 | 30758400
75
- * const cacheSecGet: TESICachedSeconds<"get">;
76
- * // const cache5sec: 5
77
- * const cache5s: TESICachedSeconds<"put">;
78
- * // const cache3600s: 3600
79
- * const cache3600s: TESICachedSeconds<"post">;
80
- * // "/characters/affiliation/"
81
- * const cache3600sEndpoint: TESICachedSeconds<"post", 1>;
82
- * ```
83
- */
84
- export declare type TESICachedSeconds<
85
- Method extends TESIEntryMethod, AsEndpoint = void
86
- > = {
87
- [M in TESIEntryMethod]: {
88
- [EP in ESIEndpointOf<M>]: TESIResponseOKMap[M][EP] extends { cachedSeconds: number }
89
- ? AsEndpoint extends void
90
- ? TESIResponseOKMap[M][EP]["cachedSeconds"]: EP
91
- : never
92
- }[ESIEndpointOf<M>];
93
- }[Method];
94
-
95
- /**
96
- * Indicates that no path parameters are allowed.
97
- *
98
- * This type serves as a compile-time signal for endpoints that do not support dynamic URL segments.
99
- * By using this type, it is clear that no path parameters should be provided.
100
- */
101
- export declare type TPathParamsNever = { /* pathParams?: never */ };
102
-
103
- // local types
104
- /**
105
- * Infers the response type of an ESI request based on the HTTP method and endpoint.
106
- *
107
- * This type extracts the response type from the `TESIResponseOKMap` based on the provided
108
- * HTTP method and endpoint.
109
- *
110
- * @template M - The HTTP method to use for the request.
111
- * @template EPx - The endpoint path.
112
- *
113
- * @example
114
- * ```ts
115
- * type ResponseType = _ESIResponseType<"get", "/characters/{character_id}/">;
116
- * // Result: The inferred response type for the given method and endpoint.
117
- * ```
118
- * @internal
119
- * @see {@link ESIEndpointOf}
120
- */
121
- export type _ESIResponseType<
122
- M extends TESIEntryMethod,
123
- EPx extends ESIEndpointOf<M> | string,
124
- > = TESIResponseOKMap[M][Extract<EPx, ESIEndpointOf<M>>];
125
- // type XOK = _ESIResponseType<"get", "/status/"> extends global._ESIResponseType<"get", "/status/"> ? 1 : 0;
126
- /**
127
- * Determines if the endpoint requires path parameters.
128
- *
129
- * @template EP - The string representing the endpoint path.
130
- * @returns {TPathParamsNever | { pathParams: IfParameterizedPath<EP> }}
131
- * Returns an object with `pathParams` if the endpoint requires parameters, otherwise returns `TPathParamsNever`.
132
- * @example
133
- * ```ts
134
- * type Example = IfNeedPathParams<"/characters/{character_id}/fittings/{fitting_id}/">;
135
- * // Result: { pathParams: [number, number] }
136
- * ```
137
- * @internal
138
- * @see {@link IfParameterizedPath}
139
- * @see {@link ReplacePathParams}
140
- */
141
- export type _IfNeedPathParams<EP extends unknown> = IfParameterizedPath<EP> extends never ? TPathParamsNever :
142
- EP extends ReplacePathParams<EP> ? TPathParamsNever : { pathParams: IfParameterizedPath<EP> };
143
-
144
- /**
145
- * Infer the result type of an ESI response based on the method and endpoint.
146
- *
147
- * @template M - The HTTP method (e.g., "get", "post").
148
- * @template EP - The endpoint path.
149
- * @deprecated 2025/3/17
150
- */
151
- export type __InferESIResponseResult<
152
- M extends TESIEntryMethod,
153
- EP extends ESIEndpointOf<M>
154
- > = TESIResponseOKMap[M][EP] extends { result: infer U } ? U : never;
155
- /**
156
- * Identifies the required parameters for a given entry type.
157
- *
158
- * @template Entry - The entry type to identify parameters for.
159
- * @template Opt - The type of the parameters.
160
- * @type {Opt & Pick<Entry, Exclude<keyof Entry, "result">>}
161
- * @deprecated 2025/3/17
162
- */
163
- export type __IdentifyParameters<
164
- Entry, Opt,
165
- Keys = Exclude<keyof Entry, "result" | "tag" | "cachedSeconds">
166
- // @ts-expect-error
167
- > = RequireThese<Opt, Keys> & Pick<Entry, Keys>;
168
32
 
169
33
  // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
170
34
  // Internal types
@@ -218,6 +82,7 @@ type RestrictKeys<
218
82
 
219
83
  declare global {
220
84
 
85
+ type __ShiftType = 1;
221
86
  /**
222
87
  * Marks specific properties of a type as required.
223
88
  *
@@ -230,7 +95,7 @@ declare global {
230
95
  * type RequiredA = RequireThese<Original, 'a'>;
231
96
  * // Result: { a: number; b?: string; c: boolean }
232
97
  * ```
233
- * @see Documentation of [`RequireThese`](../docs/v2/require-these.md)
98
+ * @see Documentation of [`RequireThese`](https://github.com/jeffy-g/eve-esi-types/blob/master/docs/v2/require-these.md)
234
99
  */
235
100
  type RequireThese<T, K extends keyof T> = {
236
101
  [P in keyof T as P extends K ? P : never]-?: T[P];
@@ -307,7 +172,7 @@ declare global {
307
172
  * otherwise optional.
308
173
  *
309
174
  * @returns {Promise<Ret>} A promise that resolves with the result type `Ret`, representing the response data from the ESI endpoint.
310
- * @see Documentation of [`TESIEnhancedRequestFunctionSignature`](../docs/v3/esi-enhanced-function-signature.md)
175
+ * @see Documentation of [`TESIEnhancedRequestFunctionSignature`](https://github.com/jeffy-g/eve-esi-types/blob/master/docs/v3/esi-enhanced-function-signature.md)
311
176
  */
312
177
  type TESIEnhancedRequestFunctionSignature<
313
178
  PrependParam extends unknown, ActualOpt extends Record<string, unknown>
@@ -366,7 +231,7 @@ declare global {
366
231
  * type Example = ReplacePathParams<"/characters/{character_id}/fittings/{fitting_id}/">;
367
232
  * // Result: `/characters/${number}/fittings/${number}/`
368
233
  * ```
369
- * @see Documentation of [`ReplacePathParams`](../docs/v3/replace-path-params.md)
234
+ * @see Documentation of [`ReplacePathParams`](https://github.com/jeffy-g/eve-esi-types/blob/master/docs/v3/replace-path-params.md)
370
235
  */
371
236
  type ReplacePathParams<T extends unknown> = T extends `${infer Start}{${infer Param}}${infer End}`
372
237
  ? `${Start}${number}${ReplacePathParams<End>}` : T;
@@ -384,7 +249,7 @@ declare global {
384
249
  * @returns {TPathParamsNever | _IfNeedPathParams<EPx>}
385
250
  * @see {@link _IfNeedPathParams}
386
251
  * @see {@link TPathParamsNever}
387
- * @see Documentation of [`InferPathParams`](../docs/v3/infer-path-params.md)
252
+ * @see Documentation of [`InferPathParams`](https://github.com/jeffy-g/eve-esi-types/blob/master/docs/v3/infer-path-params.md)
388
253
  * @date 2025/3/17
389
254
  */
390
255
  type InferPathParams<
@@ -408,7 +273,7 @@ declare global {
408
273
  * ```
409
274
  * @see {@link ESIEndpointOf}
410
275
  * @see {@link ReplacePathParams}
411
- * @see Documentation of [`InferEndpointOrigin`](../docs/v3/infer-endpoint-origin.md)
276
+ * @see Documentation of [`InferEndpointOrigin`](https://github.com/jeffy-g/eve-esi-types/blob/master/docs/v3/infer-endpoint-origin.md)
412
277
  */
413
278
  type InferEndpointOrigin<
414
279
  RealEP extends unknown, M extends TESIEntryMethod,
@@ -429,7 +294,7 @@ declare global {
429
294
  * // Result: "/characters/{character_id}/fittings/{fitting_id}/"
430
295
  * ```
431
296
  * @see {@link InferEndpointOrigin}
432
- * @see Documentation of [`ResolvedEndpoint`](../docs/v3/resolved-endpoint.md)
297
+ * @see Documentation of [`ResolvedEndpoint`](https://github.com/jeffy-g/eve-esi-types/blob/master/docs/v3/resolved-endpoint.md)
433
298
  */
434
299
  type ResolvedEndpoint<
435
300
  RealEP extends unknown, M extends TESIEntryMethod,
@@ -454,7 +319,7 @@ declare global {
454
319
  * ```
455
320
  * @see {@link ESIEndpointOf}
456
321
  * @see {@link _ESIResponseType}
457
- * @see Documentation of [`PickRequireParams`](../docs/v3/pick-require-params.md)
322
+ * @see Documentation of [`PickRequireParams`](https://github.com/jeffy-g/eve-esi-types/blob/master/docs/v3/pick-require-params.md)
458
323
  */
459
324
  type PickRequireParams<
460
325
  M extends TESIEntryMethod,
@@ -479,7 +344,7 @@ declare global {
479
344
  * ```
480
345
  * @see {@link ESIEndpointOf}
481
346
  * @see {@link PickRequireParams}
482
- * @see Documentation of [`HasRequireParams`](../docs/v3/has-require-params.md)
347
+ * @see Documentation of [`HasRequireParams`](https://github.com/jeffy-g/eve-esi-types/blob/master/docs/v3/has-require-params.md)
483
348
  */
484
349
  type HasRequireParams<
485
350
  M extends TESIEntryMethod,
@@ -497,7 +362,7 @@ declare global {
497
362
  * @template Opt The type to return if `EP` is not parameterized.
498
363
  * @returns {number | [number, number] | Opt}
499
364
  * Returns `number` if there is one parameter, `[number, number]` if there are two parameters, otherwise `Opt`.
500
- * @see Documentation of [`IfParameterizedPath`](../docs/v2/if-parameterized-path.md)
365
+ * @see Documentation of [`IfParameterizedPath`](https://github.com/jeffy-g/eve-esi-types/blob/master/docs/v2/if-parameterized-path.md)
501
366
  */
502
367
  type IfParameterizedPath<EP extends unknown, Opt = never> = EP extends `${string}/{${string}}${string}`
503
368
  ? PickPathParameters<EP> extends never
@@ -527,7 +392,7 @@ declare global {
527
392
  * @see {@link RequireThese}
528
393
  * @see {@link ESIEndpointOf}
529
394
  * @see {@link _ESIResponseType}
530
- * @see Documentation of [`IdentifyParameters`](../docs/v2/identify-parameters.md)
395
+ * @see Documentation of [`IdentifyParameters`](https://github.com/jeffy-g/eve-esi-types/blob/master/docs/v2/identify-parameters.md)
531
396
  */
532
397
  //* ctt
533
398
  type IdentifyParameters<
@@ -566,7 +431,7 @@ declare global {
566
431
  * ```
567
432
  * @see {@link ESIEndpointOf}
568
433
  * @see {@link _ESIResponseType}
569
- * @see Documentation of [`InferESIResponseResult`](../docs/v2/infer-esi-response-result.md)
434
+ * @see Documentation of [`InferESIResponseResult`](https://github.com/jeffy-g/eve-esi-types/blob/master/docs/v2/infer-esi-response-result.md)
570
435
  */
571
436
  type InferESIResponseResult<
572
437
  M extends TESIEntryMethod,
@@ -610,7 +475,17 @@ declare global {
610
475
  * Represents the endpoints for the "delete" method.
611
476
  */
612
477
  type TEndPointDelete = ESIEndpointOf<"delete">;
478
+ /**
479
+ * Union of all `ESIEndpointOf<TESIEntryMethod>`
480
+ * @date 2025/4/12
481
+ */
482
+ type ESIEndpointAll = {
483
+ [M in TESIEntryMethod]: ESIEndpointOf<M>;
484
+ }[TESIEntryMethod];
613
485
 
486
+ // type TESIResponseEntries<
487
+ // M extends TESIEntryMethod, EP extends ESIEndpointOf<M>
488
+ // > = TESIResponseOKMap[M][EP];
614
489
  /**
615
490
  * Represents the entry details for the "get" method.
616
491
  *
@@ -9,7 +9,7 @@
9
9
  * THIS DTS IS AUTO GENERATED, DO NOT EDIT
10
10
  *
11
11
  * @file eve-esi-types/v2/response-map.d.ts
12
- * @summary This file is auto-generated and defines version 3.1.6 of the EVE Online ESI response types.
12
+ * @summary This file is auto-generated and defines version 3.2.0 of the EVE Online ESI response types.
13
13
  */
14
14
  import "./types-index.d.ts";
15
15
 
@@ -285,13 +285,6 @@ export type TESIResponseOKMap = {
285
285
  tag: "Location";
286
286
  cachedSeconds: 60;
287
287
  },
288
- "/characters/{character_id}/opportunities/": {
289
- result: GetCharactersCharacterIdOpportunitiesOk;
290
- /** `esi-characters.read_opportunities.v1` */
291
- auth: true;
292
- tag: "Opportunities";
293
- cachedSeconds: 3600;
294
- },
295
288
  "/characters/{character_id}/orders/": {
296
289
  result: GetCharactersCharacterIdOrdersOk;
297
290
  /** `esi-markets.read_character_orders.v1` */
@@ -831,22 +824,6 @@ export type TESIResponseOKMap = {
831
824
  tag: "Market";
832
825
  cachedSeconds: 600;
833
826
  },
834
- "/opportunities/groups/": {
835
- result: GetOpportunitiesGroupsOk;
836
- tag: "Opportunities";
837
- },
838
- "/opportunities/groups/{group_id}/": {
839
- result: GetOpportunitiesGroupsGroupIdOk;
840
- tag: "Opportunities";
841
- },
842
- "/opportunities/tasks/": {
843
- result: GetOpportunitiesTasksOk;
844
- tag: "Opportunities";
845
- },
846
- "/opportunities/tasks/{task_id}/": {
847
- result: GetOpportunitiesTasksTaskIdOk;
848
- tag: "Opportunities";
849
- },
850
827
  "/route/{origin}/{destination}/": {
851
828
  result: GetRouteOriginDestinationOk;
852
829
  query: {
@@ -1025,16 +1002,16 @@ export type TESIResponseOKMap = {
1025
1002
  post: {
1026
1003
  "/fleets/{fleet_id}/members/": {
1027
1004
  result: NoContentResponse;
1005
+ tag: "Fleets";
1028
1006
  /** `esi-fleets.write_fleet.v1` */
1029
1007
  auth: true;
1030
- tag: "Fleets";
1031
1008
  body: PostFleetsFleetIdMembersInvitation;
1032
1009
  },
1033
1010
  "/ui/autopilot/waypoint/": {
1034
1011
  result: NoContentResponse;
1012
+ tag: "User Interface";
1035
1013
  /** `esi-ui.write_waypoint.v1` */
1036
1014
  auth: true;
1037
- tag: "User Interface";
1038
1015
  query: {
1039
1016
  add_to_beginning: boolean;
1040
1017
  clear_other_waypoints: boolean;
@@ -1043,36 +1020,36 @@ export type TESIResponseOKMap = {
1043
1020
  },
1044
1021
  "/ui/openwindow/contract/": {
1045
1022
  result: NoContentResponse;
1023
+ tag: "User Interface";
1046
1024
  /** `esi-ui.open_window.v1` */
1047
1025
  auth: true;
1048
- tag: "User Interface";
1049
1026
  query: {
1050
1027
  contract_id: number;
1051
1028
  }
1052
1029
  },
1053
1030
  "/ui/openwindow/information/": {
1054
1031
  result: NoContentResponse;
1032
+ tag: "User Interface";
1055
1033
  /** `esi-ui.open_window.v1` */
1056
1034
  auth: true;
1057
- tag: "User Interface";
1058
1035
  query: {
1059
1036
  target_id: number;
1060
1037
  }
1061
1038
  },
1062
1039
  "/ui/openwindow/marketdetails/": {
1063
1040
  result: NoContentResponse;
1041
+ tag: "User Interface";
1064
1042
  /** `esi-ui.open_window.v1` */
1065
1043
  auth: true;
1066
- tag: "User Interface";
1067
1044
  query: {
1068
1045
  type_id: number;
1069
1046
  }
1070
1047
  },
1071
1048
  "/ui/openwindow/newmail/": {
1072
1049
  result: NoContentResponse;
1050
+ tag: "User Interface";
1073
1051
  /** `esi-ui.open_window.v1` */
1074
1052
  auth: true;
1075
- tag: "User Interface";
1076
1053
  body: PostUiOpenwindowNewmailNewMail;
1077
1054
  },
1078
1055
  "/characters/affiliation/": {
@@ -1175,17 +1152,17 @@ export type TESIResponseOKMap = {
1175
1152
  put: {
1176
1153
  "/characters/{character_id}/calendar/{event_id}/": {
1177
1154
  result: NoContentResponse;
1178
- /** `esi-calendar.respond_calendar_events.v1` */
1179
- auth: true;
1180
1155
  tag: "Calendar";
1181
1156
  cachedSeconds: 5;
1157
+ /** `esi-calendar.respond_calendar_events.v1` */
1158
+ auth: true;
1182
1159
  body: PutCharactersCharacterIdCalendarEventIdResponse;
1183
1160
  },
1184
1161
  "/characters/{character_id}/contacts/": {
1185
1162
  result: NoContentResponse;
1163
+ tag: "Contacts";
1186
1164
  /** `esi-characters.write_contacts.v1` */
1187
1165
  auth: true;
1188
- tag: "Contacts";
1189
1166
  body: PutCharactersCharacterIdContactsContactIds;
1190
1167
  query: {
1191
1168
  label_ids?: PutCharactersCharacterIdContactsLabelIds;
@@ -1195,85 +1172,85 @@ export type TESIResponseOKMap = {
1195
1172
  },
1196
1173
  "/characters/{character_id}/mail/{mail_id}/": {
1197
1174
  result: NoContentResponse;
1175
+ tag: "Mail";
1198
1176
  /** `esi-mail.organize_mail.v1` */
1199
1177
  auth: true;
1200
- tag: "Mail";
1201
1178
  body: PutCharactersCharacterIdMailMailIdContents;
1202
1179
  },
1203
1180
  "/fleets/{fleet_id}/": {
1204
1181
  result: NoContentResponse;
1182
+ tag: "Fleets";
1205
1183
  /** `esi-fleets.write_fleet.v1` */
1206
1184
  auth: true;
1207
- tag: "Fleets";
1208
1185
  body: PutFleetsFleetIdNewSettings;
1209
1186
  },
1210
1187
  "/fleets/{fleet_id}/members/{member_id}/": {
1211
1188
  result: NoContentResponse;
1189
+ tag: "Fleets";
1212
1190
  /** `esi-fleets.write_fleet.v1` */
1213
1191
  auth: true;
1214
- tag: "Fleets";
1215
1192
  body: PutFleetsFleetIdMembersMemberIdMovement;
1216
1193
  },
1217
1194
  "/fleets/{fleet_id}/squads/{squad_id}/": {
1218
1195
  result: NoContentResponse;
1196
+ tag: "Fleets";
1219
1197
  /** `esi-fleets.write_fleet.v1` */
1220
1198
  auth: true;
1221
- tag: "Fleets";
1222
1199
  body: PutFleetsFleetIdSquadsSquadIdNaming;
1223
1200
  },
1224
1201
  "/fleets/{fleet_id}/wings/{wing_id}/": {
1225
1202
  result: NoContentResponse;
1203
+ tag: "Fleets";
1226
1204
  /** `esi-fleets.write_fleet.v1` */
1227
1205
  auth: true;
1228
- tag: "Fleets";
1229
1206
  body: PutFleetsFleetIdWingsWingIdNaming;
1230
1207
  }
1231
1208
  },
1232
1209
  delete: {
1233
1210
  "/characters/{character_id}/contacts/": {
1234
1211
  result: NoContentResponse;
1212
+ tag: "Contacts";
1235
1213
  /** `esi-characters.write_contacts.v1` */
1236
1214
  auth: true;
1237
- tag: "Contacts";
1238
1215
  query: {
1239
1216
  contact_ids: DeleteCharactersCharacterIdContactsContactIds;
1240
1217
  }
1241
1218
  },
1242
1219
  "/characters/{character_id}/fittings/{fitting_id}/": {
1243
1220
  result: NoContentResponse;
1221
+ tag: "Fittings";
1244
1222
  /** `esi-fittings.write_fittings.v1` */
1245
1223
  auth: true;
1246
- tag: "Fittings";
1247
1224
  },
1248
1225
  "/characters/{character_id}/mail/labels/{label_id}/": {
1249
1226
  result: NoContentResponse;
1227
+ tag: "Mail";
1250
1228
  /** `esi-mail.organize_mail.v1` */
1251
1229
  auth: true;
1252
- tag: "Mail";
1253
1230
  },
1254
1231
  "/characters/{character_id}/mail/{mail_id}/": {
1255
1232
  result: NoContentResponse;
1233
+ tag: "Mail";
1256
1234
  /** `esi-mail.organize_mail.v1` */
1257
1235
  auth: true;
1258
- tag: "Mail";
1259
1236
  },
1260
1237
  "/fleets/{fleet_id}/members/{member_id}/": {
1261
1238
  result: NoContentResponse;
1239
+ tag: "Fleets";
1262
1240
  /** `esi-fleets.write_fleet.v1` */
1263
1241
  auth: true;
1264
- tag: "Fleets";
1265
1242
  },
1266
1243
  "/fleets/{fleet_id}/squads/{squad_id}/": {
1267
1244
  result: NoContentResponse;
1245
+ tag: "Fleets";
1268
1246
  /** `esi-fleets.write_fleet.v1` */
1269
1247
  auth: true;
1270
- tag: "Fleets";
1271
1248
  },
1272
1249
  "/fleets/{fleet_id}/wings/{wing_id}/": {
1273
1250
  result: NoContentResponse;
1251
+ tag: "Fleets";
1274
1252
  /** `esi-fleets.write_fleet.v1` */
1275
1253
  auth: true;
1276
- tag: "Fleets";
1277
1254
  }
1278
1255
  }
1279
1256
  };