@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.
Files changed (88) hide show
  1. package/NOTICE +52 -0
  2. package/README.md +209 -0
  3. package/client/contract-compatibility.d.mts +27 -0
  4. package/client/contract-compatibility.mjs +159 -0
  5. package/client/core.d.ts +150 -0
  6. package/client/core.js +359 -0
  7. package/client/equipment.d.ts +22 -0
  8. package/client/equipment.js +63 -0
  9. package/client/items.d.ts +22 -0
  10. package/client/items.js +63 -0
  11. package/client/media.d.ts +19 -0
  12. package/client/media.js +47 -0
  13. package/client/monster-client.d.ts +35 -0
  14. package/client/monster-client.js +155 -0
  15. package/client/monsters.d.ts +24 -0
  16. package/client/monsters.js +14 -0
  17. package/client/quests.d.ts +31 -0
  18. package/client/quests.js +124 -0
  19. package/client/release.d.ts +63 -0
  20. package/client/release.js +279 -0
  21. package/client/static-client.d.ts +40 -0
  22. package/client/static-client.js +44 -0
  23. package/client/static-domains.d.ts +48 -0
  24. package/client/static-domains.js +113 -0
  25. package/generated/contract-2-catalog-fact.d.ts +51 -0
  26. package/generated/equipment-catalog-2.d.ts +434 -0
  27. package/generated/equipment-catalog-2.validator.js +17 -0
  28. package/generated/equipment-detail-2.d.ts +350 -0
  29. package/generated/equipment-detail-2.validator.js +17 -0
  30. package/generated/equipment-evidence-pack-2.d.ts +243 -0
  31. package/generated/equipment-evidence-pack-2.validator.js +17 -0
  32. package/generated/equipment-pack-2.validator.js +17 -0
  33. package/generated/equipment-relationship-pack-2.d.ts +170 -0
  34. package/generated/equipment-relationship-pack-2.validator.js +17 -0
  35. package/generated/item-catalog-2.d.ts +366 -0
  36. package/generated/item-catalog-2.validator.js +17 -0
  37. package/generated/item-detail-2.d.ts +540 -0
  38. package/generated/item-detail-2.validator.js +17 -0
  39. package/generated/item-evidence-pack-2.d.ts +243 -0
  40. package/generated/item-evidence-pack-2.validator.js +17 -0
  41. package/generated/item-pack-2.validator.js +17 -0
  42. package/generated/item-relationship-pack-2.d.ts +170 -0
  43. package/generated/item-relationship-pack-2.validator.js +17 -0
  44. package/generated/media-catalog-2.d.ts +133 -0
  45. package/generated/media-catalog-2.validator.js +17 -0
  46. package/generated/media-detail-2.d.ts +125 -0
  47. package/generated/media-detail-2.validator.js +17 -0
  48. package/generated/media-pack-2.validator.js +17 -0
  49. package/generated/monster-catalog-2.d.ts +230 -0
  50. package/generated/monster-catalog-2.validator.js +17 -0
  51. package/generated/monster-catalog.d.ts +224 -0
  52. package/generated/monster-catalog.validator.js +1 -0
  53. package/generated/monster-core-relationship-pack-2.d.ts +208 -0
  54. package/generated/monster-core-relationship-pack-2.validator.js +17 -0
  55. package/generated/monster-detail-2.d.ts +372 -0
  56. package/generated/monster-detail-2.validator.js +17 -0
  57. package/generated/monster-detail.d.ts +799 -0
  58. package/generated/monster-detail.validator.js +17 -0
  59. package/generated/monster-evidence-pack-2.d.ts +378 -0
  60. package/generated/monster-evidence-pack-2.validator.js +17 -0
  61. package/generated/monster-evidence-pack.d.ts +269 -0
  62. package/generated/monster-evidence-pack.validator.js +17 -0
  63. package/generated/monster-location-pack-2.validator.js +1 -0
  64. package/generated/monster-pack-2.validator.js +17 -0
  65. package/generated/monster-pack.validator.js +17 -0
  66. package/generated/monster-relationship-pack.d.ts +126 -0
  67. package/generated/monster-relationship-pack.validator.js +1 -0
  68. package/generated/product-manifest.d.ts +188 -0
  69. package/generated/product-manifest.validator.js +1 -0
  70. package/generated/quest-auxiliary-pack-2.d.ts +391 -0
  71. package/generated/quest-auxiliary-pack-2.validator.js +17 -0
  72. package/generated/quest-browse-pack-2.d.ts +353 -0
  73. package/generated/quest-browse-pack-2.validator.js +17 -0
  74. package/generated/quest-catalog-2.d.ts +501 -0
  75. package/generated/quest-catalog-2.validator.js +17 -0
  76. package/generated/quest-evidence-pack-2.d.ts +269 -0
  77. package/generated/quest-evidence-pack-2.validator.js +17 -0
  78. package/generated/quest-pack-2.d.ts +410 -0
  79. package/generated/quest-pack-2.validator.js +17 -0
  80. package/generated/quest-relationship-pack-2.d.ts +868 -0
  81. package/generated/quest-relationship-pack-2.validator.js +17 -0
  82. package/generated/release-build-index.d.ts +42 -0
  83. package/generated/release-build-index.validator.js +1 -0
  84. package/generated/release-manifest.d.ts +24 -0
  85. package/generated/release-manifest.validator.js +1 -0
  86. package/generated/release-pin.d.ts +12 -0
  87. package/generated/release-pin.validator.js +1 -0
  88. package/package.json +155 -0
@@ -0,0 +1,501 @@
1
+ /* Generated automatically from Rust-owned wire definitions. Do not edit. */
2
+
3
+ /**
4
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
5
+ * `source-null`; only `Absent` carries a complete-coverage witness.
6
+ */
7
+ export type FactState =
8
+ | {
9
+ source?: SourceRef | null;
10
+ state: "known";
11
+ value: string;
12
+ }
13
+ | {
14
+ reason: StateReason;
15
+ source?: SourceRef | null;
16
+ state: "unknown";
17
+ }
18
+ | {
19
+ coverageKey: CoverageKey;
20
+ state: "absent";
21
+ }
22
+ | {
23
+ capability: Capability;
24
+ source?: SourceRef | null;
25
+ state: "unsupported";
26
+ };
27
+ export type LogicalSourceAddress = string;
28
+ export type StateReason = string;
29
+ export type CoverageKey = string;
30
+ export type Capability = string;
31
+ /**
32
+ * Shared collection state. `Known` is non-empty; absence requires complete
33
+ * source coverage and is never inferred from a missing row.
34
+ */
35
+ export type CollectionState =
36
+ | {
37
+ items: NonEmptyVec_QuestLocaleCount;
38
+ state: "known";
39
+ }
40
+ | {
41
+ coverageKey: CoverageKey;
42
+ state: "absent";
43
+ }
44
+ | {
45
+ items: QuestLocaleCount[];
46
+ reason: StateReason;
47
+ state: "partial";
48
+ }
49
+ | {
50
+ reason: StateReason;
51
+ state: "unknown";
52
+ }
53
+ | {
54
+ capability: Capability;
55
+ state: "unsupported";
56
+ };
57
+ /**
58
+ * @minItems 1
59
+ */
60
+ export type NonEmptyVec_QuestLocaleCount = [QuestLocaleCount, ...QuestLocaleCount[]];
61
+ /**
62
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
63
+ * `source-null`; only `Absent` carries a complete-coverage witness.
64
+ */
65
+ export type FactState2 =
66
+ | {
67
+ source?: SourceRef | null;
68
+ state: "known";
69
+ value: SafeInt64;
70
+ }
71
+ | {
72
+ reason: StateReason;
73
+ source?: SourceRef | null;
74
+ state: "unknown";
75
+ }
76
+ | {
77
+ coverageKey: CoverageKey;
78
+ state: "absent";
79
+ }
80
+ | {
81
+ capability: Capability;
82
+ source?: SourceRef | null;
83
+ state: "unsupported";
84
+ };
85
+ export type SafeInt64 = number;
86
+ /**
87
+ * @minItems 1
88
+ */
89
+ export type NonEmptyVec_QuestCatalogRecord = [QuestCatalogRecord, ...QuestCatalogRecord[]];
90
+ /**
91
+ * Compact catalog projection of [`FactState`]. It keeps the state and a
92
+ * positively observed value, retains the coverage witness for `absent`, and
93
+ * omits source attribution and explanatory metadata.
94
+ */
95
+ export type CatalogFact =
96
+ | {
97
+ state: "known";
98
+ value: string;
99
+ }
100
+ | {
101
+ state: "unknown";
102
+ }
103
+ | {
104
+ coverageKey: CoverageKey;
105
+ state: "absent";
106
+ }
107
+ | {
108
+ state: "unsupported";
109
+ };
110
+ /**
111
+ * Compact catalog projection of [`FactState`]. It keeps the state and a
112
+ * positively observed value, retains the coverage witness for `absent`, and
113
+ * omits source attribution and explanatory metadata.
114
+ */
115
+ export type CatalogFact2 =
116
+ | {
117
+ state: "known";
118
+ value: TextToken[];
119
+ }
120
+ | {
121
+ state: "unknown";
122
+ }
123
+ | {
124
+ coverageKey: CoverageKey;
125
+ state: "absent";
126
+ }
127
+ | {
128
+ state: "unsupported";
129
+ };
130
+ /**
131
+ * Lossless text token stream used by authored Quest text.
132
+ */
133
+ export type TextToken =
134
+ | {
135
+ k: "text";
136
+ text: string;
137
+ }
138
+ | {
139
+ k: "newline";
140
+ raw: string;
141
+ }
142
+ | {
143
+ code: string;
144
+ k: "raw-code";
145
+ }
146
+ | {
147
+ code: string;
148
+ id: string;
149
+ k: "npc";
150
+ }
151
+ | {
152
+ code: string;
153
+ id: string;
154
+ k: "item";
155
+ }
156
+ | {
157
+ code: string;
158
+ id: string;
159
+ k: "monster";
160
+ }
161
+ | {
162
+ code: string;
163
+ id: string;
164
+ k: "map";
165
+ }
166
+ | {
167
+ code: string;
168
+ id: string;
169
+ k: "skill";
170
+ }
171
+ | {
172
+ code: string;
173
+ id: string;
174
+ k: "item-count";
175
+ }
176
+ | {
177
+ code: string;
178
+ id: string;
179
+ k: "item-icon";
180
+ }
181
+ | {
182
+ code: string;
183
+ id: string;
184
+ k: "skill-icon";
185
+ }
186
+ | {
187
+ k: "player-name";
188
+ variant?: string | null;
189
+ }
190
+ | {
191
+ index: string;
192
+ k: "choice-start";
193
+ }
194
+ | {
195
+ k: "choice-end";
196
+ }
197
+ | {
198
+ k: "progress";
199
+ percent: string;
200
+ }
201
+ | {
202
+ k: "image";
203
+ path: string;
204
+ };
205
+ export type EntityKey = string;
206
+ /**
207
+ * Compact catalog projection of [`FactState`]. It keeps the state and a
208
+ * positively observed value, retains the coverage witness for `absent`, and
209
+ * omits source attribution and explanatory metadata.
210
+ */
211
+ export type CatalogFact3 =
212
+ | {
213
+ state: "known";
214
+ value: RawValue;
215
+ }
216
+ | {
217
+ state: "unknown";
218
+ }
219
+ | {
220
+ coverageKey: CoverageKey;
221
+ state: "absent";
222
+ }
223
+ | {
224
+ state: "unsupported";
225
+ };
226
+ /**
227
+ * A scalar source observation that preserves the source value kind.
228
+ */
229
+ export type RawScalar =
230
+ | {
231
+ kind: "integer";
232
+ value: SafeInt64;
233
+ }
234
+ | {
235
+ kind: "real";
236
+ value: number;
237
+ }
238
+ | {
239
+ kind: "text";
240
+ value: string;
241
+ }
242
+ | {
243
+ kind: "boolean";
244
+ value: boolean;
245
+ }
246
+ | {
247
+ kind: "bytes";
248
+ value: number[];
249
+ }
250
+ | {
251
+ kind: "source-null";
252
+ };
253
+ /**
254
+ * Compact source-free projection of [`CollectionState`]. Empty partial
255
+ * observations collapse to `unknown`; `absent` still requires its coverage
256
+ * key, and known/partial item lists cannot be empty.
257
+ */
258
+ export type CatalogCollection3 =
259
+ | {
260
+ items: NonEmptyVec_QuestRelationCount;
261
+ state: "known";
262
+ }
263
+ | {
264
+ items: NonEmptyVec_QuestRelationCount;
265
+ state: "partial";
266
+ }
267
+ | {
268
+ state: "unknown";
269
+ }
270
+ | {
271
+ coverageKey: CoverageKey;
272
+ state: "absent";
273
+ }
274
+ | {
275
+ state: "unsupported";
276
+ };
277
+ /**
278
+ * @minItems 1
279
+ */
280
+ export type NonEmptyVec_QuestRelationCount = [QuestRelationCount, ...QuestRelationCount[]];
281
+ /**
282
+ * Compact relation collections exposed by the Quest catalog.
283
+ */
284
+ export type QuestRelationKind = "auxiliary" | "dependencies" | "requirements" | "rewards";
285
+ /**
286
+ * Compact source-free projection of [`CollectionState`]. Empty partial
287
+ * observations collapse to `unknown`; `absent` still requires its coverage
288
+ * key, and known/partial item lists cannot be empty.
289
+ */
290
+ export type CatalogCollection2 =
291
+ | {
292
+ items: NonEmptyVec_QuestSearchTerm;
293
+ state: "known";
294
+ }
295
+ | {
296
+ items: NonEmptyVec_QuestSearchTerm;
297
+ state: "partial";
298
+ }
299
+ | {
300
+ state: "unknown";
301
+ }
302
+ | {
303
+ coverageKey: CoverageKey;
304
+ state: "absent";
305
+ }
306
+ | {
307
+ state: "unsupported";
308
+ };
309
+ /**
310
+ * @minItems 1
311
+ */
312
+ export type NonEmptyVec_QuestSearchTerm = [QuestSearchTerm, ...QuestSearchTerm[]];
313
+ /**
314
+ * Shared entity-reference states. The generic parameter brands resolved keys
315
+ * for the target domain without changing their JSON representation.
316
+ */
317
+ export type EntityRef =
318
+ | {
319
+ key: EntityKey;
320
+ state: "resolved";
321
+ }
322
+ | {
323
+ sourceId: RawSourceId;
324
+ state: "unresolved";
325
+ }
326
+ | {
327
+ candidateKeys: EntityKey[];
328
+ state: "ambiguous";
329
+ }
330
+ | {
331
+ reason: StateReason;
332
+ state: "unavailable";
333
+ };
334
+ export type RawSourceId = string;
335
+ /**
336
+ * Compact source-free projection of [`CollectionState`]. Empty partial
337
+ * observations collapse to `unknown`; `absent` still requires its coverage
338
+ * key, and known/partial item lists cannot be empty.
339
+ */
340
+ export type CatalogCollection =
341
+ | {
342
+ items: NonEmptyVec_QuestSection;
343
+ state: "known";
344
+ }
345
+ | {
346
+ items: NonEmptyVec_QuestSection;
347
+ state: "partial";
348
+ }
349
+ | {
350
+ state: "unknown";
351
+ }
352
+ | {
353
+ coverageKey: CoverageKey;
354
+ state: "absent";
355
+ }
356
+ | {
357
+ state: "unsupported";
358
+ };
359
+ /**
360
+ * @minItems 1
361
+ */
362
+ export type NonEmptyVec_QuestSection = [QuestSection, ...QuestSection[]];
363
+ /**
364
+ * Quest section whose source root was observed.
365
+ */
366
+ export type QuestSection = "act" | "check" | "quest_info" | "say";
367
+
368
+ /**
369
+ * Compact Quest browse index with explicit source locale dimensions and coverage.
370
+ */
371
+ export interface QuestCatalog {
372
+ contractVersion: "2.0";
373
+ defaultLocale: FactState;
374
+ format: "mapletip.quest-catalog-2";
375
+ localeCounts: CollectionState;
376
+ recordCount: FactState2;
377
+ /**
378
+ * Sorted by exact source namespace and ID before serialization.
379
+ */
380
+ records:
381
+ | {
382
+ items: NonEmptyVec_QuestCatalogRecord;
383
+ state: "known";
384
+ }
385
+ | {
386
+ coverageKey: CoverageKey;
387
+ state: "absent";
388
+ }
389
+ | {
390
+ items: QuestCatalogRecord[];
391
+ reason: StateReason;
392
+ state: "partial";
393
+ }
394
+ | {
395
+ reason: StateReason;
396
+ state: "unknown";
397
+ }
398
+ | {
399
+ capability: Capability;
400
+ state: "unsupported";
401
+ };
402
+ scope: BuildScope;
403
+ }
404
+ /**
405
+ * Source attribution for a fact or raw observation.
406
+ */
407
+ export interface SourceRef {
408
+ /**
409
+ * Optional logical address within the source; never a local file path.
410
+ */
411
+ logicalAddress?: LogicalSourceAddress | null;
412
+ /**
413
+ * Source family or source kind, preserved as supplied by the producer.
414
+ */
415
+ sourceKind: string;
416
+ }
417
+ /**
418
+ * A source-declared locale count for one Quest collection.
419
+ */
420
+ export interface QuestLocaleCount {
421
+ collection: string;
422
+ count: FactState2;
423
+ locale: FactState;
424
+ }
425
+ /**
426
+ * One compact browse record keyed by the exact Quest source identity.
427
+ */
428
+ export interface QuestCatalogRecord {
429
+ categoryKey: CatalogFact;
430
+ categoryLabel: CatalogFact;
431
+ demandSummary: CatalogFact;
432
+ demandSummaryTokens: CatalogFact2;
433
+ key: EntityKey;
434
+ name: CatalogFact;
435
+ nameTokens: CatalogFact2;
436
+ order: CatalogFact3;
437
+ parentName: CatalogFact;
438
+ parentTokens: CatalogFact2;
439
+ relationCounts: CatalogCollection3;
440
+ rewardSummary: CatalogFact;
441
+ rewardSummaryTokens: CatalogFact2;
442
+ searchTerms: CatalogCollection2;
443
+ sections: CatalogCollection;
444
+ sourceIdentity: SourceIdentity;
445
+ summary: CatalogFact;
446
+ summaryTokens: CatalogFact2;
447
+ }
448
+ /**
449
+ * A raw value and its optional source attribution.
450
+ */
451
+ export interface RawValue {
452
+ scalar: RawScalar;
453
+ source?: SourceRef | null;
454
+ }
455
+ /**
456
+ * Relation collection with an observed count, retaining the exact relation kind.
457
+ */
458
+ export interface QuestRelationCount {
459
+ count: SafeInt64;
460
+ kind: QuestRelationKind;
461
+ }
462
+ /**
463
+ * A presentation search term attached to its exact source field and optional resolved edge.
464
+ */
465
+ export interface QuestSearchTerm {
466
+ fieldKey: string;
467
+ target?: EntityRef | null;
468
+ term: string;
469
+ }
470
+ /**
471
+ * Upstream source identity coordinates.
472
+ */
473
+ export interface SourceIdentity {
474
+ /**
475
+ * Explicit source discriminator when one ID has multiple records (empty or omitted when unused).
476
+ */
477
+ discriminator?: string | null;
478
+ /**
479
+ * Exact upstream source identifier (e.g., '0100100').
480
+ */
481
+ id: string;
482
+ /**
483
+ * Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.
484
+ */
485
+ namespace?: string | null;
486
+ [k: string]: unknown | undefined;
487
+ }
488
+ /**
489
+ * Build scope specifying the game family and concrete build identity.
490
+ */
491
+ export interface BuildScope {
492
+ /**
493
+ * Exact build identity (e.g., 'gms-v83', 'cw-cot2').
494
+ */
495
+ build_id: string;
496
+ /**
497
+ * Family identity (e.g., 'gms', 'classic-world').
498
+ */
499
+ family_id: string;
500
+ [k: string]: unknown | undefined;
501
+ }