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