@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,378 @@
1
+ /* Generated automatically from Rust-owned wire definitions. Do not edit. */
2
+
3
+ export type MonsterDropAssertionV2 =
4
+ | {
5
+ assertionKind: "native";
6
+ evidenceKey: string;
7
+ monsterKey: string;
8
+ occurrence: MonsterDropEntryV2;
9
+ sourceBuild: string;
10
+ sourceInput: ProductInputPin;
11
+ [k: string]: unknown | undefined;
12
+ }
13
+ | {
14
+ assertionKind: "historical-overlay";
15
+ attribution: DropEvidenceAttribution;
16
+ category?: string | null;
17
+ evidenceKey: string;
18
+ itemClass?: string | null;
19
+ itemKey?: string | null;
20
+ itemName?: string | null;
21
+ itemSourceId: string;
22
+ monsterKey: string;
23
+ sourceBuild: string;
24
+ [k: string]: unknown | undefined;
25
+ };
26
+ /**
27
+ * Confidence in a historical assertion as evidence about a target build.
28
+ */
29
+ export type HistoricalDropConfidence = "maybe";
30
+ /**
31
+ * Kind of evidence attribution attached to a Monster drop pair.
32
+ */
33
+ export type DropEvidenceKind = "native" | "supplemental-historical";
34
+ /**
35
+ * Canonical association state supplied by the B1 normalizer.
36
+ */
37
+ export type AssociationState = "resolved" | "unresolved" | "ambiguous" | "unknown" | "unsupported";
38
+ /**
39
+ * Universal completeness and coverage indicator (contracts.md § Shared semantic shapes).
40
+ */
41
+ export type Coverage = "complete" | "partial" | "unknown" | "unsupported";
42
+ /**
43
+ * Independent catalogue membership state.
44
+ */
45
+ export type CatalogueMembership = "present" | "verified-absent" | "unknown";
46
+ /**
47
+ * Projection state for a public reference.
48
+ */
49
+ export type RefState = "resolved" | "unresolved" | "ambiguous" | "unknown" | "absent" | "unsupported";
50
+ /**
51
+ * Independent typed-version availability state.
52
+ */
53
+ export type TypedVersionState = "available" | "unavailable" | "unknown";
54
+ export type SafeInt64 = number;
55
+ export type NullableString = string | null;
56
+ /**
57
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
58
+ * `source-null`; only `Absent` carries a complete-coverage witness.
59
+ */
60
+ export type FactState2 =
61
+ | (
62
+ | {
63
+ source?: SourceRef | null;
64
+ state: "known";
65
+ value: RawValue;
66
+ }
67
+ | {
68
+ reason: StateReason;
69
+ source?: SourceRef | null;
70
+ state: "unknown";
71
+ }
72
+ | {
73
+ coverageKey: CoverageKey;
74
+ state: "absent";
75
+ }
76
+ | {
77
+ capability: Capability;
78
+ source?: SourceRef | null;
79
+ state: "unsupported";
80
+ }
81
+ )
82
+ | undefined;
83
+ export type LogicalSourceAddress = string;
84
+ /**
85
+ * A scalar source observation that preserves the source value kind.
86
+ */
87
+ export type RawScalar =
88
+ | {
89
+ kind: "integer";
90
+ value: SafeInt64;
91
+ }
92
+ | {
93
+ kind: "real";
94
+ value: number;
95
+ }
96
+ | {
97
+ kind: "text";
98
+ value: string;
99
+ }
100
+ | {
101
+ kind: "boolean";
102
+ value: boolean;
103
+ }
104
+ | {
105
+ kind: "bytes";
106
+ value: number[];
107
+ }
108
+ | {
109
+ kind: "source-null";
110
+ };
111
+ export type StateReason = string;
112
+ export type CoverageKey = string;
113
+ export type Capability = string;
114
+ /**
115
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
116
+ * `source-null`; only `Absent` carries a complete-coverage witness.
117
+ */
118
+ export type FactState3 =
119
+ | (
120
+ | {
121
+ source?: SourceRef | null;
122
+ state: "known";
123
+ value: EntityRef;
124
+ }
125
+ | {
126
+ reason: StateReason;
127
+ source?: SourceRef | null;
128
+ state: "unknown";
129
+ }
130
+ | {
131
+ coverageKey: CoverageKey;
132
+ state: "absent";
133
+ }
134
+ | {
135
+ capability: Capability;
136
+ source?: SourceRef | null;
137
+ state: "unsupported";
138
+ }
139
+ )
140
+ | undefined;
141
+ /**
142
+ * Shared entity-reference states. The generic parameter brands resolved keys
143
+ * for the target domain without changing their JSON representation.
144
+ */
145
+ export type EntityRef =
146
+ | {
147
+ key: EntityKey;
148
+ state: "resolved";
149
+ }
150
+ | {
151
+ sourceId: RawSourceId;
152
+ state: "unresolved";
153
+ }
154
+ | {
155
+ candidateKeys: EntityKey[];
156
+ state: "ambiguous";
157
+ }
158
+ | {
159
+ reason: StateReason;
160
+ state: "unavailable";
161
+ };
162
+ export type EntityKey = string;
163
+ export type RawSourceId = string;
164
+
165
+ export interface MonsterEvidencePackV2 {
166
+ contractVersion: "2.0";
167
+ format: "mapletip.monster-evidence-pack-2";
168
+ historicalOverlayPin?: ProductHistoricalOverlay | null;
169
+ recordKind: string;
170
+ records: {
171
+ [k: string]: MonsterEvidencePageV2 | undefined;
172
+ };
173
+ scope: BuildScope;
174
+ }
175
+ export interface ProductHistoricalOverlay {
176
+ artifactSha256: string;
177
+ crosswalkManifestSha256: string;
178
+ enabled: boolean;
179
+ format: string;
180
+ reviewReference: string;
181
+ sourceInput: ProductInputPin;
182
+ targetInput: ProductInputPin;
183
+ transform: string;
184
+ [k: string]: unknown | undefined;
185
+ }
186
+ export interface ProductInputPin {
187
+ buildId: string;
188
+ familyId: string;
189
+ fileSha256: string;
190
+ snapshotRoot: string;
191
+ snapshotScheme: string;
192
+ [k: string]: unknown | undefined;
193
+ }
194
+ export interface MonsterEvidencePageV2 {
195
+ collection: string;
196
+ dropAssertions?: MonsterDropAssertionV2[];
197
+ monsterKey?: string | null;
198
+ quests?: MonsterQuestEntryV2[];
199
+ sourceEvidence?: MonsterCoreOccurrenceV2[];
200
+ }
201
+ /**
202
+ * Monster 2.0 evidence occurrence with an artifact-independent target reference.
203
+ */
204
+ export interface MonsterDropEntryV2 {
205
+ category?: string | null;
206
+ conditions?: string | null;
207
+ evidenceAttribution?: HistoricalEvidenceAttribution | null;
208
+ evidenceId: string;
209
+ evidenceSource: string;
210
+ itemClass?: string | null;
211
+ itemName?: string | null;
212
+ itemRef: MonsterEntityRefV2;
213
+ ordinal: number;
214
+ quantityMax?: SafeInt64 | null;
215
+ quantityMin?: SafeInt64 | null;
216
+ rate?: number | null;
217
+ rateDenominator?: SafeInt64 | null;
218
+ sourcePath: string;
219
+ }
220
+ /**
221
+ * Group of source assertions supporting one exact public Monster/item pair.
222
+ */
223
+ export interface HistoricalEvidenceAttribution {
224
+ assertions: DropEvidenceAttribution[];
225
+ [k: string]: unknown | undefined;
226
+ }
227
+ /**
228
+ * One source `MonsterBook` assertion retained on a deduplicated CW pair.
229
+ */
230
+ export interface DropEvidenceAttribution {
231
+ attribution: string;
232
+ confidence: HistoricalDropConfidence;
233
+ crosswalkInputSha256: string;
234
+ evidenceKey: string;
235
+ evidenceKind: DropEvidenceKind;
236
+ propertyPath: string;
237
+ reviewReference: string;
238
+ sourceBuild: string;
239
+ sourceIdentity: SourceIdentity;
240
+ sourceInputSha256: string;
241
+ sourceRecordKey: string;
242
+ transform: string;
243
+ [k: string]: unknown | undefined;
244
+ }
245
+ /**
246
+ * Upstream source identity coordinates.
247
+ */
248
+ export interface SourceIdentity {
249
+ /**
250
+ * Explicit source discriminator when one ID has multiple records (empty or omitted when unused).
251
+ */
252
+ discriminator?: string | null;
253
+ /**
254
+ * Exact upstream source identifier (e.g., '0100100').
255
+ */
256
+ id: string;
257
+ /**
258
+ * Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.
259
+ */
260
+ namespace?: string | null;
261
+ [k: string]: unknown | undefined;
262
+ }
263
+ /**
264
+ * Monster 2.0 target reference. Product availability belongs to the release envelope and is
265
+ * deliberately omitted from this immutable product record.
266
+ */
267
+ export interface MonsterEntityRefV2 {
268
+ associationState: AssociationState;
269
+ candidateCount?: number | null;
270
+ candidateCoverage: Coverage;
271
+ catalogueMembership: CatalogueMembership;
272
+ evidenceKey?: string | null;
273
+ key?: string | null;
274
+ kind: string;
275
+ namespace?: string | null;
276
+ sourceIdentity: SourceIdentity;
277
+ state: RefState;
278
+ typedVersion: TypedVersionState;
279
+ }
280
+ /**
281
+ * Monster 2.0 quest occurrence with an artifact-independent target reference.
282
+ */
283
+ export interface MonsterQuestEntryV2 {
284
+ countGroupId?: string | null;
285
+ killCount?: SafeInt64 | null;
286
+ memberOrdinal?: number | null;
287
+ occurrenceKey: string;
288
+ phase: NullableString;
289
+ questName?: string | null;
290
+ questRef: MonsterEntityRefV2;
291
+ questSourceId: string;
292
+ requirementKind: string;
293
+ requirementOrdinal: number;
294
+ sourcePath: string;
295
+ stateKey: SafeInt64;
296
+ }
297
+ /**
298
+ * One source occurrence retained by a selected Monster-core collection.
299
+ */
300
+ export interface MonsterCoreOccurrenceV2 {
301
+ /**
302
+ * Selected source and normalized fields, keyed by inventory field name.
303
+ */
304
+ fields: {
305
+ [k: string]: FactState2 | undefined;
306
+ };
307
+ /**
308
+ * Stable key derived from build, source identity, collection and occurrence address.
309
+ */
310
+ occurrenceKey: string;
311
+ /**
312
+ * Stable public key of the occurrence's Monster, `MobSkill`, or group owner.
313
+ */
314
+ ownerKey?: string | null;
315
+ /**
316
+ * Canonical target references; raw source IDs remain in `fields`.
317
+ */
318
+ references: {
319
+ [k: string]: FactState3 | undefined;
320
+ };
321
+ /**
322
+ * Exact logical source path when it was retained by normalization.
323
+ */
324
+ sourcePath:
325
+ | {
326
+ source?: SourceRef | null;
327
+ state: "known";
328
+ value: LogicalSourceAddress;
329
+ }
330
+ | {
331
+ reason: StateReason;
332
+ source?: SourceRef | null;
333
+ state: "unknown";
334
+ }
335
+ | {
336
+ coverageKey: CoverageKey;
337
+ state: "absent";
338
+ }
339
+ | {
340
+ capability: Capability;
341
+ source?: SourceRef | null;
342
+ state: "unsupported";
343
+ };
344
+ }
345
+ /**
346
+ * Source attribution for a fact or raw observation.
347
+ */
348
+ export interface SourceRef {
349
+ /**
350
+ * Optional logical address within the source; never a local file path.
351
+ */
352
+ logicalAddress?: LogicalSourceAddress | null;
353
+ /**
354
+ * Source family or source kind, preserved as supplied by the producer.
355
+ */
356
+ sourceKind: string;
357
+ }
358
+ /**
359
+ * A raw value and its optional source attribution.
360
+ */
361
+ export interface RawValue {
362
+ scalar: RawScalar;
363
+ source?: SourceRef | null;
364
+ }
365
+ /**
366
+ * Build scope specifying the game family and concrete build identity.
367
+ */
368
+ export interface BuildScope {
369
+ /**
370
+ * Exact build identity (e.g., 'gms-v83', 'cw-cot2').
371
+ */
372
+ build_id: string;
373
+ /**
374
+ * Family identity (e.g., 'gms', 'classic-world').
375
+ */
376
+ family_id: string;
377
+ [k: string]: unknown | undefined;
378
+ }