@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,366 @@
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 fact state. SQL NULL is represented by `Unknown` with reason
33
+ * `source-null`; only `Absent` carries a complete-coverage witness.
34
+ */
35
+ export type FactState2 =
36
+ | {
37
+ source?: SourceRef | null;
38
+ state: "known";
39
+ value: SafeInt64;
40
+ }
41
+ | {
42
+ reason: StateReason;
43
+ source?: SourceRef | null;
44
+ state: "unknown";
45
+ }
46
+ | {
47
+ coverageKey: CoverageKey;
48
+ state: "absent";
49
+ }
50
+ | {
51
+ capability: Capability;
52
+ source?: SourceRef | null;
53
+ state: "unsupported";
54
+ };
55
+ export type SafeInt64 = number;
56
+ /**
57
+ * Shared collection state. `Known` is non-empty; absence requires complete
58
+ * source coverage and is never inferred from a missing row.
59
+ */
60
+ export type CollectionState =
61
+ | {
62
+ items: NonEmptyVec_ItemCatalogRecord;
63
+ state: "known";
64
+ }
65
+ | {
66
+ coverageKey: CoverageKey;
67
+ state: "absent";
68
+ }
69
+ | {
70
+ items: ItemCatalogRecord[];
71
+ reason: StateReason;
72
+ state: "partial";
73
+ }
74
+ | {
75
+ reason: StateReason;
76
+ state: "unknown";
77
+ }
78
+ | {
79
+ capability: Capability;
80
+ state: "unsupported";
81
+ };
82
+ /**
83
+ * @minItems 1
84
+ */
85
+ export type NonEmptyVec_ItemCatalogRecord = [ItemCatalogRecord, ...ItemCatalogRecord[]];
86
+ /**
87
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
88
+ * `source-null`; only `Absent` carries a complete-coverage witness.
89
+ */
90
+ export type FactState3 =
91
+ | {
92
+ source?: SourceRef | null;
93
+ state: "known";
94
+ value: RawValue;
95
+ }
96
+ | {
97
+ reason: StateReason;
98
+ source?: SourceRef | null;
99
+ state: "unknown";
100
+ }
101
+ | {
102
+ coverageKey: CoverageKey;
103
+ state: "absent";
104
+ }
105
+ | {
106
+ capability: Capability;
107
+ source?: SourceRef | null;
108
+ state: "unsupported";
109
+ };
110
+ /**
111
+ * A scalar source observation that preserves the source value kind.
112
+ */
113
+ export type RawScalar =
114
+ | {
115
+ kind: "integer";
116
+ value: SafeInt64;
117
+ }
118
+ | {
119
+ kind: "real";
120
+ value: number;
121
+ }
122
+ | {
123
+ kind: "text";
124
+ value: string;
125
+ }
126
+ | {
127
+ kind: "boolean";
128
+ value: boolean;
129
+ }
130
+ | {
131
+ kind: "bytes";
132
+ value: number[];
133
+ }
134
+ | {
135
+ kind: "source-null";
136
+ };
137
+ /**
138
+ * Compact source-free projection of [`CollectionState`]. Empty partial
139
+ * observations collapse to `unknown`; `absent` still requires its coverage
140
+ * key, and known/partial item lists cannot be empty.
141
+ */
142
+ export type CatalogCollection2 =
143
+ | {
144
+ items: NonEmptyVecString;
145
+ state: "known";
146
+ }
147
+ | {
148
+ items: NonEmptyVecString;
149
+ state: "partial";
150
+ }
151
+ | {
152
+ state: "unknown";
153
+ }
154
+ | {
155
+ coverageKey: CoverageKey;
156
+ state: "absent";
157
+ }
158
+ | {
159
+ state: "unsupported";
160
+ };
161
+ /**
162
+ * @minItems 1
163
+ */
164
+ export type NonEmptyVecString = [string, ...string[]];
165
+ /**
166
+ * Compact catalog projection of [`FactState`]. It keeps the state and a
167
+ * positively observed value, retains the coverage witness for `absent`, and
168
+ * omits source attribution and explanatory metadata.
169
+ */
170
+ export type CatalogFact =
171
+ | {
172
+ state: "known";
173
+ value: string;
174
+ }
175
+ | {
176
+ state: "unknown";
177
+ }
178
+ | {
179
+ coverageKey: CoverageKey;
180
+ state: "absent";
181
+ }
182
+ | {
183
+ state: "unsupported";
184
+ };
185
+ export type EntityKey = string;
186
+ /**
187
+ * Compact source-free projection of [`CollectionState`]. Empty partial
188
+ * observations collapse to `unknown`; `absent` still requires its coverage
189
+ * key, and known/partial item lists cannot be empty.
190
+ */
191
+ export type CatalogCollection =
192
+ | (
193
+ | {
194
+ items: NonEmptyVec_RelationshipSummary;
195
+ state: "known";
196
+ }
197
+ | {
198
+ items: NonEmptyVec_RelationshipSummary;
199
+ state: "partial";
200
+ }
201
+ | {
202
+ state: "unknown";
203
+ }
204
+ | {
205
+ coverageKey: CoverageKey;
206
+ state: "absent";
207
+ }
208
+ | {
209
+ state: "unsupported";
210
+ }
211
+ )
212
+ | undefined;
213
+ /**
214
+ * @minItems 1
215
+ */
216
+ export type NonEmptyVec_RelationshipSummary = [RelationshipSummary, ...RelationshipSummary[]];
217
+ /**
218
+ * Shared collection state. `Known` is non-empty; absence requires complete
219
+ * source coverage and is never inferred from a missing row.
220
+ */
221
+ export type CollectionState2 =
222
+ | {
223
+ items: NonEmptyVecString;
224
+ state: "known";
225
+ }
226
+ | {
227
+ coverageKey: CoverageKey;
228
+ state: "absent";
229
+ }
230
+ | {
231
+ items: string[];
232
+ reason: StateReason;
233
+ state: "partial";
234
+ }
235
+ | {
236
+ reason: StateReason;
237
+ state: "unknown";
238
+ }
239
+ | {
240
+ capability: Capability;
241
+ state: "unsupported";
242
+ };
243
+ /**
244
+ * Compact catalog projection of [`FactState`]. It keeps the state and a
245
+ * positively observed value, retains the coverage witness for `absent`, and
246
+ * omits source attribution and explanatory metadata.
247
+ */
248
+ export type CatalogFact2 =
249
+ | {
250
+ state: "known";
251
+ value: RawValue;
252
+ }
253
+ | {
254
+ state: "unknown";
255
+ }
256
+ | {
257
+ coverageKey: CoverageKey;
258
+ state: "absent";
259
+ }
260
+ | {
261
+ state: "unsupported";
262
+ };
263
+
264
+ export interface ItemCatalog {
265
+ contractVersion: "2.0";
266
+ defaultLocale: FactState;
267
+ format: "item-catalog/1";
268
+ recordCount: FactState2;
269
+ records: CollectionState;
270
+ scope: BuildScope;
271
+ }
272
+ /**
273
+ * Source attribution for a fact or raw observation.
274
+ */
275
+ export interface SourceRef {
276
+ /**
277
+ * Optional logical address within the source; never a local file path.
278
+ */
279
+ logicalAddress?: LogicalSourceAddress | null;
280
+ /**
281
+ * Source family or source kind, preserved as supplied by the producer.
282
+ */
283
+ sourceKind: string;
284
+ }
285
+ /**
286
+ * Item catalog record with raw matrix values deferred to lazy evidence pages.
287
+ */
288
+ export interface ItemCatalogRecord {
289
+ accountSharable?: FactState3 | null;
290
+ description?: FactState3 | null;
291
+ evidencePageKeys: CatalogCollection2;
292
+ expireOnLogout?: FactState3 | null;
293
+ isCash?: FactState3 | null;
294
+ isQuestItem?: FactState3 | null;
295
+ itemClass: CatalogFact;
296
+ itemTypeCode?: FactState3 | null;
297
+ key: EntityKey;
298
+ levelValue?: FactState3 | null;
299
+ maxValue?: FactState3 | null;
300
+ name: CatalogFact;
301
+ nameLocale: FactState;
302
+ notSale?: FactState3 | null;
303
+ onlyFlag?: FactState3 | null;
304
+ price?: FactState3 | null;
305
+ rateValue?: FactState3 | null;
306
+ recoveryHp?: FactState3 | null;
307
+ recoveryMp?: FactState3 | null;
308
+ relationships: {
309
+ [k: string]: CatalogCollection | undefined;
310
+ };
311
+ reqLevel?: FactState3 | null;
312
+ slotLimit: CatalogFact2;
313
+ sourceIdentity: SourceIdentity;
314
+ timeLimited?: FactState3 | null;
315
+ tradeBlocked?: FactState3 | null;
316
+ tradeBlockedAfterEquip?: FactState3 | null;
317
+ uniqueEquipped?: FactState3 | null;
318
+ unitPrice?: FactState3 | null;
319
+ }
320
+ /**
321
+ * A raw value and its optional source attribution.
322
+ */
323
+ export interface RawValue {
324
+ scalar: RawScalar;
325
+ source?: SourceRef | null;
326
+ }
327
+ /**
328
+ * Compact count/coverage summary for a lazy relationship kind.
329
+ */
330
+ export interface RelationshipSummary {
331
+ coverage: CollectionState2;
332
+ distinctTargetCount: FactState2;
333
+ occurrenceCount: FactState2;
334
+ }
335
+ /**
336
+ * Upstream source identity coordinates.
337
+ */
338
+ export interface SourceIdentity {
339
+ /**
340
+ * Explicit source discriminator when one ID has multiple records (empty or omitted when unused).
341
+ */
342
+ discriminator?: string | null;
343
+ /**
344
+ * Exact upstream source identifier (e.g., '0100100').
345
+ */
346
+ id: string;
347
+ /**
348
+ * Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.
349
+ */
350
+ namespace?: string | null;
351
+ [k: string]: unknown | undefined;
352
+ }
353
+ /**
354
+ * Build scope specifying the game family and concrete build identity.
355
+ */
356
+ export interface BuildScope {
357
+ /**
358
+ * Exact build identity (e.g., 'gms-v83', 'cw-cot2').
359
+ */
360
+ build_id: string;
361
+ /**
362
+ * Family identity (e.g., 'gms', 'classic-world').
363
+ */
364
+ family_id: string;
365
+ [k: string]: unknown | undefined;
366
+ }