@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,410 @@
|
|
|
1
|
+
/* Generated automatically from Rust-owned wire definitions. Do not edit. */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shared collection state. `Known` is non-empty; absence requires complete
|
|
5
|
+
* source coverage and is never inferred from a missing row.
|
|
6
|
+
*/
|
|
7
|
+
export type CollectionState3 =
|
|
8
|
+
| {
|
|
9
|
+
items: NonEmptyVec_QuestPageDescriptor;
|
|
10
|
+
state: "known";
|
|
11
|
+
}
|
|
12
|
+
| {
|
|
13
|
+
coverageKey: CoverageKey;
|
|
14
|
+
state: "absent";
|
|
15
|
+
}
|
|
16
|
+
| {
|
|
17
|
+
items: QuestPageDescriptor[];
|
|
18
|
+
reason: StateReason;
|
|
19
|
+
state: "partial";
|
|
20
|
+
}
|
|
21
|
+
| {
|
|
22
|
+
reason: StateReason;
|
|
23
|
+
state: "unknown";
|
|
24
|
+
}
|
|
25
|
+
| {
|
|
26
|
+
capability: Capability;
|
|
27
|
+
state: "unsupported";
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @minItems 1
|
|
31
|
+
*/
|
|
32
|
+
export type NonEmptyVec_QuestPageDescriptor = [QuestPageDescriptor, ...QuestPageDescriptor[]];
|
|
33
|
+
export type SafeInt64 = number;
|
|
34
|
+
export type CoverageKey = string;
|
|
35
|
+
export type StateReason = string;
|
|
36
|
+
export type Capability = string;
|
|
37
|
+
/**
|
|
38
|
+
* Shared fact state. SQL NULL is represented by `Unknown` with reason
|
|
39
|
+
* `source-null`; only `Absent` carries a complete-coverage witness.
|
|
40
|
+
*/
|
|
41
|
+
export type FactState3 =
|
|
42
|
+
| {
|
|
43
|
+
source?: SourceRef | null;
|
|
44
|
+
state: "known";
|
|
45
|
+
value: RawValue;
|
|
46
|
+
}
|
|
47
|
+
| {
|
|
48
|
+
reason: StateReason;
|
|
49
|
+
source?: SourceRef | null;
|
|
50
|
+
state: "unknown";
|
|
51
|
+
}
|
|
52
|
+
| {
|
|
53
|
+
coverageKey: CoverageKey;
|
|
54
|
+
state: "absent";
|
|
55
|
+
}
|
|
56
|
+
| {
|
|
57
|
+
capability: Capability;
|
|
58
|
+
source?: SourceRef | null;
|
|
59
|
+
state: "unsupported";
|
|
60
|
+
};
|
|
61
|
+
export type LogicalSourceAddress = string;
|
|
62
|
+
/**
|
|
63
|
+
* A scalar source observation that preserves the source value kind.
|
|
64
|
+
*/
|
|
65
|
+
export type RawScalar =
|
|
66
|
+
| {
|
|
67
|
+
kind: "integer";
|
|
68
|
+
value: SafeInt64;
|
|
69
|
+
}
|
|
70
|
+
| {
|
|
71
|
+
kind: "real";
|
|
72
|
+
value: number;
|
|
73
|
+
}
|
|
74
|
+
| {
|
|
75
|
+
kind: "text";
|
|
76
|
+
value: string;
|
|
77
|
+
}
|
|
78
|
+
| {
|
|
79
|
+
kind: "boolean";
|
|
80
|
+
value: boolean;
|
|
81
|
+
}
|
|
82
|
+
| {
|
|
83
|
+
kind: "bytes";
|
|
84
|
+
value: number[];
|
|
85
|
+
}
|
|
86
|
+
| {
|
|
87
|
+
kind: "source-null";
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Shared fact state. SQL NULL is represented by `Unknown` with reason
|
|
91
|
+
* `source-null`; only `Absent` carries a complete-coverage witness.
|
|
92
|
+
*/
|
|
93
|
+
export type FactState =
|
|
94
|
+
| {
|
|
95
|
+
source?: SourceRef | null;
|
|
96
|
+
state: "known";
|
|
97
|
+
value: string;
|
|
98
|
+
}
|
|
99
|
+
| {
|
|
100
|
+
reason: StateReason;
|
|
101
|
+
source?: SourceRef | null;
|
|
102
|
+
state: "unknown";
|
|
103
|
+
}
|
|
104
|
+
| {
|
|
105
|
+
coverageKey: CoverageKey;
|
|
106
|
+
state: "absent";
|
|
107
|
+
}
|
|
108
|
+
| {
|
|
109
|
+
capability: Capability;
|
|
110
|
+
source?: SourceRef | null;
|
|
111
|
+
state: "unsupported";
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Shared fact state. SQL NULL is represented by `Unknown` with reason
|
|
115
|
+
* `source-null`; only `Absent` carries a complete-coverage witness.
|
|
116
|
+
*/
|
|
117
|
+
export type FactState2 =
|
|
118
|
+
| {
|
|
119
|
+
source?: SourceRef | null;
|
|
120
|
+
state: "known";
|
|
121
|
+
value: TextToken[];
|
|
122
|
+
}
|
|
123
|
+
| {
|
|
124
|
+
reason: StateReason;
|
|
125
|
+
source?: SourceRef | null;
|
|
126
|
+
state: "unknown";
|
|
127
|
+
}
|
|
128
|
+
| {
|
|
129
|
+
coverageKey: CoverageKey;
|
|
130
|
+
state: "absent";
|
|
131
|
+
}
|
|
132
|
+
| {
|
|
133
|
+
capability: Capability;
|
|
134
|
+
source?: SourceRef | null;
|
|
135
|
+
state: "unsupported";
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Lossless text token stream used by authored Quest text.
|
|
139
|
+
*/
|
|
140
|
+
export type TextToken =
|
|
141
|
+
| {
|
|
142
|
+
k: "text";
|
|
143
|
+
text: string;
|
|
144
|
+
}
|
|
145
|
+
| {
|
|
146
|
+
k: "newline";
|
|
147
|
+
raw: string;
|
|
148
|
+
}
|
|
149
|
+
| {
|
|
150
|
+
code: string;
|
|
151
|
+
k: "raw-code";
|
|
152
|
+
}
|
|
153
|
+
| {
|
|
154
|
+
code: string;
|
|
155
|
+
id: string;
|
|
156
|
+
k: "npc";
|
|
157
|
+
}
|
|
158
|
+
| {
|
|
159
|
+
code: string;
|
|
160
|
+
id: string;
|
|
161
|
+
k: "item";
|
|
162
|
+
}
|
|
163
|
+
| {
|
|
164
|
+
code: string;
|
|
165
|
+
id: string;
|
|
166
|
+
k: "monster";
|
|
167
|
+
}
|
|
168
|
+
| {
|
|
169
|
+
code: string;
|
|
170
|
+
id: string;
|
|
171
|
+
k: "map";
|
|
172
|
+
}
|
|
173
|
+
| {
|
|
174
|
+
code: string;
|
|
175
|
+
id: string;
|
|
176
|
+
k: "skill";
|
|
177
|
+
}
|
|
178
|
+
| {
|
|
179
|
+
code: string;
|
|
180
|
+
id: string;
|
|
181
|
+
k: "item-count";
|
|
182
|
+
}
|
|
183
|
+
| {
|
|
184
|
+
code: string;
|
|
185
|
+
id: string;
|
|
186
|
+
k: "item-icon";
|
|
187
|
+
}
|
|
188
|
+
| {
|
|
189
|
+
code: string;
|
|
190
|
+
id: string;
|
|
191
|
+
k: "skill-icon";
|
|
192
|
+
}
|
|
193
|
+
| {
|
|
194
|
+
k: "player-name";
|
|
195
|
+
variant?: string | null;
|
|
196
|
+
}
|
|
197
|
+
| {
|
|
198
|
+
index: string;
|
|
199
|
+
k: "choice-start";
|
|
200
|
+
}
|
|
201
|
+
| {
|
|
202
|
+
k: "choice-end";
|
|
203
|
+
}
|
|
204
|
+
| {
|
|
205
|
+
k: "progress";
|
|
206
|
+
percent: string;
|
|
207
|
+
}
|
|
208
|
+
| {
|
|
209
|
+
k: "image";
|
|
210
|
+
path: string;
|
|
211
|
+
};
|
|
212
|
+
export type EntityKey = string;
|
|
213
|
+
/**
|
|
214
|
+
* Shared collection state. `Known` is non-empty; absence requires complete
|
|
215
|
+
* source coverage and is never inferred from a missing row.
|
|
216
|
+
*/
|
|
217
|
+
export type CollectionState2 =
|
|
218
|
+
| {
|
|
219
|
+
items: NonEmptyVec_QuestLocaleResidue;
|
|
220
|
+
state: "known";
|
|
221
|
+
}
|
|
222
|
+
| {
|
|
223
|
+
coverageKey: CoverageKey;
|
|
224
|
+
state: "absent";
|
|
225
|
+
}
|
|
226
|
+
| {
|
|
227
|
+
items: QuestLocaleResidue[];
|
|
228
|
+
reason: StateReason;
|
|
229
|
+
state: "partial";
|
|
230
|
+
}
|
|
231
|
+
| {
|
|
232
|
+
reason: StateReason;
|
|
233
|
+
state: "unknown";
|
|
234
|
+
}
|
|
235
|
+
| {
|
|
236
|
+
capability: Capability;
|
|
237
|
+
state: "unsupported";
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* @minItems 1
|
|
241
|
+
*/
|
|
242
|
+
export type NonEmptyVec_QuestLocaleResidue = [QuestLocaleResidue, ...QuestLocaleResidue[]];
|
|
243
|
+
/**
|
|
244
|
+
* Shared collection state. `Known` is non-empty; absence requires complete
|
|
245
|
+
* source coverage and is never inferred from a missing row.
|
|
246
|
+
*/
|
|
247
|
+
export type CollectionState =
|
|
248
|
+
| {
|
|
249
|
+
items: NonEmptyVec_QuestSection;
|
|
250
|
+
state: "known";
|
|
251
|
+
}
|
|
252
|
+
| {
|
|
253
|
+
coverageKey: CoverageKey;
|
|
254
|
+
state: "absent";
|
|
255
|
+
}
|
|
256
|
+
| {
|
|
257
|
+
items: QuestSection[];
|
|
258
|
+
reason: StateReason;
|
|
259
|
+
state: "partial";
|
|
260
|
+
}
|
|
261
|
+
| {
|
|
262
|
+
reason: StateReason;
|
|
263
|
+
state: "unknown";
|
|
264
|
+
}
|
|
265
|
+
| {
|
|
266
|
+
capability: Capability;
|
|
267
|
+
state: "unsupported";
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* @minItems 1
|
|
271
|
+
*/
|
|
272
|
+
export type NonEmptyVec_QuestSection = [QuestSection, ...QuestSection[]];
|
|
273
|
+
/**
|
|
274
|
+
* Quest section whose source root was observed.
|
|
275
|
+
*/
|
|
276
|
+
export type QuestSection = "act" | "check" | "quest_info" | "say";
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Bounded pack of exact-build Quest detail records.
|
|
280
|
+
*/
|
|
281
|
+
export interface QuestDetailPack {
|
|
282
|
+
contractVersion: "2.0";
|
|
283
|
+
format: "mapletip.quest-pack-2";
|
|
284
|
+
recordKind: string;
|
|
285
|
+
records: {
|
|
286
|
+
[k: string]: QuestDetailRecord | undefined;
|
|
287
|
+
};
|
|
288
|
+
scope: BuildScope;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* One exact-build Quest detail record.
|
|
292
|
+
*/
|
|
293
|
+
export interface QuestDetailRecord {
|
|
294
|
+
dependencies: CollectionState3;
|
|
295
|
+
dialogue: CollectionState3;
|
|
296
|
+
evidence: CollectionState3;
|
|
297
|
+
facts: QuestVersionFacts;
|
|
298
|
+
key: EntityKey;
|
|
299
|
+
localeResidues: CollectionState2;
|
|
300
|
+
requirements: CollectionState3;
|
|
301
|
+
rewards: CollectionState3;
|
|
302
|
+
sections: CollectionState;
|
|
303
|
+
sourceIdentity: SourceIdentity;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Reference to a public page in one exact-build product.
|
|
307
|
+
*/
|
|
308
|
+
export interface QuestPageDescriptor {
|
|
309
|
+
key: string;
|
|
310
|
+
observedCount: SafeInt64;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Stateful facts projected from one normalized Quest version.
|
|
314
|
+
*
|
|
315
|
+
* `source_id_int` is deliberately absent (3.2-R2), and `source_layout` is
|
|
316
|
+
* carried only by [`QuestEvidenceOccurrence`] (3.2-R3).
|
|
317
|
+
*/
|
|
318
|
+
export interface QuestVersionFacts {
|
|
319
|
+
areaCode: FactState3;
|
|
320
|
+
autoAccept: FactState3;
|
|
321
|
+
autoComplete: FactState3;
|
|
322
|
+
autoPreComplete: FactState3;
|
|
323
|
+
autoStart: FactState3;
|
|
324
|
+
categoryKey: FactState;
|
|
325
|
+
categoryLabel: FactState;
|
|
326
|
+
dailyPlayTime: FactState3;
|
|
327
|
+
demandSummary: FactState;
|
|
328
|
+
demandSummaryTokens: FactState2;
|
|
329
|
+
medalCategory: FactState3;
|
|
330
|
+
name: FactState;
|
|
331
|
+
nameTokens: FactState2;
|
|
332
|
+
oneShot: FactState3;
|
|
333
|
+
order: FactState3;
|
|
334
|
+
parentName: FactState;
|
|
335
|
+
parentTokens: FactState2;
|
|
336
|
+
questTypeCode: FactState3;
|
|
337
|
+
resignScript: FactState3;
|
|
338
|
+
rewardSummary: FactState;
|
|
339
|
+
rewardSummaryTokens: FactState2;
|
|
340
|
+
selectedMob: FactState3;
|
|
341
|
+
selectedSkillId: FactState3;
|
|
342
|
+
selfStart: FactState3;
|
|
343
|
+
showLayerTag: FactState3;
|
|
344
|
+
sortKey: FactState3;
|
|
345
|
+
summary: FactState;
|
|
346
|
+
summaryTokens: FactState2;
|
|
347
|
+
timeLimit: FactState3;
|
|
348
|
+
timeLimit2: FactState3;
|
|
349
|
+
timerUi: FactState3;
|
|
350
|
+
viewMedalItem: FactState3;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Source attribution for a fact or raw observation.
|
|
354
|
+
*/
|
|
355
|
+
export interface SourceRef {
|
|
356
|
+
/**
|
|
357
|
+
* Optional logical address within the source; never a local file path.
|
|
358
|
+
*/
|
|
359
|
+
logicalAddress?: LogicalSourceAddress | null;
|
|
360
|
+
/**
|
|
361
|
+
* Source family or source kind, preserved as supplied by the producer.
|
|
362
|
+
*/
|
|
363
|
+
sourceKind: string;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* A raw value and its optional source attribution.
|
|
367
|
+
*/
|
|
368
|
+
export interface RawValue {
|
|
369
|
+
scalar: RawScalar;
|
|
370
|
+
source?: SourceRef | null;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Locale-specific text left outside the selected localized-text collections.
|
|
374
|
+
*/
|
|
375
|
+
export interface QuestLocaleResidue {
|
|
376
|
+
occurrenceKey: string;
|
|
377
|
+
reason: FactState;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Upstream source identity coordinates.
|
|
381
|
+
*/
|
|
382
|
+
export interface SourceIdentity {
|
|
383
|
+
/**
|
|
384
|
+
* Explicit source discriminator when one ID has multiple records (empty or omitted when unused).
|
|
385
|
+
*/
|
|
386
|
+
discriminator?: string | null;
|
|
387
|
+
/**
|
|
388
|
+
* Exact upstream source identifier (e.g., '0100100').
|
|
389
|
+
*/
|
|
390
|
+
id: string;
|
|
391
|
+
/**
|
|
392
|
+
* Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.
|
|
393
|
+
*/
|
|
394
|
+
namespace?: string | null;
|
|
395
|
+
[k: string]: unknown | undefined;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Build scope specifying the game family and concrete build identity.
|
|
399
|
+
*/
|
|
400
|
+
export interface BuildScope {
|
|
401
|
+
/**
|
|
402
|
+
* Exact build identity (e.g., 'gms-v83', 'cw-cot2').
|
|
403
|
+
*/
|
|
404
|
+
build_id: string;
|
|
405
|
+
/**
|
|
406
|
+
* Family identity (e.g., 'gms', 'classic-world').
|
|
407
|
+
*/
|
|
408
|
+
family_id: string;
|
|
409
|
+
[k: string]: unknown | undefined;
|
|
410
|
+
}
|