@mapletip/data 0.2.0 → 0.5.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 +204 -2
- package/client/contract-compatibility.mjs +10 -0
- package/client/core.d.ts +5 -0
- package/client/core.js +10 -0
- package/client/items.d.ts +28 -5
- package/client/items.js +60 -8
- 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 +14 -1
- package/client/monster-client.js +55 -3
- package/client/monsters.d.ts +37 -8
- package/client/monsters.js +51 -0
- 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-1.d.ts +253 -0
- package/generated/monster-catalog-2-1.validator.js +17 -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-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 +38 -2
|
@@ -0,0 +1,332 @@
|
|
|
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
|
+
* @minItems 1
|
|
23
|
+
*/
|
|
24
|
+
export type NonEmptyVec_MonsterElementSummaryV2 = [MonsterElementSummaryV2, ...MonsterElementSummaryV2[]];
|
|
25
|
+
/**
|
|
26
|
+
* @minItems 1
|
|
27
|
+
*/
|
|
28
|
+
export type NonEmptyVec_MonsterRelationshipFacetV2 = [MonsterRelationshipFacetV2, ...MonsterRelationshipFacetV2[]];
|
|
29
|
+
export type SafeInt64 = number;
|
|
30
|
+
/**
|
|
31
|
+
* Relationship kinds represented as compact positive-count catalog facets.
|
|
32
|
+
*/
|
|
33
|
+
export type MonsterRelationshipFacetKind =
|
|
34
|
+
| "bans"
|
|
35
|
+
| "banMaps"
|
|
36
|
+
| "damagedBy"
|
|
37
|
+
| "attacks"
|
|
38
|
+
| "revives"
|
|
39
|
+
| "lostItems"
|
|
40
|
+
| "skillAssignments"
|
|
41
|
+
| "speakConditions"
|
|
42
|
+
| "speakGroups"
|
|
43
|
+
| "speakLines"
|
|
44
|
+
| "localizedNames"
|
|
45
|
+
| "bookEntries"
|
|
46
|
+
| "bookMaps"
|
|
47
|
+
| "questCountGroupMemberships";
|
|
48
|
+
export type MediaContentId = string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Standalone strict Monster catalog revision 2.2.
|
|
52
|
+
*/
|
|
53
|
+
export interface MonsterCatalogV2_2 {
|
|
54
|
+
browseCoverage: MonsterBrowseCoverageV2_2;
|
|
55
|
+
/**
|
|
56
|
+
* Contract version discriminator.
|
|
57
|
+
*/
|
|
58
|
+
contractVersion: "2.2";
|
|
59
|
+
/**
|
|
60
|
+
* Contract format discriminator.
|
|
61
|
+
*/
|
|
62
|
+
format: "mapletip.monster-catalog-2";
|
|
63
|
+
/**
|
|
64
|
+
* Number of parent Monster keys in `records`.
|
|
65
|
+
*/
|
|
66
|
+
recordCount: number;
|
|
67
|
+
/**
|
|
68
|
+
* Records sorted by stable public key.
|
|
69
|
+
*/
|
|
70
|
+
records: MonsterCatalogRecordV2_2[];
|
|
71
|
+
scope: BuildScope;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Coverage shared by this build's catalog rows.
|
|
75
|
+
*/
|
|
76
|
+
export interface MonsterBrowseCoverageV2_2 {
|
|
77
|
+
/**
|
|
78
|
+
* Whether this build carries a historical drop overlay.
|
|
79
|
+
*/
|
|
80
|
+
historicalDrops: "supported" | "unsupported";
|
|
81
|
+
/**
|
|
82
|
+
* Scope of every location count in this catalog.
|
|
83
|
+
*/
|
|
84
|
+
locationScope: "client-placements";
|
|
85
|
+
/**
|
|
86
|
+
* Coverage witness for rows whose location state is `absent`; omitted when none exist.
|
|
87
|
+
*/
|
|
88
|
+
locationsAbsentCoverageKey?: CoverageKey | null;
|
|
89
|
+
/**
|
|
90
|
+
* Coverage witness for rows whose native drop state is `absent`; omitted when none exist.
|
|
91
|
+
*/
|
|
92
|
+
nativeDropsAbsentCoverageKey?: CoverageKey | null;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Compact Monster row for browse catalog revision 2.2.
|
|
96
|
+
*/
|
|
97
|
+
export interface MonsterCatalogRecordV2_2 {
|
|
98
|
+
drops: MonsterDropSummaryV2_2;
|
|
99
|
+
/**
|
|
100
|
+
* Observed element summaries; empty collections are unknown without coverage.
|
|
101
|
+
*/
|
|
102
|
+
elements:
|
|
103
|
+
| {
|
|
104
|
+
items: NonEmptyVec_MonsterElementSummaryV2;
|
|
105
|
+
state: "known";
|
|
106
|
+
}
|
|
107
|
+
| {
|
|
108
|
+
items: NonEmptyVec_MonsterElementSummaryV2;
|
|
109
|
+
state: "partial";
|
|
110
|
+
}
|
|
111
|
+
| {
|
|
112
|
+
state: "unknown";
|
|
113
|
+
}
|
|
114
|
+
| {
|
|
115
|
+
coverageKey: CoverageKey;
|
|
116
|
+
state: "absent";
|
|
117
|
+
}
|
|
118
|
+
| {
|
|
119
|
+
state: "unsupported";
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Stable public key derived from family, domain, namespace, and source ID.
|
|
123
|
+
*/
|
|
124
|
+
key: string;
|
|
125
|
+
/**
|
|
126
|
+
* Per-Monster client placement state and resolved counts.
|
|
127
|
+
*/
|
|
128
|
+
locations:
|
|
129
|
+
| {
|
|
130
|
+
mapCount: number;
|
|
131
|
+
placementCount: number;
|
|
132
|
+
state: "known";
|
|
133
|
+
}
|
|
134
|
+
| {
|
|
135
|
+
state: "absent";
|
|
136
|
+
}
|
|
137
|
+
| {
|
|
138
|
+
mapCount: number;
|
|
139
|
+
placementCount: number;
|
|
140
|
+
state: "unresolved";
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Localized display name, if observed.
|
|
144
|
+
*/
|
|
145
|
+
name:
|
|
146
|
+
| {
|
|
147
|
+
state: "known";
|
|
148
|
+
value: string;
|
|
149
|
+
}
|
|
150
|
+
| {
|
|
151
|
+
state: "unknown";
|
|
152
|
+
}
|
|
153
|
+
| {
|
|
154
|
+
coverageKey: CoverageKey;
|
|
155
|
+
state: "absent";
|
|
156
|
+
}
|
|
157
|
+
| {
|
|
158
|
+
state: "unsupported";
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Positively observed relationship counts; incomplete coverage stays partial.
|
|
162
|
+
*/
|
|
163
|
+
relationships:
|
|
164
|
+
| {
|
|
165
|
+
items: NonEmptyVec_MonsterRelationshipFacetV2;
|
|
166
|
+
state: "known";
|
|
167
|
+
}
|
|
168
|
+
| {
|
|
169
|
+
items: NonEmptyVec_MonsterRelationshipFacetV2;
|
|
170
|
+
state: "partial";
|
|
171
|
+
}
|
|
172
|
+
| {
|
|
173
|
+
state: "unknown";
|
|
174
|
+
}
|
|
175
|
+
| {
|
|
176
|
+
coverageKey: CoverageKey;
|
|
177
|
+
state: "absent";
|
|
178
|
+
}
|
|
179
|
+
| {
|
|
180
|
+
state: "unsupported";
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Same-build Media product's representative monster sprite identity.
|
|
184
|
+
*/
|
|
185
|
+
sprite:
|
|
186
|
+
| {
|
|
187
|
+
state: "known";
|
|
188
|
+
value: MediaContentId;
|
|
189
|
+
}
|
|
190
|
+
| {
|
|
191
|
+
state: "unknown";
|
|
192
|
+
}
|
|
193
|
+
| {
|
|
194
|
+
coverageKey: CoverageKey;
|
|
195
|
+
state: "absent";
|
|
196
|
+
}
|
|
197
|
+
| {
|
|
198
|
+
state: "unsupported";
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Contract-ordered compact stat facts.
|
|
202
|
+
*
|
|
203
|
+
* @minItems 12
|
|
204
|
+
* @maxItems 12
|
|
205
|
+
*/
|
|
206
|
+
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>];
|
|
207
|
+
/**
|
|
208
|
+
* Contract-ordered compact trait facts.
|
|
209
|
+
*
|
|
210
|
+
* @minItems 9
|
|
211
|
+
* @maxItems 9
|
|
212
|
+
*/
|
|
213
|
+
traits: [CatalogFact<boolean>, CatalogFact<boolean>, CatalogFact<boolean>, CatalogFact<number>, CatalogFact<boolean>, CatalogFact<boolean>, CatalogFact<SafeInt64>, CatalogFact<SafeInt64>, CatalogFact<string>];
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Native and historical drop facts derived from the evidence assertion stream.
|
|
217
|
+
*/
|
|
218
|
+
export interface MonsterDropSummaryV2_2 {
|
|
219
|
+
/**
|
|
220
|
+
* Historical overlay evidence is present only when the build supports an overlay.
|
|
221
|
+
*/
|
|
222
|
+
historical?: MonsterHistoricalDropSummaryV2_2 | null;
|
|
223
|
+
/**
|
|
224
|
+
* Native evidence from this exact build. Known counts carry an explicit
|
|
225
|
+
* lower-bound marker because Monster Book coverage is partial.
|
|
226
|
+
*/
|
|
227
|
+
native:
|
|
228
|
+
| {
|
|
229
|
+
count: number;
|
|
230
|
+
lowerBound: boolean;
|
|
231
|
+
state: "known";
|
|
232
|
+
}
|
|
233
|
+
| {
|
|
234
|
+
state: "unknown";
|
|
235
|
+
}
|
|
236
|
+
| {
|
|
237
|
+
state: "absent";
|
|
238
|
+
}
|
|
239
|
+
| {
|
|
240
|
+
state: "unsupported";
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Compact canonical and source-code summary of one element/resistance pair.
|
|
245
|
+
*/
|
|
246
|
+
export interface MonsterElementSummaryV2 {
|
|
247
|
+
/**
|
|
248
|
+
* Verbatim source element code.
|
|
249
|
+
*/
|
|
250
|
+
code: string;
|
|
251
|
+
/**
|
|
252
|
+
* Verbatim numeric effect tier.
|
|
253
|
+
*/
|
|
254
|
+
effect: number;
|
|
255
|
+
/**
|
|
256
|
+
* Canonical element meaning when the build family supports it.
|
|
257
|
+
*/
|
|
258
|
+
meaning:
|
|
259
|
+
| {
|
|
260
|
+
state: "known";
|
|
261
|
+
value: string;
|
|
262
|
+
}
|
|
263
|
+
| {
|
|
264
|
+
state: "unknown";
|
|
265
|
+
}
|
|
266
|
+
| {
|
|
267
|
+
coverageKey: CoverageKey;
|
|
268
|
+
state: "absent";
|
|
269
|
+
}
|
|
270
|
+
| {
|
|
271
|
+
state: "unsupported";
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Canonical damage multiplier when the build family supports it.
|
|
275
|
+
*/
|
|
276
|
+
multiplier:
|
|
277
|
+
| {
|
|
278
|
+
state: "known";
|
|
279
|
+
value: number;
|
|
280
|
+
}
|
|
281
|
+
| {
|
|
282
|
+
state: "unknown";
|
|
283
|
+
}
|
|
284
|
+
| {
|
|
285
|
+
coverageKey: CoverageKey;
|
|
286
|
+
state: "absent";
|
|
287
|
+
}
|
|
288
|
+
| {
|
|
289
|
+
state: "unsupported";
|
|
290
|
+
};
|
|
291
|
+
/**
|
|
292
|
+
* Canonical resistance meaning when the build family supports it.
|
|
293
|
+
*/
|
|
294
|
+
resistance:
|
|
295
|
+
| {
|
|
296
|
+
state: "known";
|
|
297
|
+
value: string;
|
|
298
|
+
}
|
|
299
|
+
| {
|
|
300
|
+
state: "unknown";
|
|
301
|
+
}
|
|
302
|
+
| {
|
|
303
|
+
coverageKey: CoverageKey;
|
|
304
|
+
state: "absent";
|
|
305
|
+
}
|
|
306
|
+
| {
|
|
307
|
+
state: "unsupported";
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* One positively observed relationship count. Zero-count tables do not
|
|
312
|
+
* appear here; the collection remains partial or unknown without a sealed
|
|
313
|
+
* source-table coverage witness.
|
|
314
|
+
*/
|
|
315
|
+
export interface MonsterRelationshipFacetV2 {
|
|
316
|
+
count: SafeInt64;
|
|
317
|
+
kind: MonsterRelationshipFacetKind;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Exact game family and build scope.
|
|
321
|
+
*/
|
|
322
|
+
export interface BuildScope {
|
|
323
|
+
/**
|
|
324
|
+
* Exact build identity (e.g., 'gms-v83', 'cw-cot2').
|
|
325
|
+
*/
|
|
326
|
+
build_id: string;
|
|
327
|
+
/**
|
|
328
|
+
* Family identity (e.g., 'gms', 'classic-world').
|
|
329
|
+
*/
|
|
330
|
+
family_id: string;
|
|
331
|
+
[k: string]: unknown | undefined;
|
|
332
|
+
}
|