@lgriffin/esi.ts 6.0.0 → 7.4.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 (143) hide show
  1. package/CHANGELOG.md +110 -1
  2. package/README.md +245 -159
  3. package/dist/clients/AllianceClient.d.ts +2 -0
  4. package/dist/clients/AllianceClient.d.ts.map +1 -1
  5. package/dist/clients/AllianceClient.js +2 -0
  6. package/dist/clients/BaseEsiClient.d.ts +4 -2
  7. package/dist/clients/BaseEsiClient.d.ts.map +1 -1
  8. package/dist/clients/BaseEsiClient.js +9 -0
  9. package/dist/clients/ContactsClient.d.ts +6 -4
  10. package/dist/clients/ContactsClient.d.ts.map +1 -1
  11. package/dist/clients/ContactsClient.js +9 -7
  12. package/dist/clients/FleetClient.d.ts +2 -2
  13. package/dist/clients/FleetClient.d.ts.map +1 -1
  14. package/dist/clients/FleetClient.js +8 -2
  15. package/dist/clients/SovereigntyClient.d.ts +1 -1
  16. package/dist/clients/SovereigntyClient.d.ts.map +1 -1
  17. package/dist/clients/UiClient.d.ts +11 -9
  18. package/dist/clients/UiClient.d.ts.map +1 -1
  19. package/dist/clients/UiClient.js +15 -13
  20. package/dist/core/constants.d.ts +2 -2
  21. package/dist/core/constants.js +1 -1
  22. package/dist/core/endpoints/EndpointDefinition.d.ts +12 -4
  23. package/dist/core/endpoints/EndpointDefinition.d.ts.map +1 -1
  24. package/dist/core/endpoints/allianceEndpoints.d.ts +17 -14
  25. package/dist/core/endpoints/allianceEndpoints.d.ts.map +1 -1
  26. package/dist/core/endpoints/allianceEndpoints.js +3 -0
  27. package/dist/core/endpoints/assetEndpoints.d.ts +16 -0
  28. package/dist/core/endpoints/assetEndpoints.d.ts.map +1 -1
  29. package/dist/core/endpoints/assetEndpoints.js +1 -0
  30. package/dist/core/endpoints/characterEndpoints.d.ts +8 -0
  31. package/dist/core/endpoints/characterEndpoints.d.ts.map +1 -1
  32. package/dist/core/endpoints/characterEndpoints.js +1 -0
  33. package/dist/core/endpoints/cloneEndpoints.d.ts +17 -15
  34. package/dist/core/endpoints/cloneEndpoints.d.ts.map +1 -1
  35. package/dist/core/endpoints/cloneEndpoints.js +2 -0
  36. package/dist/core/endpoints/contactEndpoints.d.ts +11 -3
  37. package/dist/core/endpoints/contactEndpoints.d.ts.map +1 -1
  38. package/dist/core/endpoints/contactEndpoints.js +5 -3
  39. package/dist/core/endpoints/corporationEndpoints.d.ts +27 -0
  40. package/dist/core/endpoints/corporationEndpoints.d.ts.map +1 -1
  41. package/dist/core/endpoints/corporationEndpoints.js +7 -0
  42. package/dist/core/endpoints/createClient.d.ts +5 -1
  43. package/dist/core/endpoints/createClient.d.ts.map +1 -1
  44. package/dist/core/endpoints/createClient.js +74 -55
  45. package/dist/core/endpoints/dogmaEndpoints.d.ts +41 -38
  46. package/dist/core/endpoints/dogmaEndpoints.d.ts.map +1 -1
  47. package/dist/core/endpoints/dogmaEndpoints.js +3 -0
  48. package/dist/core/endpoints/esi-cache-ttls.generated.d.ts.map +1 -1
  49. package/dist/core/endpoints/esi-cache-ttls.generated.js +14 -7
  50. package/dist/core/endpoints/esi-scopes.generated.d.ts +1 -1
  51. package/dist/core/endpoints/esi-scopes.generated.d.ts.map +1 -1
  52. package/dist/core/endpoints/esi-scopes.generated.js +11 -3
  53. package/dist/core/endpoints/factionEndpoints.d.ts +2 -2
  54. package/dist/core/endpoints/fittingEndpoints.d.ts +1 -1
  55. package/dist/core/endpoints/freelanceJobsEndpoints.d.ts +8 -8
  56. package/dist/core/endpoints/mailEndpoints.d.ts +15 -0
  57. package/dist/core/endpoints/mailEndpoints.d.ts.map +1 -1
  58. package/dist/core/endpoints/mailEndpoints.js +2 -0
  59. package/dist/core/endpoints/marketEndpoints.d.ts +20 -0
  60. package/dist/core/endpoints/marketEndpoints.d.ts.map +1 -1
  61. package/dist/core/endpoints/marketEndpoints.js +4 -0
  62. package/dist/core/endpoints/metaEndpoints.d.ts +2 -0
  63. package/dist/core/endpoints/metaEndpoints.d.ts.map +1 -1
  64. package/dist/core/endpoints/metaEndpoints.js +2 -0
  65. package/dist/core/endpoints/piEndpoints.d.ts +4 -0
  66. package/dist/core/endpoints/piEndpoints.d.ts.map +1 -1
  67. package/dist/core/endpoints/piEndpoints.js +2 -0
  68. package/dist/core/endpoints/routeEndpoints.d.ts +4 -0
  69. package/dist/core/endpoints/routeEndpoints.d.ts.map +1 -1
  70. package/dist/core/endpoints/routeEndpoints.js +2 -0
  71. package/dist/core/endpoints/searchEndpoints.d.ts +13 -0
  72. package/dist/core/endpoints/searchEndpoints.d.ts.map +1 -1
  73. package/dist/core/endpoints/searchEndpoints.js +2 -0
  74. package/dist/core/endpoints/skillEndpoints.d.ts +10 -0
  75. package/dist/core/endpoints/skillEndpoints.d.ts.map +1 -1
  76. package/dist/core/endpoints/skillEndpoints.js +1 -0
  77. package/dist/core/endpoints/sovereigntyEndpoints.d.ts +30 -16
  78. package/dist/core/endpoints/sovereigntyEndpoints.d.ts.map +1 -1
  79. package/dist/core/endpoints/sovereigntyEndpoints.js +1 -1
  80. package/dist/core/endpoints/uiEndpoints.d.ts +14 -4
  81. package/dist/core/endpoints/uiEndpoints.d.ts.map +1 -1
  82. package/dist/core/endpoints/uiEndpoints.js +8 -4
  83. package/dist/core/endpoints/universeEndpoints.d.ts +9 -1
  84. package/dist/core/endpoints/universeEndpoints.d.ts.map +1 -1
  85. package/dist/core/endpoints/universeEndpoints.js +8 -0
  86. package/dist/core/endpoints/walletEndpoints.d.ts +5 -0
  87. package/dist/core/endpoints/walletEndpoints.d.ts.map +1 -1
  88. package/dist/core/endpoints/walletEndpoints.js +3 -0
  89. package/dist/core/endpoints/warEndpoints.d.ts +1 -0
  90. package/dist/core/endpoints/warEndpoints.d.ts.map +1 -1
  91. package/dist/core/endpoints/warEndpoints.js +1 -0
  92. package/dist/core/util/testHelpers.js +2 -2
  93. package/dist/index.d.ts +1 -1
  94. package/dist/index.d.ts.map +1 -1
  95. package/dist/schemas/assets.d.ts +1 -0
  96. package/dist/schemas/assets.d.ts.map +1 -1
  97. package/dist/schemas/assets.js +1 -1
  98. package/dist/schemas/character.d.ts +8 -0
  99. package/dist/schemas/character.d.ts.map +1 -1
  100. package/dist/schemas/character.js +9 -1
  101. package/dist/schemas/corporation.d.ts +18 -0
  102. package/dist/schemas/corporation.d.ts.map +1 -1
  103. package/dist/schemas/corporation.js +15 -1
  104. package/dist/schemas/faction-warfare.d.ts +2 -2
  105. package/dist/schemas/faction-warfare.js +2 -2
  106. package/dist/schemas/fittings.d.ts +1 -1
  107. package/dist/schemas/fittings.js +1 -1
  108. package/dist/schemas/freelance-jobs.d.ts +8 -8
  109. package/dist/schemas/freelance-jobs.js +5 -5
  110. package/dist/schemas/mail.d.ts +14 -0
  111. package/dist/schemas/mail.d.ts.map +1 -1
  112. package/dist/schemas/mail.js +10 -1
  113. package/dist/schemas/market.d.ts +13 -0
  114. package/dist/schemas/market.d.ts.map +1 -1
  115. package/dist/schemas/market.js +14 -1
  116. package/dist/schemas/skills.d.ts +10 -0
  117. package/dist/schemas/skills.d.ts.map +1 -1
  118. package/dist/schemas/skills.js +11 -1
  119. package/dist/schemas/sovereignty.d.ts +28 -14
  120. package/dist/schemas/sovereignty.d.ts.map +1 -1
  121. package/dist/schemas/sovereignty.js +35 -8
  122. package/dist/schemas/universe.d.ts +1 -1
  123. package/dist/schemas/universe.js +1 -1
  124. package/dist/testing/TestDataFactory.d.ts +1 -0
  125. package/dist/testing/TestDataFactory.d.ts.map +1 -1
  126. package/dist/testing/TestDataFactory.js +19 -10
  127. package/dist/types/api-responses.d.ts +1 -0
  128. package/dist/types/api-responses.d.ts.map +1 -1
  129. package/dist/types/api-responses.js +1 -0
  130. package/dist/types/branded.d.ts +23 -0
  131. package/dist/types/branded.d.ts.map +1 -0
  132. package/dist/types/branded.js +6 -0
  133. package/dist/types/common.d.ts +10 -0
  134. package/dist/types/common.d.ts.map +1 -1
  135. package/dist/types/generated/esi-spec.generated.d.ts +655 -430
  136. package/dist/types/generated/esi-spec.generated.d.ts.map +1 -1
  137. package/dist/types/generated/esi-spec.generated.js +3 -3
  138. package/dist/types/generated/spec-alignment.check.d.ts +13 -0
  139. package/dist/types/generated/spec-alignment.check.d.ts.map +1 -0
  140. package/dist/types/generated/spec-alignment.check.js +14 -0
  141. package/dist/types/market.d.ts +2 -1
  142. package/dist/types/market.d.ts.map +1 -1
  143. package/package.json +52 -12
@@ -14,6 +14,6 @@ exports.sovereigntyEndpoints = {
14
14
  path: 'sovereignty/systems',
15
15
  method: 'GET',
16
16
  requiresAuth: false,
17
- responseSchema: zod_1.z.array(sovereignty_1.SovereigntySystemSchema),
17
+ responseSchema: sovereignty_1.SovereigntySystemSchema,
18
18
  },
19
19
  };
@@ -3,25 +3,35 @@ export declare const uiEndpoints: {
3
3
  readonly path: "ui/autopilot/waypoint";
4
4
  readonly method: "POST";
5
5
  readonly requiresAuth: true;
6
- readonly hasBody: true;
6
+ readonly queryParams: {
7
+ readonly destinationId: "destination_id";
8
+ readonly addToBeginning: "add_to_beginning";
9
+ readonly clearOtherWaypoints: "clear_other_waypoints";
10
+ };
7
11
  };
8
12
  readonly openContractWindow: {
9
13
  readonly path: "ui/openwindow/contract";
10
14
  readonly method: "POST";
11
15
  readonly requiresAuth: true;
12
- readonly hasBody: true;
16
+ readonly queryParams: {
17
+ readonly contractId: "contract_id";
18
+ };
13
19
  };
14
20
  readonly openInformationWindow: {
15
21
  readonly path: "ui/openwindow/information";
16
22
  readonly method: "POST";
17
23
  readonly requiresAuth: true;
18
- readonly hasBody: true;
24
+ readonly queryParams: {
25
+ readonly targetId: "target_id";
26
+ };
19
27
  };
20
28
  readonly openMarketDetailsWindow: {
21
29
  readonly path: "ui/openwindow/marketdetails";
22
30
  readonly method: "POST";
23
31
  readonly requiresAuth: true;
24
- readonly hasBody: true;
32
+ readonly queryParams: {
33
+ readonly typeId: "type_id";
34
+ };
25
35
  };
26
36
  readonly openNewMailWindow: {
27
37
  readonly path: "ui/openwindow/newmail";
@@ -1 +1 @@
1
- {"version":3,"file":"uiEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/uiEndpoints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BQ,CAAC"}
1
+ {"version":3,"file":"uiEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/uiEndpoints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCQ,CAAC"}
@@ -6,25 +6,29 @@ exports.uiEndpoints = {
6
6
  path: 'ui/autopilot/waypoint',
7
7
  method: 'POST',
8
8
  requiresAuth: true,
9
- hasBody: true,
9
+ queryParams: {
10
+ destinationId: 'destination_id',
11
+ addToBeginning: 'add_to_beginning',
12
+ clearOtherWaypoints: 'clear_other_waypoints',
13
+ },
10
14
  },
11
15
  openContractWindow: {
12
16
  path: 'ui/openwindow/contract',
13
17
  method: 'POST',
14
18
  requiresAuth: true,
15
- hasBody: true,
19
+ queryParams: { contractId: 'contract_id' },
16
20
  },
17
21
  openInformationWindow: {
18
22
  path: 'ui/openwindow/information',
19
23
  method: 'POST',
20
24
  requiresAuth: true,
21
- hasBody: true,
25
+ queryParams: { targetId: 'target_id' },
22
26
  },
23
27
  openMarketDetailsWindow: {
24
28
  path: 'ui/openwindow/marketdetails',
25
29
  method: 'POST',
26
30
  requiresAuth: true,
27
- hasBody: true,
31
+ queryParams: { typeId: 'type_id' },
28
32
  },
29
33
  openNewMailWindow: {
30
34
  path: 'ui/openwindow/newmail',
@@ -38,7 +38,7 @@ export declare const universeEndpoints: {
38
38
  description: z.ZodString;
39
39
  race_id: z.ZodNumber;
40
40
  corporation_id: z.ZodNumber;
41
- ship_type_id: z.ZodNumber;
41
+ ship_type_id: z.ZodNullable<z.ZodNumber>;
42
42
  charisma: z.ZodNumber;
43
43
  intelligence: z.ZodNumber;
44
44
  memory: z.ZodNumber;
@@ -50,6 +50,7 @@ export declare const universeEndpoints: {
50
50
  readonly path: "universe/categories";
51
51
  readonly method: "GET";
52
52
  readonly requiresAuth: false;
53
+ readonly responseSchema: z.ZodArray<z.ZodNumber>;
53
54
  };
54
55
  readonly getCategoryById: {
55
56
  readonly path: "universe/categories/{categoryId}";
@@ -67,6 +68,7 @@ export declare const universeEndpoints: {
67
68
  readonly path: "universe/constellations";
68
69
  readonly method: "GET";
69
70
  readonly requiresAuth: false;
71
+ readonly responseSchema: z.ZodArray<z.ZodNumber>;
70
72
  };
71
73
  readonly getConstellationById: {
72
74
  readonly path: "universe/constellations/{constellationId}";
@@ -106,6 +108,7 @@ export declare const universeEndpoints: {
106
108
  readonly path: "universe/graphics";
107
109
  readonly method: "GET";
108
110
  readonly requiresAuth: false;
111
+ readonly responseSchema: z.ZodArray<z.ZodNumber>;
109
112
  };
110
113
  readonly getGraphicById: {
111
114
  readonly path: "universe/graphics/{graphicId}";
@@ -124,6 +127,7 @@ export declare const universeEndpoints: {
124
127
  readonly path: "universe/groups";
125
128
  readonly method: "GET";
126
129
  readonly requiresAuth: false;
130
+ readonly responseSchema: z.ZodArray<z.ZodNumber>;
127
131
  };
128
132
  readonly getItemGroupById: {
129
133
  readonly path: "universe/groups/{groupId}";
@@ -255,6 +259,7 @@ export declare const universeEndpoints: {
255
259
  readonly path: "universe/regions";
256
260
  readonly method: "GET";
257
261
  readonly requiresAuth: false;
262
+ readonly responseSchema: z.ZodArray<z.ZodNumber>;
258
263
  };
259
264
  readonly getRegionById: {
260
265
  readonly path: "universe/regions/{regionId}";
@@ -344,6 +349,7 @@ export declare const universeEndpoints: {
344
349
  readonly path: "universe/structures";
345
350
  readonly method: "GET";
346
351
  readonly requiresAuth: false;
352
+ readonly responseSchema: z.ZodArray<z.ZodNumber>;
347
353
  };
348
354
  readonly getStructureById: {
349
355
  readonly path: "universe/structures/{structureId}";
@@ -387,6 +393,7 @@ export declare const universeEndpoints: {
387
393
  readonly path: "universe/systems";
388
394
  readonly method: "GET";
389
395
  readonly requiresAuth: false;
396
+ readonly responseSchema: z.ZodArray<z.ZodNumber>;
390
397
  };
391
398
  readonly getSystemById: {
392
399
  readonly path: "universe/systems/{systemId}";
@@ -413,6 +420,7 @@ export declare const universeEndpoints: {
413
420
  readonly path: "universe/types";
414
421
  readonly method: "GET";
415
422
  readonly requiresAuth: false;
423
+ readonly responseSchema: z.ZodArray<z.ZodNumber>;
416
424
  };
417
425
  readonly getTypeById: {
418
426
  readonly path: "universe/types/{typeId}";
@@ -1 +1 @@
1
- {"version":3,"file":"universeEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/universeEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCA8EL,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAcV,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwGC,CAAC"}
1
+ {"version":3,"file":"universeEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/universeEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAkFL,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAcV,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4GC,CAAC"}
@@ -27,6 +27,7 @@ exports.universeEndpoints = {
27
27
  path: 'universe/categories',
28
28
  method: 'GET',
29
29
  requiresAuth: false,
30
+ responseSchema: zod_1.z.array(zod_1.z.number()),
30
31
  },
31
32
  getCategoryById: {
32
33
  path: 'universe/categories/{categoryId}',
@@ -39,6 +40,7 @@ exports.universeEndpoints = {
39
40
  path: 'universe/constellations',
40
41
  method: 'GET',
41
42
  requiresAuth: false,
43
+ responseSchema: zod_1.z.array(zod_1.z.number()),
42
44
  },
43
45
  getConstellationById: {
44
46
  path: 'universe/constellations/{constellationId}',
@@ -57,6 +59,7 @@ exports.universeEndpoints = {
57
59
  path: 'universe/graphics',
58
60
  method: 'GET',
59
61
  requiresAuth: false,
62
+ responseSchema: zod_1.z.array(zod_1.z.number()),
60
63
  },
61
64
  getGraphicById: {
62
65
  path: 'universe/graphics/{graphicId}',
@@ -69,6 +72,7 @@ exports.universeEndpoints = {
69
72
  path: 'universe/groups',
70
73
  method: 'GET',
71
74
  requiresAuth: false,
75
+ responseSchema: zod_1.z.array(zod_1.z.number()),
72
76
  },
73
77
  getItemGroupById: {
74
78
  path: 'universe/groups/{groupId}',
@@ -115,6 +119,7 @@ exports.universeEndpoints = {
115
119
  path: 'universe/regions',
116
120
  method: 'GET',
117
121
  requiresAuth: false,
122
+ responseSchema: zod_1.z.array(zod_1.z.number()),
118
123
  },
119
124
  getRegionById: {
120
125
  path: 'universe/regions/{regionId}',
@@ -155,6 +160,7 @@ exports.universeEndpoints = {
155
160
  path: 'universe/structures',
156
161
  method: 'GET',
157
162
  requiresAuth: false,
163
+ responseSchema: zod_1.z.array(zod_1.z.number()),
158
164
  },
159
165
  getStructureById: {
160
166
  path: 'universe/structures/{structureId}',
@@ -179,6 +185,7 @@ exports.universeEndpoints = {
179
185
  path: 'universe/systems',
180
186
  method: 'GET',
181
187
  requiresAuth: false,
188
+ responseSchema: zod_1.z.array(zod_1.z.number()),
182
189
  },
183
190
  getSystemById: {
184
191
  path: 'universe/systems/{systemId}',
@@ -191,6 +198,7 @@ exports.universeEndpoints = {
191
198
  path: 'universe/types',
192
199
  method: 'GET',
193
200
  requiresAuth: false,
201
+ responseSchema: zod_1.z.array(zod_1.z.number()),
194
202
  },
195
203
  getTypeById: {
196
204
  path: 'universe/types/{typeId}',
@@ -5,6 +5,7 @@ export declare const walletEndpoints: {
5
5
  readonly method: "GET";
6
6
  readonly requiresAuth: true;
7
7
  readonly pathParams: readonly ["characterId"];
8
+ readonly responseSchema: z.ZodNumber;
8
9
  };
9
10
  readonly getCharacterWalletJournal: {
10
11
  readonly path: "characters/{characterId}/wallet/journal";
@@ -48,6 +49,10 @@ export declare const walletEndpoints: {
48
49
  readonly method: "GET";
49
50
  readonly requiresAuth: true;
50
51
  readonly pathParams: readonly ["corporationId"];
52
+ readonly responseSchema: z.ZodArray<z.ZodObject<{
53
+ division: z.ZodNumber;
54
+ balance: z.ZodNumber;
55
+ }, z.core.$loose>>;
51
56
  };
52
57
  readonly getCorporationWalletJournal: {
53
58
  readonly path: "corporations/{corporationId}/wallets/{division}/journal";
@@ -1 +1 @@
1
- {"version":3,"file":"walletEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/walletEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCI,CAAC"}
1
+ {"version":3,"file":"walletEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/walletEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CI,CAAC"}
@@ -3,12 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.walletEndpoints = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const wallet_1 = require("../../schemas/wallet");
6
+ const corporation_1 = require("../../schemas/corporation");
6
7
  exports.walletEndpoints = {
7
8
  getCharacterWallet: {
8
9
  path: 'characters/{characterId}/wallet',
9
10
  method: 'GET',
10
11
  requiresAuth: true,
11
12
  pathParams: ['characterId'],
13
+ responseSchema: zod_1.z.number(),
12
14
  },
13
15
  getCharacterWalletJournal: {
14
16
  path: 'characters/{characterId}/wallet/journal',
@@ -29,6 +31,7 @@ exports.walletEndpoints = {
29
31
  method: 'GET',
30
32
  requiresAuth: true,
31
33
  pathParams: ['corporationId'],
34
+ responseSchema: zod_1.z.array(corporation_1.CorporationWalletDivisionSchema),
32
35
  },
33
36
  getCorporationWalletJournal: {
34
37
  path: 'corporations/{corporationId}/wallets/{division}/journal',
@@ -4,6 +4,7 @@ export declare const warEndpoints: {
4
4
  readonly path: "wars";
5
5
  readonly method: "GET";
6
6
  readonly requiresAuth: false;
7
+ readonly responseSchema: z.ZodArray<z.ZodNumber>;
7
8
  };
8
9
  readonly getWarById: {
9
10
  readonly path: "wars/{warId}";
@@ -1 +1 @@
1
- {"version":3,"file":"warEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/warEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBO,CAAC"}
1
+ {"version":3,"file":"warEndpoints.d.ts","sourceRoot":"","sources":["../../../src/core/endpoints/warEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBO,CAAC"}
@@ -9,6 +9,7 @@ exports.warEndpoints = {
9
9
  path: 'wars',
10
10
  method: 'GET',
11
11
  requiresAuth: false,
12
+ responseSchema: zod_1.z.array(zod_1.z.number()),
12
13
  },
13
14
  getWarById: {
14
15
  path: 'wars/{warId}',
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getBody = void 0;
4
- /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-return */
4
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
5
  const getBody = async (apiCall) => {
6
6
  return apiCall();
7
7
  };
8
8
  exports.getBody = getBody;
9
- /* eslint-enable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-return */
9
+ /* eslint-enable @typescript-eslint/no-explicit-any */
package/dist/index.d.ts CHANGED
@@ -40,7 +40,7 @@ export { FreelanceJobsClient } from './clients/FreelanceJobsClient';
40
40
  export { SkyhooksClient } from './clients/SkyhooksClient';
41
41
  export { MercenaryClient } from './clients/MercenaryClient';
42
42
  export { AccessListsClient } from './clients/AccessListsClient';
43
- export { CursorOptions, CursorResult, CreateClientOptions, WithMetadata, fetchAllCursorPages, } from './core/endpoints/createClient';
43
+ export { CursorOptions, CursorResult, CreateClientOptions, WithMetadata, WithSafeMode, fetchAllCursorPages, } from './core/endpoints/createClient';
44
44
  export { CursorTokens } from './core/pagination/CursorPaginationHandler';
45
45
  export { EsiError, TimeoutError, EsiValidationError, isEsiError, isRateLimited, isNotFound, isUnauthorized, isForbidden, isServerError, isTimeout, isRetryable, isValidationError, } from './core/util/error';
46
46
  export { DeprecationInfo } from './core/endpoints/EndpointDefinition';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,0BA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SAAS,EACT,YAAY,EACZ,WAAW,GACZ,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EACL,cAAc,EACd,UAAU,EACV,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,UAAU,EACV,UAAU,GACX,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAGvE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,oBAAoB,GACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EACL,QAAQ,EACR,iBAAiB,GAClB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,cAAc,uBAAuB,CAAC;AAGtC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC"}
@@ -8,6 +8,7 @@ export declare const CharacterAssetSchema: z.ZodObject<{
8
8
  other: "other";
9
9
  solar_system: "solar_system";
10
10
  station: "station";
11
+ item: "item";
11
12
  }>;
12
13
  location_flag: z.ZodString;
13
14
  is_singleton: z.ZodBoolean;
@@ -1 +1 @@
1
- {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/schemas/assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;iBAS/B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;iBAO9B,CAAC;AAEH,eAAO,MAAM,eAAe;;;iBAG1B,CAAC"}
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/schemas/assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;iBAS/B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;iBAO9B,CAAC;AAEH,eAAO,MAAM,eAAe;;;iBAG1B,CAAC"}
@@ -7,7 +7,7 @@ exports.CharacterAssetSchema = zod_1.z.looseObject({
7
7
  type_id: zod_1.z.number(),
8
8
  quantity: zod_1.z.number(),
9
9
  location_id: zod_1.z.number(),
10
- location_type: zod_1.z.enum(['station', 'solar_system', 'other']),
10
+ location_type: zod_1.z.enum(['station', 'solar_system', 'item', 'other']),
11
11
  location_flag: zod_1.z.string(),
12
12
  is_singleton: zod_1.z.boolean(),
13
13
  is_blueprint_copy: zod_1.z.boolean().optional(),
@@ -5,6 +5,7 @@ export declare const CharacterInfoSchema: z.ZodObject<{
5
5
  description: z.ZodOptional<z.ZodString>;
6
6
  corporation_id: z.ZodNumber;
7
7
  alliance_id: z.ZodOptional<z.ZodNumber>;
8
+ faction_id: z.ZodOptional<z.ZodNumber>;
8
9
  ancestry_id: z.ZodOptional<z.ZodNumber>;
9
10
  bloodline_id: z.ZodNumber;
10
11
  race_id: z.ZodNumber;
@@ -113,6 +114,13 @@ export declare const CharacterAffiliationSchema: z.ZodObject<{
113
114
  alliance_id: z.ZodOptional<z.ZodNumber>;
114
115
  faction_id: z.ZodOptional<z.ZodNumber>;
115
116
  }, z.core.$loose>;
117
+ export declare const ContactNotificationSchema: z.ZodObject<{
118
+ notification_id: z.ZodNumber;
119
+ sender_character_id: z.ZodNumber;
120
+ message: z.ZodString;
121
+ send_date: z.ZodString;
122
+ standing_level: z.ZodNumber;
123
+ }, z.core.$loose>;
116
124
  export declare const CharacterRoleSchema: z.ZodObject<{
117
125
  roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
118
126
  roles_at_hq: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"character.d.ts","sourceRoot":"","sources":["../../src/schemas/character.ts"],"names":[],"mappings":"AAAA,OAAO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;;;;;;iBAc7B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;iBAIzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAKrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;iBAMpC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CharacterRoleSchema = exports.CharacterAffiliationSchema = exports.CharacterTitleSchema = exports.StandingSchema = exports.NotificationSchema = exports.MedalSchema = exports.JumpFatigueSchema = exports.CorporationHistorySchema = exports.BlueprintSchema = exports.AgentResearchSchema = exports.CharacterAttributesSchema = exports.CharacterPortraitSchema = exports.CharacterInfoSchema = void 0;
3
+ exports.CharacterRoleSchema = exports.ContactNotificationSchema = exports.CharacterAffiliationSchema = exports.CharacterTitleSchema = exports.StandingSchema = exports.NotificationSchema = exports.MedalSchema = exports.JumpFatigueSchema = exports.CorporationHistorySchema = exports.BlueprintSchema = exports.AgentResearchSchema = exports.CharacterAttributesSchema = exports.CharacterPortraitSchema = exports.CharacterInfoSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.CharacterInfoSchema = zod_1.z.looseObject({
6
6
  character_id: zod_1.z.number().optional(),
@@ -8,6 +8,7 @@ exports.CharacterInfoSchema = zod_1.z.looseObject({
8
8
  description: zod_1.z.string().optional(),
9
9
  corporation_id: zod_1.z.number(),
10
10
  alliance_id: zod_1.z.number().optional(),
11
+ faction_id: zod_1.z.number().optional(),
11
12
  ancestry_id: zod_1.z.number().optional(),
12
13
  bloodline_id: zod_1.z.number(),
13
14
  race_id: zod_1.z.number(),
@@ -106,6 +107,13 @@ exports.CharacterAffiliationSchema = zod_1.z.looseObject({
106
107
  alliance_id: zod_1.z.number().optional(),
107
108
  faction_id: zod_1.z.number().optional(),
108
109
  });
110
+ exports.ContactNotificationSchema = zod_1.z.looseObject({
111
+ notification_id: zod_1.z.number(),
112
+ sender_character_id: zod_1.z.number(),
113
+ message: zod_1.z.string(),
114
+ send_date: zod_1.z.string(),
115
+ standing_level: zod_1.z.number(),
116
+ });
109
117
  exports.CharacterRoleSchema = zod_1.z.looseObject({
110
118
  roles: zod_1.z.array(zod_1.z.string()).optional(),
111
119
  roles_at_hq: zod_1.z.array(zod_1.z.string()).optional(),
@@ -173,6 +173,24 @@ export declare const CorporationTitleSchema: z.ZodObject<{
173
173
  roles_at_other: z.ZodOptional<z.ZodArray<z.ZodString>>;
174
174
  grantable_roles_at_other: z.ZodOptional<z.ZodArray<z.ZodString>>;
175
175
  }, z.core.$loose>;
176
+ export declare const CorporationIconSchema: z.ZodObject<{
177
+ px64x64: z.ZodOptional<z.ZodString>;
178
+ px128x128: z.ZodOptional<z.ZodString>;
179
+ px256x256: z.ZodOptional<z.ZodString>;
180
+ }, z.core.$loose>;
181
+ export declare const CorporationStandingSchema: z.ZodObject<{
182
+ from_id: z.ZodNumber;
183
+ from_type: z.ZodEnum<{
184
+ faction: "faction";
185
+ agent: "agent";
186
+ npc_corp: "npc_corp";
187
+ }>;
188
+ standing: z.ZodNumber;
189
+ }, z.core.$loose>;
190
+ export declare const CorporationWalletDivisionSchema: z.ZodObject<{
191
+ division: z.ZodNumber;
192
+ balance: z.ZodNumber;
193
+ }, z.core.$loose>;
176
194
  export declare const ContainerLogSchema: z.ZodObject<{
177
195
  logged_at: z.ZodString;
178
196
  container_id: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"corporation.d.ts","sourceRoot":"","sources":["../../src/schemas/corporation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAgBhC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;iBAK3C,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;iBA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C;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;iBAS1C,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAUtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;iBAOvC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;iBAIvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;iBAsB1C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAqBrC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;iBAWjC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;iBAG1C,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;iBAa7B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContainerLogSchema = exports.CorporationTitleSchema = exports.CorporationStructureSchema = exports.CorporationStarbaseDetailSchema = exports.CorporationShareholderSchema = exports.CorporationRoleHistorySchema = exports.CorporationMemberRoleSchema = exports.CorporationMemberTrackingSchema = exports.CorporationMemberTitleSchema = exports.CorporationIssuedMedalSchema = exports.CorporationFacilitySchema = exports.CorporationDivisionsSchema = exports.CorporationStarbaseSchema = exports.CorporationMedalSchema = exports.CorporationAllianceHistorySchema = exports.CorporationInfoSchema = void 0;
3
+ exports.ContainerLogSchema = exports.CorporationWalletDivisionSchema = exports.CorporationStandingSchema = exports.CorporationIconSchema = exports.CorporationTitleSchema = exports.CorporationStructureSchema = exports.CorporationStarbaseDetailSchema = exports.CorporationShareholderSchema = exports.CorporationRoleHistorySchema = exports.CorporationMemberRoleSchema = exports.CorporationMemberTrackingSchema = exports.CorporationMemberTitleSchema = exports.CorporationIssuedMedalSchema = exports.CorporationFacilitySchema = exports.CorporationDivisionsSchema = exports.CorporationStarbaseSchema = exports.CorporationMedalSchema = exports.CorporationAllianceHistorySchema = exports.CorporationInfoSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.CorporationInfoSchema = zod_1.z.looseObject({
6
6
  corporation_id: zod_1.z.number().optional(),
@@ -162,6 +162,20 @@ exports.CorporationTitleSchema = zod_1.z.looseObject({
162
162
  roles_at_other: zod_1.z.array(zod_1.z.string()).optional(),
163
163
  grantable_roles_at_other: zod_1.z.array(zod_1.z.string()).optional(),
164
164
  });
165
+ exports.CorporationIconSchema = zod_1.z.looseObject({
166
+ px64x64: zod_1.z.string().optional(),
167
+ px128x128: zod_1.z.string().optional(),
168
+ px256x256: zod_1.z.string().optional(),
169
+ });
170
+ exports.CorporationStandingSchema = zod_1.z.looseObject({
171
+ from_id: zod_1.z.number(),
172
+ from_type: zod_1.z.enum(['agent', 'npc_corp', 'faction']),
173
+ standing: zod_1.z.number(),
174
+ });
175
+ exports.CorporationWalletDivisionSchema = zod_1.z.looseObject({
176
+ division: zod_1.z.number(),
177
+ balance: zod_1.z.number(),
178
+ });
165
179
  exports.ContainerLogSchema = zod_1.z.looseObject({
166
180
  logged_at: zod_1.z.string(),
167
181
  container_id: zod_1.z.number(),
@@ -44,8 +44,8 @@ export declare const FactionWarfareSystemSchema: z.ZodObject<{
44
44
  victory_points_threshold: z.ZodNumber;
45
45
  }, z.core.$loose>;
46
46
  export declare const FactionWarfareWarSchema: z.ZodObject<{
47
- aggressor_id: z.ZodNumber;
48
- defender_id: z.ZodNumber;
47
+ faction_id: z.ZodNumber;
48
+ against_id: z.ZodNumber;
49
49
  }, z.core.$loose>;
50
50
  export declare const FactionWarfareLeaderboardSchema: z.ZodObject<{
51
51
  kills: z.ZodObject<{
@@ -42,8 +42,8 @@ exports.FactionWarfareSystemSchema = zod_1.z.looseObject({
42
42
  victory_points_threshold: zod_1.z.number(),
43
43
  });
44
44
  exports.FactionWarfareWarSchema = zod_1.z.looseObject({
45
- aggressor_id: zod_1.z.number(),
46
- defender_id: zod_1.z.number(),
45
+ faction_id: zod_1.z.number(),
46
+ against_id: zod_1.z.number(),
47
47
  });
48
48
  exports.FactionWarfareLeaderboardSchema = zod_1.z.looseObject({
49
49
  kills: zod_1.z.looseObject({
@@ -6,7 +6,7 @@ export declare const FittingSchema: z.ZodObject<{
6
6
  ship_type_id: z.ZodNumber;
7
7
  items: z.ZodArray<z.ZodObject<{
8
8
  type_id: z.ZodNumber;
9
- flag: z.ZodNumber;
9
+ flag: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
10
10
  quantity: z.ZodNumber;
11
11
  }, z.core.$loose>>;
12
12
  }, z.core.$loose>;
@@ -9,7 +9,7 @@ exports.FittingSchema = zod_1.z.looseObject({
9
9
  ship_type_id: zod_1.z.number(),
10
10
  items: zod_1.z.array(zod_1.z.looseObject({
11
11
  type_id: zod_1.z.number(),
12
- flag: zod_1.z.number(),
12
+ flag: zod_1.z.union([zod_1.z.number(), zod_1.z.string()]),
13
13
  quantity: zod_1.z.number(),
14
14
  })),
15
15
  });
@@ -18,10 +18,10 @@ export declare const FreelanceJobSummarySchema: z.ZodObject<{
18
18
  }, z.core.$loose>>;
19
19
  }, z.core.$loose>;
20
20
  export declare const FreelanceJobsListingSchema: z.ZodObject<{
21
- cursor: z.ZodObject<{
21
+ cursor: z.ZodOptional<z.ZodObject<{
22
22
  before: z.ZodNullable<z.ZodString>;
23
23
  after: z.ZodNullable<z.ZodString>;
24
- }, z.core.$loose>;
24
+ }, z.core.$loose>>;
25
25
  freelance_jobs: z.ZodArray<z.ZodObject<{
26
26
  id: z.ZodString;
27
27
  name: z.ZodString;
@@ -73,8 +73,8 @@ export declare const FreelanceJobDetailSchema: z.ZodObject<{
73
73
  }, z.core.$loose>;
74
74
  contribution: z.ZodObject<{
75
75
  max_committed_participants: z.ZodNumber;
76
- reward_per_contribution: z.ZodNumber;
77
- submission_multiplier: z.ZodNumber;
76
+ reward_per_contribution: z.ZodOptional<z.ZodNumber>;
77
+ submission_multiplier: z.ZodOptional<z.ZodNumber>;
78
78
  }, z.core.$loose>;
79
79
  access_and_visibility: z.ZodObject<{
80
80
  acl_protected: z.ZodBoolean;
@@ -85,10 +85,10 @@ export declare const FreelanceJobDetailSchema: z.ZodObject<{
85
85
  }, z.core.$loose>;
86
86
  }, z.core.$loose>;
87
87
  export declare const CharacterFreelanceJobsListingSchema: z.ZodObject<{
88
- cursor: z.ZodObject<{
88
+ cursor: z.ZodOptional<z.ZodObject<{
89
89
  before: z.ZodNullable<z.ZodString>;
90
90
  after: z.ZodNullable<z.ZodString>;
91
- }, z.core.$loose>;
91
+ }, z.core.$loose>>;
92
92
  freelance_jobs: z.ZodArray<z.ZodObject<{
93
93
  id: z.ZodString;
94
94
  name: z.ZodString;
@@ -112,10 +112,10 @@ export declare const FreelanceJobParticipationSchema: z.ZodObject<{
112
112
  last_contribution: z.ZodOptional<z.ZodString>;
113
113
  }, z.core.$loose>;
114
114
  export declare const CorporationFreelanceJobsListingSchema: z.ZodObject<{
115
- cursor: z.ZodObject<{
115
+ cursor: z.ZodOptional<z.ZodObject<{
116
116
  before: z.ZodNullable<z.ZodString>;
117
117
  after: z.ZodNullable<z.ZodString>;
118
- }, z.core.$loose>;
118
+ }, z.core.$loose>>;
119
119
  freelance_jobs: z.ZodArray<z.ZodObject<{
120
120
  id: z.ZodString;
121
121
  name: z.ZodString;
@@ -23,7 +23,7 @@ exports.FreelanceJobSummarySchema = zod_1.z.looseObject({
23
23
  .optional(),
24
24
  });
25
25
  exports.FreelanceJobsListingSchema = zod_1.z.looseObject({
26
- cursor: exports.EsiCursorSchema,
26
+ cursor: exports.EsiCursorSchema.optional(),
27
27
  freelance_jobs: zod_1.z.array(exports.FreelanceJobSummarySchema),
28
28
  });
29
29
  exports.FreelanceJobDetailSchema = zod_1.z.looseObject({
@@ -64,8 +64,8 @@ exports.FreelanceJobDetailSchema = zod_1.z.looseObject({
64
64
  }),
65
65
  contribution: zod_1.z.looseObject({
66
66
  max_committed_participants: zod_1.z.number(),
67
- reward_per_contribution: zod_1.z.number(),
68
- submission_multiplier: zod_1.z.number(),
67
+ reward_per_contribution: zod_1.z.number().optional(),
68
+ submission_multiplier: zod_1.z.number().optional(),
69
69
  }),
70
70
  access_and_visibility: zod_1.z.looseObject({
71
71
  acl_protected: zod_1.z.boolean(),
@@ -76,7 +76,7 @@ exports.FreelanceJobDetailSchema = zod_1.z.looseObject({
76
76
  }),
77
77
  });
78
78
  exports.CharacterFreelanceJobsListingSchema = zod_1.z.looseObject({
79
- cursor: exports.EsiCursorSchema,
79
+ cursor: exports.EsiCursorSchema.optional(),
80
80
  freelance_jobs: zod_1.z.array(exports.FreelanceJobSummarySchema),
81
81
  });
82
82
  exports.FreelanceJobParticipationSchema = zod_1.z.looseObject({
@@ -87,7 +87,7 @@ exports.FreelanceJobParticipationSchema = zod_1.z.looseObject({
87
87
  last_contribution: zod_1.z.string().optional(),
88
88
  });
89
89
  exports.CorporationFreelanceJobsListingSchema = zod_1.z.looseObject({
90
- cursor: exports.EsiCursorSchema,
90
+ cursor: exports.EsiCursorSchema.optional(),
91
91
  freelance_jobs: zod_1.z.array(exports.FreelanceJobSummarySchema),
92
92
  });
93
93
  exports.FreelanceJobParticipantSchema = zod_1.z.looseObject({