@gameslate/sdk 0.0.0-stage → 0.3.1

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 (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +38 -2
  3. package/bin/gameslate-plugin.mjs +26 -0
  4. package/build/build-plugin.mjs +127 -0
  5. package/lib/assets.d.ts +1788 -0
  6. package/lib/assets.js +107 -0
  7. package/lib/bytes.d.ts +33 -0
  8. package/lib/bytes.js +89 -0
  9. package/lib/catalogue.d.ts +1228 -0
  10. package/lib/catalogue.js +305 -0
  11. package/lib/chips.d.ts +18 -0
  12. package/lib/chips.js +28 -0
  13. package/lib/condition.d.ts +58 -0
  14. package/lib/condition.js +125 -0
  15. package/lib/index.d.ts +16 -0
  16. package/lib/index.js +16 -0
  17. package/lib/logic.d.ts +68 -0
  18. package/lib/logic.js +194 -0
  19. package/lib/navigation.d.ts +139 -0
  20. package/lib/navigation.js +38 -0
  21. package/lib/pack.d.ts +933 -0
  22. package/lib/pack.js +29 -0
  23. package/lib/pins.d.ts +19 -0
  24. package/lib/pins.js +35 -0
  25. package/lib/plugin/contract.d.ts +111 -0
  26. package/lib/plugin/contract.js +1 -0
  27. package/lib/plugin/index.d.ts +3 -0
  28. package/lib/plugin/index.js +9 -0
  29. package/lib/plugin/sandbox-guest.d.ts +12 -0
  30. package/lib/plugin/sandbox-guest.js +128 -0
  31. package/lib/plugin/seqlock.d.ts +8 -0
  32. package/lib/plugin/seqlock.js +19 -0
  33. package/lib/plugin-manifest.d.ts +131 -0
  34. package/lib/plugin-manifest.js +54 -0
  35. package/lib/plugins-api.d.ts +445 -0
  36. package/lib/plugins-api.js +38 -0
  37. package/lib/registry.d.ts +2231 -0
  38. package/lib/registry.js +170 -0
  39. package/lib/sandbox-protocol.d.ts +1363 -0
  40. package/lib/sandbox-protocol.js +39 -0
  41. package/lib/status.d.ts +24 -0
  42. package/lib/status.js +75 -0
  43. package/lib/types.d.ts +2684 -0
  44. package/lib/types.js +282 -0
  45. package/lib/views.d.ts +204 -0
  46. package/lib/views.js +35 -0
  47. package/package.json +53 -3
@@ -0,0 +1,1228 @@
1
+ import { z } from 'zod';
2
+ import type { Condition } from './condition.js';
3
+ export declare const ItemSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ label: z.ZodString;
6
+ /** local-assets icon id (`/local-assets/<game>/icons/<icon>.webp`) */
7
+ icon: z.ZodOptional<z.ZodString>;
8
+ category: z.ZodOptional<z.ZodString>;
9
+ /** short text for slot fallbacks when no icon is extracted */
10
+ short: z.ZodOptional<z.ZodString>;
11
+ /** where/how it's obtained, spoiler-light */
12
+ source: z.ZodOptional<z.ZodString>;
13
+ }, "strict", z.ZodTypeAny, {
14
+ label: string;
15
+ id: string;
16
+ icon?: string | undefined;
17
+ source?: string | undefined;
18
+ category?: string | undefined;
19
+ short?: string | undefined;
20
+ }, {
21
+ label: string;
22
+ id: string;
23
+ icon?: string | undefined;
24
+ source?: string | undefined;
25
+ category?: string | undefined;
26
+ short?: string | undefined;
27
+ }>;
28
+ export type CatalogueItem = z.infer<typeof ItemSchema>;
29
+ export declare const CounterSchema: z.ZodObject<{
30
+ id: z.ZodString;
31
+ label: z.ZodString;
32
+ icon: z.ZodOptional<z.ZodString>;
33
+ /** fixed maximum, or another counter id holding it */
34
+ max: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
35
+ /** values → display text (e.g. wallet tier 0/1/2 → 99/200/500) */
36
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
37
+ }, "strict", z.ZodTypeAny, {
38
+ label: string;
39
+ id: string;
40
+ icon?: string | undefined;
41
+ max?: string | number | undefined;
42
+ display?: Record<string, string> | undefined;
43
+ }, {
44
+ label: string;
45
+ id: string;
46
+ icon?: string | undefined;
47
+ max?: string | number | undefined;
48
+ display?: Record<string, string> | undefined;
49
+ }>;
50
+ export type CatalogueCounter = z.infer<typeof CounterSchema>;
51
+ export declare const LayoutSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
52
+ kind: z.ZodLiteral<"slotGrid">;
53
+ id: z.ZodString;
54
+ title: z.ZodString;
55
+ columns: z.ZodNumber;
56
+ /** item ids in display order */
57
+ slots: z.ZodArray<z.ZodString, "many">;
58
+ }, "strict", z.ZodTypeAny, {
59
+ id: string;
60
+ title: string;
61
+ kind: "slotGrid";
62
+ columns: number;
63
+ slots: string[];
64
+ }, {
65
+ id: string;
66
+ title: string;
67
+ kind: "slotGrid";
68
+ columns: number;
69
+ slots: string[];
70
+ }>, z.ZodObject<{
71
+ kind: z.ZodLiteral<"counters">;
72
+ id: z.ZodString;
73
+ title: z.ZodString;
74
+ counters: z.ZodArray<z.ZodString, "many">;
75
+ }, "strict", z.ZodTypeAny, {
76
+ id: string;
77
+ title: string;
78
+ counters: string[];
79
+ kind: "counters";
80
+ }, {
81
+ id: string;
82
+ title: string;
83
+ counters: string[];
84
+ kind: "counters";
85
+ }>]>;
86
+ export type CatalogueLayout = z.infer<typeof LayoutSchema>;
87
+ export declare const MissionStepSchema: z.ZodObject<{
88
+ id: z.ZodString;
89
+ label: z.ZodString;
90
+ done: z.ZodType<Condition, z.ZodTypeDef, Condition>;
91
+ }, "strict", z.ZodTypeAny, {
92
+ label: string;
93
+ id: string;
94
+ done: Condition;
95
+ }, {
96
+ label: string;
97
+ id: string;
98
+ done: Condition;
99
+ }>;
100
+ export declare const MissionSchema: z.ZodObject<{
101
+ id: z.ZodString;
102
+ title: z.ZodString;
103
+ group: z.ZodEnum<["main", "side"]>;
104
+ /** heading this mission is shown under (e.g. "Spiritual Stones", "House of Skulltula") */
105
+ section: z.ZodOptional<z.ZodString>;
106
+ location: z.ZodOptional<z.ZodString>;
107
+ detail: z.ZodOptional<z.ZodString>;
108
+ done: z.ZodType<Condition, z.ZodTypeDef, Condition>;
109
+ /** shown only while this holds (e.g. adult-only quests) */
110
+ availableWhen: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
111
+ progress: z.ZodOptional<z.ZodObject<{
112
+ counter: z.ZodString;
113
+ target: z.ZodNumber;
114
+ }, "strict", z.ZodTypeAny, {
115
+ target: number;
116
+ counter: string;
117
+ }, {
118
+ target: number;
119
+ counter: string;
120
+ }>>;
121
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
+ id: z.ZodString;
123
+ label: z.ZodString;
124
+ done: z.ZodType<Condition, z.ZodTypeDef, Condition>;
125
+ }, "strict", z.ZodTypeAny, {
126
+ label: string;
127
+ id: string;
128
+ done: Condition;
129
+ }, {
130
+ label: string;
131
+ id: string;
132
+ done: Condition;
133
+ }>, "many">>;
134
+ /** prompt for the "Ask Guide" button */
135
+ ask: z.ZodOptional<z.ZodString>;
136
+ }, "strict", z.ZodTypeAny, {
137
+ id: string;
138
+ title: string;
139
+ done: Condition;
140
+ group: "main" | "side";
141
+ detail?: string | undefined;
142
+ ask?: string | undefined;
143
+ location?: string | undefined;
144
+ section?: string | undefined;
145
+ availableWhen?: Condition | undefined;
146
+ progress?: {
147
+ target: number;
148
+ counter: string;
149
+ } | undefined;
150
+ steps?: {
151
+ label: string;
152
+ id: string;
153
+ done: Condition;
154
+ }[] | undefined;
155
+ }, {
156
+ id: string;
157
+ title: string;
158
+ done: Condition;
159
+ group: "main" | "side";
160
+ detail?: string | undefined;
161
+ ask?: string | undefined;
162
+ location?: string | undefined;
163
+ section?: string | undefined;
164
+ availableWhen?: Condition | undefined;
165
+ progress?: {
166
+ target: number;
167
+ counter: string;
168
+ } | undefined;
169
+ steps?: {
170
+ label: string;
171
+ id: string;
172
+ done: Condition;
173
+ }[] | undefined;
174
+ }>;
175
+ export type CatalogueMission = z.infer<typeof MissionSchema>;
176
+ export declare const ReferenceEntrySchema: z.ZodObject<{
177
+ id: z.ZodString;
178
+ title: z.ZodString;
179
+ badge: z.ZodOptional<z.ZodString>;
180
+ /** e.g. ocarina note glyphs: up/down/left/right/a */
181
+ sequence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
182
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
183
+ rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
184
+ label: z.ZodString;
185
+ detail: z.ZodString;
186
+ }, "strict", z.ZodTypeAny, {
187
+ label: string;
188
+ detail: string;
189
+ }, {
190
+ label: string;
191
+ detail: string;
192
+ }>, "many">>;
193
+ /** hidden (or shown greyed under "show all") until this holds; absent = always shown */
194
+ revealWhen: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
195
+ }, "strict", z.ZodTypeAny, {
196
+ id: string;
197
+ title: string;
198
+ notes?: string[] | undefined;
199
+ badge?: string | undefined;
200
+ sequence?: string[] | undefined;
201
+ rows?: {
202
+ label: string;
203
+ detail: string;
204
+ }[] | undefined;
205
+ revealWhen?: Condition | undefined;
206
+ }, {
207
+ id: string;
208
+ title: string;
209
+ notes?: string[] | undefined;
210
+ badge?: string | undefined;
211
+ sequence?: string[] | undefined;
212
+ rows?: {
213
+ label: string;
214
+ detail: string;
215
+ }[] | undefined;
216
+ revealWhen?: Condition | undefined;
217
+ }>;
218
+ export type ReferenceEntry = z.infer<typeof ReferenceEntrySchema>;
219
+ export declare const ReferenceSectionSchema: z.ZodObject<{
220
+ id: z.ZodString;
221
+ title: z.ZodString;
222
+ badge: z.ZodOptional<z.ZodString>;
223
+ defaultOpen: z.ZodOptional<z.ZodBoolean>;
224
+ entries: z.ZodArray<z.ZodObject<{
225
+ id: z.ZodString;
226
+ title: z.ZodString;
227
+ badge: z.ZodOptional<z.ZodString>;
228
+ /** e.g. ocarina note glyphs: up/down/left/right/a */
229
+ sequence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
230
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
231
+ rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
232
+ label: z.ZodString;
233
+ detail: z.ZodString;
234
+ }, "strict", z.ZodTypeAny, {
235
+ label: string;
236
+ detail: string;
237
+ }, {
238
+ label: string;
239
+ detail: string;
240
+ }>, "many">>;
241
+ /** hidden (or shown greyed under "show all") until this holds; absent = always shown */
242
+ revealWhen: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
243
+ }, "strict", z.ZodTypeAny, {
244
+ id: string;
245
+ title: string;
246
+ notes?: string[] | undefined;
247
+ badge?: string | undefined;
248
+ sequence?: string[] | undefined;
249
+ rows?: {
250
+ label: string;
251
+ detail: string;
252
+ }[] | undefined;
253
+ revealWhen?: Condition | undefined;
254
+ }, {
255
+ id: string;
256
+ title: string;
257
+ notes?: string[] | undefined;
258
+ badge?: string | undefined;
259
+ sequence?: string[] | undefined;
260
+ rows?: {
261
+ label: string;
262
+ detail: string;
263
+ }[] | undefined;
264
+ revealWhen?: Condition | undefined;
265
+ }>, "many">;
266
+ }, "strict", z.ZodTypeAny, {
267
+ entries: {
268
+ id: string;
269
+ title: string;
270
+ notes?: string[] | undefined;
271
+ badge?: string | undefined;
272
+ sequence?: string[] | undefined;
273
+ rows?: {
274
+ label: string;
275
+ detail: string;
276
+ }[] | undefined;
277
+ revealWhen?: Condition | undefined;
278
+ }[];
279
+ id: string;
280
+ title: string;
281
+ badge?: string | undefined;
282
+ defaultOpen?: boolean | undefined;
283
+ }, {
284
+ entries: {
285
+ id: string;
286
+ title: string;
287
+ notes?: string[] | undefined;
288
+ badge?: string | undefined;
289
+ sequence?: string[] | undefined;
290
+ rows?: {
291
+ label: string;
292
+ detail: string;
293
+ }[] | undefined;
294
+ revealWhen?: Condition | undefined;
295
+ }[];
296
+ id: string;
297
+ title: string;
298
+ badge?: string | undefined;
299
+ defaultOpen?: boolean | undefined;
300
+ }>;
301
+ export type ReferenceSection = z.infer<typeof ReferenceSectionSchema>;
302
+ export declare const CollectibleEntrySchema: z.ZodObject<{
303
+ id: z.ZodString;
304
+ name: z.ZodString;
305
+ /** location id (registry) and a display name for grouping */
306
+ locationId: z.ZodOptional<z.ZodString>;
307
+ locationName: z.ZodOptional<z.ZodString>;
308
+ /** absent = this entry's state isn't tracked (shown as "not tracked", never "missing") */
309
+ collectedBy: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
310
+ /** alternatives, each a list of requirements: [["Child", "a weapon", "at night"]] */
311
+ needs: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
312
+ /** map pin to wayfind to, when one exists */
313
+ pinId: z.ZodOptional<z.ZodString>;
314
+ }, "strict", z.ZodTypeAny, {
315
+ id: string;
316
+ name: string;
317
+ locationId?: string | undefined;
318
+ pinId?: string | undefined;
319
+ collectedBy?: Condition | undefined;
320
+ locationName?: string | undefined;
321
+ needs?: string[][] | undefined;
322
+ }, {
323
+ id: string;
324
+ name: string;
325
+ locationId?: string | undefined;
326
+ pinId?: string | undefined;
327
+ collectedBy?: Condition | undefined;
328
+ locationName?: string | undefined;
329
+ needs?: string[][] | undefined;
330
+ }>;
331
+ export type CollectibleEntry = z.infer<typeof CollectibleEntrySchema>;
332
+ export declare const CollectibleSetSchema: z.ZodObject<{
333
+ id: z.ZodString;
334
+ title: z.ZodString;
335
+ /** singular noun for prompts ("Gold Skulltula") */
336
+ noun: z.ZodString;
337
+ icon: z.ZodOptional<z.ZodString>;
338
+ /** counter that totals the set (opens the checklist from Inventory) */
339
+ counter: z.ZodOptional<z.ZodString>;
340
+ /** entries declared here… */
341
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
342
+ id: z.ZodString;
343
+ name: z.ZodString;
344
+ /** location id (registry) and a display name for grouping */
345
+ locationId: z.ZodOptional<z.ZodString>;
346
+ locationName: z.ZodOptional<z.ZodString>;
347
+ /** absent = this entry's state isn't tracked (shown as "not tracked", never "missing") */
348
+ collectedBy: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
349
+ /** alternatives, each a list of requirements: [["Child", "a weapon", "at night"]] */
350
+ needs: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
351
+ /** map pin to wayfind to, when one exists */
352
+ pinId: z.ZodOptional<z.ZodString>;
353
+ }, "strict", z.ZodTypeAny, {
354
+ id: string;
355
+ name: string;
356
+ locationId?: string | undefined;
357
+ pinId?: string | undefined;
358
+ collectedBy?: Condition | undefined;
359
+ locationName?: string | undefined;
360
+ needs?: string[][] | undefined;
361
+ }, {
362
+ id: string;
363
+ name: string;
364
+ locationId?: string | undefined;
365
+ pinId?: string | undefined;
366
+ collectedBy?: Condition | undefined;
367
+ locationName?: string | undefined;
368
+ needs?: string[][] | undefined;
369
+ }>, "many">>;
370
+ /** …or loaded at runtime from a locally generated file (`local-assets/<game>/<file>`) */
371
+ localSource: z.ZodOptional<z.ZodObject<{
372
+ file: z.ZodString;
373
+ key: z.ZodString;
374
+ }, "strict", z.ZodTypeAny, {
375
+ key: string;
376
+ file: string;
377
+ }, {
378
+ key: string;
379
+ file: string;
380
+ }>>;
381
+ }, "strict", z.ZodTypeAny, {
382
+ id: string;
383
+ title: string;
384
+ noun: string;
385
+ icon?: string | undefined;
386
+ entries?: {
387
+ id: string;
388
+ name: string;
389
+ locationId?: string | undefined;
390
+ pinId?: string | undefined;
391
+ collectedBy?: Condition | undefined;
392
+ locationName?: string | undefined;
393
+ needs?: string[][] | undefined;
394
+ }[] | undefined;
395
+ counter?: string | undefined;
396
+ localSource?: {
397
+ key: string;
398
+ file: string;
399
+ } | undefined;
400
+ }, {
401
+ id: string;
402
+ title: string;
403
+ noun: string;
404
+ icon?: string | undefined;
405
+ entries?: {
406
+ id: string;
407
+ name: string;
408
+ locationId?: string | undefined;
409
+ pinId?: string | undefined;
410
+ collectedBy?: Condition | undefined;
411
+ locationName?: string | undefined;
412
+ needs?: string[][] | undefined;
413
+ }[] | undefined;
414
+ counter?: string | undefined;
415
+ localSource?: {
416
+ key: string;
417
+ file: string;
418
+ } | undefined;
419
+ }>;
420
+ export type CollectibleSet = z.infer<typeof CollectibleSetSchema>;
421
+ export declare const ChipSchema: z.ZodObject<{
422
+ id: z.ZodString;
423
+ label: z.ZodString;
424
+ prompt: z.ZodString;
425
+ when: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
426
+ }, "strict", z.ZodTypeAny, {
427
+ label: string;
428
+ id: string;
429
+ prompt: string;
430
+ when?: Condition | undefined;
431
+ }, {
432
+ label: string;
433
+ id: string;
434
+ prompt: string;
435
+ when?: Condition | undefined;
436
+ }>;
437
+ export type CatalogueChip = z.infer<typeof ChipSchema>;
438
+ /**
439
+ * Status rules for registry map pins the pack knows more about than the registry does
440
+ * (e.g. "an Owl Statue here is activated when owl bit N is set"). A rule applies to every pin it
441
+ * matches; matching fields combine with AND.
442
+ */
443
+ export declare const PinRuleSchema: z.ZodEffects<z.ZodObject<{
444
+ id: z.ZodString;
445
+ match: z.ZodEffects<z.ZodObject<{
446
+ at: z.ZodOptional<z.ZodString>;
447
+ kind: z.ZodOptional<z.ZodString>;
448
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
449
+ label: z.ZodOptional<z.ZodString>;
450
+ labelContains: z.ZodOptional<z.ZodString>;
451
+ }, "strict", z.ZodTypeAny, {
452
+ label?: string | undefined;
453
+ at?: string | undefined;
454
+ kind?: string | undefined;
455
+ ids?: string[] | undefined;
456
+ labelContains?: string | undefined;
457
+ }, {
458
+ label?: string | undefined;
459
+ at?: string | undefined;
460
+ kind?: string | undefined;
461
+ ids?: string[] | undefined;
462
+ labelContains?: string | undefined;
463
+ }>, {
464
+ label?: string | undefined;
465
+ at?: string | undefined;
466
+ kind?: string | undefined;
467
+ ids?: string[] | undefined;
468
+ labelContains?: string | undefined;
469
+ }, {
470
+ label?: string | undefined;
471
+ at?: string | undefined;
472
+ kind?: string | undefined;
473
+ ids?: string[] | undefined;
474
+ labelContains?: string | undefined;
475
+ }>;
476
+ collectedBy: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
477
+ hiddenWhen: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
478
+ icon: z.ZodOptional<z.ZodString>;
479
+ }, "strict", z.ZodTypeAny, {
480
+ id: string;
481
+ match: {
482
+ label?: string | undefined;
483
+ at?: string | undefined;
484
+ kind?: string | undefined;
485
+ ids?: string[] | undefined;
486
+ labelContains?: string | undefined;
487
+ };
488
+ icon?: string | undefined;
489
+ collectedBy?: Condition | undefined;
490
+ hiddenWhen?: Condition | undefined;
491
+ }, {
492
+ id: string;
493
+ match: {
494
+ label?: string | undefined;
495
+ at?: string | undefined;
496
+ kind?: string | undefined;
497
+ ids?: string[] | undefined;
498
+ labelContains?: string | undefined;
499
+ };
500
+ icon?: string | undefined;
501
+ collectedBy?: Condition | undefined;
502
+ hiddenWhen?: Condition | undefined;
503
+ }>, {
504
+ id: string;
505
+ match: {
506
+ label?: string | undefined;
507
+ at?: string | undefined;
508
+ kind?: string | undefined;
509
+ ids?: string[] | undefined;
510
+ labelContains?: string | undefined;
511
+ };
512
+ icon?: string | undefined;
513
+ collectedBy?: Condition | undefined;
514
+ hiddenWhen?: Condition | undefined;
515
+ }, {
516
+ id: string;
517
+ match: {
518
+ label?: string | undefined;
519
+ at?: string | undefined;
520
+ kind?: string | undefined;
521
+ ids?: string[] | undefined;
522
+ labelContains?: string | undefined;
523
+ };
524
+ icon?: string | undefined;
525
+ collectedBy?: Condition | undefined;
526
+ hiddenWhen?: Condition | undefined;
527
+ }>;
528
+ export type PinRule = z.infer<typeof PinRuleSchema>;
529
+ /** A kind of map pin the player can show or hide (e.g. Doom's ammo, health bonuses). */
530
+ export declare const PinCategorySchema: z.ZodObject<{
531
+ id: z.ZodString;
532
+ label: z.ZodString;
533
+ /** shown until the player says otherwise */
534
+ shownByDefault: z.ZodBoolean;
535
+ /** the map glyph for its pins: key, weapon, health, armor, ammo, powerup, bonus, secret, door, switch, item */
536
+ icon: z.ZodOptional<z.ZodString>;
537
+ }, "strip", z.ZodTypeAny, {
538
+ label: string;
539
+ id: string;
540
+ shownByDefault: boolean;
541
+ icon?: string | undefined;
542
+ }, {
543
+ label: string;
544
+ id: string;
545
+ shownByDefault: boolean;
546
+ icon?: string | undefined;
547
+ }>;
548
+ export type PinCategory = z.infer<typeof PinCategorySchema>;
549
+ export declare const CatalogueSchema: z.ZodObject<{
550
+ items: z.ZodArray<z.ZodObject<{
551
+ id: z.ZodString;
552
+ label: z.ZodString;
553
+ /** local-assets icon id (`/local-assets/<game>/icons/<icon>.webp`) */
554
+ icon: z.ZodOptional<z.ZodString>;
555
+ category: z.ZodOptional<z.ZodString>;
556
+ /** short text for slot fallbacks when no icon is extracted */
557
+ short: z.ZodOptional<z.ZodString>;
558
+ /** where/how it's obtained, spoiler-light */
559
+ source: z.ZodOptional<z.ZodString>;
560
+ }, "strict", z.ZodTypeAny, {
561
+ label: string;
562
+ id: string;
563
+ icon?: string | undefined;
564
+ source?: string | undefined;
565
+ category?: string | undefined;
566
+ short?: string | undefined;
567
+ }, {
568
+ label: string;
569
+ id: string;
570
+ icon?: string | undefined;
571
+ source?: string | undefined;
572
+ category?: string | undefined;
573
+ short?: string | undefined;
574
+ }>, "many">;
575
+ counters: z.ZodArray<z.ZodObject<{
576
+ id: z.ZodString;
577
+ label: z.ZodString;
578
+ icon: z.ZodOptional<z.ZodString>;
579
+ /** fixed maximum, or another counter id holding it */
580
+ max: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
581
+ /** values → display text (e.g. wallet tier 0/1/2 → 99/200/500) */
582
+ display: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
583
+ }, "strict", z.ZodTypeAny, {
584
+ label: string;
585
+ id: string;
586
+ icon?: string | undefined;
587
+ max?: string | number | undefined;
588
+ display?: Record<string, string> | undefined;
589
+ }, {
590
+ label: string;
591
+ id: string;
592
+ icon?: string | undefined;
593
+ max?: string | number | undefined;
594
+ display?: Record<string, string> | undefined;
595
+ }>, "many">;
596
+ /** flag sets the pack's decoder streams (bit conditions may only reference these) */
597
+ flagSets: z.ZodArray<z.ZodString, "many">;
598
+ inventoryLayouts: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
599
+ kind: z.ZodLiteral<"slotGrid">;
600
+ id: z.ZodString;
601
+ title: z.ZodString;
602
+ columns: z.ZodNumber;
603
+ /** item ids in display order */
604
+ slots: z.ZodArray<z.ZodString, "many">;
605
+ }, "strict", z.ZodTypeAny, {
606
+ id: string;
607
+ title: string;
608
+ kind: "slotGrid";
609
+ columns: number;
610
+ slots: string[];
611
+ }, {
612
+ id: string;
613
+ title: string;
614
+ kind: "slotGrid";
615
+ columns: number;
616
+ slots: string[];
617
+ }>, z.ZodObject<{
618
+ kind: z.ZodLiteral<"counters">;
619
+ id: z.ZodString;
620
+ title: z.ZodString;
621
+ counters: z.ZodArray<z.ZodString, "many">;
622
+ }, "strict", z.ZodTypeAny, {
623
+ id: string;
624
+ title: string;
625
+ counters: string[];
626
+ kind: "counters";
627
+ }, {
628
+ id: string;
629
+ title: string;
630
+ counters: string[];
631
+ kind: "counters";
632
+ }>]>, "many">;
633
+ missions: z.ZodArray<z.ZodObject<{
634
+ id: z.ZodString;
635
+ title: z.ZodString;
636
+ group: z.ZodEnum<["main", "side"]>;
637
+ /** heading this mission is shown under (e.g. "Spiritual Stones", "House of Skulltula") */
638
+ section: z.ZodOptional<z.ZodString>;
639
+ location: z.ZodOptional<z.ZodString>;
640
+ detail: z.ZodOptional<z.ZodString>;
641
+ done: z.ZodType<Condition, z.ZodTypeDef, Condition>;
642
+ /** shown only while this holds (e.g. adult-only quests) */
643
+ availableWhen: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
644
+ progress: z.ZodOptional<z.ZodObject<{
645
+ counter: z.ZodString;
646
+ target: z.ZodNumber;
647
+ }, "strict", z.ZodTypeAny, {
648
+ target: number;
649
+ counter: string;
650
+ }, {
651
+ target: number;
652
+ counter: string;
653
+ }>>;
654
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
655
+ id: z.ZodString;
656
+ label: z.ZodString;
657
+ done: z.ZodType<Condition, z.ZodTypeDef, Condition>;
658
+ }, "strict", z.ZodTypeAny, {
659
+ label: string;
660
+ id: string;
661
+ done: Condition;
662
+ }, {
663
+ label: string;
664
+ id: string;
665
+ done: Condition;
666
+ }>, "many">>;
667
+ /** prompt for the "Ask Guide" button */
668
+ ask: z.ZodOptional<z.ZodString>;
669
+ }, "strict", z.ZodTypeAny, {
670
+ id: string;
671
+ title: string;
672
+ done: Condition;
673
+ group: "main" | "side";
674
+ detail?: string | undefined;
675
+ ask?: string | undefined;
676
+ location?: string | undefined;
677
+ section?: string | undefined;
678
+ availableWhen?: Condition | undefined;
679
+ progress?: {
680
+ target: number;
681
+ counter: string;
682
+ } | undefined;
683
+ steps?: {
684
+ label: string;
685
+ id: string;
686
+ done: Condition;
687
+ }[] | undefined;
688
+ }, {
689
+ id: string;
690
+ title: string;
691
+ done: Condition;
692
+ group: "main" | "side";
693
+ detail?: string | undefined;
694
+ ask?: string | undefined;
695
+ location?: string | undefined;
696
+ section?: string | undefined;
697
+ availableWhen?: Condition | undefined;
698
+ progress?: {
699
+ target: number;
700
+ counter: string;
701
+ } | undefined;
702
+ steps?: {
703
+ label: string;
704
+ id: string;
705
+ done: Condition;
706
+ }[] | undefined;
707
+ }>, "many">;
708
+ collectibles: z.ZodArray<z.ZodObject<{
709
+ id: z.ZodString;
710
+ title: z.ZodString;
711
+ /** singular noun for prompts ("Gold Skulltula") */
712
+ noun: z.ZodString;
713
+ icon: z.ZodOptional<z.ZodString>;
714
+ /** counter that totals the set (opens the checklist from Inventory) */
715
+ counter: z.ZodOptional<z.ZodString>;
716
+ /** entries declared here… */
717
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
718
+ id: z.ZodString;
719
+ name: z.ZodString;
720
+ /** location id (registry) and a display name for grouping */
721
+ locationId: z.ZodOptional<z.ZodString>;
722
+ locationName: z.ZodOptional<z.ZodString>;
723
+ /** absent = this entry's state isn't tracked (shown as "not tracked", never "missing") */
724
+ collectedBy: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
725
+ /** alternatives, each a list of requirements: [["Child", "a weapon", "at night"]] */
726
+ needs: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
727
+ /** map pin to wayfind to, when one exists */
728
+ pinId: z.ZodOptional<z.ZodString>;
729
+ }, "strict", z.ZodTypeAny, {
730
+ id: string;
731
+ name: string;
732
+ locationId?: string | undefined;
733
+ pinId?: string | undefined;
734
+ collectedBy?: Condition | undefined;
735
+ locationName?: string | undefined;
736
+ needs?: string[][] | undefined;
737
+ }, {
738
+ id: string;
739
+ name: string;
740
+ locationId?: string | undefined;
741
+ pinId?: string | undefined;
742
+ collectedBy?: Condition | undefined;
743
+ locationName?: string | undefined;
744
+ needs?: string[][] | undefined;
745
+ }>, "many">>;
746
+ /** …or loaded at runtime from a locally generated file (`local-assets/<game>/<file>`) */
747
+ localSource: z.ZodOptional<z.ZodObject<{
748
+ file: z.ZodString;
749
+ key: z.ZodString;
750
+ }, "strict", z.ZodTypeAny, {
751
+ key: string;
752
+ file: string;
753
+ }, {
754
+ key: string;
755
+ file: string;
756
+ }>>;
757
+ }, "strict", z.ZodTypeAny, {
758
+ id: string;
759
+ title: string;
760
+ noun: string;
761
+ icon?: string | undefined;
762
+ entries?: {
763
+ id: string;
764
+ name: string;
765
+ locationId?: string | undefined;
766
+ pinId?: string | undefined;
767
+ collectedBy?: Condition | undefined;
768
+ locationName?: string | undefined;
769
+ needs?: string[][] | undefined;
770
+ }[] | undefined;
771
+ counter?: string | undefined;
772
+ localSource?: {
773
+ key: string;
774
+ file: string;
775
+ } | undefined;
776
+ }, {
777
+ id: string;
778
+ title: string;
779
+ noun: string;
780
+ icon?: string | undefined;
781
+ entries?: {
782
+ id: string;
783
+ name: string;
784
+ locationId?: string | undefined;
785
+ pinId?: string | undefined;
786
+ collectedBy?: Condition | undefined;
787
+ locationName?: string | undefined;
788
+ needs?: string[][] | undefined;
789
+ }[] | undefined;
790
+ counter?: string | undefined;
791
+ localSource?: {
792
+ key: string;
793
+ file: string;
794
+ } | undefined;
795
+ }>, "many">;
796
+ reference: z.ZodArray<z.ZodObject<{
797
+ id: z.ZodString;
798
+ title: z.ZodString;
799
+ badge: z.ZodOptional<z.ZodString>;
800
+ defaultOpen: z.ZodOptional<z.ZodBoolean>;
801
+ entries: z.ZodArray<z.ZodObject<{
802
+ id: z.ZodString;
803
+ title: z.ZodString;
804
+ badge: z.ZodOptional<z.ZodString>;
805
+ /** e.g. ocarina note glyphs: up/down/left/right/a */
806
+ sequence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
807
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
808
+ rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
809
+ label: z.ZodString;
810
+ detail: z.ZodString;
811
+ }, "strict", z.ZodTypeAny, {
812
+ label: string;
813
+ detail: string;
814
+ }, {
815
+ label: string;
816
+ detail: string;
817
+ }>, "many">>;
818
+ /** hidden (or shown greyed under "show all") until this holds; absent = always shown */
819
+ revealWhen: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
820
+ }, "strict", z.ZodTypeAny, {
821
+ id: string;
822
+ title: string;
823
+ notes?: string[] | undefined;
824
+ badge?: string | undefined;
825
+ sequence?: string[] | undefined;
826
+ rows?: {
827
+ label: string;
828
+ detail: string;
829
+ }[] | undefined;
830
+ revealWhen?: Condition | undefined;
831
+ }, {
832
+ id: string;
833
+ title: string;
834
+ notes?: string[] | undefined;
835
+ badge?: string | undefined;
836
+ sequence?: string[] | undefined;
837
+ rows?: {
838
+ label: string;
839
+ detail: string;
840
+ }[] | undefined;
841
+ revealWhen?: Condition | undefined;
842
+ }>, "many">;
843
+ }, "strict", z.ZodTypeAny, {
844
+ entries: {
845
+ id: string;
846
+ title: string;
847
+ notes?: string[] | undefined;
848
+ badge?: string | undefined;
849
+ sequence?: string[] | undefined;
850
+ rows?: {
851
+ label: string;
852
+ detail: string;
853
+ }[] | undefined;
854
+ revealWhen?: Condition | undefined;
855
+ }[];
856
+ id: string;
857
+ title: string;
858
+ badge?: string | undefined;
859
+ defaultOpen?: boolean | undefined;
860
+ }, {
861
+ entries: {
862
+ id: string;
863
+ title: string;
864
+ notes?: string[] | undefined;
865
+ badge?: string | undefined;
866
+ sequence?: string[] | undefined;
867
+ rows?: {
868
+ label: string;
869
+ detail: string;
870
+ }[] | undefined;
871
+ revealWhen?: Condition | undefined;
872
+ }[];
873
+ id: string;
874
+ title: string;
875
+ badge?: string | undefined;
876
+ defaultOpen?: boolean | undefined;
877
+ }>, "many">;
878
+ chips: z.ZodArray<z.ZodObject<{
879
+ id: z.ZodString;
880
+ label: z.ZodString;
881
+ prompt: z.ZodString;
882
+ when: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
883
+ }, "strict", z.ZodTypeAny, {
884
+ label: string;
885
+ id: string;
886
+ prompt: string;
887
+ when?: Condition | undefined;
888
+ }, {
889
+ label: string;
890
+ id: string;
891
+ prompt: string;
892
+ when?: Condition | undefined;
893
+ }>, "many">;
894
+ pinRules: z.ZodArray<z.ZodEffects<z.ZodObject<{
895
+ id: z.ZodString;
896
+ match: z.ZodEffects<z.ZodObject<{
897
+ at: z.ZodOptional<z.ZodString>;
898
+ kind: z.ZodOptional<z.ZodString>;
899
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
900
+ label: z.ZodOptional<z.ZodString>;
901
+ labelContains: z.ZodOptional<z.ZodString>;
902
+ }, "strict", z.ZodTypeAny, {
903
+ label?: string | undefined;
904
+ at?: string | undefined;
905
+ kind?: string | undefined;
906
+ ids?: string[] | undefined;
907
+ labelContains?: string | undefined;
908
+ }, {
909
+ label?: string | undefined;
910
+ at?: string | undefined;
911
+ kind?: string | undefined;
912
+ ids?: string[] | undefined;
913
+ labelContains?: string | undefined;
914
+ }>, {
915
+ label?: string | undefined;
916
+ at?: string | undefined;
917
+ kind?: string | undefined;
918
+ ids?: string[] | undefined;
919
+ labelContains?: string | undefined;
920
+ }, {
921
+ label?: string | undefined;
922
+ at?: string | undefined;
923
+ kind?: string | undefined;
924
+ ids?: string[] | undefined;
925
+ labelContains?: string | undefined;
926
+ }>;
927
+ collectedBy: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
928
+ hiddenWhen: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
929
+ icon: z.ZodOptional<z.ZodString>;
930
+ }, "strict", z.ZodTypeAny, {
931
+ id: string;
932
+ match: {
933
+ label?: string | undefined;
934
+ at?: string | undefined;
935
+ kind?: string | undefined;
936
+ ids?: string[] | undefined;
937
+ labelContains?: string | undefined;
938
+ };
939
+ icon?: string | undefined;
940
+ collectedBy?: Condition | undefined;
941
+ hiddenWhen?: Condition | undefined;
942
+ }, {
943
+ id: string;
944
+ match: {
945
+ label?: string | undefined;
946
+ at?: string | undefined;
947
+ kind?: string | undefined;
948
+ ids?: string[] | undefined;
949
+ labelContains?: string | undefined;
950
+ };
951
+ icon?: string | undefined;
952
+ collectedBy?: Condition | undefined;
953
+ hiddenWhen?: Condition | undefined;
954
+ }>, {
955
+ id: string;
956
+ match: {
957
+ label?: string | undefined;
958
+ at?: string | undefined;
959
+ kind?: string | undefined;
960
+ ids?: string[] | undefined;
961
+ labelContains?: string | undefined;
962
+ };
963
+ icon?: string | undefined;
964
+ collectedBy?: Condition | undefined;
965
+ hiddenWhen?: Condition | undefined;
966
+ }, {
967
+ id: string;
968
+ match: {
969
+ label?: string | undefined;
970
+ at?: string | undefined;
971
+ kind?: string | undefined;
972
+ ids?: string[] | undefined;
973
+ labelContains?: string | undefined;
974
+ };
975
+ icon?: string | undefined;
976
+ collectedBy?: Condition | undefined;
977
+ hiddenWhen?: Condition | undefined;
978
+ }>, "many">;
979
+ /** pin categories the map's options let the player filter; pins name theirs */
980
+ pinCategories: z.ZodOptional<z.ZodArray<z.ZodObject<{
981
+ id: z.ZodString;
982
+ label: z.ZodString;
983
+ /** shown until the player says otherwise */
984
+ shownByDefault: z.ZodBoolean;
985
+ /** the map glyph for its pins: key, weapon, health, armor, ammo, powerup, bonus, secret, door, switch, item */
986
+ icon: z.ZodOptional<z.ZodString>;
987
+ }, "strip", z.ZodTypeAny, {
988
+ label: string;
989
+ id: string;
990
+ shownByDefault: boolean;
991
+ icon?: string | undefined;
992
+ }, {
993
+ label: string;
994
+ id: string;
995
+ shownByDefault: boolean;
996
+ icon?: string | undefined;
997
+ }>, "many">>;
998
+ }, "strict", z.ZodTypeAny, {
999
+ counters: {
1000
+ label: string;
1001
+ id: string;
1002
+ icon?: string | undefined;
1003
+ max?: string | number | undefined;
1004
+ display?: Record<string, string> | undefined;
1005
+ }[];
1006
+ flagSets: string[];
1007
+ items: {
1008
+ label: string;
1009
+ id: string;
1010
+ icon?: string | undefined;
1011
+ source?: string | undefined;
1012
+ category?: string | undefined;
1013
+ short?: string | undefined;
1014
+ }[];
1015
+ chips: {
1016
+ label: string;
1017
+ id: string;
1018
+ prompt: string;
1019
+ when?: Condition | undefined;
1020
+ }[];
1021
+ inventoryLayouts: ({
1022
+ id: string;
1023
+ title: string;
1024
+ kind: "slotGrid";
1025
+ columns: number;
1026
+ slots: string[];
1027
+ } | {
1028
+ id: string;
1029
+ title: string;
1030
+ counters: string[];
1031
+ kind: "counters";
1032
+ })[];
1033
+ missions: {
1034
+ id: string;
1035
+ title: string;
1036
+ done: Condition;
1037
+ group: "main" | "side";
1038
+ detail?: string | undefined;
1039
+ ask?: string | undefined;
1040
+ location?: string | undefined;
1041
+ section?: string | undefined;
1042
+ availableWhen?: Condition | undefined;
1043
+ progress?: {
1044
+ target: number;
1045
+ counter: string;
1046
+ } | undefined;
1047
+ steps?: {
1048
+ label: string;
1049
+ id: string;
1050
+ done: Condition;
1051
+ }[] | undefined;
1052
+ }[];
1053
+ collectibles: {
1054
+ id: string;
1055
+ title: string;
1056
+ noun: string;
1057
+ icon?: string | undefined;
1058
+ entries?: {
1059
+ id: string;
1060
+ name: string;
1061
+ locationId?: string | undefined;
1062
+ pinId?: string | undefined;
1063
+ collectedBy?: Condition | undefined;
1064
+ locationName?: string | undefined;
1065
+ needs?: string[][] | undefined;
1066
+ }[] | undefined;
1067
+ counter?: string | undefined;
1068
+ localSource?: {
1069
+ key: string;
1070
+ file: string;
1071
+ } | undefined;
1072
+ }[];
1073
+ reference: {
1074
+ entries: {
1075
+ id: string;
1076
+ title: string;
1077
+ notes?: string[] | undefined;
1078
+ badge?: string | undefined;
1079
+ sequence?: string[] | undefined;
1080
+ rows?: {
1081
+ label: string;
1082
+ detail: string;
1083
+ }[] | undefined;
1084
+ revealWhen?: Condition | undefined;
1085
+ }[];
1086
+ id: string;
1087
+ title: string;
1088
+ badge?: string | undefined;
1089
+ defaultOpen?: boolean | undefined;
1090
+ }[];
1091
+ pinRules: {
1092
+ id: string;
1093
+ match: {
1094
+ label?: string | undefined;
1095
+ at?: string | undefined;
1096
+ kind?: string | undefined;
1097
+ ids?: string[] | undefined;
1098
+ labelContains?: string | undefined;
1099
+ };
1100
+ icon?: string | undefined;
1101
+ collectedBy?: Condition | undefined;
1102
+ hiddenWhen?: Condition | undefined;
1103
+ }[];
1104
+ pinCategories?: {
1105
+ label: string;
1106
+ id: string;
1107
+ shownByDefault: boolean;
1108
+ icon?: string | undefined;
1109
+ }[] | undefined;
1110
+ }, {
1111
+ counters: {
1112
+ label: string;
1113
+ id: string;
1114
+ icon?: string | undefined;
1115
+ max?: string | number | undefined;
1116
+ display?: Record<string, string> | undefined;
1117
+ }[];
1118
+ flagSets: string[];
1119
+ items: {
1120
+ label: string;
1121
+ id: string;
1122
+ icon?: string | undefined;
1123
+ source?: string | undefined;
1124
+ category?: string | undefined;
1125
+ short?: string | undefined;
1126
+ }[];
1127
+ chips: {
1128
+ label: string;
1129
+ id: string;
1130
+ prompt: string;
1131
+ when?: Condition | undefined;
1132
+ }[];
1133
+ inventoryLayouts: ({
1134
+ id: string;
1135
+ title: string;
1136
+ kind: "slotGrid";
1137
+ columns: number;
1138
+ slots: string[];
1139
+ } | {
1140
+ id: string;
1141
+ title: string;
1142
+ counters: string[];
1143
+ kind: "counters";
1144
+ })[];
1145
+ missions: {
1146
+ id: string;
1147
+ title: string;
1148
+ done: Condition;
1149
+ group: "main" | "side";
1150
+ detail?: string | undefined;
1151
+ ask?: string | undefined;
1152
+ location?: string | undefined;
1153
+ section?: string | undefined;
1154
+ availableWhen?: Condition | undefined;
1155
+ progress?: {
1156
+ target: number;
1157
+ counter: string;
1158
+ } | undefined;
1159
+ steps?: {
1160
+ label: string;
1161
+ id: string;
1162
+ done: Condition;
1163
+ }[] | undefined;
1164
+ }[];
1165
+ collectibles: {
1166
+ id: string;
1167
+ title: string;
1168
+ noun: string;
1169
+ icon?: string | undefined;
1170
+ entries?: {
1171
+ id: string;
1172
+ name: string;
1173
+ locationId?: string | undefined;
1174
+ pinId?: string | undefined;
1175
+ collectedBy?: Condition | undefined;
1176
+ locationName?: string | undefined;
1177
+ needs?: string[][] | undefined;
1178
+ }[] | undefined;
1179
+ counter?: string | undefined;
1180
+ localSource?: {
1181
+ key: string;
1182
+ file: string;
1183
+ } | undefined;
1184
+ }[];
1185
+ reference: {
1186
+ entries: {
1187
+ id: string;
1188
+ title: string;
1189
+ notes?: string[] | undefined;
1190
+ badge?: string | undefined;
1191
+ sequence?: string[] | undefined;
1192
+ rows?: {
1193
+ label: string;
1194
+ detail: string;
1195
+ }[] | undefined;
1196
+ revealWhen?: Condition | undefined;
1197
+ }[];
1198
+ id: string;
1199
+ title: string;
1200
+ badge?: string | undefined;
1201
+ defaultOpen?: boolean | undefined;
1202
+ }[];
1203
+ pinRules: {
1204
+ id: string;
1205
+ match: {
1206
+ label?: string | undefined;
1207
+ at?: string | undefined;
1208
+ kind?: string | undefined;
1209
+ ids?: string[] | undefined;
1210
+ labelContains?: string | undefined;
1211
+ };
1212
+ icon?: string | undefined;
1213
+ collectedBy?: Condition | undefined;
1214
+ hiddenWhen?: Condition | undefined;
1215
+ }[];
1216
+ pinCategories?: {
1217
+ label: string;
1218
+ id: string;
1219
+ shownByDefault: boolean;
1220
+ icon?: string | undefined;
1221
+ }[] | undefined;
1222
+ }>;
1223
+ export type Catalogue = z.infer<typeof CatalogueSchema>;
1224
+ /**
1225
+ * The pack contract check: schema-valid, ids unique, and every condition, layout slot and
1226
+ * progress counter refers to something the catalogue declares. Returns problems (empty = ok).
1227
+ */
1228
+ export declare function checkCatalogue(input: unknown): string[];