@gameslate/sdk 0.3.30 → 0.3.32

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.
@@ -121,17 +121,17 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
121
121
  id: string;
122
122
  icon?: string | undefined;
123
123
  max?: string | number | undefined;
124
- format?: "number" | "duration" | "percent" | undefined;
125
124
  display?: Record<string, string> | undefined;
126
125
  role?: "keys" | "health" | "magic" | "armor" | undefined;
126
+ format?: "number" | "duration" | "percent" | undefined;
127
127
  }, {
128
128
  label: string;
129
129
  id: string;
130
130
  icon?: string | undefined;
131
131
  max?: string | number | undefined;
132
- format?: "number" | "duration" | "percent" | undefined;
133
132
  display?: Record<string, string> | undefined;
134
133
  role?: "keys" | "health" | "magic" | "armor" | undefined;
134
+ format?: "number" | "duration" | "percent" | undefined;
135
135
  }>, "many">;
136
136
  flagSets: z.ZodArray<z.ZodString, "many">;
137
137
  inventoryLayouts: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
@@ -262,16 +262,16 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
262
262
  name: string;
263
263
  locationId?: string | undefined;
264
264
  pinId?: string | undefined;
265
- collectedBy?: import("./condition.js").Condition | undefined;
266
265
  locationName?: string | undefined;
266
+ collectedBy?: import("./condition.js").Condition | undefined;
267
267
  needs?: string[][] | undefined;
268
268
  }, {
269
269
  id: string;
270
270
  name: string;
271
271
  locationId?: string | undefined;
272
272
  pinId?: string | undefined;
273
- collectedBy?: import("./condition.js").Condition | undefined;
274
273
  locationName?: string | undefined;
274
+ collectedBy?: import("./condition.js").Condition | undefined;
275
275
  needs?: string[][] | undefined;
276
276
  }>, "many">>;
277
277
  localSource: z.ZodOptional<z.ZodObject<{
@@ -294,8 +294,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
294
294
  name: string;
295
295
  locationId?: string | undefined;
296
296
  pinId?: string | undefined;
297
- collectedBy?: import("./condition.js").Condition | undefined;
298
297
  locationName?: string | undefined;
298
+ collectedBy?: import("./condition.js").Condition | undefined;
299
299
  needs?: string[][] | undefined;
300
300
  }[] | undefined;
301
301
  counter?: string | undefined;
@@ -313,8 +313,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
313
313
  name: string;
314
314
  locationId?: string | undefined;
315
315
  pinId?: string | undefined;
316
- collectedBy?: import("./condition.js").Condition | undefined;
317
316
  locationName?: string | undefined;
317
+ collectedBy?: import("./condition.js").Condition | undefined;
318
318
  needs?: string[][] | undefined;
319
319
  }[] | undefined;
320
320
  counter?: string | undefined;
@@ -348,9 +348,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
348
348
  }, "strict", z.ZodTypeAny, {
349
349
  id: string;
350
350
  title: string;
351
- notes?: string[] | undefined;
352
351
  badge?: string | undefined;
353
352
  sequence?: string[] | undefined;
353
+ notes?: string[] | undefined;
354
354
  rows?: {
355
355
  label: string;
356
356
  detail: string;
@@ -359,9 +359,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
359
359
  }, {
360
360
  id: string;
361
361
  title: string;
362
- notes?: string[] | undefined;
363
362
  badge?: string | undefined;
364
363
  sequence?: string[] | undefined;
364
+ notes?: string[] | undefined;
365
365
  rows?: {
366
366
  label: string;
367
367
  detail: string;
@@ -372,9 +372,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
372
372
  entries: {
373
373
  id: string;
374
374
  title: string;
375
- notes?: string[] | undefined;
376
375
  badge?: string | undefined;
377
376
  sequence?: string[] | undefined;
377
+ notes?: string[] | undefined;
378
378
  rows?: {
379
379
  label: string;
380
380
  detail: string;
@@ -389,9 +389,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
389
389
  entries: {
390
390
  id: string;
391
391
  title: string;
392
- notes?: string[] | undefined;
393
392
  badge?: string | undefined;
394
393
  sequence?: string[] | undefined;
394
+ notes?: string[] | undefined;
395
395
  rows?: {
396
396
  label: string;
397
397
  detail: string;
@@ -542,9 +542,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
542
542
  id: string;
543
543
  icon?: string | undefined;
544
544
  max?: string | number | undefined;
545
- format?: "number" | "duration" | "percent" | undefined;
546
545
  display?: Record<string, string> | undefined;
547
546
  role?: "keys" | "health" | "magic" | "armor" | undefined;
547
+ format?: "number" | "duration" | "percent" | undefined;
548
548
  }[];
549
549
  flagSets: string[];
550
550
  items: {
@@ -556,12 +556,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
556
556
  short?: string | undefined;
557
557
  count?: string | undefined;
558
558
  }[];
559
- chips: {
560
- label: string;
561
- id: string;
562
- prompt: string;
563
- when?: import("./condition.js").Condition | undefined;
564
- }[];
565
559
  inventoryLayouts: ({
566
560
  id: string;
567
561
  title: string;
@@ -605,8 +599,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
605
599
  name: string;
606
600
  locationId?: string | undefined;
607
601
  pinId?: string | undefined;
608
- collectedBy?: import("./condition.js").Condition | undefined;
609
602
  locationName?: string | undefined;
603
+ collectedBy?: import("./condition.js").Condition | undefined;
610
604
  needs?: string[][] | undefined;
611
605
  }[] | undefined;
612
606
  counter?: string | undefined;
@@ -619,9 +613,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
619
613
  entries: {
620
614
  id: string;
621
615
  title: string;
622
- notes?: string[] | undefined;
623
616
  badge?: string | undefined;
624
617
  sequence?: string[] | undefined;
618
+ notes?: string[] | undefined;
625
619
  rows?: {
626
620
  label: string;
627
621
  detail: string;
@@ -633,6 +627,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
633
627
  badge?: string | undefined;
634
628
  defaultOpen?: boolean | undefined;
635
629
  }[];
630
+ chips: {
631
+ label: string;
632
+ id: string;
633
+ prompt: string;
634
+ when?: import("./condition.js").Condition | undefined;
635
+ }[];
636
636
  pinRules: {
637
637
  id: string;
638
638
  match: {
@@ -664,9 +664,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
664
664
  id: string;
665
665
  icon?: string | undefined;
666
666
  max?: string | number | undefined;
667
- format?: "number" | "duration" | "percent" | undefined;
668
667
  display?: Record<string, string> | undefined;
669
668
  role?: "keys" | "health" | "magic" | "armor" | undefined;
669
+ format?: "number" | "duration" | "percent" | undefined;
670
670
  }[];
671
671
  flagSets: string[];
672
672
  items: {
@@ -678,12 +678,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
678
678
  short?: string | undefined;
679
679
  count?: string | undefined;
680
680
  }[];
681
- chips: {
682
- label: string;
683
- id: string;
684
- prompt: string;
685
- when?: import("./condition.js").Condition | undefined;
686
- }[];
687
681
  inventoryLayouts: ({
688
682
  id: string;
689
683
  title: string;
@@ -727,8 +721,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
727
721
  name: string;
728
722
  locationId?: string | undefined;
729
723
  pinId?: string | undefined;
730
- collectedBy?: import("./condition.js").Condition | undefined;
731
724
  locationName?: string | undefined;
725
+ collectedBy?: import("./condition.js").Condition | undefined;
732
726
  needs?: string[][] | undefined;
733
727
  }[] | undefined;
734
728
  counter?: string | undefined;
@@ -741,9 +735,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
741
735
  entries: {
742
736
  id: string;
743
737
  title: string;
744
- notes?: string[] | undefined;
745
738
  badge?: string | undefined;
746
739
  sequence?: string[] | undefined;
740
+ notes?: string[] | undefined;
747
741
  rows?: {
748
742
  label: string;
749
743
  detail: string;
@@ -755,6 +749,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
755
749
  badge?: string | undefined;
756
750
  defaultOpen?: boolean | undefined;
757
751
  }[];
752
+ chips: {
753
+ label: string;
754
+ id: string;
755
+ prompt: string;
756
+ when?: import("./condition.js").Condition | undefined;
757
+ }[];
758
758
  pinRules: {
759
759
  id: string;
760
760
  match: {
@@ -811,9 +811,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
811
811
  id: string;
812
812
  icon?: string | undefined;
813
813
  max?: string | number | undefined;
814
- format?: "number" | "duration" | "percent" | undefined;
815
814
  display?: Record<string, string> | undefined;
816
815
  role?: "keys" | "health" | "magic" | "armor" | undefined;
816
+ format?: "number" | "duration" | "percent" | undefined;
817
817
  }[];
818
818
  flagSets: string[];
819
819
  items: {
@@ -825,12 +825,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
825
825
  short?: string | undefined;
826
826
  count?: string | undefined;
827
827
  }[];
828
- chips: {
829
- label: string;
830
- id: string;
831
- prompt: string;
832
- when?: import("./condition.js").Condition | undefined;
833
- }[];
834
828
  inventoryLayouts: ({
835
829
  id: string;
836
830
  title: string;
@@ -874,8 +868,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
874
868
  name: string;
875
869
  locationId?: string | undefined;
876
870
  pinId?: string | undefined;
877
- collectedBy?: import("./condition.js").Condition | undefined;
878
871
  locationName?: string | undefined;
872
+ collectedBy?: import("./condition.js").Condition | undefined;
879
873
  needs?: string[][] | undefined;
880
874
  }[] | undefined;
881
875
  counter?: string | undefined;
@@ -888,9 +882,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
888
882
  entries: {
889
883
  id: string;
890
884
  title: string;
891
- notes?: string[] | undefined;
892
885
  badge?: string | undefined;
893
886
  sequence?: string[] | undefined;
887
+ notes?: string[] | undefined;
894
888
  rows?: {
895
889
  label: string;
896
890
  detail: string;
@@ -902,6 +896,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
902
896
  badge?: string | undefined;
903
897
  defaultOpen?: boolean | undefined;
904
898
  }[];
899
+ chips: {
900
+ label: string;
901
+ id: string;
902
+ prompt: string;
903
+ when?: import("./condition.js").Condition | undefined;
904
+ }[];
905
905
  pinRules: {
906
906
  id: string;
907
907
  match: {
@@ -944,9 +944,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
944
944
  id: string;
945
945
  icon?: string | undefined;
946
946
  max?: string | number | undefined;
947
- format?: "number" | "duration" | "percent" | undefined;
948
947
  display?: Record<string, string> | undefined;
949
948
  role?: "keys" | "health" | "magic" | "armor" | undefined;
949
+ format?: "number" | "duration" | "percent" | undefined;
950
950
  }[];
951
951
  flagSets: string[];
952
952
  items: {
@@ -958,12 +958,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
958
958
  short?: string | undefined;
959
959
  count?: string | undefined;
960
960
  }[];
961
- chips: {
962
- label: string;
963
- id: string;
964
- prompt: string;
965
- when?: import("./condition.js").Condition | undefined;
966
- }[];
967
961
  inventoryLayouts: ({
968
962
  id: string;
969
963
  title: string;
@@ -1007,8 +1001,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1007
1001
  name: string;
1008
1002
  locationId?: string | undefined;
1009
1003
  pinId?: string | undefined;
1010
- collectedBy?: import("./condition.js").Condition | undefined;
1011
1004
  locationName?: string | undefined;
1005
+ collectedBy?: import("./condition.js").Condition | undefined;
1012
1006
  needs?: string[][] | undefined;
1013
1007
  }[] | undefined;
1014
1008
  counter?: string | undefined;
@@ -1021,9 +1015,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1021
1015
  entries: {
1022
1016
  id: string;
1023
1017
  title: string;
1024
- notes?: string[] | undefined;
1025
1018
  badge?: string | undefined;
1026
1019
  sequence?: string[] | undefined;
1020
+ notes?: string[] | undefined;
1027
1021
  rows?: {
1028
1022
  label: string;
1029
1023
  detail: string;
@@ -1035,6 +1029,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1035
1029
  badge?: string | undefined;
1036
1030
  defaultOpen?: boolean | undefined;
1037
1031
  }[];
1032
+ chips: {
1033
+ label: string;
1034
+ id: string;
1035
+ prompt: string;
1036
+ when?: import("./condition.js").Condition | undefined;
1037
+ }[];
1038
1038
  pinRules: {
1039
1039
  id: string;
1040
1040
  match: {
@@ -1156,9 +1156,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1156
1156
  id: string;
1157
1157
  icon?: string | undefined;
1158
1158
  max?: string | number | undefined;
1159
- format?: "number" | "duration" | "percent" | undefined;
1160
1159
  display?: Record<string, string> | undefined;
1161
1160
  role?: "keys" | "health" | "magic" | "armor" | undefined;
1161
+ format?: "number" | "duration" | "percent" | undefined;
1162
1162
  }[];
1163
1163
  flagSets: string[];
1164
1164
  items: {
@@ -1170,12 +1170,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1170
1170
  short?: string | undefined;
1171
1171
  count?: string | undefined;
1172
1172
  }[];
1173
- chips: {
1174
- label: string;
1175
- id: string;
1176
- prompt: string;
1177
- when?: import("./condition.js").Condition | undefined;
1178
- }[];
1179
1173
  inventoryLayouts: ({
1180
1174
  id: string;
1181
1175
  title: string;
@@ -1219,8 +1213,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1219
1213
  name: string;
1220
1214
  locationId?: string | undefined;
1221
1215
  pinId?: string | undefined;
1222
- collectedBy?: import("./condition.js").Condition | undefined;
1223
1216
  locationName?: string | undefined;
1217
+ collectedBy?: import("./condition.js").Condition | undefined;
1224
1218
  needs?: string[][] | undefined;
1225
1219
  }[] | undefined;
1226
1220
  counter?: string | undefined;
@@ -1233,9 +1227,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1233
1227
  entries: {
1234
1228
  id: string;
1235
1229
  title: string;
1236
- notes?: string[] | undefined;
1237
1230
  badge?: string | undefined;
1238
1231
  sequence?: string[] | undefined;
1232
+ notes?: string[] | undefined;
1239
1233
  rows?: {
1240
1234
  label: string;
1241
1235
  detail: string;
@@ -1247,6 +1241,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1247
1241
  badge?: string | undefined;
1248
1242
  defaultOpen?: boolean | undefined;
1249
1243
  }[];
1244
+ chips: {
1245
+ label: string;
1246
+ id: string;
1247
+ prompt: string;
1248
+ when?: import("./condition.js").Condition | undefined;
1249
+ }[];
1250
1250
  pinRules: {
1251
1251
  id: string;
1252
1252
  match: {
@@ -1310,9 +1310,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1310
1310
  id: string;
1311
1311
  icon?: string | undefined;
1312
1312
  max?: string | number | undefined;
1313
- format?: "number" | "duration" | "percent" | undefined;
1314
1313
  display?: Record<string, string> | undefined;
1315
1314
  role?: "keys" | "health" | "magic" | "armor" | undefined;
1315
+ format?: "number" | "duration" | "percent" | undefined;
1316
1316
  }[];
1317
1317
  flagSets: string[];
1318
1318
  items: {
@@ -1324,12 +1324,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1324
1324
  short?: string | undefined;
1325
1325
  count?: string | undefined;
1326
1326
  }[];
1327
- chips: {
1328
- label: string;
1329
- id: string;
1330
- prompt: string;
1331
- when?: import("./condition.js").Condition | undefined;
1332
- }[];
1333
1327
  inventoryLayouts: ({
1334
1328
  id: string;
1335
1329
  title: string;
@@ -1373,8 +1367,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1373
1367
  name: string;
1374
1368
  locationId?: string | undefined;
1375
1369
  pinId?: string | undefined;
1376
- collectedBy?: import("./condition.js").Condition | undefined;
1377
1370
  locationName?: string | undefined;
1371
+ collectedBy?: import("./condition.js").Condition | undefined;
1378
1372
  needs?: string[][] | undefined;
1379
1373
  }[] | undefined;
1380
1374
  counter?: string | undefined;
@@ -1387,9 +1381,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1387
1381
  entries: {
1388
1382
  id: string;
1389
1383
  title: string;
1390
- notes?: string[] | undefined;
1391
1384
  badge?: string | undefined;
1392
1385
  sequence?: string[] | undefined;
1386
+ notes?: string[] | undefined;
1393
1387
  rows?: {
1394
1388
  label: string;
1395
1389
  detail: string;
@@ -1401,6 +1395,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1401
1395
  badge?: string | undefined;
1402
1396
  defaultOpen?: boolean | undefined;
1403
1397
  }[];
1398
+ chips: {
1399
+ label: string;
1400
+ id: string;
1401
+ prompt: string;
1402
+ when?: import("./condition.js").Condition | undefined;
1403
+ }[];
1404
1404
  pinRules: {
1405
1405
  id: string;
1406
1406
  match: {
@@ -1475,8 +1475,9 @@ export interface SandboxGuestApi {
1475
1475
  /** a GameState as JSON, or null when this poll has nothing */
1476
1476
  poll(handle: number): string | null;
1477
1477
  closeSession(handle: number): void;
1478
- /** the pack's views (PackViews) of a GameState given as JSON */
1479
- views(gameId: string, state: string): string;
1478
+ /** the pack's views (PackViews) of a GameState given as JSON, with the game's extracted
1479
+ * mission labels (MissionLabels as JSON; a core before sdk 0.3.31 sends none) */
1480
+ views(gameId: string, state: string, missionLabels?: string): string;
1480
1481
  }
1481
1482
  /** The capabilities the core puts on `globalThis.__gsHost`: memory reads for one handle. */
1482
1483
  export interface SandboxHostApi {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gameslate/sdk",
3
- "version": "0.3.30",
3
+ "version": "0.3.32",
4
4
  "description": "Build plugins for GameSlate, the second-screen companion for PC games: the plugin contract, game-state and catalogue schemas, and the plugin builder.",
5
5
  "license": "MIT",
6
6
  "type": "module",