@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
+ * Shared collection state. `Known` is non-empty; absence requires complete
5
+ * source coverage and is never inferred from a missing row.
6
+ */
7
+ export type CollectionState =
8
+ | {
9
+ items: NonEmptyVec_QuestEvidenceOccurrence;
10
+ state: "known";
11
+ }
12
+ | {
13
+ coverageKey: CoverageKey;
14
+ state: "absent";
15
+ }
16
+ | {
17
+ items: QuestEvidenceOccurrence[];
18
+ reason: StateReason;
19
+ state: "partial";
20
+ }
21
+ | {
22
+ reason: StateReason;
23
+ state: "unknown";
24
+ }
25
+ | {
26
+ capability: Capability;
27
+ state: "unsupported";
28
+ };
29
+ /**
30
+ * @minItems 1
31
+ */
32
+ export type NonEmptyVec_QuestEvidenceOccurrence = [QuestEvidenceOccurrence, ...QuestEvidenceOccurrence[]];
33
+ /**
34
+ * Shared collection state. `Known` is non-empty; absence requires complete
35
+ * source coverage and is never inferred from a missing row.
36
+ */
37
+ export type CollectionState2 =
38
+ | {
39
+ items: NonEmptyVecString;
40
+ state: "known";
41
+ }
42
+ | {
43
+ coverageKey: CoverageKey;
44
+ state: "absent";
45
+ }
46
+ | {
47
+ items: string[];
48
+ reason: StateReason;
49
+ state: "partial";
50
+ }
51
+ | {
52
+ reason: StateReason;
53
+ state: "unknown";
54
+ }
55
+ | {
56
+ capability: Capability;
57
+ state: "unsupported";
58
+ };
59
+ /**
60
+ * @minItems 1
61
+ */
62
+ export type NonEmptyVecString = [string, ...string[]];
63
+ export type CoverageKey = string;
64
+ export type StateReason = string;
65
+ export type Capability = string;
66
+ /**
67
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
68
+ * `source-null`; only `Absent` carries a complete-coverage witness.
69
+ */
70
+ export type FactState =
71
+ | {
72
+ source?: SourceRef | null;
73
+ state: "known";
74
+ value: string;
75
+ }
76
+ | {
77
+ reason: StateReason;
78
+ source?: SourceRef | null;
79
+ state: "unknown";
80
+ }
81
+ | {
82
+ coverageKey: CoverageKey;
83
+ state: "absent";
84
+ }
85
+ | {
86
+ capability: Capability;
87
+ source?: SourceRef | null;
88
+ state: "unsupported";
89
+ };
90
+ export type LogicalSourceAddress = string;
91
+ /**
92
+ * Shared collection state. `Known` is non-empty; absence requires complete
93
+ * source coverage and is never inferred from a missing row.
94
+ */
95
+ export type CollectionState3 =
96
+ | {
97
+ items: NonEmptyVec_QuestEvidenceLink;
98
+ state: "known";
99
+ }
100
+ | {
101
+ coverageKey: CoverageKey;
102
+ state: "absent";
103
+ }
104
+ | {
105
+ items: QuestEvidenceLink[];
106
+ reason: StateReason;
107
+ state: "partial";
108
+ }
109
+ | {
110
+ reason: StateReason;
111
+ state: "unknown";
112
+ }
113
+ | {
114
+ capability: Capability;
115
+ state: "unsupported";
116
+ };
117
+ /**
118
+ * @minItems 1
119
+ */
120
+ export type NonEmptyVec_QuestEvidenceLink = [QuestEvidenceLink, ...QuestEvidenceLink[]];
121
+ /**
122
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
123
+ * `source-null`; only `Absent` carries a complete-coverage witness.
124
+ */
125
+ export type FactState2 =
126
+ | {
127
+ source?: SourceRef | null;
128
+ state: "known";
129
+ value: RawValue;
130
+ }
131
+ | {
132
+ reason: StateReason;
133
+ source?: SourceRef | null;
134
+ state: "unknown";
135
+ }
136
+ | {
137
+ coverageKey: CoverageKey;
138
+ state: "absent";
139
+ }
140
+ | {
141
+ capability: Capability;
142
+ source?: SourceRef | null;
143
+ state: "unsupported";
144
+ };
145
+ /**
146
+ * A scalar source observation that preserves the source value kind.
147
+ */
148
+ export type RawScalar =
149
+ | {
150
+ kind: "integer";
151
+ value: SafeInt64;
152
+ }
153
+ | {
154
+ kind: "real";
155
+ value: number;
156
+ }
157
+ | {
158
+ kind: "text";
159
+ value: string;
160
+ }
161
+ | {
162
+ kind: "boolean";
163
+ value: boolean;
164
+ }
165
+ | {
166
+ kind: "bytes";
167
+ value: number[];
168
+ }
169
+ | {
170
+ kind: "source-null";
171
+ };
172
+ export type SafeInt64 = number;
173
+
174
+ /**
175
+ * Bounded pack of Quest evidence pages keyed by stable page key.
176
+ */
177
+ export interface QuestEvidencePack {
178
+ contractVersion: "2.0";
179
+ format: "mapletip.quest-evidence-pack-2";
180
+ records: {
181
+ [k: string]: QuestEvidencePage | undefined;
182
+ };
183
+ scope: BuildScope;
184
+ }
185
+ /**
186
+ * Lazy evidence page for a Quest or Quest-owned relationship.
187
+ */
188
+ export interface QuestEvidencePage {
189
+ occurrences: CollectionState;
190
+ recordKey: string;
191
+ }
192
+ /**
193
+ * Evidence occurrence for a source-backed Quest fact.
194
+ */
195
+ export interface QuestEvidenceOccurrence {
196
+ authorityReference: CollectionState2;
197
+ confidence: FactState;
198
+ fieldName: string;
199
+ links: CollectionState3;
200
+ logicalAddress: LogicalSourceAddress;
201
+ occurrenceKey: string;
202
+ /**
203
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
204
+ * `source-null`; only `Absent` carries a complete-coverage witness.
205
+ */
206
+ sourceLayout:
207
+ | {
208
+ source?: SourceRef | null;
209
+ state: "known";
210
+ value: string;
211
+ }
212
+ | {
213
+ reason: StateReason;
214
+ source?: SourceRef | null;
215
+ state: "unknown";
216
+ }
217
+ | {
218
+ coverageKey: CoverageKey;
219
+ state: "absent";
220
+ }
221
+ | {
222
+ capability: Capability;
223
+ source?: SourceRef | null;
224
+ state: "unsupported";
225
+ };
226
+ sourceValue: FactState2;
227
+ transform: FactState;
228
+ }
229
+ /**
230
+ * Source attribution for a fact or raw observation.
231
+ */
232
+ export interface SourceRef {
233
+ /**
234
+ * Optional logical address within the source; never a local file path.
235
+ */
236
+ logicalAddress?: LogicalSourceAddress | null;
237
+ /**
238
+ * Source family or source kind, preserved as supplied by the producer.
239
+ */
240
+ sourceKind: string;
241
+ }
242
+ /**
243
+ * Evidence link to an exact-build public Quest record or page.
244
+ */
245
+ export interface QuestEvidenceLink {
246
+ recordKey: string;
247
+ relation: string;
248
+ }
249
+ /**
250
+ * A raw value and its optional source attribution.
251
+ */
252
+ export interface RawValue {
253
+ scalar: RawScalar;
254
+ source?: SourceRef | null;
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
+ }