@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.
- package/NOTICE +52 -0
- package/README.md +209 -0
- package/client/contract-compatibility.d.mts +27 -0
- package/client/contract-compatibility.mjs +159 -0
- package/client/core.d.ts +150 -0
- package/client/core.js +359 -0
- package/client/equipment.d.ts +22 -0
- package/client/equipment.js +63 -0
- package/client/items.d.ts +22 -0
- package/client/items.js +63 -0
- package/client/media.d.ts +19 -0
- package/client/media.js +47 -0
- package/client/monster-client.d.ts +35 -0
- package/client/monster-client.js +155 -0
- package/client/monsters.d.ts +24 -0
- package/client/monsters.js +14 -0
- package/client/quests.d.ts +31 -0
- package/client/quests.js +124 -0
- package/client/release.d.ts +63 -0
- package/client/release.js +279 -0
- package/client/static-client.d.ts +40 -0
- package/client/static-client.js +44 -0
- package/client/static-domains.d.ts +48 -0
- package/client/static-domains.js +113 -0
- package/generated/contract-2-catalog-fact.d.ts +51 -0
- package/generated/equipment-catalog-2.d.ts +434 -0
- package/generated/equipment-catalog-2.validator.js +17 -0
- package/generated/equipment-detail-2.d.ts +350 -0
- package/generated/equipment-detail-2.validator.js +17 -0
- package/generated/equipment-evidence-pack-2.d.ts +243 -0
- package/generated/equipment-evidence-pack-2.validator.js +17 -0
- package/generated/equipment-pack-2.validator.js +17 -0
- package/generated/equipment-relationship-pack-2.d.ts +170 -0
- package/generated/equipment-relationship-pack-2.validator.js +17 -0
- package/generated/item-catalog-2.d.ts +366 -0
- package/generated/item-catalog-2.validator.js +17 -0
- package/generated/item-detail-2.d.ts +540 -0
- package/generated/item-detail-2.validator.js +17 -0
- package/generated/item-evidence-pack-2.d.ts +243 -0
- package/generated/item-evidence-pack-2.validator.js +17 -0
- package/generated/item-pack-2.validator.js +17 -0
- package/generated/item-relationship-pack-2.d.ts +170 -0
- package/generated/item-relationship-pack-2.validator.js +17 -0
- package/generated/media-catalog-2.d.ts +133 -0
- package/generated/media-catalog-2.validator.js +17 -0
- package/generated/media-detail-2.d.ts +125 -0
- package/generated/media-detail-2.validator.js +17 -0
- package/generated/media-pack-2.validator.js +17 -0
- package/generated/monster-catalog-2.d.ts +230 -0
- package/generated/monster-catalog-2.validator.js +17 -0
- package/generated/monster-catalog.d.ts +224 -0
- package/generated/monster-catalog.validator.js +1 -0
- package/generated/monster-core-relationship-pack-2.d.ts +208 -0
- package/generated/monster-core-relationship-pack-2.validator.js +17 -0
- package/generated/monster-detail-2.d.ts +372 -0
- package/generated/monster-detail-2.validator.js +17 -0
- package/generated/monster-detail.d.ts +799 -0
- package/generated/monster-detail.validator.js +17 -0
- package/generated/monster-evidence-pack-2.d.ts +378 -0
- package/generated/monster-evidence-pack-2.validator.js +17 -0
- package/generated/monster-evidence-pack.d.ts +269 -0
- package/generated/monster-evidence-pack.validator.js +17 -0
- package/generated/monster-location-pack-2.validator.js +1 -0
- package/generated/monster-pack-2.validator.js +17 -0
- package/generated/monster-pack.validator.js +17 -0
- package/generated/monster-relationship-pack.d.ts +126 -0
- package/generated/monster-relationship-pack.validator.js +1 -0
- package/generated/product-manifest.d.ts +188 -0
- package/generated/product-manifest.validator.js +1 -0
- package/generated/quest-auxiliary-pack-2.d.ts +391 -0
- package/generated/quest-auxiliary-pack-2.validator.js +17 -0
- package/generated/quest-browse-pack-2.d.ts +353 -0
- package/generated/quest-browse-pack-2.validator.js +17 -0
- package/generated/quest-catalog-2.d.ts +501 -0
- package/generated/quest-catalog-2.validator.js +17 -0
- package/generated/quest-evidence-pack-2.d.ts +269 -0
- package/generated/quest-evidence-pack-2.validator.js +17 -0
- package/generated/quest-pack-2.d.ts +410 -0
- package/generated/quest-pack-2.validator.js +17 -0
- package/generated/quest-relationship-pack-2.d.ts +868 -0
- package/generated/quest-relationship-pack-2.validator.js +17 -0
- package/generated/release-build-index.d.ts +42 -0
- package/generated/release-build-index.validator.js +1 -0
- package/generated/release-manifest.d.ts +24 -0
- package/generated/release-manifest.validator.js +1 -0
- package/generated/release-pin.d.ts +12 -0
- package/generated/release-pin.validator.js +1 -0
- package/package.json +155 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
/* Generated automatically from Rust-owned wire definitions. Do not edit. */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Compact catalog projection of [`FactState`]. It keeps the state and a
|
|
5
|
+
* positively observed value, retains the coverage witness for `absent`, and
|
|
6
|
+
* omits source attribution and explanatory metadata.
|
|
7
|
+
*/
|
|
8
|
+
export type CatalogFact3 =
|
|
9
|
+
| {
|
|
10
|
+
state: "known";
|
|
11
|
+
value: boolean;
|
|
12
|
+
}
|
|
13
|
+
| {
|
|
14
|
+
state: "unknown";
|
|
15
|
+
}
|
|
16
|
+
| {
|
|
17
|
+
coverageKey: CoverageKey;
|
|
18
|
+
state: "absent";
|
|
19
|
+
}
|
|
20
|
+
| {
|
|
21
|
+
state: "unsupported";
|
|
22
|
+
};
|
|
23
|
+
export type CoverageKey = string;
|
|
24
|
+
/**
|
|
25
|
+
* Compact catalog projection of [`FactState`]. It keeps the state and a
|
|
26
|
+
* positively observed value, retains the coverage witness for `absent`, and
|
|
27
|
+
* omits source attribution and explanatory metadata.
|
|
28
|
+
*/
|
|
29
|
+
export type CatalogFact2 =
|
|
30
|
+
| {
|
|
31
|
+
state: "known";
|
|
32
|
+
value: QuestBrowseEventWindow;
|
|
33
|
+
}
|
|
34
|
+
| {
|
|
35
|
+
state: "unknown";
|
|
36
|
+
}
|
|
37
|
+
| {
|
|
38
|
+
coverageKey: CoverageKey;
|
|
39
|
+
state: "absent";
|
|
40
|
+
}
|
|
41
|
+
| {
|
|
42
|
+
state: "unsupported";
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Compact source-free projection of [`CollectionState`]. Empty partial
|
|
46
|
+
* observations collapse to `unknown`; `absent` still requires its coverage
|
|
47
|
+
* key, and known/partial item lists cannot be empty.
|
|
48
|
+
*/
|
|
49
|
+
export type CatalogCollection =
|
|
50
|
+
| {
|
|
51
|
+
items: NonEmptyVec_SafeInt64;
|
|
52
|
+
state: "known";
|
|
53
|
+
}
|
|
54
|
+
| {
|
|
55
|
+
items: NonEmptyVec_SafeInt64;
|
|
56
|
+
state: "partial";
|
|
57
|
+
}
|
|
58
|
+
| {
|
|
59
|
+
state: "unknown";
|
|
60
|
+
}
|
|
61
|
+
| {
|
|
62
|
+
coverageKey: CoverageKey;
|
|
63
|
+
state: "absent";
|
|
64
|
+
}
|
|
65
|
+
| {
|
|
66
|
+
state: "unsupported";
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @minItems 1
|
|
70
|
+
*/
|
|
71
|
+
export type NonEmptyVec_SafeInt64 = [SafeInt64, ...SafeInt64[]];
|
|
72
|
+
export type SafeInt64 = number;
|
|
73
|
+
export type EntityKey = string;
|
|
74
|
+
/**
|
|
75
|
+
* Compact source-free projection of [`CollectionState`]. Empty partial
|
|
76
|
+
* observations collapse to `unknown`; `absent` still requires its coverage
|
|
77
|
+
* key, and known/partial item lists cannot be empty.
|
|
78
|
+
*/
|
|
79
|
+
export type CatalogCollection3 =
|
|
80
|
+
| {
|
|
81
|
+
items: NonEmptyVec_QuestBrowseObjective;
|
|
82
|
+
state: "known";
|
|
83
|
+
}
|
|
84
|
+
| {
|
|
85
|
+
items: NonEmptyVec_QuestBrowseObjective;
|
|
86
|
+
state: "partial";
|
|
87
|
+
}
|
|
88
|
+
| {
|
|
89
|
+
state: "unknown";
|
|
90
|
+
}
|
|
91
|
+
| {
|
|
92
|
+
coverageKey: CoverageKey;
|
|
93
|
+
state: "absent";
|
|
94
|
+
}
|
|
95
|
+
| {
|
|
96
|
+
state: "unsupported";
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* @minItems 1
|
|
100
|
+
*/
|
|
101
|
+
export type NonEmptyVec_QuestBrowseObjective = [QuestBrowseObjective, ...QuestBrowseObjective[]];
|
|
102
|
+
/**
|
|
103
|
+
* Compact source-free projection of [`CollectionState`]. Empty partial
|
|
104
|
+
* observations collapse to `unknown`; `absent` still requires its coverage
|
|
105
|
+
* key, and known/partial item lists cannot be empty.
|
|
106
|
+
*/
|
|
107
|
+
export type CatalogCollection2 =
|
|
108
|
+
| {
|
|
109
|
+
items: NonEmptyVec_QuestBrowseRecurrence;
|
|
110
|
+
state: "known";
|
|
111
|
+
}
|
|
112
|
+
| {
|
|
113
|
+
items: NonEmptyVec_QuestBrowseRecurrence;
|
|
114
|
+
state: "partial";
|
|
115
|
+
}
|
|
116
|
+
| {
|
|
117
|
+
state: "unknown";
|
|
118
|
+
}
|
|
119
|
+
| {
|
|
120
|
+
coverageKey: CoverageKey;
|
|
121
|
+
state: "absent";
|
|
122
|
+
}
|
|
123
|
+
| {
|
|
124
|
+
state: "unsupported";
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* @minItems 1
|
|
128
|
+
*/
|
|
129
|
+
export type NonEmptyVec_QuestBrowseRecurrence = [QuestBrowseRecurrence, ...QuestBrowseRecurrence[]];
|
|
130
|
+
/**
|
|
131
|
+
* Authored recurrence rule on a Quest.
|
|
132
|
+
*/
|
|
133
|
+
export type QuestBrowseRecurrence =
|
|
134
|
+
| {
|
|
135
|
+
kind: "interval";
|
|
136
|
+
minutes: SafeInt64;
|
|
137
|
+
}
|
|
138
|
+
| {
|
|
139
|
+
kind: "day-by-day";
|
|
140
|
+
}
|
|
141
|
+
| {
|
|
142
|
+
kind: "weekly-repeat";
|
|
143
|
+
}
|
|
144
|
+
| {
|
|
145
|
+
day?: string | null;
|
|
146
|
+
kind: "day-of-week";
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Compact catalog projection of [`FactState`]. It keeps the state and a
|
|
150
|
+
* positively observed value, retains the coverage witness for `absent`, and
|
|
151
|
+
* omits source attribution and explanatory metadata.
|
|
152
|
+
*/
|
|
153
|
+
export type CatalogFact =
|
|
154
|
+
| {
|
|
155
|
+
state: "known";
|
|
156
|
+
value: SafeInt64;
|
|
157
|
+
}
|
|
158
|
+
| {
|
|
159
|
+
state: "unknown";
|
|
160
|
+
}
|
|
161
|
+
| {
|
|
162
|
+
coverageKey: CoverageKey;
|
|
163
|
+
state: "absent";
|
|
164
|
+
}
|
|
165
|
+
| {
|
|
166
|
+
state: "unsupported";
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Compact source-free projection of [`CollectionState`]. Empty partial
|
|
170
|
+
* observations collapse to `unknown`; `absent` still requires its coverage
|
|
171
|
+
* key, and known/partial item lists cannot be empty.
|
|
172
|
+
*/
|
|
173
|
+
export type CatalogCollection4 =
|
|
174
|
+
| {
|
|
175
|
+
items: NonEmptyVec_QuestBrowseItemReward;
|
|
176
|
+
state: "known";
|
|
177
|
+
}
|
|
178
|
+
| {
|
|
179
|
+
items: NonEmptyVec_QuestBrowseItemReward;
|
|
180
|
+
state: "partial";
|
|
181
|
+
}
|
|
182
|
+
| {
|
|
183
|
+
state: "unknown";
|
|
184
|
+
}
|
|
185
|
+
| {
|
|
186
|
+
coverageKey: CoverageKey;
|
|
187
|
+
state: "absent";
|
|
188
|
+
}
|
|
189
|
+
| {
|
|
190
|
+
state: "unsupported";
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* @minItems 1
|
|
194
|
+
*/
|
|
195
|
+
export type NonEmptyVec_QuestBrowseItemReward = [QuestBrowseItemReward, ...QuestBrowseItemReward[]];
|
|
196
|
+
/**
|
|
197
|
+
* Shared entity-reference states. The generic parameter brands resolved keys
|
|
198
|
+
* for the target domain without changing their JSON representation.
|
|
199
|
+
*/
|
|
200
|
+
export type EntityRef =
|
|
201
|
+
| {
|
|
202
|
+
key: EntityKey;
|
|
203
|
+
state: "resolved";
|
|
204
|
+
}
|
|
205
|
+
| {
|
|
206
|
+
sourceId: RawSourceId;
|
|
207
|
+
state: "unresolved";
|
|
208
|
+
}
|
|
209
|
+
| {
|
|
210
|
+
candidateKeys: EntityKey[];
|
|
211
|
+
state: "ambiguous";
|
|
212
|
+
}
|
|
213
|
+
| {
|
|
214
|
+
reason: StateReason;
|
|
215
|
+
state: "unavailable";
|
|
216
|
+
};
|
|
217
|
+
export type RawSourceId = string;
|
|
218
|
+
export type StateReason = string;
|
|
219
|
+
/**
|
|
220
|
+
* Compact source-free projection of [`CollectionState`]. Empty partial
|
|
221
|
+
* observations collapse to `unknown`; `absent` still requires its coverage
|
|
222
|
+
* key, and known/partial item lists cannot be empty.
|
|
223
|
+
*/
|
|
224
|
+
export type CatalogCollection5 =
|
|
225
|
+
| {
|
|
226
|
+
items: NonEmptyVecString;
|
|
227
|
+
state: "known";
|
|
228
|
+
}
|
|
229
|
+
| {
|
|
230
|
+
items: NonEmptyVecString;
|
|
231
|
+
state: "partial";
|
|
232
|
+
}
|
|
233
|
+
| {
|
|
234
|
+
state: "unknown";
|
|
235
|
+
}
|
|
236
|
+
| {
|
|
237
|
+
coverageKey: CoverageKey;
|
|
238
|
+
state: "absent";
|
|
239
|
+
}
|
|
240
|
+
| {
|
|
241
|
+
state: "unsupported";
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* @minItems 1
|
|
245
|
+
*/
|
|
246
|
+
export type NonEmptyVecString = [string, ...string[]];
|
|
247
|
+
/**
|
|
248
|
+
* Compact catalog projection of [`FactState`]. It keeps the state and a
|
|
249
|
+
* positively observed value, retains the coverage witness for `absent`, and
|
|
250
|
+
* omits source attribution and explanatory metadata.
|
|
251
|
+
*/
|
|
252
|
+
export type CatalogFact4 =
|
|
253
|
+
| {
|
|
254
|
+
state: "known";
|
|
255
|
+
value: string;
|
|
256
|
+
}
|
|
257
|
+
| {
|
|
258
|
+
state: "unknown";
|
|
259
|
+
}
|
|
260
|
+
| {
|
|
261
|
+
coverageKey: CoverageKey;
|
|
262
|
+
state: "absent";
|
|
263
|
+
}
|
|
264
|
+
| {
|
|
265
|
+
state: "unsupported";
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Bounded pack of compact Quest browse records keyed by Quest entity key.
|
|
270
|
+
*/
|
|
271
|
+
export interface QuestBrowsePack {
|
|
272
|
+
contractVersion: "2.1";
|
|
273
|
+
format: "mapletip.quest-browse-pack-2";
|
|
274
|
+
records: {
|
|
275
|
+
[k: string]: QuestBrowseRecord | undefined;
|
|
276
|
+
};
|
|
277
|
+
scope: BuildScope;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Compact Quest browse record carrying source facts for browse and filtering.
|
|
281
|
+
*/
|
|
282
|
+
export interface QuestBrowseRecord {
|
|
283
|
+
autoStart: CatalogFact3;
|
|
284
|
+
eventWindow: CatalogFact2;
|
|
285
|
+
jobCodes: CatalogCollection;
|
|
286
|
+
key: EntityKey;
|
|
287
|
+
objectives: CatalogCollection3;
|
|
288
|
+
recurrence: CatalogCollection2;
|
|
289
|
+
rewards: QuestBrowseRewards;
|
|
290
|
+
specialConditions: CatalogFact;
|
|
291
|
+
startLevelMax: CatalogFact;
|
|
292
|
+
startLevelMin: CatalogFact;
|
|
293
|
+
startNpc: CatalogFact4;
|
|
294
|
+
turnInNpc: CatalogFact4;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Authored event window on a Quest.
|
|
298
|
+
*/
|
|
299
|
+
export interface QuestBrowseEventWindow {
|
|
300
|
+
endDate?: string | null;
|
|
301
|
+
startDate?: string | null;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Complete-phase objective requirement in source order.
|
|
305
|
+
*/
|
|
306
|
+
export interface QuestBrowseObjective {
|
|
307
|
+
kind: string;
|
|
308
|
+
quantity?: SafeInt64 | null;
|
|
309
|
+
targets?: string[];
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Complete-phase rewards summary for Quest browse facets.
|
|
313
|
+
*/
|
|
314
|
+
export interface QuestBrowseRewards {
|
|
315
|
+
exp: CatalogFact;
|
|
316
|
+
fame: CatalogFact;
|
|
317
|
+
hasActSection: CatalogFact3;
|
|
318
|
+
items: CatalogCollection4;
|
|
319
|
+
mesos: CatalogFact;
|
|
320
|
+
otherRewardCount: CatalogFact;
|
|
321
|
+
skills: CatalogCollection5;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Complete-phase item reward occurrence.
|
|
325
|
+
*/
|
|
326
|
+
export interface QuestBrowseItemReward {
|
|
327
|
+
effect?: string | null;
|
|
328
|
+
eligibility?: QuestBrowseRewardEligibility | null;
|
|
329
|
+
grantMode?: string | null;
|
|
330
|
+
quantity?: SafeInt64 | null;
|
|
331
|
+
target: EntityRef;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Authored eligibility constraints on a Quest item reward.
|
|
335
|
+
*/
|
|
336
|
+
export interface QuestBrowseRewardEligibility {
|
|
337
|
+
gender?: SafeInt64 | null;
|
|
338
|
+
jobMask?: SafeInt64 | null;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Build scope specifying the game family and concrete build identity.
|
|
342
|
+
*/
|
|
343
|
+
export interface BuildScope {
|
|
344
|
+
/**
|
|
345
|
+
* Exact build identity (e.g., 'gms-v83', 'cw-cot2').
|
|
346
|
+
*/
|
|
347
|
+
build_id: string;
|
|
348
|
+
/**
|
|
349
|
+
* Family identity (e.g., 'gms', 'classic-world').
|
|
350
|
+
*/
|
|
351
|
+
family_id: string;
|
|
352
|
+
[k: string]: unknown | undefined;
|
|
353
|
+
}
|