@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,269 @@
1
+ /* Generated automatically from Rust-owned wire definitions. Do not edit. */
2
+
3
+ /**
4
+ * Confidence in a historical assertion as evidence about a target build.
5
+ */
6
+ export type HistoricalDropConfidence = "maybe";
7
+ /**
8
+ * Kind of evidence attribution attached to a Monster drop pair.
9
+ */
10
+ export type DropEvidenceKind = "native" | "supplemental-historical";
11
+ /**
12
+ * Resolved or unresolved entity reference to the dropped item.
13
+ */
14
+ export type EntityRef = {
15
+ [k: string]: unknown | undefined;
16
+ } & {
17
+ associationState: AssociationState;
18
+ candidateCount?: number | null;
19
+ candidateCoverage: Coverage;
20
+ catalogueMembership: CatalogueMembership;
21
+ evidenceKey?: string | null;
22
+ key?: string | null;
23
+ kind: string;
24
+ namespace?: string | null;
25
+ productCapability: ProductCapability;
26
+ sourceIdentity: SourceIdentity;
27
+ state: RefState;
28
+ typedVersion: TypedVersionState;
29
+ [k: string]: unknown | undefined;
30
+ };
31
+ /**
32
+ * Canonical association state supplied by the B1 normalizer.
33
+ */
34
+ export type AssociationState = "resolved" | "unresolved" | "ambiguous" | "unknown" | "unsupported";
35
+ /**
36
+ * Universal completeness and coverage indicator (contracts.md § Shared semantic shapes).
37
+ */
38
+ export type Coverage = "complete" | "partial" | "unknown" | "unsupported";
39
+ /**
40
+ * Independent catalogue membership state.
41
+ */
42
+ export type CatalogueMembership = "present" | "verified-absent" | "unknown";
43
+ /**
44
+ * Independent public product capability state.
45
+ */
46
+ export type ProductCapability = "implemented" | "not-implemented" | "source-unsupported";
47
+ /**
48
+ * Projection state for a public reference.
49
+ */
50
+ export type RefState = "resolved" | "unresolved" | "ambiguous" | "unknown" | "absent" | "unsupported";
51
+ /**
52
+ * Independent typed-version availability state.
53
+ */
54
+ export type TypedVersionState = "available" | "unavailable" | "unknown";
55
+ export type SafeInt64 = number;
56
+ /**
57
+ * Resolved or unresolved reference to the quest entity.
58
+ */
59
+ export type EntityRef1 = {
60
+ [k: string]: unknown | undefined;
61
+ } & {
62
+ associationState: AssociationState;
63
+ candidateCount?: number | null;
64
+ candidateCoverage: Coverage;
65
+ catalogueMembership: CatalogueMembership;
66
+ evidenceKey?: string | null;
67
+ key?: string | null;
68
+ kind: string;
69
+ namespace?: string | null;
70
+ productCapability: ProductCapability;
71
+ sourceIdentity: SourceIdentity;
72
+ state: RefState;
73
+ typedVersion: TypedVersionState;
74
+ [k: string]: unknown | undefined;
75
+ };
76
+
77
+ /**
78
+ * Bounded content-addressed pack for lazy drop/Quest evidence pages.
79
+ */
80
+ export interface MonsterEvidencePack {
81
+ contractVersion: string;
82
+ format: "mapletip.monster-evidence-pack";
83
+ recordKind: string;
84
+ records: {
85
+ [k: string]: MonsterEvidencePage | undefined;
86
+ };
87
+ scope: BuildScope;
88
+ [k: string]: unknown | undefined;
89
+ }
90
+ /**
91
+ * One lazily loaded evidence page. Exactly one collection is populated for a
92
+ * page; the other remains empty so one physical pack can serve both logical
93
+ * evidence relations without inventing a second resolver or wire format.
94
+ */
95
+ export interface MonsterEvidencePage {
96
+ drops: MonsterDropEntry[];
97
+ quests: MonsterQuestEntry[];
98
+ [k: string]: unknown | undefined;
99
+ }
100
+ /**
101
+ * Reciprocal item drop association for a monster.
102
+ */
103
+ export interface MonsterDropEntry {
104
+ /**
105
+ * Equipment slot or item category label.
106
+ */
107
+ category?: string | null;
108
+ /**
109
+ * Drop gating conditions (e.g. quest ID or party condition).
110
+ */
111
+ conditions?: string | null;
112
+ /**
113
+ * Optional typed attribution for supplemental historical assertions.
114
+ * Native evidence fields above remain the source observation as admitted.
115
+ */
116
+ evidenceAttribution?: HistoricalEvidenceAttribution | null;
117
+ /**
118
+ * Stable source-derived occurrence key; never a SQLite surrogate ID.
119
+ */
120
+ evidenceId: string;
121
+ /**
122
+ * Evidence source identifier (e.g. 'wz-monsterbook', 'cw-historical-reviewed').
123
+ */
124
+ evidenceSource: string;
125
+ /**
126
+ * Item classification namespace (e.g. 'Equip', 'Consume', 'Etc').
127
+ */
128
+ itemClass?: string | null;
129
+ /**
130
+ * Preserved item display name if known.
131
+ */
132
+ itemName?: string | null;
133
+ itemRef: EntityRef;
134
+ /**
135
+ * Literal ordinal within the source evidence list.
136
+ */
137
+ ordinal: number;
138
+ /**
139
+ * Maximum quantity dropped.
140
+ */
141
+ quantityMax?: SafeInt64 | null;
142
+ /**
143
+ * Minimum quantity dropped.
144
+ */
145
+ quantityMin?: SafeInt64 | null;
146
+ /**
147
+ * Exact nullable `monster_drop_evidence.rate` value if stated by source;
148
+ * the normalizer does not establish a probability scale here.
149
+ */
150
+ rate?: number | null;
151
+ /**
152
+ * Exact nullable `monster_drop_evidence.rate_denominator` value.
153
+ */
154
+ rateDenominator?: SafeInt64 | null;
155
+ /**
156
+ * Exact source path for this evidence occurrence.
157
+ */
158
+ sourcePath: string;
159
+ [k: string]: unknown | undefined;
160
+ }
161
+ /**
162
+ * Group of source assertions supporting one exact public Monster/item pair.
163
+ */
164
+ export interface HistoricalEvidenceAttribution {
165
+ assertions: DropEvidenceAttribution[];
166
+ [k: string]: unknown | undefined;
167
+ }
168
+ /**
169
+ * One source `MonsterBook` assertion retained on a deduplicated CW pair.
170
+ */
171
+ export interface DropEvidenceAttribution {
172
+ attribution: string;
173
+ confidence: HistoricalDropConfidence;
174
+ crosswalkInputSha256: string;
175
+ evidenceKey: string;
176
+ evidenceKind: DropEvidenceKind;
177
+ propertyPath: string;
178
+ reviewReference: string;
179
+ sourceBuild: string;
180
+ sourceIdentity: SourceIdentity;
181
+ sourceInputSha256: string;
182
+ sourceRecordKey: string;
183
+ transform: string;
184
+ [k: string]: unknown | undefined;
185
+ }
186
+ /**
187
+ * Upstream source identity coordinates.
188
+ */
189
+ export interface SourceIdentity {
190
+ /**
191
+ * Explicit source discriminator when one ID has multiple records (empty or omitted when unused).
192
+ */
193
+ discriminator?: string | null;
194
+ /**
195
+ * Exact upstream source identifier (e.g., '0100100').
196
+ */
197
+ id: string;
198
+ /**
199
+ * Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.
200
+ */
201
+ namespace?: string | null;
202
+ [k: string]: unknown | undefined;
203
+ }
204
+ /**
205
+ * Quest requirement association for a monster (kill objective).
206
+ */
207
+ export interface MonsterQuestEntry {
208
+ /**
209
+ * Quest count group ID if this kill objective belongs to a shared defeat pool.
210
+ */
211
+ countGroupId?: string | null;
212
+ /**
213
+ * Required kill quota to complete the objective.
214
+ */
215
+ killCount?: SafeInt64 | null;
216
+ /**
217
+ * Literal count-group member ordinal when this requirement fans out.
218
+ */
219
+ memberOrdinal?: number | null;
220
+ /**
221
+ * Stable source-derived requirement/member occurrence key.
222
+ */
223
+ occurrenceKey: string;
224
+ /**
225
+ * Canonical Quest phase. `null` preserves the normalizer's unknown phase
226
+ * for a state whose interpreted `phase` column is NULL.
227
+ */
228
+ phase: string | null;
229
+ /**
230
+ * Localized quest name.
231
+ */
232
+ questName?: string | null;
233
+ questRef: EntityRef1;
234
+ /**
235
+ * Upstream quest source ID.
236
+ */
237
+ questSourceId: string;
238
+ /**
239
+ * Normalizer-owned requirement kind (for example `mob-kill`).
240
+ */
241
+ requirementKind: string;
242
+ /**
243
+ * Literal requirement ordinal within the Quest state/kind section.
244
+ */
245
+ requirementOrdinal: number;
246
+ /**
247
+ * Exact source path for the requirement occurrence.
248
+ */
249
+ sourcePath: string;
250
+ /**
251
+ * Exact Quest state discriminator from the normalized requirement.
252
+ */
253
+ stateKey: number;
254
+ [k: string]: unknown | undefined;
255
+ }
256
+ /**
257
+ * Build scope specifying the game family and concrete build identity.
258
+ */
259
+ export interface BuildScope {
260
+ /**
261
+ * Exact build identity (e.g., 'gms-v83', 'cw-cot2').
262
+ */
263
+ build_id: string;
264
+ /**
265
+ * Family identity (e.g., 'gms', 'classic-world').
266
+ */
267
+ family_id: string;
268
+ [k: string]: unknown | undefined;
269
+ }