@mapletip/data 0.1.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/NOTICE +52 -0
- package/README.md +209 -0
- package/client/contract-compatibility.d.mts +27 -0
- package/client/contract-compatibility.mjs +159 -0
- package/client/core.d.ts +150 -0
- package/client/core.js +359 -0
- package/client/equipment.d.ts +22 -0
- package/client/equipment.js +63 -0
- package/client/items.d.ts +22 -0
- package/client/items.js +63 -0
- package/client/media.d.ts +19 -0
- package/client/media.js +47 -0
- package/client/monster-client.d.ts +35 -0
- package/client/monster-client.js +155 -0
- package/client/monsters.d.ts +24 -0
- package/client/monsters.js +14 -0
- package/client/quests.d.ts +31 -0
- package/client/quests.js +124 -0
- package/client/release.d.ts +63 -0
- package/client/release.js +279 -0
- package/client/static-client.d.ts +40 -0
- package/client/static-client.js +44 -0
- package/client/static-domains.d.ts +48 -0
- package/client/static-domains.js +113 -0
- package/generated/contract-2-catalog-fact.d.ts +51 -0
- package/generated/equipment-catalog-2.d.ts +434 -0
- package/generated/equipment-catalog-2.validator.js +17 -0
- package/generated/equipment-detail-2.d.ts +350 -0
- package/generated/equipment-detail-2.validator.js +17 -0
- package/generated/equipment-evidence-pack-2.d.ts +243 -0
- package/generated/equipment-evidence-pack-2.validator.js +17 -0
- package/generated/equipment-pack-2.validator.js +17 -0
- package/generated/equipment-relationship-pack-2.d.ts +170 -0
- package/generated/equipment-relationship-pack-2.validator.js +17 -0
- package/generated/item-catalog-2.d.ts +366 -0
- package/generated/item-catalog-2.validator.js +17 -0
- package/generated/item-detail-2.d.ts +540 -0
- package/generated/item-detail-2.validator.js +17 -0
- package/generated/item-evidence-pack-2.d.ts +243 -0
- package/generated/item-evidence-pack-2.validator.js +17 -0
- package/generated/item-pack-2.validator.js +17 -0
- package/generated/item-relationship-pack-2.d.ts +170 -0
- package/generated/item-relationship-pack-2.validator.js +17 -0
- package/generated/media-catalog-2.d.ts +133 -0
- package/generated/media-catalog-2.validator.js +17 -0
- package/generated/media-detail-2.d.ts +125 -0
- package/generated/media-detail-2.validator.js +17 -0
- package/generated/media-pack-2.validator.js +17 -0
- package/generated/monster-catalog-2.d.ts +230 -0
- package/generated/monster-catalog-2.validator.js +17 -0
- package/generated/monster-catalog.d.ts +224 -0
- package/generated/monster-catalog.validator.js +1 -0
- package/generated/monster-core-relationship-pack-2.d.ts +208 -0
- package/generated/monster-core-relationship-pack-2.validator.js +17 -0
- package/generated/monster-detail-2.d.ts +372 -0
- package/generated/monster-detail-2.validator.js +17 -0
- package/generated/monster-detail.d.ts +799 -0
- package/generated/monster-detail.validator.js +17 -0
- package/generated/monster-evidence-pack-2.d.ts +378 -0
- package/generated/monster-evidence-pack-2.validator.js +17 -0
- package/generated/monster-evidence-pack.d.ts +269 -0
- package/generated/monster-evidence-pack.validator.js +17 -0
- package/generated/monster-location-pack-2.validator.js +1 -0
- package/generated/monster-pack-2.validator.js +17 -0
- package/generated/monster-pack.validator.js +17 -0
- package/generated/monster-relationship-pack.d.ts +126 -0
- package/generated/monster-relationship-pack.validator.js +1 -0
- package/generated/product-manifest.d.ts +188 -0
- package/generated/product-manifest.validator.js +1 -0
- package/generated/quest-auxiliary-pack-2.d.ts +391 -0
- package/generated/quest-auxiliary-pack-2.validator.js +17 -0
- package/generated/quest-browse-pack-2.d.ts +353 -0
- package/generated/quest-browse-pack-2.validator.js +17 -0
- package/generated/quest-catalog-2.d.ts +501 -0
- package/generated/quest-catalog-2.validator.js +17 -0
- package/generated/quest-evidence-pack-2.d.ts +269 -0
- package/generated/quest-evidence-pack-2.validator.js +17 -0
- package/generated/quest-pack-2.d.ts +410 -0
- package/generated/quest-pack-2.validator.js +17 -0
- package/generated/quest-relationship-pack-2.d.ts +868 -0
- package/generated/quest-relationship-pack-2.validator.js +17 -0
- package/generated/release-build-index.d.ts +42 -0
- package/generated/release-build-index.validator.js +1 -0
- package/generated/release-manifest.d.ts +24 -0
- package/generated/release-manifest.validator.js +1 -0
- package/generated/release-pin.d.ts +12 -0
- package/generated/release-pin.validator.js +1 -0
- package/package.json +155 -0
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
/* Generated automatically from Rust-owned wire definitions. Do not edit. */
|
|
2
|
+
|
|
3
|
+
export type Capability = string;
|
|
4
|
+
export type CoverageKey = string;
|
|
5
|
+
export type StateReason = string;
|
|
6
|
+
/**
|
|
7
|
+
* Shared fact state. SQL NULL is represented by `Unknown` with reason
|
|
8
|
+
* `source-null`; only `Absent` carries a complete-coverage witness.
|
|
9
|
+
*/
|
|
10
|
+
export type FactState4 =
|
|
11
|
+
| (
|
|
12
|
+
| {
|
|
13
|
+
source?: SourceRef | null;
|
|
14
|
+
state: "known";
|
|
15
|
+
value: RawValue;
|
|
16
|
+
}
|
|
17
|
+
| {
|
|
18
|
+
reason: StateReason;
|
|
19
|
+
source?: SourceRef | null;
|
|
20
|
+
state: "unknown";
|
|
21
|
+
}
|
|
22
|
+
| {
|
|
23
|
+
coverageKey: CoverageKey;
|
|
24
|
+
state: "absent";
|
|
25
|
+
}
|
|
26
|
+
| {
|
|
27
|
+
capability: Capability;
|
|
28
|
+
source?: SourceRef | null;
|
|
29
|
+
state: "unsupported";
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
| undefined;
|
|
33
|
+
export type LogicalSourceAddress = string;
|
|
34
|
+
/**
|
|
35
|
+
* A scalar source observation that preserves the source value kind.
|
|
36
|
+
*/
|
|
37
|
+
export type RawScalar =
|
|
38
|
+
| {
|
|
39
|
+
kind: "integer";
|
|
40
|
+
value: SafeInt64;
|
|
41
|
+
}
|
|
42
|
+
| {
|
|
43
|
+
kind: "real";
|
|
44
|
+
value: number;
|
|
45
|
+
}
|
|
46
|
+
| {
|
|
47
|
+
kind: "text";
|
|
48
|
+
value: string;
|
|
49
|
+
}
|
|
50
|
+
| {
|
|
51
|
+
kind: "boolean";
|
|
52
|
+
value: boolean;
|
|
53
|
+
}
|
|
54
|
+
| {
|
|
55
|
+
kind: "bytes";
|
|
56
|
+
value: number[];
|
|
57
|
+
}
|
|
58
|
+
| {
|
|
59
|
+
kind: "source-null";
|
|
60
|
+
};
|
|
61
|
+
export type SafeInt64 = number;
|
|
62
|
+
/**
|
|
63
|
+
* Shared collection state. `Known` is non-empty; absence requires complete
|
|
64
|
+
* source coverage and is never inferred from a missing row.
|
|
65
|
+
*/
|
|
66
|
+
export type CollectionState =
|
|
67
|
+
| {
|
|
68
|
+
items: NonEmptyVec_MonsterElementSummaryV2;
|
|
69
|
+
state: "known";
|
|
70
|
+
}
|
|
71
|
+
| {
|
|
72
|
+
coverageKey: CoverageKey;
|
|
73
|
+
state: "absent";
|
|
74
|
+
}
|
|
75
|
+
| {
|
|
76
|
+
items: MonsterElementSummaryV2[];
|
|
77
|
+
reason: StateReason;
|
|
78
|
+
state: "partial";
|
|
79
|
+
}
|
|
80
|
+
| {
|
|
81
|
+
reason: StateReason;
|
|
82
|
+
state: "unknown";
|
|
83
|
+
}
|
|
84
|
+
| {
|
|
85
|
+
capability: Capability;
|
|
86
|
+
state: "unsupported";
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* @minItems 1
|
|
90
|
+
*/
|
|
91
|
+
export type NonEmptyVec_MonsterElementSummaryV2 = [MonsterElementSummaryV2, ...MonsterElementSummaryV2[]];
|
|
92
|
+
/**
|
|
93
|
+
* Shared fact state. SQL NULL is represented by `Unknown` with reason
|
|
94
|
+
* `source-null`; only `Absent` carries a complete-coverage witness.
|
|
95
|
+
*/
|
|
96
|
+
export type FactState =
|
|
97
|
+
| {
|
|
98
|
+
source?: SourceRef | null;
|
|
99
|
+
state: "known";
|
|
100
|
+
value: string;
|
|
101
|
+
}
|
|
102
|
+
| {
|
|
103
|
+
reason: StateReason;
|
|
104
|
+
source?: SourceRef | null;
|
|
105
|
+
state: "unknown";
|
|
106
|
+
}
|
|
107
|
+
| {
|
|
108
|
+
coverageKey: CoverageKey;
|
|
109
|
+
state: "absent";
|
|
110
|
+
}
|
|
111
|
+
| {
|
|
112
|
+
capability: Capability;
|
|
113
|
+
source?: SourceRef | null;
|
|
114
|
+
state: "unsupported";
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Shared fact state. SQL NULL is represented by `Unknown` with reason
|
|
118
|
+
* `source-null`; only `Absent` carries a complete-coverage witness.
|
|
119
|
+
*/
|
|
120
|
+
export type FactState2 =
|
|
121
|
+
| {
|
|
122
|
+
source?: SourceRef | null;
|
|
123
|
+
state: "known";
|
|
124
|
+
value: SafeInt64;
|
|
125
|
+
}
|
|
126
|
+
| {
|
|
127
|
+
reason: StateReason;
|
|
128
|
+
source?: SourceRef | null;
|
|
129
|
+
state: "unknown";
|
|
130
|
+
}
|
|
131
|
+
| {
|
|
132
|
+
coverageKey: CoverageKey;
|
|
133
|
+
state: "absent";
|
|
134
|
+
}
|
|
135
|
+
| {
|
|
136
|
+
capability: Capability;
|
|
137
|
+
source?: SourceRef | null;
|
|
138
|
+
state: "unsupported";
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Shared fact state. SQL NULL is represented by `Unknown` with reason
|
|
142
|
+
* `source-null`; only `Absent` carries a complete-coverage witness.
|
|
143
|
+
*/
|
|
144
|
+
export type FactState3 =
|
|
145
|
+
| {
|
|
146
|
+
source?: SourceRef | null;
|
|
147
|
+
state: "known";
|
|
148
|
+
value: boolean;
|
|
149
|
+
}
|
|
150
|
+
| {
|
|
151
|
+
reason: StateReason;
|
|
152
|
+
source?: SourceRef | null;
|
|
153
|
+
state: "unknown";
|
|
154
|
+
}
|
|
155
|
+
| {
|
|
156
|
+
coverageKey: CoverageKey;
|
|
157
|
+
state: "absent";
|
|
158
|
+
}
|
|
159
|
+
| {
|
|
160
|
+
capability: Capability;
|
|
161
|
+
source?: SourceRef | null;
|
|
162
|
+
state: "unsupported";
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export interface MonsterDetailRecordV2 {
|
|
166
|
+
contractVersion: "2.0";
|
|
167
|
+
coreCollections: {
|
|
168
|
+
[k: string]: MonsterCollectionSummaryV2 | undefined;
|
|
169
|
+
};
|
|
170
|
+
coreFacts: {
|
|
171
|
+
[k: string]: FactState4 | undefined;
|
|
172
|
+
};
|
|
173
|
+
dropEvidence: MonsterCollectionSummaryV2 | undefined;
|
|
174
|
+
elementResponses: CollectionState;
|
|
175
|
+
format: "mapletip.monster-detail-2";
|
|
176
|
+
key: string;
|
|
177
|
+
locations: PagedCollection;
|
|
178
|
+
name: FactState;
|
|
179
|
+
quests: MonsterCollectionSummaryV2 | undefined;
|
|
180
|
+
scope: BuildScope;
|
|
181
|
+
sourceIdentity: SourceIdentity;
|
|
182
|
+
stats: MonsterStatsV2;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Collection state and lazy page references without embedding its items.
|
|
186
|
+
*/
|
|
187
|
+
export interface MonsterCollectionSummaryV2 {
|
|
188
|
+
capability?: Capability | null;
|
|
189
|
+
coverageKey?: CoverageKey | null;
|
|
190
|
+
distinctResolvedTargetCount?: number | null;
|
|
191
|
+
historicalAssertionCount?: number | null;
|
|
192
|
+
observedCount: number;
|
|
193
|
+
pages: PageDescriptor[];
|
|
194
|
+
reason?: StateReason | null;
|
|
195
|
+
state: string;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Page descriptor for paged relationship or evidence records.
|
|
199
|
+
*/
|
|
200
|
+
export interface PageDescriptor {
|
|
201
|
+
/**
|
|
202
|
+
* Number of items in this page.
|
|
203
|
+
*/
|
|
204
|
+
count: number;
|
|
205
|
+
/**
|
|
206
|
+
* Bounded record key for direct fetch.
|
|
207
|
+
*/
|
|
208
|
+
recordKey: string;
|
|
209
|
+
/**
|
|
210
|
+
* Record kind ('relationships' or 'evidence').
|
|
211
|
+
*/
|
|
212
|
+
recordKind: string;
|
|
213
|
+
[k: string]: unknown | undefined;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Source attribution for a fact or raw observation.
|
|
217
|
+
*/
|
|
218
|
+
export interface SourceRef {
|
|
219
|
+
/**
|
|
220
|
+
* Optional logical address within the source; never a local file path.
|
|
221
|
+
*/
|
|
222
|
+
logicalAddress?: LogicalSourceAddress | null;
|
|
223
|
+
/**
|
|
224
|
+
* Source family or source kind, preserved as supplied by the producer.
|
|
225
|
+
*/
|
|
226
|
+
sourceKind: string;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* A raw value and its optional source attribution.
|
|
230
|
+
*/
|
|
231
|
+
export interface RawValue {
|
|
232
|
+
scalar: RawScalar;
|
|
233
|
+
source?: SourceRef | null;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Compact canonical and source-code summary of one element/resistance pair.
|
|
237
|
+
*/
|
|
238
|
+
export interface MonsterElementSummaryV2 {
|
|
239
|
+
/**
|
|
240
|
+
* Verbatim source element code.
|
|
241
|
+
*/
|
|
242
|
+
code: string;
|
|
243
|
+
/**
|
|
244
|
+
* Verbatim numeric effect tier.
|
|
245
|
+
*/
|
|
246
|
+
effect: number;
|
|
247
|
+
/**
|
|
248
|
+
* Canonical element meaning when the build family supports it.
|
|
249
|
+
*/
|
|
250
|
+
meaning:
|
|
251
|
+
| {
|
|
252
|
+
state: "known";
|
|
253
|
+
value: string;
|
|
254
|
+
}
|
|
255
|
+
| {
|
|
256
|
+
state: "unknown";
|
|
257
|
+
}
|
|
258
|
+
| {
|
|
259
|
+
coverageKey: CoverageKey;
|
|
260
|
+
state: "absent";
|
|
261
|
+
}
|
|
262
|
+
| {
|
|
263
|
+
state: "unsupported";
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* Canonical damage multiplier when the build family supports it.
|
|
267
|
+
*/
|
|
268
|
+
multiplier:
|
|
269
|
+
| {
|
|
270
|
+
state: "known";
|
|
271
|
+
value: number;
|
|
272
|
+
}
|
|
273
|
+
| {
|
|
274
|
+
state: "unknown";
|
|
275
|
+
}
|
|
276
|
+
| {
|
|
277
|
+
coverageKey: CoverageKey;
|
|
278
|
+
state: "absent";
|
|
279
|
+
}
|
|
280
|
+
| {
|
|
281
|
+
state: "unsupported";
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Canonical resistance meaning when the build family supports it.
|
|
285
|
+
*/
|
|
286
|
+
resistance:
|
|
287
|
+
| {
|
|
288
|
+
state: "known";
|
|
289
|
+
value: string;
|
|
290
|
+
}
|
|
291
|
+
| {
|
|
292
|
+
state: "unknown";
|
|
293
|
+
}
|
|
294
|
+
| {
|
|
295
|
+
coverageKey: CoverageKey;
|
|
296
|
+
state: "absent";
|
|
297
|
+
}
|
|
298
|
+
| {
|
|
299
|
+
state: "unsupported";
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Paged collection descriptor whose physical packs are bounded by the
|
|
304
|
+
* selected `PackSizePolicy`.
|
|
305
|
+
*/
|
|
306
|
+
export interface PagedCollection {
|
|
307
|
+
/**
|
|
308
|
+
* Completeness of the collection.
|
|
309
|
+
*/
|
|
310
|
+
coverage: "complete" | "partial" | "unknown" | "unsupported";
|
|
311
|
+
/**
|
|
312
|
+
* Distinct target count if different from observed count.
|
|
313
|
+
*/
|
|
314
|
+
mapCount?: number | null;
|
|
315
|
+
/**
|
|
316
|
+
* Total observed count across all occurrences.
|
|
317
|
+
*/
|
|
318
|
+
observedCount: number;
|
|
319
|
+
/**
|
|
320
|
+
* Sorted array of page descriptors.
|
|
321
|
+
*/
|
|
322
|
+
pages: PageDescriptor[];
|
|
323
|
+
[k: string]: unknown | undefined;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Build scope specifying the game family and concrete build identity.
|
|
327
|
+
*/
|
|
328
|
+
export interface BuildScope {
|
|
329
|
+
/**
|
|
330
|
+
* Exact build identity (e.g., 'gms-v83', 'cw-cot2').
|
|
331
|
+
*/
|
|
332
|
+
build_id: string;
|
|
333
|
+
/**
|
|
334
|
+
* Family identity (e.g., 'gms', 'classic-world').
|
|
335
|
+
*/
|
|
336
|
+
family_id: string;
|
|
337
|
+
[k: string]: unknown | undefined;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Upstream source identity coordinates.
|
|
341
|
+
*/
|
|
342
|
+
export interface SourceIdentity {
|
|
343
|
+
/**
|
|
344
|
+
* Explicit source discriminator when one ID has multiple records (empty or omitted when unused).
|
|
345
|
+
*/
|
|
346
|
+
discriminator?: string | null;
|
|
347
|
+
/**
|
|
348
|
+
* Exact upstream source identifier (e.g., '0100100').
|
|
349
|
+
*/
|
|
350
|
+
id: string;
|
|
351
|
+
/**
|
|
352
|
+
* Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.
|
|
353
|
+
*/
|
|
354
|
+
namespace?: string | null;
|
|
355
|
+
[k: string]: unknown | undefined;
|
|
356
|
+
}
|
|
357
|
+
export interface MonsterStatsV2 {
|
|
358
|
+
acc: FactState2;
|
|
359
|
+
boss: FactState3;
|
|
360
|
+
eva: FactState2;
|
|
361
|
+
exp: FactState2;
|
|
362
|
+
hp: FactState2;
|
|
363
|
+
level: FactState2;
|
|
364
|
+
maDamage: FactState2;
|
|
365
|
+
mdDamage: FactState2;
|
|
366
|
+
mp: FactState2;
|
|
367
|
+
paDamage: FactState2;
|
|
368
|
+
pdDamage: FactState2;
|
|
369
|
+
pushed: FactState2;
|
|
370
|
+
speed: FactState2;
|
|
371
|
+
undead: FactState3;
|
|
372
|
+
}
|