@mapletip/data 0.3.0 → 0.6.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/README.md +216 -2
- package/client/contract-compatibility.mjs +10 -0
- package/client/items.d.ts +28 -5
- package/client/items.js +94 -5
- package/client/map-geography.d.ts +4 -0
- package/client/map-geography.js +2 -0
- package/client/maps.d.ts +22 -0
- package/client/maps.js +25 -0
- package/client/monster-client.d.ts +22 -3
- package/client/monster-client.js +115 -5
- package/client/monsters.d.ts +33 -7
- package/client/monsters.js +36 -4
- package/client/static-client.d.ts +7 -5
- package/client/static-client.js +3 -2
- package/client/static-domains.d.ts +8 -1
- package/client/static-domains.js +27 -3
- package/generated/item-browse-pack-2.d.ts +83 -1
- package/generated/item-browse-pack-2.validator.js +2 -2
- package/generated/item-related-entity-browse-1.d.ts +48 -0
- package/generated/item-related-entity-browse-1.validator.js +1 -0
- package/generated/map-catalog-2-1.d.ts +103 -0
- package/generated/map-catalog-2-1.validator.d.ts +18 -0
- package/generated/map-catalog-2-1.validator.js +1 -0
- package/generated/map-geography.d.ts +79 -0
- package/generated/map-geography.validator.d.ts +18 -0
- package/generated/map-geography.validator.js +1 -0
- package/generated/monster-catalog-2-2.d.ts +332 -0
- package/generated/monster-catalog-2-2.validator.js +17 -0
- package/generated/monster-catalog-2-3.d.ts +339 -0
- package/generated/monster-catalog-2-3.validator.js +17 -0
- package/generated/monster-catalog-2-4.d.ts +378 -0
- package/generated/monster-catalog-2-4.validator.js +17 -0
- package/generated/monster-drop-browse-1-1.d.ts +150 -0
- package/generated/monster-drop-browse-1-1.validator.js +17 -0
- package/generated/monster-drop-browse.d.ts +123 -0
- package/generated/monster-drop-browse.validator.js +17 -0
- package/generated/monster-location-browse-1-1.d.ts +79 -0
- package/generated/monster-location-browse-1-1.validator.js +17 -0
- package/generated/monster-location-browse.d.ts +69 -0
- package/generated/monster-location-browse.validator.js +17 -0
- package/generated/product-manifest.d.ts +23 -0
- package/generated/product-manifest.validator.js +1 -1
- package/package.json +40 -2
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import type { CatalogFact } from './contract-2-catalog-fact.d.ts';
|
|
2
|
+
/* Generated automatically from Rust-owned wire definitions. Do not edit. */
|
|
3
|
+
|
|
4
|
+
export type CoverageKey = string;
|
|
5
|
+
/**
|
|
6
|
+
* Historical overlay drop count, separate from native source coverage.
|
|
7
|
+
*/
|
|
8
|
+
export type MonsterHistoricalDropSummaryV2_2 =
|
|
9
|
+
| {
|
|
10
|
+
count: number;
|
|
11
|
+
sourceBuilds: NonEmptyVecString;
|
|
12
|
+
state: "known";
|
|
13
|
+
}
|
|
14
|
+
| {
|
|
15
|
+
state: "absent";
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @minItems 1
|
|
19
|
+
*/
|
|
20
|
+
export type NonEmptyVecString = [string, ...string[]];
|
|
21
|
+
/**
|
|
22
|
+
* Compact source-free projection of [`CollectionState`]. Empty partial
|
|
23
|
+
* observations collapse to `unknown`; `absent` still requires its coverage
|
|
24
|
+
* key, and known/partial item lists cannot be empty.
|
|
25
|
+
*/
|
|
26
|
+
export type CatalogCollection =
|
|
27
|
+
| {
|
|
28
|
+
items: NonEmptyVec_MonsterElementSummaryV2;
|
|
29
|
+
state: "known";
|
|
30
|
+
}
|
|
31
|
+
| {
|
|
32
|
+
items: NonEmptyVec_MonsterElementSummaryV2;
|
|
33
|
+
state: "partial";
|
|
34
|
+
}
|
|
35
|
+
| {
|
|
36
|
+
state: "unknown";
|
|
37
|
+
}
|
|
38
|
+
| {
|
|
39
|
+
coverageKey: CoverageKey;
|
|
40
|
+
state: "absent";
|
|
41
|
+
}
|
|
42
|
+
| {
|
|
43
|
+
state: "unsupported";
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @minItems 1
|
|
47
|
+
*/
|
|
48
|
+
export type NonEmptyVec_MonsterElementSummaryV2 = [MonsterElementSummaryV2, ...MonsterElementSummaryV2[]];
|
|
49
|
+
/**
|
|
50
|
+
* Completeness state copied from the corresponding row's location summary.
|
|
51
|
+
*/
|
|
52
|
+
export type MonsterGeographyStateV2_3 = "known" | "absent" | "unresolved";
|
|
53
|
+
export type SafeInt64 = number;
|
|
54
|
+
/**
|
|
55
|
+
* Per-Monster location state and resolved client-placement counts.
|
|
56
|
+
*/
|
|
57
|
+
export type MonsterLocationSummaryV2_2 =
|
|
58
|
+
| {
|
|
59
|
+
mapCount: number;
|
|
60
|
+
placementCount: number;
|
|
61
|
+
state: "known";
|
|
62
|
+
}
|
|
63
|
+
| {
|
|
64
|
+
state: "absent";
|
|
65
|
+
}
|
|
66
|
+
| {
|
|
67
|
+
mapCount: number;
|
|
68
|
+
placementCount: number;
|
|
69
|
+
state: "unresolved";
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Compact catalog projection of [`FactState`]. It keeps the state and a
|
|
73
|
+
* positively observed value, retains the coverage witness for `absent`, and
|
|
74
|
+
* omits source attribution and explanatory metadata.
|
|
75
|
+
*/
|
|
76
|
+
export type CatalogNameFact =
|
|
77
|
+
| {
|
|
78
|
+
state: "known";
|
|
79
|
+
value: string;
|
|
80
|
+
}
|
|
81
|
+
| {
|
|
82
|
+
state: "unknown";
|
|
83
|
+
}
|
|
84
|
+
| {
|
|
85
|
+
coverageKey: CoverageKey;
|
|
86
|
+
state: "absent";
|
|
87
|
+
}
|
|
88
|
+
| {
|
|
89
|
+
state: "unsupported";
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Compact source-free projection of [`CollectionState`]. Empty partial
|
|
93
|
+
* observations collapse to `unknown`; `absent` still requires its coverage
|
|
94
|
+
* key, and known/partial item lists cannot be empty.
|
|
95
|
+
*/
|
|
96
|
+
export type CatalogCollection2 =
|
|
97
|
+
| {
|
|
98
|
+
items: NonEmptyVec_MonsterRelationshipFacetV2;
|
|
99
|
+
state: "known";
|
|
100
|
+
}
|
|
101
|
+
| {
|
|
102
|
+
items: NonEmptyVec_MonsterRelationshipFacetV2;
|
|
103
|
+
state: "partial";
|
|
104
|
+
}
|
|
105
|
+
| {
|
|
106
|
+
state: "unknown";
|
|
107
|
+
}
|
|
108
|
+
| {
|
|
109
|
+
coverageKey: CoverageKey;
|
|
110
|
+
state: "absent";
|
|
111
|
+
}
|
|
112
|
+
| {
|
|
113
|
+
state: "unsupported";
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* @minItems 1
|
|
117
|
+
*/
|
|
118
|
+
export type NonEmptyVec_MonsterRelationshipFacetV2 = [MonsterRelationshipFacetV2, ...MonsterRelationshipFacetV2[]];
|
|
119
|
+
/**
|
|
120
|
+
* Relationship kinds represented as compact positive-count catalog facets.
|
|
121
|
+
*/
|
|
122
|
+
export type MonsterRelationshipFacetKind =
|
|
123
|
+
| "bans"
|
|
124
|
+
| "banMaps"
|
|
125
|
+
| "damagedBy"
|
|
126
|
+
| "attacks"
|
|
127
|
+
| "revives"
|
|
128
|
+
| "lostItems"
|
|
129
|
+
| "skillAssignments"
|
|
130
|
+
| "speakConditions"
|
|
131
|
+
| "speakGroups"
|
|
132
|
+
| "speakLines"
|
|
133
|
+
| "localizedNames"
|
|
134
|
+
| "bookEntries"
|
|
135
|
+
| "bookMaps"
|
|
136
|
+
| "questCountGroupMemberships";
|
|
137
|
+
/**
|
|
138
|
+
* Compact catalog projection of [`FactState`]. It keeps the state and a
|
|
139
|
+
* positively observed value, retains the coverage witness for `absent`, and
|
|
140
|
+
* omits source attribution and explanatory metadata.
|
|
141
|
+
*/
|
|
142
|
+
export type CatalogFact5 =
|
|
143
|
+
| {
|
|
144
|
+
state: "known";
|
|
145
|
+
value: MediaContentId;
|
|
146
|
+
}
|
|
147
|
+
| {
|
|
148
|
+
state: "unknown";
|
|
149
|
+
}
|
|
150
|
+
| {
|
|
151
|
+
coverageKey: CoverageKey;
|
|
152
|
+
state: "absent";
|
|
153
|
+
}
|
|
154
|
+
| {
|
|
155
|
+
state: "unsupported";
|
|
156
|
+
};
|
|
157
|
+
export type MediaContentId = string;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Standalone strict Monster catalog revision 2.4.
|
|
161
|
+
*/
|
|
162
|
+
export interface MonsterCatalogV2_4 {
|
|
163
|
+
browseCoverage: MonsterBrowseCoverageV2_2;
|
|
164
|
+
contractVersion: "2.4";
|
|
165
|
+
format: "mapletip.monster-catalog-2";
|
|
166
|
+
recordCount: number;
|
|
167
|
+
records: MonsterCatalogRecordV2_4[];
|
|
168
|
+
scope: BuildScope;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Catalog-level coverage shared by every row in one build.
|
|
172
|
+
*/
|
|
173
|
+
export interface MonsterBrowseCoverageV2_2 {
|
|
174
|
+
/**
|
|
175
|
+
* Whether this build carries a historical drop overlay.
|
|
176
|
+
*/
|
|
177
|
+
historicalDrops: "supported" | "unsupported";
|
|
178
|
+
/**
|
|
179
|
+
* Scope of every location count in this catalog.
|
|
180
|
+
*/
|
|
181
|
+
locationScope: "client-placements";
|
|
182
|
+
/**
|
|
183
|
+
* Coverage witness for rows whose location state is `absent`; omitted when none exist.
|
|
184
|
+
*/
|
|
185
|
+
locationsAbsentCoverageKey?: CoverageKey | null;
|
|
186
|
+
/**
|
|
187
|
+
* Coverage witness for rows whose native drop state is `absent`; omitted when none exist.
|
|
188
|
+
*/
|
|
189
|
+
nativeDropsAbsentCoverageKey?: CoverageKey | null;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Compact Monster row for browse catalog revision 2.4.
|
|
193
|
+
*/
|
|
194
|
+
export interface MonsterCatalogRecordV2_4 {
|
|
195
|
+
drops: MonsterDropSummaryV2_2;
|
|
196
|
+
elements: CatalogCollection;
|
|
197
|
+
/**
|
|
198
|
+
* Present only when the same-build Map product supplies genuine geography facts.
|
|
199
|
+
*/
|
|
200
|
+
geography?: MonsterGeographyV2_3 | null;
|
|
201
|
+
/**
|
|
202
|
+
* Source HP recovery value; no interval or rate is implied.
|
|
203
|
+
*/
|
|
204
|
+
hpRecovery:
|
|
205
|
+
| {
|
|
206
|
+
state: "known";
|
|
207
|
+
value: SafeInt64;
|
|
208
|
+
}
|
|
209
|
+
| {
|
|
210
|
+
state: "unknown";
|
|
211
|
+
}
|
|
212
|
+
| {
|
|
213
|
+
coverageKey: CoverageKey;
|
|
214
|
+
state: "absent";
|
|
215
|
+
}
|
|
216
|
+
| {
|
|
217
|
+
state: "unsupported";
|
|
218
|
+
};
|
|
219
|
+
key: string;
|
|
220
|
+
locations: MonsterLocationSummaryV2_2;
|
|
221
|
+
/**
|
|
222
|
+
* Source MP recovery value; no interval or rate is implied.
|
|
223
|
+
*/
|
|
224
|
+
mpRecovery:
|
|
225
|
+
| {
|
|
226
|
+
state: "known";
|
|
227
|
+
value: SafeInt64;
|
|
228
|
+
}
|
|
229
|
+
| {
|
|
230
|
+
state: "unknown";
|
|
231
|
+
}
|
|
232
|
+
| {
|
|
233
|
+
coverageKey: CoverageKey;
|
|
234
|
+
state: "absent";
|
|
235
|
+
}
|
|
236
|
+
| {
|
|
237
|
+
state: "unsupported";
|
|
238
|
+
};
|
|
239
|
+
name: CatalogNameFact;
|
|
240
|
+
relationships: CatalogCollection2;
|
|
241
|
+
sprite: CatalogFact5;
|
|
242
|
+
/**
|
|
243
|
+
* @minItems 12
|
|
244
|
+
* @maxItems 12
|
|
245
|
+
*/
|
|
246
|
+
stats: [CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>];
|
|
247
|
+
/**
|
|
248
|
+
* @minItems 9
|
|
249
|
+
* @maxItems 9
|
|
250
|
+
*/
|
|
251
|
+
traits: [CatalogFact<boolean>, CatalogFact<boolean>, CatalogFact<boolean>, CatalogFact<number>, CatalogFact<boolean>, CatalogFact<boolean>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<string>];
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Native and historical Monster drop facts for catalog revision 2.2.
|
|
255
|
+
*/
|
|
256
|
+
export interface MonsterDropSummaryV2_2 {
|
|
257
|
+
/**
|
|
258
|
+
* Historical overlay evidence is present only when the build supports an overlay.
|
|
259
|
+
*/
|
|
260
|
+
historical?: MonsterHistoricalDropSummaryV2_2 | null;
|
|
261
|
+
/**
|
|
262
|
+
* Native evidence from this exact build. Known counts carry an explicit
|
|
263
|
+
* lower-bound marker because Monster Book coverage is partial.
|
|
264
|
+
*/
|
|
265
|
+
native:
|
|
266
|
+
| {
|
|
267
|
+
count: number;
|
|
268
|
+
lowerBound: boolean;
|
|
269
|
+
state: "known";
|
|
270
|
+
}
|
|
271
|
+
| {
|
|
272
|
+
state: "unknown";
|
|
273
|
+
}
|
|
274
|
+
| {
|
|
275
|
+
state: "absent";
|
|
276
|
+
}
|
|
277
|
+
| {
|
|
278
|
+
state: "unsupported";
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Compact canonical and source-code summary of one element/resistance pair.
|
|
283
|
+
*/
|
|
284
|
+
export interface MonsterElementSummaryV2 {
|
|
285
|
+
/**
|
|
286
|
+
* Verbatim source element code.
|
|
287
|
+
*/
|
|
288
|
+
code: string;
|
|
289
|
+
/**
|
|
290
|
+
* Verbatim numeric effect tier.
|
|
291
|
+
*/
|
|
292
|
+
effect: number;
|
|
293
|
+
/**
|
|
294
|
+
* Canonical element meaning when the build family supports it.
|
|
295
|
+
*/
|
|
296
|
+
meaning:
|
|
297
|
+
| {
|
|
298
|
+
state: "known";
|
|
299
|
+
value: string;
|
|
300
|
+
}
|
|
301
|
+
| {
|
|
302
|
+
state: "unknown";
|
|
303
|
+
}
|
|
304
|
+
| {
|
|
305
|
+
coverageKey: CoverageKey;
|
|
306
|
+
state: "absent";
|
|
307
|
+
}
|
|
308
|
+
| {
|
|
309
|
+
state: "unsupported";
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* Canonical damage multiplier when the build family supports it.
|
|
313
|
+
*/
|
|
314
|
+
multiplier:
|
|
315
|
+
| {
|
|
316
|
+
state: "known";
|
|
317
|
+
value: number;
|
|
318
|
+
}
|
|
319
|
+
| {
|
|
320
|
+
state: "unknown";
|
|
321
|
+
}
|
|
322
|
+
| {
|
|
323
|
+
coverageKey: CoverageKey;
|
|
324
|
+
state: "absent";
|
|
325
|
+
}
|
|
326
|
+
| {
|
|
327
|
+
state: "unsupported";
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* Canonical resistance meaning when the build family supports it.
|
|
331
|
+
*/
|
|
332
|
+
resistance:
|
|
333
|
+
| {
|
|
334
|
+
state: "known";
|
|
335
|
+
value: string;
|
|
336
|
+
}
|
|
337
|
+
| {
|
|
338
|
+
state: "unknown";
|
|
339
|
+
}
|
|
340
|
+
| {
|
|
341
|
+
coverageKey: CoverageKey;
|
|
342
|
+
state: "absent";
|
|
343
|
+
}
|
|
344
|
+
| {
|
|
345
|
+
state: "unsupported";
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Geography filter keys collected from a Monster's resolved location entries.
|
|
350
|
+
*/
|
|
351
|
+
export interface MonsterGeographyV2_3 {
|
|
352
|
+
locationKeys: string[];
|
|
353
|
+
regionKeys: string[];
|
|
354
|
+
state: MonsterGeographyStateV2_3;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* One positively observed relationship count. Zero-count tables do not
|
|
358
|
+
* appear here; the collection remains partial or unknown without a sealed
|
|
359
|
+
* source-table coverage witness.
|
|
360
|
+
*/
|
|
361
|
+
export interface MonsterRelationshipFacetV2 {
|
|
362
|
+
count: SafeInt64;
|
|
363
|
+
kind: MonsterRelationshipFacetKind;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Build scope specifying the game family and concrete build identity.
|
|
367
|
+
*/
|
|
368
|
+
export interface BuildScope {
|
|
369
|
+
/**
|
|
370
|
+
* Exact build identity (e.g., 'gms-v83', 'cw-cot2').
|
|
371
|
+
*/
|
|
372
|
+
build_id: string;
|
|
373
|
+
/**
|
|
374
|
+
* Family identity (e.g., 'gms', 'classic-world').
|
|
375
|
+
*/
|
|
376
|
+
family_id: string;
|
|
377
|
+
[k: string]: unknown | undefined;
|
|
378
|
+
}
|