@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,350 @@
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 FactState2 =
8
+ | {
9
+ source?: SourceRef | null;
10
+ state: "known";
11
+ value: SafeInt64;
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 SafeInt64 = number;
29
+ export type StateReason = string;
30
+ export type CoverageKey = string;
31
+ export type Capability = string;
32
+ /**
33
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
34
+ * `source-null`; only `Absent` carries a complete-coverage witness.
35
+ */
36
+ export type FactState =
37
+ | {
38
+ source?: SourceRef | null;
39
+ state: "known";
40
+ value: string;
41
+ }
42
+ | {
43
+ reason: StateReason;
44
+ source?: SourceRef | null;
45
+ state: "unknown";
46
+ }
47
+ | {
48
+ coverageKey: CoverageKey;
49
+ state: "absent";
50
+ }
51
+ | {
52
+ capability: Capability;
53
+ source?: SourceRef | null;
54
+ state: "unsupported";
55
+ };
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 CollectionState4 =
61
+ | {
62
+ items: NonEmptyVecString;
63
+ state: "known";
64
+ }
65
+ | {
66
+ coverageKey: CoverageKey;
67
+ state: "absent";
68
+ }
69
+ | {
70
+ items: string[];
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 NonEmptyVecString = [string, ...string[]];
86
+ /**
87
+ * Shared collection state. `Known` is non-empty; absence requires complete
88
+ * source coverage and is never inferred from a missing row.
89
+ */
90
+ export type CollectionState2 =
91
+ | {
92
+ items: NonEmptyVec_EquipmentGrantedSkill;
93
+ state: "known";
94
+ }
95
+ | {
96
+ coverageKey: CoverageKey;
97
+ state: "absent";
98
+ }
99
+ | {
100
+ items: EquipmentGrantedSkill[];
101
+ reason: StateReason;
102
+ state: "partial";
103
+ }
104
+ | {
105
+ reason: StateReason;
106
+ state: "unknown";
107
+ }
108
+ | {
109
+ capability: Capability;
110
+ state: "unsupported";
111
+ };
112
+ /**
113
+ * @minItems 1
114
+ */
115
+ export type NonEmptyVec_EquipmentGrantedSkill = [EquipmentGrantedSkill, ...EquipmentGrantedSkill[]];
116
+ /**
117
+ * Shared entity-reference states. The generic parameter brands resolved keys
118
+ * for the target domain without changing their JSON representation.
119
+ */
120
+ export type EntityRef =
121
+ | {
122
+ key: EntityKey;
123
+ state: "resolved";
124
+ }
125
+ | {
126
+ sourceId: RawSourceId;
127
+ state: "unresolved";
128
+ }
129
+ | {
130
+ candidateKeys: EntityKey[];
131
+ state: "ambiguous";
132
+ }
133
+ | {
134
+ reason: StateReason;
135
+ state: "unavailable";
136
+ };
137
+ export type EntityKey = string;
138
+ export type RawSourceId = string;
139
+ /**
140
+ * @minItems 1
141
+ */
142
+ export type NonEmptyVec_EquipmentGrowthLevel = [EquipmentGrowthLevel, ...EquipmentGrowthLevel[]];
143
+ /**
144
+ * Shared collection state. `Known` is non-empty; absence requires complete
145
+ * source coverage and is never inferred from a missing row.
146
+ */
147
+ export type CollectionState3 =
148
+ | {
149
+ items: NonEmptyVec_EquipmentReplacementOccurrence;
150
+ state: "known";
151
+ }
152
+ | {
153
+ coverageKey: CoverageKey;
154
+ state: "absent";
155
+ }
156
+ | {
157
+ items: EquipmentReplacementOccurrence[];
158
+ reason: StateReason;
159
+ state: "partial";
160
+ }
161
+ | {
162
+ reason: StateReason;
163
+ state: "unknown";
164
+ }
165
+ | {
166
+ capability: Capability;
167
+ state: "unsupported";
168
+ };
169
+ /**
170
+ * @minItems 1
171
+ */
172
+ export type NonEmptyVec_EquipmentReplacementOccurrence = [
173
+ EquipmentReplacementOccurrence,
174
+ ...EquipmentReplacementOccurrence[]
175
+ ];
176
+ /**
177
+ * Shared entity-reference states. The generic parameter brands resolved keys
178
+ * for the target domain without changing their JSON representation.
179
+ */
180
+ export type EntityRef2 =
181
+ | {
182
+ key: EntityKey;
183
+ state: "resolved";
184
+ }
185
+ | {
186
+ sourceId: RawSourceId;
187
+ state: "unresolved";
188
+ }
189
+ | {
190
+ candidateKeys: EntityKey[];
191
+ state: "ambiguous";
192
+ }
193
+ | {
194
+ reason: StateReason;
195
+ state: "unavailable";
196
+ };
197
+
198
+ /**
199
+ * Equipment source facts approved as direct or ID-convention-derived typed values.
200
+ */
201
+ export interface EquipmentDetailRecord {
202
+ accuracy: FactState2;
203
+ attack_speed: FactState2;
204
+ avoidability: FactState2;
205
+ categoryCode: FactState2;
206
+ description: FactState;
207
+ descriptionLocale: FactState;
208
+ equipSlotCode: FactState;
209
+ evidencePageKeys: CollectionState4;
210
+ gender: FactState2;
211
+ grantedSkills: CollectionState2;
212
+ /**
213
+ * Raw-evidence/display-only matrix rows are available through lazy evidence pages.
214
+ */
215
+ growthLevels:
216
+ | {
217
+ items: NonEmptyVec_EquipmentGrowthLevel;
218
+ state: "known";
219
+ }
220
+ | {
221
+ coverageKey: CoverageKey;
222
+ state: "absent";
223
+ }
224
+ | {
225
+ items: EquipmentGrowthLevel[];
226
+ reason: StateReason;
227
+ state: "partial";
228
+ }
229
+ | {
230
+ reason: StateReason;
231
+ state: "unknown";
232
+ }
233
+ | {
234
+ capability: Capability;
235
+ state: "unsupported";
236
+ };
237
+ inc_dex: FactState2;
238
+ inc_int: FactState2;
239
+ inc_luk: FactState2;
240
+ inc_max_hp: FactState2;
241
+ inc_max_mp: FactState2;
242
+ inc_str: FactState2;
243
+ jump: FactState2;
244
+ key: EntityKey;
245
+ magic_attack: FactState2;
246
+ magic_defense: FactState2;
247
+ name: FactState;
248
+ nameLocale: FactState;
249
+ relationshipPageKeys: {
250
+ [k: string]: CollectionState4;
251
+ };
252
+ replacementOccurrences: CollectionState3;
253
+ req_dex: FactState2;
254
+ req_fame: FactState2;
255
+ req_int: FactState2;
256
+ req_job_mask: FactState2;
257
+ req_level: FactState2;
258
+ req_luk: FactState2;
259
+ req_str: FactState2;
260
+ sourceIdentity: SourceIdentity;
261
+ speed: FactState2;
262
+ upgrade_slots: FactState2;
263
+ visualSlot: FactState;
264
+ weaponTypeCode: FactState2;
265
+ weapon_attack: FactState2;
266
+ weapon_defense: FactState2;
267
+ }
268
+ /**
269
+ * Source attribution for a fact or raw observation.
270
+ */
271
+ export interface SourceRef {
272
+ /**
273
+ * Optional logical address within the source; never a local file path.
274
+ */
275
+ logicalAddress?: LogicalSourceAddress | null;
276
+ /**
277
+ * Source family or source kind, preserved as supplied by the producer.
278
+ */
279
+ sourceKind: string;
280
+ }
281
+ export interface EquipmentGrantedSkill {
282
+ evidencePageKey: string;
283
+ occurrenceKey: string;
284
+ skill_namespace: FactState;
285
+ skill_resolves: EntityRef;
286
+ sourceAddress: EvidenceSourceAddress;
287
+ }
288
+ /**
289
+ * Exact, logical `MFv1` source address retained on detail and evidence occurrences.
290
+ */
291
+ export interface EvidenceSourceAddress {
292
+ imgPath: LogicalSourceAddress;
293
+ namespace: string;
294
+ ordinal?: SafeInt64 | null;
295
+ propertyPath: string;
296
+ recordKey?: string | null;
297
+ sourceId: string;
298
+ }
299
+ export interface EquipmentGrowthLevel {
300
+ accuracy_max: FactState2;
301
+ accuracy_min: FactState2;
302
+ avoid_max: FactState2;
303
+ avoid_min: FactState2;
304
+ evidencePageKey: string;
305
+ inc_max_hp_max: FactState2;
306
+ inc_max_hp_min: FactState2;
307
+ inc_max_mp_max: FactState2;
308
+ inc_max_mp_min: FactState2;
309
+ jump_max: FactState2;
310
+ jump_min: FactState2;
311
+ level: FactState2;
312
+ magic_attack_max: FactState2;
313
+ magic_attack_min: FactState2;
314
+ magic_defense_max: FactState2;
315
+ magic_defense_min: FactState2;
316
+ occurrenceKey: string;
317
+ sourceAddress: EvidenceSourceAddress;
318
+ speed_max: FactState2;
319
+ speed_min: FactState2;
320
+ weapon_attack_max: FactState2;
321
+ weapon_attack_min: FactState2;
322
+ weapon_defense_max: FactState2;
323
+ weapon_defense_min: FactState2;
324
+ }
325
+ export interface EquipmentReplacementOccurrence {
326
+ evidencePageKey: string;
327
+ message: FactState;
328
+ occurrenceKey: string;
329
+ replacement_resolves: EntityRef2;
330
+ replacement_source_id: FactState2;
331
+ sourceAddress: EvidenceSourceAddress;
332
+ }
333
+ /**
334
+ * Upstream source identity coordinates.
335
+ */
336
+ export interface SourceIdentity {
337
+ /**
338
+ * Explicit source discriminator when one ID has multiple records (empty or omitted when unused).
339
+ */
340
+ discriminator?: string | null;
341
+ /**
342
+ * Exact upstream source identifier (e.g., '0100100').
343
+ */
344
+ id: string;
345
+ /**
346
+ * Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.
347
+ */
348
+ namespace?: string | null;
349
+ [k: string]: unknown | undefined;
350
+ }