@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,243 @@
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_ItemEquipmentEvidenceOccurrence;
10
+ state: "known";
11
+ }
12
+ | {
13
+ coverageKey: CoverageKey;
14
+ state: "absent";
15
+ }
16
+ | {
17
+ items: ItemEquipmentEvidenceOccurrence[];
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_ItemEquipmentEvidenceOccurrence = [
33
+ ItemEquipmentEvidenceOccurrence,
34
+ ...ItemEquipmentEvidenceOccurrence[]
35
+ ];
36
+ /**
37
+ * Shared collection state. `Known` is non-empty; absence requires complete
38
+ * source coverage and is never inferred from a missing row.
39
+ */
40
+ export type CollectionState2 =
41
+ | {
42
+ items: NonEmptyVecString;
43
+ state: "known";
44
+ }
45
+ | {
46
+ coverageKey: CoverageKey;
47
+ state: "absent";
48
+ }
49
+ | {
50
+ items: string[];
51
+ reason: StateReason;
52
+ state: "partial";
53
+ }
54
+ | {
55
+ reason: StateReason;
56
+ state: "unknown";
57
+ }
58
+ | {
59
+ capability: Capability;
60
+ state: "unsupported";
61
+ };
62
+ /**
63
+ * @minItems 1
64
+ */
65
+ export type NonEmptyVecString = [string, ...string[]];
66
+ export type CoverageKey = string;
67
+ export type StateReason = string;
68
+ export type Capability = string;
69
+ /**
70
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
71
+ * `source-null`; only `Absent` carries a complete-coverage witness.
72
+ */
73
+ export type FactState =
74
+ | {
75
+ source?: SourceRef | null;
76
+ state: "known";
77
+ value: string;
78
+ }
79
+ | {
80
+ reason: StateReason;
81
+ source?: SourceRef | null;
82
+ state: "unknown";
83
+ }
84
+ | {
85
+ coverageKey: CoverageKey;
86
+ state: "absent";
87
+ }
88
+ | {
89
+ capability: Capability;
90
+ source?: SourceRef | null;
91
+ state: "unsupported";
92
+ };
93
+ export type LogicalSourceAddress = string;
94
+ export type SafeInt64 = number;
95
+ /**
96
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
97
+ * `source-null`; only `Absent` carries a complete-coverage witness.
98
+ */
99
+ export type FactState2 =
100
+ | {
101
+ source?: SourceRef | null;
102
+ state: "known";
103
+ value: RawValue;
104
+ }
105
+ | {
106
+ reason: StateReason;
107
+ source?: SourceRef | null;
108
+ state: "unknown";
109
+ }
110
+ | {
111
+ coverageKey: CoverageKey;
112
+ state: "absent";
113
+ }
114
+ | {
115
+ capability: Capability;
116
+ source?: SourceRef | null;
117
+ state: "unsupported";
118
+ };
119
+ /**
120
+ * A scalar source observation that preserves the source value kind.
121
+ */
122
+ export type RawScalar =
123
+ | {
124
+ kind: "integer";
125
+ value: SafeInt64;
126
+ }
127
+ | {
128
+ kind: "real";
129
+ value: number;
130
+ }
131
+ | {
132
+ kind: "text";
133
+ value: string;
134
+ }
135
+ | {
136
+ kind: "boolean";
137
+ value: boolean;
138
+ }
139
+ | {
140
+ kind: "bytes";
141
+ value: number[];
142
+ }
143
+ | {
144
+ kind: "source-null";
145
+ };
146
+ export type EntityKey = string;
147
+
148
+ export interface EquipmentEvidencePack {
149
+ contractVersion: "2.0";
150
+ format: "equipment-evidence-page/1";
151
+ records: {
152
+ [k: string]: EquipmentEvidencePage | undefined;
153
+ };
154
+ scope: BuildScope;
155
+ }
156
+ export interface EquipmentEvidencePage {
157
+ occurrences: CollectionState;
158
+ owner: EntityKey;
159
+ }
160
+ export interface ItemEquipmentEvidenceOccurrence {
161
+ authority: CollectionState2;
162
+ confidence: FactState;
163
+ derivation?: EvidenceDerivation | null;
164
+ fieldPath: string;
165
+ /**
166
+ * Shared fact state. SQL NULL is represented by `Unknown` with reason
167
+ * `source-null`; only `Absent` carries a complete-coverage witness.
168
+ */
169
+ locale:
170
+ | {
171
+ source?: SourceRef | null;
172
+ state: "known";
173
+ value: string;
174
+ }
175
+ | {
176
+ reason: StateReason;
177
+ source?: SourceRef | null;
178
+ state: "unknown";
179
+ }
180
+ | {
181
+ coverageKey: CoverageKey;
182
+ state: "absent";
183
+ }
184
+ | {
185
+ capability: Capability;
186
+ source?: SourceRef | null;
187
+ state: "unsupported";
188
+ };
189
+ occurrenceKey: string;
190
+ sourceAddress: EvidenceSourceAddress;
191
+ sourceValue: FactState2;
192
+ transform: FactState;
193
+ }
194
+ /**
195
+ * Source attribution for a fact or raw observation.
196
+ */
197
+ export interface SourceRef {
198
+ /**
199
+ * Optional logical address within the source; never a local file path.
200
+ */
201
+ logicalAddress?: LogicalSourceAddress | null;
202
+ /**
203
+ * Source family or source kind, preserved as supplied by the producer.
204
+ */
205
+ sourceKind: string;
206
+ }
207
+ export interface EvidenceDerivation {
208
+ authority: string;
209
+ derivation: string;
210
+ formula: string;
211
+ }
212
+ /**
213
+ * Exact, logical `MFv1` source address retained on detail and evidence occurrences.
214
+ */
215
+ export interface EvidenceSourceAddress {
216
+ imgPath: LogicalSourceAddress;
217
+ namespace: string;
218
+ ordinal?: SafeInt64 | null;
219
+ propertyPath: string;
220
+ recordKey?: string | null;
221
+ sourceId: string;
222
+ }
223
+ /**
224
+ * A raw value and its optional source attribution.
225
+ */
226
+ export interface RawValue {
227
+ scalar: RawScalar;
228
+ source?: SourceRef | null;
229
+ }
230
+ /**
231
+ * Build scope specifying the game family and concrete build identity.
232
+ */
233
+ export interface BuildScope {
234
+ /**
235
+ * Exact build identity (e.g., 'gms-v83', 'cw-cot2').
236
+ */
237
+ build_id: string;
238
+ /**
239
+ * Family identity (e.g., 'gms', 'classic-world').
240
+ */
241
+ family_id: string;
242
+ [k: string]: unknown | undefined;
243
+ }