@diffenderfer-games/hub-contract 2.0.0-next.2 → 2.0.0-next.4

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/dist/index.d.ts CHANGED
@@ -1300,12 +1300,12 @@ export type Bundle = z.infer<typeof Bundle>;
1300
1300
  //#region src/api/economy/trades.d.ts
1301
1301
  /** Where an offer is in its life. Only `pending` offers can change. */
1302
1302
  export declare const TradeStatus: z.ZodEnum<{
1303
+ pending: "pending";
1303
1304
  accepted: "accepted";
1304
1305
  declined: "declined";
1305
1306
  cancelled: "cancelled";
1306
- expired: "expired";
1307
- pending: "pending";
1308
1307
  countered: "countered";
1308
+ expired: "expired";
1309
1309
  }>;
1310
1310
  /** A trade status. */
1311
1311
  export type TradeStatus = z.infer<typeof TradeStatus>;
@@ -1321,12 +1321,12 @@ export declare const TradeOffer: z.ZodObject<{
1321
1321
  id: z.ZodNumber;
1322
1322
  game: z.ZodString;
1323
1323
  status: z.ZodEnum<{
1324
+ pending: "pending";
1324
1325
  accepted: "accepted";
1325
1326
  declined: "declined";
1326
1327
  cancelled: "cancelled";
1327
- expired: "expired";
1328
- pending: "pending";
1329
1328
  countered: "countered";
1329
+ expired: "expired";
1330
1330
  }>;
1331
1331
  direction: z.ZodEnum<{
1332
1332
  incoming: "incoming";
@@ -1414,12 +1414,12 @@ export declare const economyEndpoints: {
1414
1414
  id: import("zod").ZodNumber;
1415
1415
  game: import("zod").ZodString;
1416
1416
  status: import("zod").ZodEnum<{
1417
+ pending: "pending";
1417
1418
  accepted: "accepted";
1418
1419
  declined: "declined";
1419
1420
  cancelled: "cancelled";
1420
- expired: "expired";
1421
- pending: "pending";
1422
1421
  countered: "countered";
1422
+ expired: "expired";
1423
1423
  }>;
1424
1424
  direction: import("zod").ZodEnum<{
1425
1425
  incoming: "incoming";
@@ -1487,12 +1487,12 @@ export declare const economyEndpoints: {
1487
1487
  id: import("zod").ZodNumber;
1488
1488
  game: import("zod").ZodString;
1489
1489
  status: import("zod").ZodEnum<{
1490
+ pending: "pending";
1490
1491
  accepted: "accepted";
1491
1492
  declined: "declined";
1492
1493
  cancelled: "cancelled";
1493
- expired: "expired";
1494
- pending: "pending";
1495
1494
  countered: "countered";
1495
+ expired: "expired";
1496
1496
  }>;
1497
1497
  direction: import("zod").ZodEnum<{
1498
1498
  incoming: "incoming";
@@ -1569,12 +1569,12 @@ export declare const economyEndpoints: {
1569
1569
  id: import("zod").ZodNumber;
1570
1570
  game: import("zod").ZodString;
1571
1571
  status: import("zod").ZodEnum<{
1572
+ pending: "pending";
1572
1573
  accepted: "accepted";
1573
1574
  declined: "declined";
1574
1575
  cancelled: "cancelled";
1575
- expired: "expired";
1576
- pending: "pending";
1577
1576
  countered: "countered";
1577
+ expired: "expired";
1578
1578
  }>;
1579
1579
  direction: import("zod").ZodEnum<{
1580
1580
  incoming: "incoming";
@@ -1673,12 +1673,12 @@ export declare const economyEndpoints: {
1673
1673
  outgoing: "outgoing";
1674
1674
  }>>>;
1675
1675
  status: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodEnum<{
1676
+ pending: "pending";
1676
1677
  accepted: "accepted";
1677
1678
  declined: "declined";
1678
1679
  cancelled: "cancelled";
1679
- expired: "expired";
1680
- pending: "pending";
1681
1680
  countered: "countered";
1681
+ expired: "expired";
1682
1682
  }>, import("zod").ZodString]>>;
1683
1683
  }, import("zod/v4/core").$strip>;
1684
1684
  readonly response: import("zod").ZodObject<{
@@ -1686,12 +1686,12 @@ export declare const economyEndpoints: {
1686
1686
  id: import("zod").ZodNumber;
1687
1687
  game: import("zod").ZodString;
1688
1688
  status: import("zod").ZodEnum<{
1689
+ pending: "pending";
1689
1690
  accepted: "accepted";
1690
1691
  declined: "declined";
1691
1692
  cancelled: "cancelled";
1692
- expired: "expired";
1693
- pending: "pending";
1694
1693
  countered: "countered";
1694
+ expired: "expired";
1695
1695
  }>;
1696
1696
  direction: import("zod").ZodEnum<{
1697
1697
  incoming: "incoming";
@@ -1755,12 +1755,12 @@ export declare const economyEndpoints: {
1755
1755
  id: import("zod").ZodNumber;
1756
1756
  game: import("zod").ZodString;
1757
1757
  status: import("zod").ZodEnum<{
1758
+ pending: "pending";
1758
1759
  accepted: "accepted";
1759
1760
  declined: "declined";
1760
1761
  cancelled: "cancelled";
1761
- expired: "expired";
1762
- pending: "pending";
1763
1762
  countered: "countered";
1763
+ expired: "expired";
1764
1764
  }>;
1765
1765
  direction: import("zod").ZodEnum<{
1766
1766
  incoming: "incoming";
@@ -1825,12 +1825,12 @@ export declare const economyEndpoints: {
1825
1825
  id: import("zod").ZodNumber;
1826
1826
  game: import("zod").ZodString;
1827
1827
  status: import("zod").ZodEnum<{
1828
+ pending: "pending";
1828
1829
  accepted: "accepted";
1829
1830
  declined: "declined";
1830
1831
  cancelled: "cancelled";
1831
- expired: "expired";
1832
- pending: "pending";
1833
1832
  countered: "countered";
1833
+ expired: "expired";
1834
1834
  }>;
1835
1835
  direction: import("zod").ZodEnum<{
1836
1836
  incoming: "incoming";
@@ -2629,8 +2629,8 @@ export type LaunchTicket = z.infer<typeof LaunchTicket>;
2629
2629
  /** Why the hub is bringing a player into a game. */
2630
2630
  export declare const LaunchKind: z.ZodEnum<{
2631
2631
  guest: "guest";
2632
- host: "host";
2633
2632
  join: "join";
2633
+ host: "host";
2634
2634
  watch: "watch";
2635
2635
  }>;
2636
2636
  /**
@@ -2640,8 +2640,8 @@ export declare const LaunchKind: z.ZodEnum<{
2640
2640
  export declare const Launch: z.ZodObject<{
2641
2641
  kind: z.ZodEnum<{
2642
2642
  guest: "guest";
2643
- host: "host";
2644
2643
  join: "join";
2644
+ host: "host";
2645
2645
  watch: "watch";
2646
2646
  }>;
2647
2647
  game: z.ZodString;
@@ -2725,18 +2725,18 @@ export type RaceStats = z.infer<typeof RaceStats>;
2725
2725
  export declare const RaceProgress: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
2726
2726
  /** A race room's phase: waiting for racers → countdown → racing → done (→ countdown on a rematch). */
2727
2727
  export declare const RacePhase: z.ZodEnum<{
2728
+ done: "done";
2728
2729
  waiting: "waiting";
2729
2730
  countdown: "countdown";
2730
2731
  racing: "racing";
2731
- done: "done";
2732
2732
  }>;
2733
2733
  /** A racer's state while the race runs. */
2734
2734
  export declare const RacerState: z.ZodEnum<{
2735
- racing: "racing";
2736
2735
  finished: "finished";
2737
2736
  lost: "lost";
2738
2737
  forfeit: "forfeit";
2739
2738
  disconnected: "disconnected";
2739
+ racing: "racing";
2740
2740
  }>;
2741
2741
  /** A value of {@link RacerState}. */
2742
2742
  export type RacerState = z.infer<typeof RacerState>;
@@ -2769,11 +2769,11 @@ export declare const Racer: z.ZodObject<{
2769
2769
  stats: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>, z.ZodBoolean, z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>]>>;
2770
2770
  progress: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>>;
2771
2771
  state: z.ZodEnum<{
2772
- racing: "racing";
2773
2772
  finished: "finished";
2774
2773
  lost: "lost";
2775
2774
  forfeit: "forfeit";
2776
2775
  disconnected: "disconnected";
2776
+ racing: "racing";
2777
2777
  }>;
2778
2778
  ms: z.ZodOptional<z.ZodNumber>;
2779
2779
  }, z.core.$strip>;
@@ -2839,10 +2839,10 @@ export type RaceResult = z.infer<typeof RaceResult>;
2839
2839
  /** The referee's view of a race room (RoomInfo.race). */
2840
2840
  export declare const RaceState: z.ZodObject<{
2841
2841
  phase: z.ZodEnum<{
2842
+ done: "done";
2842
2843
  waiting: "waiting";
2843
2844
  countdown: "countdown";
2844
2845
  racing: "racing";
2845
- done: "done";
2846
2846
  }>;
2847
2847
  round: z.ZodNumber;
2848
2848
  params: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString]>>;
@@ -2854,11 +2854,11 @@ export declare const RaceState: z.ZodObject<{
2854
2854
  stats: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>, z.ZodBoolean, z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>]>>;
2855
2855
  progress: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>>;
2856
2856
  state: z.ZodEnum<{
2857
- racing: "racing";
2858
2857
  finished: "finished";
2859
2858
  lost: "lost";
2860
2859
  forfeit: "forfeit";
2861
2860
  disconnected: "disconnected";
2861
+ racing: "racing";
2862
2862
  }>;
2863
2863
  ms: z.ZodOptional<z.ZodNumber>;
2864
2864
  }, z.core.$strip>>;
@@ -3067,10 +3067,10 @@ export declare const RoomInfo: z.ZodObject<{
3067
3067
  }>;
3068
3068
  race: z.ZodOptional<z.ZodObject<{
3069
3069
  phase: z.ZodEnum<{
3070
+ done: "done";
3070
3071
  waiting: "waiting";
3071
3072
  countdown: "countdown";
3072
3073
  racing: "racing";
3073
- done: "done";
3074
3074
  }>;
3075
3075
  round: z.ZodNumber;
3076
3076
  params: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString]>>;
@@ -3082,11 +3082,11 @@ export declare const RoomInfo: z.ZodObject<{
3082
3082
  stats: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>, z.ZodBoolean, z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>]>>;
3083
3083
  progress: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>>;
3084
3084
  state: z.ZodEnum<{
3085
- racing: "racing";
3086
3085
  finished: "finished";
3087
3086
  lost: "lost";
3088
3087
  forfeit: "forfeit";
3089
3088
  disconnected: "disconnected";
3089
+ racing: "racing";
3090
3090
  }>;
3091
3091
  ms: z.ZodOptional<z.ZodNumber>;
3092
3092
  }, z.core.$strip>>;
@@ -3266,10 +3266,10 @@ export declare const MultiplayerSnapshot: z.ZodObject<{
3266
3266
  }>;
3267
3267
  race: z.ZodOptional<z.ZodObject<{
3268
3268
  phase: z.ZodEnum<{
3269
+ done: "done";
3269
3270
  waiting: "waiting";
3270
3271
  countdown: "countdown";
3271
3272
  racing: "racing";
3272
- done: "done";
3273
3273
  }>;
3274
3274
  round: z.ZodNumber;
3275
3275
  params: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString]>>;
@@ -3281,11 +3281,11 @@ export declare const MultiplayerSnapshot: z.ZodObject<{
3281
3281
  stats: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>, z.ZodBoolean, z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>]>>;
3282
3282
  progress: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>>;
3283
3283
  state: z.ZodEnum<{
3284
- racing: "racing";
3285
3284
  finished: "finished";
3286
3285
  lost: "lost";
3287
3286
  forfeit: "forfeit";
3288
3287
  disconnected: "disconnected";
3288
+ racing: "racing";
3289
3289
  }>;
3290
3290
  ms: z.ZodOptional<z.ZodNumber>;
3291
3291
  }, z.core.$strip>>;
@@ -3375,8 +3375,8 @@ export declare const mpEndpoints: {
3375
3375
  launch: z.ZodObject<{
3376
3376
  kind: z.ZodEnum<{
3377
3377
  guest: "guest";
3378
- host: "host";
3379
3378
  join: "join";
3379
+ host: "host";
3380
3380
  watch: "watch";
3381
3381
  }>;
3382
3382
  game: z.ZodString;
@@ -4595,8 +4595,8 @@ export declare const raceEndpoints: {
4595
4595
  export declare const ReportKind: z.ZodEnum<{
4596
4596
  message: "message";
4597
4597
  username: "username";
4598
- presence: "presence";
4599
4598
  user: "user";
4599
+ presence: "presence";
4600
4600
  suggestion: "suggestion";
4601
4601
  room_chat: "room_chat";
4602
4602
  }>;
@@ -4622,8 +4622,8 @@ export declare const ReportInput: z.ZodObject<{
4622
4622
  kind: z.ZodEnum<{
4623
4623
  message: "message";
4624
4624
  username: "username";
4625
- presence: "presence";
4626
4625
  user: "user";
4626
+ presence: "presence";
4627
4627
  suggestion: "suggestion";
4628
4628
  room_chat: "room_chat";
4629
4629
  }>;
@@ -4708,11 +4708,11 @@ export declare const ReportSnapshot: z.ZodObject<{
4708
4708
  export type ReportSnapshot = z.infer<typeof ReportSnapshot>;
4709
4709
  /** A suggestion's review status. Only `approved`, `planned` and `done` are on the public board. */
4710
4710
  export declare const SuggestionStatus: z.ZodEnum<{
4711
- done: "done";
4712
- removed: "removed";
4713
4711
  pending: "pending";
4714
4712
  approved: "approved";
4715
4713
  planned: "planned";
4714
+ done: "done";
4715
+ removed: "removed";
4716
4716
  withdrawn: "withdrawn";
4717
4717
  }>;
4718
4718
  /** A suggestion status. */
@@ -4725,11 +4725,11 @@ export declare const Suggestion: z.ZodObject<{
4725
4725
  title: z.ZodString;
4726
4726
  body: z.ZodString;
4727
4727
  status: z.ZodEnum<{
4728
- done: "done";
4729
- removed: "removed";
4730
4728
  pending: "pending";
4731
4729
  approved: "approved";
4732
4730
  planned: "planned";
4731
+ done: "done";
4732
+ removed: "removed";
4733
4733
  withdrawn: "withdrawn";
4734
4734
  }>;
4735
4735
  votes: z.ZodNumber;
@@ -4761,11 +4761,11 @@ export declare const reportsEndpoints: {
4761
4761
  title: z.ZodString;
4762
4762
  body: z.ZodString;
4763
4763
  status: z.ZodEnum<{
4764
- done: "done";
4765
- removed: "removed";
4766
4764
  pending: "pending";
4767
4765
  approved: "approved";
4768
4766
  planned: "planned";
4767
+ done: "done";
4768
+ removed: "removed";
4769
4769
  withdrawn: "withdrawn";
4770
4770
  }>;
4771
4771
  votes: z.ZodNumber;
@@ -4877,11 +4877,11 @@ export declare const reportsEndpoints: {
4877
4877
  title: z.ZodString;
4878
4878
  body: z.ZodString;
4879
4879
  status: z.ZodEnum<{
4880
- done: "done";
4881
- removed: "removed";
4882
4880
  pending: "pending";
4883
4881
  approved: "approved";
4884
4882
  planned: "planned";
4883
+ done: "done";
4884
+ removed: "removed";
4885
4885
  withdrawn: "withdrawn";
4886
4886
  }>;
4887
4887
  votes: z.ZodNumber;
@@ -4896,11 +4896,11 @@ export declare const reportsEndpoints: {
4896
4896
  title: z.ZodString;
4897
4897
  body: z.ZodString;
4898
4898
  status: z.ZodEnum<{
4899
- done: "done";
4900
- removed: "removed";
4901
4899
  pending: "pending";
4902
4900
  approved: "approved";
4903
4901
  planned: "planned";
4902
+ done: "done";
4903
+ removed: "removed";
4904
4904
  withdrawn: "withdrawn";
4905
4905
  }>;
4906
4906
  votes: z.ZodNumber;
@@ -4929,8 +4929,8 @@ export declare const reportsEndpoints: {
4929
4929
  kind: z.ZodEnum<{
4930
4930
  message: "message";
4931
4931
  username: "username";
4932
- presence: "presence";
4933
4932
  user: "user";
4933
+ presence: "presence";
4934
4934
  suggestion: "suggestion";
4935
4935
  room_chat: "room_chat";
4936
4936
  }>;
@@ -4967,6 +4967,212 @@ export declare const reportsEndpoints: {
4967
4967
  }, {}, import("@ayepi/core").EmptyObject>;
4968
4968
  };
4969
4969
  //#endregion
4970
+ //#region src/api/resume.d.ts
4971
+ /**
4972
+ * Largest `state`, measured as the bytes of its JSON (what the hub stores):
4973
+ * 512 KB. A game with a bigger state can gzip and base64 it into a string
4974
+ * itself (docs: "Resume saved games").
4975
+ */
4976
+ export declare const RESUME_MAX_STATE_BYTES: number;
4977
+ /** Longest progress label or run title kept, characters (longer is clipped). */
4978
+ export declare const RESUME_TEXT_MAX = 60;
4979
+ /** A slot nobody has written for this long is deleted: 60 days. */
4980
+ export declare const RESUME_RETENTION_MS: number;
4981
+ /** The query parameter the Resume card adds to a game's URL (`/<slug>/?hub_resume=1`); the client strips it. */
4982
+ export declare const RESUME_REQUEST_PARAM = "hub_resume";
4983
+ /** How far along a run is. */
4984
+ export declare const ResumeProgress: z.ZodObject<{
4985
+ label: z.ZodString;
4986
+ fraction: z.ZodNullable<z.ZodNumber>;
4987
+ }, z.core.$strip>;
4988
+ /** How far along a run is. */
4989
+ export type ResumeProgress = z.infer<typeof ResumeProgress>;
4990
+ /** The caller's saved run in one game, with its state. */
4991
+ export declare const ResumeSlot: z.ZodObject<{
4992
+ state: z.ZodJSONSchema;
4993
+ progress: z.ZodObject<{
4994
+ label: z.ZodString;
4995
+ fraction: z.ZodNullable<z.ZodNumber>;
4996
+ }, z.core.$strip>;
4997
+ title: z.ZodNullable<z.ZodString>;
4998
+ version: z.ZodNumber;
4999
+ updatedAt: z.ZodNumber;
5000
+ }, z.core.$strip>;
5001
+ /** A saved run. */
5002
+ export type ResumeSlot = z.infer<typeof ResumeSlot>;
5003
+ /** One saved run in the player's list (no state). */
5004
+ export declare const ResumeSummary: z.ZodObject<{
5005
+ progress: z.ZodObject<{
5006
+ label: z.ZodString;
5007
+ fraction: z.ZodNullable<z.ZodNumber>;
5008
+ }, z.core.$strip>;
5009
+ title: z.ZodNullable<z.ZodString>;
5010
+ version: z.ZodNumber;
5011
+ updatedAt: z.ZodNumber;
5012
+ game: z.ZodString;
5013
+ gameTitle: z.ZodString;
5014
+ path: z.ZodString;
5015
+ hasImage: z.ZodBoolean;
5016
+ }, z.core.$strip>;
5017
+ /** One saved run in the player's list. */
5018
+ export type ResumeSummary = z.infer<typeof ResumeSummary>;
5019
+ /** The body of a save. */
5020
+ export declare const ResumeWrite: z.ZodObject<{
5021
+ state: z.ZodJSONSchema;
5022
+ progress: z.ZodObject<{
5023
+ label: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
5024
+ fraction: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5025
+ }, z.core.$strip>;
5026
+ title: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
5027
+ version: z.ZodOptional<z.ZodNumber>;
5028
+ savedAt: z.ZodOptional<z.ZodNumber>;
5029
+ }, z.core.$strip>;
5030
+ /** The body of a save. */
5031
+ export type ResumeWrite = z.input<typeof ResumeWrite>;
5032
+ /** The resume endpoints. */
5033
+ export declare const resumeEndpoints: {
5034
+ listMyResumeSlots: import("@ayepi/core").Endpoint<{
5035
+ readonly method: "GET";
5036
+ readonly path: "/me/resume";
5037
+ readonly response: z.ZodObject<{
5038
+ games: z.ZodArray<z.ZodObject<{
5039
+ progress: z.ZodObject<{
5040
+ label: z.ZodString;
5041
+ fraction: z.ZodNullable<z.ZodNumber>;
5042
+ }, z.core.$strip>;
5043
+ title: z.ZodNullable<z.ZodString>;
5044
+ version: z.ZodNumber;
5045
+ updatedAt: z.ZodNumber;
5046
+ game: z.ZodString;
5047
+ gameTitle: z.ZodString;
5048
+ path: z.ZodString;
5049
+ hasImage: z.ZodBoolean;
5050
+ }, z.core.$strip>>;
5051
+ }, z.core.$strip>;
5052
+ readonly doc: {
5053
+ readonly summary: "The caller's saved runs across games (no state)";
5054
+ readonly tags: readonly ["resume"];
5055
+ };
5056
+ }, {
5057
+ user: SessionUser | null;
5058
+ clientId: string;
5059
+ }, {}, import("@ayepi/core").EmptyObject>;
5060
+ getResumeSlot: import("@ayepi/core").Endpoint<{
5061
+ readonly method: "GET";
5062
+ readonly path: "/resume";
5063
+ readonly response: z.ZodObject<{
5064
+ resume: z.ZodNullable<z.ZodObject<{
5065
+ state: z.ZodJSONSchema;
5066
+ progress: z.ZodObject<{
5067
+ label: z.ZodString;
5068
+ fraction: z.ZodNullable<z.ZodNumber>;
5069
+ }, z.core.$strip>;
5070
+ title: z.ZodNullable<z.ZodString>;
5071
+ version: z.ZodNumber;
5072
+ updatedAt: z.ZodNumber;
5073
+ }, z.core.$strip>>;
5074
+ }, z.core.$strip>;
5075
+ readonly errors: {
5076
+ readonly 401: ErrorBodySchema;
5077
+ readonly 404: ErrorBodySchema;
5078
+ };
5079
+ readonly doc: {
5080
+ readonly summary: "The caller's saved run in this game, or null";
5081
+ readonly tags: readonly ["resume"];
5082
+ };
5083
+ }, {
5084
+ user: {
5085
+ id: number;
5086
+ username: string;
5087
+ guest: boolean;
5088
+ role: "" | "admin";
5089
+ avatar: string;
5090
+ chatLock: boolean;
5091
+ mutedUntil: number;
5092
+ suspendedUntil: number;
5093
+ };
5094
+ clientId: string;
5095
+ }, {
5096
+ slug: z.ZodString;
5097
+ }, {}>;
5098
+ saveResumeSlot: import("@ayepi/core").Endpoint<{
5099
+ readonly method: "PUT";
5100
+ readonly path: "/resume";
5101
+ readonly body: z.ZodObject<{
5102
+ state: z.ZodJSONSchema;
5103
+ progress: z.ZodObject<{
5104
+ label: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
5105
+ fraction: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5106
+ }, z.core.$strip>;
5107
+ title: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
5108
+ version: z.ZodOptional<z.ZodNumber>;
5109
+ savedAt: z.ZodOptional<z.ZodNumber>;
5110
+ }, z.core.$strip>;
5111
+ readonly response: z.ZodObject<{
5112
+ ok: z.ZodLiteral<true>;
5113
+ updatedAt: z.ZodNumber;
5114
+ applied: z.ZodBoolean;
5115
+ }, z.core.$strip>;
5116
+ readonly errors: {
5117
+ readonly 400: ErrorBodySchema;
5118
+ readonly 401: ErrorBodySchema;
5119
+ readonly 404: ErrorBodySchema;
5120
+ readonly 413: ErrorBodySchema;
5121
+ readonly 429: ErrorBodySchema;
5122
+ };
5123
+ readonly doc: {
5124
+ readonly summary: "Save the caller's run in this game";
5125
+ readonly tags: readonly ["resume"];
5126
+ };
5127
+ }, {
5128
+ user: {
5129
+ id: number;
5130
+ username: string;
5131
+ guest: boolean;
5132
+ role: "" | "admin";
5133
+ avatar: string;
5134
+ chatLock: boolean;
5135
+ mutedUntil: number;
5136
+ suspendedUntil: number;
5137
+ };
5138
+ clientId: string;
5139
+ }, {
5140
+ slug: z.ZodString;
5141
+ }, {}>;
5142
+ clearResumeSlot: import("@ayepi/core").Endpoint<{
5143
+ readonly method: "DELETE";
5144
+ readonly path: "/resume";
5145
+ readonly query: z.ZodObject<{
5146
+ before: z.ZodOptional<z.ZodCoercedNumber<number>>;
5147
+ }, z.core.$strip>;
5148
+ readonly response: z.ZodObject<{
5149
+ ok: z.ZodLiteral<true>;
5150
+ }, z.core.$strip>;
5151
+ readonly errors: {
5152
+ readonly 401: ErrorBodySchema;
5153
+ readonly 404: ErrorBodySchema;
5154
+ };
5155
+ readonly doc: {
5156
+ readonly summary: "Delete the caller's saved run in this game";
5157
+ readonly tags: readonly ["resume"];
5158
+ };
5159
+ }, {
5160
+ user: {
5161
+ id: number;
5162
+ username: string;
5163
+ guest: boolean;
5164
+ role: "" | "admin";
5165
+ avatar: string;
5166
+ chatLock: boolean;
5167
+ mutedUntil: number;
5168
+ suspendedUntil: number;
5169
+ };
5170
+ clientId: string;
5171
+ }, {
5172
+ slug: z.ZodString;
5173
+ }, {}>;
5174
+ };
5175
+ //#endregion
4970
5176
  //#region src/api/social/config.d.ts
4971
5177
  /** A quick-chat phrase id: a hub phrase (`gg`), an emote (`e:<emoji>`) or a game phrase (`g:<slug>:<n>`). */
4972
5178
  export declare const QuickId: z.ZodString;
@@ -5222,11 +5428,11 @@ export type FriendsList = z.infer<typeof FriendsList>;
5222
5428
  */
5223
5429
  export declare const FriendChange: z.ZodEnum<{
5224
5430
  blocked: "blocked";
5225
- request: "request";
5226
5431
  accepted: "accepted";
5227
- removed: "removed";
5228
5432
  declined: "declined";
5229
5433
  cancelled: "cancelled";
5434
+ removed: "removed";
5435
+ request: "request";
5230
5436
  restored: "restored";
5231
5437
  }>;
5232
5438
  /** A friends-list change. */
@@ -5943,8 +6149,8 @@ export declare const TournamentStart: z.ZodDiscriminatedUnion<[z.ZodObject<{
5943
6149
  export type TournamentStart = z.infer<typeof TournamentStart>;
5944
6150
  /** `signup` → `running` → `done`; or `cancelled` (by its creator, or too few players at the start). */
5945
6151
  export declare const TournamentPhase: z.ZodEnum<{
5946
- done: "done";
5947
6152
  cancelled: "cancelled";
6153
+ done: "done";
5948
6154
  signup: "signup";
5949
6155
  running: "running";
5950
6156
  }>;
@@ -5958,9 +6164,9 @@ export declare const TournamentStage: z.ZodEnum<{
5958
6164
  }>;
5959
6165
  /** How a match was decided. */
5960
6166
  export declare const TournamentDecision: z.ZodEnum<{
6167
+ withdrawn: "withdrawn";
5961
6168
  forfeit: "forfeit";
5962
6169
  timeout: "timeout";
5963
- withdrawn: "withdrawn";
5964
6170
  played: "played";
5965
6171
  bye: "bye";
5966
6172
  }>;
@@ -6026,15 +6232,15 @@ export declare const TournamentMatch: z.ZodObject<{
6026
6232
  a: z.ZodNullable<z.ZodNumber>;
6027
6233
  b: z.ZodNullable<z.ZodNumber>;
6028
6234
  status: z.ZodEnum<{
6029
- ready: "ready";
6030
- waiting: "waiting";
6031
6235
  done: "done";
6236
+ waiting: "waiting";
6237
+ ready: "ready";
6032
6238
  }>;
6033
6239
  winnerId: z.ZodNullable<z.ZodNumber>;
6034
6240
  decision: z.ZodNullable<z.ZodEnum<{
6241
+ withdrawn: "withdrawn";
6035
6242
  forfeit: "forfeit";
6036
6243
  timeout: "timeout";
6037
- withdrawn: "withdrawn";
6038
6244
  played: "played";
6039
6245
  bye: "bye";
6040
6246
  }>>;
@@ -6097,8 +6303,8 @@ export declare const TournamentSummary: z.ZodObject<{
6097
6303
  closed: "closed";
6098
6304
  }>;
6099
6305
  phase: z.ZodEnum<{
6100
- done: "done";
6101
6306
  cancelled: "cancelled";
6307
+ done: "done";
6102
6308
  signup: "signup";
6103
6309
  running: "running";
6104
6310
  }>;
@@ -6173,8 +6379,8 @@ export declare const TournamentDetail: z.ZodObject<{
6173
6379
  closed: "closed";
6174
6380
  }>;
6175
6381
  phase: z.ZodEnum<{
6176
- done: "done";
6177
6382
  cancelled: "cancelled";
6383
+ done: "done";
6178
6384
  signup: "signup";
6179
6385
  running: "running";
6180
6386
  }>;
@@ -6256,15 +6462,15 @@ export declare const TournamentDetail: z.ZodObject<{
6256
6462
  a: z.ZodNullable<z.ZodNumber>;
6257
6463
  b: z.ZodNullable<z.ZodNumber>;
6258
6464
  status: z.ZodEnum<{
6259
- ready: "ready";
6260
- waiting: "waiting";
6261
6465
  done: "done";
6466
+ waiting: "waiting";
6467
+ ready: "ready";
6262
6468
  }>;
6263
6469
  winnerId: z.ZodNullable<z.ZodNumber>;
6264
6470
  decision: z.ZodNullable<z.ZodEnum<{
6471
+ withdrawn: "withdrawn";
6265
6472
  forfeit: "forfeit";
6266
6473
  timeout: "timeout";
6267
- withdrawn: "withdrawn";
6268
6474
  played: "played";
6269
6475
  bye: "bye";
6270
6476
  }>>;
@@ -6321,8 +6527,8 @@ export declare const tournamentEndpoints: {
6321
6527
  closed: "closed";
6322
6528
  }>;
6323
6529
  phase: z.ZodEnum<{
6324
- done: "done";
6325
6530
  cancelled: "cancelled";
6531
+ done: "done";
6326
6532
  signup: "signup";
6327
6533
  running: "running";
6328
6534
  }>;
@@ -6404,15 +6610,15 @@ export declare const tournamentEndpoints: {
6404
6610
  a: z.ZodNullable<z.ZodNumber>;
6405
6611
  b: z.ZodNullable<z.ZodNumber>;
6406
6612
  status: z.ZodEnum<{
6407
- ready: "ready";
6408
- waiting: "waiting";
6409
6613
  done: "done";
6614
+ waiting: "waiting";
6615
+ ready: "ready";
6410
6616
  }>;
6411
6617
  winnerId: z.ZodNullable<z.ZodNumber>;
6412
6618
  decision: z.ZodNullable<z.ZodEnum<{
6619
+ withdrawn: "withdrawn";
6413
6620
  forfeit: "forfeit";
6414
6621
  timeout: "timeout";
6415
- withdrawn: "withdrawn";
6416
6622
  played: "played";
6417
6623
  bye: "bye";
6418
6624
  }>>;
@@ -6457,8 +6663,8 @@ export declare const tournamentEndpoints: {
6457
6663
  closed: "closed";
6458
6664
  }>;
6459
6665
  phase: z.ZodEnum<{
6460
- done: "done";
6461
6666
  cancelled: "cancelled";
6667
+ done: "done";
6462
6668
  signup: "signup";
6463
6669
  running: "running";
6464
6670
  }>;
@@ -6540,15 +6746,15 @@ export declare const tournamentEndpoints: {
6540
6746
  a: z.ZodNullable<z.ZodNumber>;
6541
6747
  b: z.ZodNullable<z.ZodNumber>;
6542
6748
  status: z.ZodEnum<{
6543
- ready: "ready";
6544
- waiting: "waiting";
6545
6749
  done: "done";
6750
+ waiting: "waiting";
6751
+ ready: "ready";
6546
6752
  }>;
6547
6753
  winnerId: z.ZodNullable<z.ZodNumber>;
6548
6754
  decision: z.ZodNullable<z.ZodEnum<{
6755
+ withdrawn: "withdrawn";
6549
6756
  forfeit: "forfeit";
6550
6757
  timeout: "timeout";
6551
- withdrawn: "withdrawn";
6552
6758
  played: "played";
6553
6759
  bye: "bye";
6554
6760
  }>>;
@@ -6642,8 +6848,8 @@ export declare const tournamentEndpoints: {
6642
6848
  closed: "closed";
6643
6849
  }>;
6644
6850
  phase: z.ZodEnum<{
6645
- done: "done";
6646
6851
  cancelled: "cancelled";
6852
+ done: "done";
6647
6853
  signup: "signup";
6648
6854
  running: "running";
6649
6855
  }>;
@@ -6725,15 +6931,15 @@ export declare const tournamentEndpoints: {
6725
6931
  a: z.ZodNullable<z.ZodNumber>;
6726
6932
  b: z.ZodNullable<z.ZodNumber>;
6727
6933
  status: z.ZodEnum<{
6728
- ready: "ready";
6729
- waiting: "waiting";
6730
6934
  done: "done";
6935
+ waiting: "waiting";
6936
+ ready: "ready";
6731
6937
  }>;
6732
6938
  winnerId: z.ZodNullable<z.ZodNumber>;
6733
6939
  decision: z.ZodNullable<z.ZodEnum<{
6940
+ withdrawn: "withdrawn";
6734
6941
  forfeit: "forfeit";
6735
6942
  timeout: "timeout";
6736
- withdrawn: "withdrawn";
6737
6943
  played: "played";
6738
6944
  bye: "bye";
6739
6945
  }>>;
@@ -6809,8 +7015,8 @@ export declare const tournamentEndpoints: {
6809
7015
  closed: "closed";
6810
7016
  }>;
6811
7017
  phase: z.ZodEnum<{
6812
- done: "done";
6813
7018
  cancelled: "cancelled";
7019
+ done: "done";
6814
7020
  signup: "signup";
6815
7021
  running: "running";
6816
7022
  }>;
@@ -6923,8 +7129,8 @@ export declare const tournamentEndpoints: {
6923
7129
  closed: "closed";
6924
7130
  }>;
6925
7131
  phase: z.ZodEnum<{
6926
- done: "done";
6927
7132
  cancelled: "cancelled";
7133
+ done: "done";
6928
7134
  signup: "signup";
6929
7135
  running: "running";
6930
7136
  }>;
@@ -7006,15 +7212,15 @@ export declare const tournamentEndpoints: {
7006
7212
  a: z.ZodNullable<z.ZodNumber>;
7007
7213
  b: z.ZodNullable<z.ZodNumber>;
7008
7214
  status: z.ZodEnum<{
7009
- ready: "ready";
7010
- waiting: "waiting";
7011
7215
  done: "done";
7216
+ waiting: "waiting";
7217
+ ready: "ready";
7012
7218
  }>;
7013
7219
  winnerId: z.ZodNullable<z.ZodNumber>;
7014
7220
  decision: z.ZodNullable<z.ZodEnum<{
7221
+ withdrawn: "withdrawn";
7015
7222
  forfeit: "forfeit";
7016
7223
  timeout: "timeout";
7017
- withdrawn: "withdrawn";
7018
7224
  played: "played";
7019
7225
  bye: "bye";
7020
7226
  }>>;
@@ -7082,8 +7288,8 @@ export declare const tournamentEndpoints: {
7082
7288
  closed: "closed";
7083
7289
  }>;
7084
7290
  phase: z.ZodEnum<{
7085
- done: "done";
7086
7291
  cancelled: "cancelled";
7292
+ done: "done";
7087
7293
  signup: "signup";
7088
7294
  running: "running";
7089
7295
  }>;
@@ -7173,8 +7379,8 @@ export declare const tournamentEndpoints: {
7173
7379
  closed: "closed";
7174
7380
  }>;
7175
7381
  phase: z.ZodEnum<{
7176
- done: "done";
7177
7382
  cancelled: "cancelled";
7383
+ done: "done";
7178
7384
  signup: "signup";
7179
7385
  running: "running";
7180
7386
  }>;
@@ -7256,15 +7462,15 @@ export declare const tournamentEndpoints: {
7256
7462
  a: z.ZodNullable<z.ZodNumber>;
7257
7463
  b: z.ZodNullable<z.ZodNumber>;
7258
7464
  status: z.ZodEnum<{
7259
- ready: "ready";
7260
- waiting: "waiting";
7261
7465
  done: "done";
7466
+ waiting: "waiting";
7467
+ ready: "ready";
7262
7468
  }>;
7263
7469
  winnerId: z.ZodNullable<z.ZodNumber>;
7264
7470
  decision: z.ZodNullable<z.ZodEnum<{
7471
+ withdrawn: "withdrawn";
7265
7472
  forfeit: "forfeit";
7266
7473
  timeout: "timeout";
7267
- withdrawn: "withdrawn";
7268
7474
  played: "played";
7269
7475
  bye: "bye";
7270
7476
  }>>;
@@ -7368,8 +7574,8 @@ export declare const PlayOnline: z.ZodObject<{
7368
7574
  closed: "closed";
7369
7575
  }>;
7370
7576
  phase: z.ZodEnum<{
7371
- done: "done";
7372
7577
  cancelled: "cancelled";
7578
+ done: "done";
7373
7579
  signup: "signup";
7374
7580
  running: "running";
7375
7581
  }>;
@@ -7441,8 +7647,8 @@ export declare const PlayOnline: z.ZodObject<{
7441
7647
  closed: "closed";
7442
7648
  }>;
7443
7649
  phase: z.ZodEnum<{
7444
- done: "done";
7445
7650
  cancelled: "cancelled";
7651
+ done: "done";
7446
7652
  signup: "signup";
7447
7653
  running: "running";
7448
7654
  }>;
@@ -7514,8 +7720,8 @@ export declare const PlayOnline: z.ZodObject<{
7514
7720
  closed: "closed";
7515
7721
  }>;
7516
7722
  phase: z.ZodEnum<{
7517
- done: "done";
7518
7723
  cancelled: "cancelled";
7724
+ done: "done";
7519
7725
  signup: "signup";
7520
7726
  running: "running";
7521
7727
  }>;
@@ -7635,8 +7841,8 @@ export declare const playOnlineEndpoints: {
7635
7841
  closed: "closed";
7636
7842
  }>;
7637
7843
  phase: z.ZodEnum<{
7638
- done: "done";
7639
7844
  cancelled: "cancelled";
7845
+ done: "done";
7640
7846
  signup: "signup";
7641
7847
  running: "running";
7642
7848
  }>;
@@ -7708,8 +7914,8 @@ export declare const playOnlineEndpoints: {
7708
7914
  closed: "closed";
7709
7915
  }>;
7710
7916
  phase: z.ZodEnum<{
7711
- done: "done";
7712
7917
  cancelled: "cancelled";
7918
+ done: "done";
7713
7919
  signup: "signup";
7714
7920
  running: "running";
7715
7921
  }>;
@@ -7781,8 +7987,8 @@ export declare const playOnlineEndpoints: {
7781
7987
  closed: "closed";
7782
7988
  }>;
7783
7989
  phase: z.ZodEnum<{
7784
- done: "done";
7785
7990
  cancelled: "cancelled";
7991
+ done: "done";
7786
7992
  signup: "signup";
7787
7993
  running: "running";
7788
7994
  }>;
@@ -7907,6 +8113,8 @@ export declare const OFFLINE_REPLAY_ENDPOINTS: {
7907
8113
  readonly grantInventoryItems: "replay";
7908
8114
  readonly exchangeInventoryItems: "replay";
7909
8115
  readonly setGameFavorite: "replay";
8116
+ readonly saveResumeSlot: "replay";
8117
+ readonly clearResumeSlot: "replay";
7910
8118
  };
7911
8119
  /** The name of an endpoint that supports offline replay. */
7912
8120
  export type OfflineReplayEndpoint = keyof typeof OFFLINE_REPLAY_ENDPOINTS;
@@ -7918,7 +8126,7 @@ export declare function isOfflineReplayEndpoint(name: string): name is OfflineRe
7918
8126
  * Every public endpoint, by name. Typed as an intersection of the areas so the
7919
8127
  * published .d.ts refers to each area instead of repeating every endpoint.
7920
8128
  */
7921
- export type PublicEndpoints = typeof authEndpoints & typeof catalogEndpoints & typeof progressEndpoints & typeof leaderboardsEndpoints & typeof dailyEndpoints & typeof economyEndpoints & typeof analyticsEndpoints & typeof socialEndpoints & typeof messagesEndpoints & typeof notifyEndpoints & typeof reportsEndpoints & typeof mpEndpoints & typeof raceEndpoints & typeof tournamentEndpoints & typeof playOnlineEndpoints & typeof versionEndpoints;
8129
+ export type PublicEndpoints = typeof authEndpoints & typeof catalogEndpoints & typeof progressEndpoints & typeof leaderboardsEndpoints & typeof dailyEndpoints & typeof economyEndpoints & typeof analyticsEndpoints & typeof socialEndpoints & typeof messagesEndpoints & typeof notifyEndpoints & typeof reportsEndpoints & typeof mpEndpoints & typeof raceEndpoints & typeof tournamentEndpoints & typeof playOnlineEndpoints & typeof versionEndpoints & typeof resumeEndpoints;
7922
8130
  /** Every public endpoint, by name. */
7923
8131
  export declare const publicEndpoints: PublicEndpoints;
7924
8132
  /**
@@ -7989,8 +8197,8 @@ declare const multiplayerEvents: {
7989
8197
  closed: "closed";
7990
8198
  }>;
7991
8199
  phase: import("zod").ZodEnum<{
7992
- done: "done";
7993
8200
  cancelled: "cancelled";
8201
+ done: "done";
7994
8202
  signup: "signup";
7995
8203
  running: "running";
7996
8204
  }>;
@@ -8137,10 +8345,10 @@ declare const multiplayerEvents: {
8137
8345
  }>;
8138
8346
  race: import("zod").ZodOptional<import("zod").ZodObject<{
8139
8347
  phase: import("zod").ZodEnum<{
8348
+ done: "done";
8140
8349
  waiting: "waiting";
8141
8350
  countdown: "countdown";
8142
8351
  racing: "racing";
8143
- done: "done";
8144
8352
  }>;
8145
8353
  round: import("zod").ZodNumber;
8146
8354
  params: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodString]>>;
@@ -8152,11 +8360,11 @@ declare const multiplayerEvents: {
8152
8360
  stats: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>, import("zod").ZodBoolean, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>]>>;
8153
8361
  progress: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>>;
8154
8362
  state: import("zod").ZodEnum<{
8155
- racing: "racing";
8156
8363
  finished: "finished";
8157
8364
  lost: "lost";
8158
8365
  forfeit: "forfeit";
8159
8366
  disconnected: "disconnected";
8367
+ racing: "racing";
8160
8368
  }>;
8161
8369
  ms: import("zod").ZodOptional<import("zod").ZodNumber>;
8162
8370
  }, import("zod/v4/core").$strip>>;
@@ -8345,11 +8553,11 @@ declare const socialEvents: {
8345
8553
  friends: EventDef<z.ZodObject<{
8346
8554
  change: z.ZodEnum<{
8347
8555
  blocked: "blocked";
8348
- request: "request";
8349
8556
  accepted: "accepted";
8350
- removed: "removed";
8351
8557
  declined: "declined";
8352
8558
  cancelled: "cancelled";
8559
+ removed: "removed";
8560
+ request: "request";
8353
8561
  restored: "restored";
8354
8562
  }>;
8355
8563
  user: z.ZodObject<{
@@ -8409,10 +8617,10 @@ declare const socialEvents: {
8409
8617
  friend_request: "friend_request";
8410
8618
  friend_online: "friend_online";
8411
8619
  lobby_open: "lobby_open";
8412
- invite: "invite";
8413
8620
  suggestion: "suggestion";
8414
- renamed: "renamed";
8621
+ invite: "invite";
8415
8622
  tournament: "tournament";
8623
+ renamed: "renamed";
8416
8624
  }>;
8417
8625
  title: z.ZodString;
8418
8626
  body: z.ZodOptional<z.ZodString>;
@@ -8504,10 +8712,10 @@ declare const helloOps: {
8504
8712
  }>;
8505
8713
  race: z.ZodOptional<z.ZodObject<{
8506
8714
  phase: z.ZodEnum<{
8715
+ done: "done";
8507
8716
  waiting: "waiting";
8508
8717
  countdown: "countdown";
8509
8718
  racing: "racing";
8510
- done: "done";
8511
8719
  }>;
8512
8720
  round: z.ZodNumber;
8513
8721
  params: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString]>>;
@@ -8519,11 +8727,11 @@ declare const helloOps: {
8519
8727
  stats: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>, z.ZodBoolean, z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>]>>;
8520
8728
  progress: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>>;
8521
8729
  state: z.ZodEnum<{
8522
- racing: "racing";
8523
8730
  finished: "finished";
8524
8731
  lost: "lost";
8525
8732
  forfeit: "forfeit";
8526
8733
  disconnected: "disconnected";
8734
+ racing: "racing";
8527
8735
  }>;
8528
8736
  ms: z.ZodOptional<z.ZodNumber>;
8529
8737
  }, z.core.$strip>>;
@@ -8708,10 +8916,10 @@ declare const multiplayerOps: {
8708
8916
  }>;
8709
8917
  race: import("zod").ZodOptional<import("zod").ZodObject<{
8710
8918
  phase: import("zod").ZodEnum<{
8919
+ done: "done";
8711
8920
  waiting: "waiting";
8712
8921
  countdown: "countdown";
8713
8922
  racing: "racing";
8714
- done: "done";
8715
8923
  }>;
8716
8924
  round: import("zod").ZodNumber;
8717
8925
  params: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodString]>>;
@@ -8723,11 +8931,11 @@ declare const multiplayerOps: {
8723
8931
  stats: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>, import("zod").ZodBoolean, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>]>>;
8724
8932
  progress: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>>;
8725
8933
  state: import("zod").ZodEnum<{
8726
- racing: "racing";
8727
8934
  finished: "finished";
8728
8935
  lost: "lost";
8729
8936
  forfeit: "forfeit";
8730
8937
  disconnected: "disconnected";
8938
+ racing: "racing";
8731
8939
  }>;
8732
8940
  ms: import("zod").ZodOptional<import("zod").ZodNumber>;
8733
8941
  }, import("zod/v4/core").$strip>>;
@@ -8812,10 +9020,10 @@ declare const multiplayerOps: {
8812
9020
  }>;
8813
9021
  race: import("zod").ZodOptional<import("zod").ZodObject<{
8814
9022
  phase: import("zod").ZodEnum<{
9023
+ done: "done";
8815
9024
  waiting: "waiting";
8816
9025
  countdown: "countdown";
8817
9026
  racing: "racing";
8818
- done: "done";
8819
9027
  }>;
8820
9028
  round: import("zod").ZodNumber;
8821
9029
  params: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodString]>>;
@@ -8827,11 +9035,11 @@ declare const multiplayerOps: {
8827
9035
  stats: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>, import("zod").ZodBoolean, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>]>>;
8828
9036
  progress: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>>;
8829
9037
  state: import("zod").ZodEnum<{
8830
- racing: "racing";
8831
9038
  finished: "finished";
8832
9039
  lost: "lost";
8833
9040
  forfeit: "forfeit";
8834
9041
  disconnected: "disconnected";
9042
+ racing: "racing";
8835
9043
  }>;
8836
9044
  ms: import("zod").ZodOptional<import("zod").ZodNumber>;
8837
9045
  }, import("zod/v4/core").$strip>>;
@@ -8914,10 +9122,10 @@ declare const multiplayerOps: {
8914
9122
  }>;
8915
9123
  race: import("zod").ZodOptional<import("zod").ZodObject<{
8916
9124
  phase: import("zod").ZodEnum<{
9125
+ done: "done";
8917
9126
  waiting: "waiting";
8918
9127
  countdown: "countdown";
8919
9128
  racing: "racing";
8920
- done: "done";
8921
9129
  }>;
8922
9130
  round: import("zod").ZodNumber;
8923
9131
  params: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodString]>>;
@@ -8929,11 +9137,11 @@ declare const multiplayerOps: {
8929
9137
  stats: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>, import("zod").ZodBoolean, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>]>>;
8930
9138
  progress: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>>;
8931
9139
  state: import("zod").ZodEnum<{
8932
- racing: "racing";
8933
9140
  finished: "finished";
8934
9141
  lost: "lost";
8935
9142
  forfeit: "forfeit";
8936
9143
  disconnected: "disconnected";
9144
+ racing: "racing";
8937
9145
  }>;
8938
9146
  ms: import("zod").ZodOptional<import("zod").ZodNumber>;
8939
9147
  }, import("zod/v4/core").$strip>>;
@@ -9082,10 +9290,10 @@ declare const multiplayerOps: {
9082
9290
  }>;
9083
9291
  race: import("zod").ZodOptional<import("zod").ZodObject<{
9084
9292
  phase: import("zod").ZodEnum<{
9293
+ done: "done";
9085
9294
  waiting: "waiting";
9086
9295
  countdown: "countdown";
9087
9296
  racing: "racing";
9088
- done: "done";
9089
9297
  }>;
9090
9298
  round: import("zod").ZodNumber;
9091
9299
  params: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodString]>>;
@@ -9097,11 +9305,11 @@ declare const multiplayerOps: {
9097
9305
  stats: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>, import("zod").ZodBoolean, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>]>>;
9098
9306
  progress: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>>;
9099
9307
  state: import("zod").ZodEnum<{
9100
- racing: "racing";
9101
9308
  finished: "finished";
9102
9309
  lost: "lost";
9103
9310
  forfeit: "forfeit";
9104
9311
  disconnected: "disconnected";
9312
+ racing: "racing";
9105
9313
  }>;
9106
9314
  ms: import("zod").ZodOptional<import("zod").ZodNumber>;
9107
9315
  }, import("zod/v4/core").$strip>>;
@@ -9187,10 +9395,10 @@ declare const multiplayerOps: {
9187
9395
  }>;
9188
9396
  race: import("zod").ZodOptional<import("zod").ZodObject<{
9189
9397
  phase: import("zod").ZodEnum<{
9398
+ done: "done";
9190
9399
  waiting: "waiting";
9191
9400
  countdown: "countdown";
9192
9401
  racing: "racing";
9193
- done: "done";
9194
9402
  }>;
9195
9403
  round: import("zod").ZodNumber;
9196
9404
  params: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodString]>>;
@@ -9202,11 +9410,11 @@ declare const multiplayerOps: {
9202
9410
  stats: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>, import("zod").ZodBoolean, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>]>>;
9203
9411
  progress: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>>;
9204
9412
  state: import("zod").ZodEnum<{
9205
- racing: "racing";
9206
9413
  finished: "finished";
9207
9414
  lost: "lost";
9208
9415
  forfeit: "forfeit";
9209
9416
  disconnected: "disconnected";
9417
+ racing: "racing";
9210
9418
  }>;
9211
9419
  ms: import("zod").ZodOptional<import("zod").ZodNumber>;
9212
9420
  }, import("zod/v4/core").$strip>>;
@@ -9297,10 +9505,10 @@ declare const multiplayerOps: {
9297
9505
  }>;
9298
9506
  race: import("zod").ZodOptional<import("zod").ZodObject<{
9299
9507
  phase: import("zod").ZodEnum<{
9508
+ done: "done";
9300
9509
  waiting: "waiting";
9301
9510
  countdown: "countdown";
9302
9511
  racing: "racing";
9303
- done: "done";
9304
9512
  }>;
9305
9513
  round: import("zod").ZodNumber;
9306
9514
  params: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodString]>>;
@@ -9312,11 +9520,11 @@ declare const multiplayerOps: {
9312
9520
  stats: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>, import("zod").ZodBoolean, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>]>>;
9313
9521
  progress: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>>;
9314
9522
  state: import("zod").ZodEnum<{
9315
- racing: "racing";
9316
9523
  finished: "finished";
9317
9524
  lost: "lost";
9318
9525
  forfeit: "forfeit";
9319
9526
  disconnected: "disconnected";
9527
+ racing: "racing";
9320
9528
  }>;
9321
9529
  ms: import("zod").ZodOptional<import("zod").ZodNumber>;
9322
9530
  }, import("zod/v4/core").$strip>>;
@@ -9442,10 +9650,10 @@ declare const multiplayerOps: {
9442
9650
  }>;
9443
9651
  race: import("zod").ZodOptional<import("zod").ZodObject<{
9444
9652
  phase: import("zod").ZodEnum<{
9653
+ done: "done";
9445
9654
  waiting: "waiting";
9446
9655
  countdown: "countdown";
9447
9656
  racing: "racing";
9448
- done: "done";
9449
9657
  }>;
9450
9658
  round: import("zod").ZodNumber;
9451
9659
  params: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodString]>>;
@@ -9457,11 +9665,11 @@ declare const multiplayerOps: {
9457
9665
  stats: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>, import("zod").ZodBoolean, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>]>>;
9458
9666
  progress: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<number, number>>>;
9459
9667
  state: import("zod").ZodEnum<{
9460
- racing: "racing";
9461
9668
  finished: "finished";
9462
9669
  lost: "lost";
9463
9670
  forfeit: "forfeit";
9464
9671
  disconnected: "disconnected";
9672
+ racing: "racing";
9465
9673
  }>;
9466
9674
  ms: import("zod").ZodOptional<import("zod").ZodNumber>;
9467
9675
  }, import("zod/v4/core").$strip>>;
@@ -9757,6 +9965,7 @@ export declare const StaticGame: z.ZodObject<{
9757
9965
  y: z.ZodOptional<z.ZodNumber>;
9758
9966
  }, z.core.$strict>]>>;
9759
9967
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
9968
+ resumable: z.ZodOptional<z.ZodBoolean>;
9760
9969
  dailyChallenges: z.ZodOptional<z.ZodBoolean>;
9761
9970
  leaderboards: z.ZodOptional<z.ZodArray<z.ZodObject<{
9762
9971
  key: z.ZodString;
@@ -9767,8 +9976,8 @@ export declare const StaticGame: z.ZodObject<{
9767
9976
  }>>;
9768
9977
  showZeros: z.ZodOptional<z.ZodBoolean>;
9769
9978
  source: z.ZodDefault<z.ZodEnum<{
9770
- client: "client";
9771
9979
  server: "server";
9980
+ client: "client";
9772
9981
  }>>;
9773
9982
  }, z.core.$strict>>>;
9774
9983
  controls: z.ZodOptional<z.ZodObject<{
@@ -9892,6 +10101,7 @@ export declare const ProcessGame: z.ZodObject<{
9892
10101
  y: z.ZodOptional<z.ZodNumber>;
9893
10102
  }, z.core.$strict>]>>;
9894
10103
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
10104
+ resumable: z.ZodOptional<z.ZodBoolean>;
9895
10105
  dailyChallenges: z.ZodOptional<z.ZodBoolean>;
9896
10106
  leaderboards: z.ZodOptional<z.ZodArray<z.ZodObject<{
9897
10107
  key: z.ZodString;
@@ -9902,8 +10112,8 @@ export declare const ProcessGame: z.ZodObject<{
9902
10112
  }>>;
9903
10113
  showZeros: z.ZodOptional<z.ZodBoolean>;
9904
10114
  source: z.ZodDefault<z.ZodEnum<{
9905
- client: "client";
9906
10115
  server: "server";
10116
+ client: "client";
9907
10117
  }>>;
9908
10118
  }, z.core.$strict>>>;
9909
10119
  controls: z.ZodOptional<z.ZodObject<{
@@ -10028,6 +10238,7 @@ export declare const GameManifest: z.ZodDiscriminatedUnion<[z.ZodObject<{
10028
10238
  y: z.ZodOptional<z.ZodNumber>;
10029
10239
  }, z.core.$strict>]>>;
10030
10240
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
10241
+ resumable: z.ZodOptional<z.ZodBoolean>;
10031
10242
  dailyChallenges: z.ZodOptional<z.ZodBoolean>;
10032
10243
  leaderboards: z.ZodOptional<z.ZodArray<z.ZodObject<{
10033
10244
  key: z.ZodString;
@@ -10038,8 +10249,8 @@ export declare const GameManifest: z.ZodDiscriminatedUnion<[z.ZodObject<{
10038
10249
  }>>;
10039
10250
  showZeros: z.ZodOptional<z.ZodBoolean>;
10040
10251
  source: z.ZodDefault<z.ZodEnum<{
10041
- client: "client";
10042
10252
  server: "server";
10253
+ client: "client";
10043
10254
  }>>;
10044
10255
  }, z.core.$strict>>>;
10045
10256
  controls: z.ZodOptional<z.ZodObject<{
@@ -10161,6 +10372,7 @@ export declare const GameManifest: z.ZodDiscriminatedUnion<[z.ZodObject<{
10161
10372
  y: z.ZodOptional<z.ZodNumber>;
10162
10373
  }, z.core.$strict>]>>;
10163
10374
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
10375
+ resumable: z.ZodOptional<z.ZodBoolean>;
10164
10376
  dailyChallenges: z.ZodOptional<z.ZodBoolean>;
10165
10377
  leaderboards: z.ZodOptional<z.ZodArray<z.ZodObject<{
10166
10378
  key: z.ZodString;
@@ -10171,8 +10383,8 @@ export declare const GameManifest: z.ZodDiscriminatedUnion<[z.ZodObject<{
10171
10383
  }>>;
10172
10384
  showZeros: z.ZodOptional<z.ZodBoolean>;
10173
10385
  source: z.ZodDefault<z.ZodEnum<{
10174
- client: "client";
10175
10386
  server: "server";
10387
+ client: "client";
10176
10388
  }>>;
10177
10389
  }, z.core.$strict>>>;
10178
10390
  controls: z.ZodOptional<z.ZodObject<{
@@ -10307,6 +10519,7 @@ export declare const GamePackageJson: z.ZodObject<{
10307
10519
  y: z.ZodOptional<z.ZodNumber>;
10308
10520
  }, z.core.$strict>]>>;
10309
10521
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
10522
+ resumable: z.ZodOptional<z.ZodBoolean>;
10310
10523
  dailyChallenges: z.ZodOptional<z.ZodBoolean>;
10311
10524
  leaderboards: z.ZodOptional<z.ZodArray<z.ZodObject<{
10312
10525
  key: z.ZodString;
@@ -10317,8 +10530,8 @@ export declare const GamePackageJson: z.ZodObject<{
10317
10530
  }>>;
10318
10531
  showZeros: z.ZodOptional<z.ZodBoolean>;
10319
10532
  source: z.ZodDefault<z.ZodEnum<{
10320
- client: "client";
10321
10533
  server: "server";
10534
+ client: "client";
10322
10535
  }>>;
10323
10536
  }, z.core.$strict>>>;
10324
10537
  controls: z.ZodOptional<z.ZodObject<{
@@ -10440,6 +10653,7 @@ export declare const GamePackageJson: z.ZodObject<{
10440
10653
  y: z.ZodOptional<z.ZodNumber>;
10441
10654
  }, z.core.$strict>]>>;
10442
10655
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
10656
+ resumable: z.ZodOptional<z.ZodBoolean>;
10443
10657
  dailyChallenges: z.ZodOptional<z.ZodBoolean>;
10444
10658
  leaderboards: z.ZodOptional<z.ZodArray<z.ZodObject<{
10445
10659
  key: z.ZodString;
@@ -10450,8 +10664,8 @@ export declare const GamePackageJson: z.ZodObject<{
10450
10664
  }>>;
10451
10665
  showZeros: z.ZodOptional<z.ZodBoolean>;
10452
10666
  source: z.ZodDefault<z.ZodEnum<{
10453
- client: "client";
10454
10667
  server: "server";
10668
+ client: "client";
10455
10669
  }>>;
10456
10670
  }, z.core.$strict>>>;
10457
10671
  controls: z.ZodOptional<z.ZodObject<{
@@ -10621,10 +10835,10 @@ export declare const GAME_LABEL_GROUP_ORDER: readonly GameLabelGroup[];
10621
10835
  export declare const GAME_LABELS: readonly ["cards", "board", "puzzle", "arcade", "platformer", "real-time-strategy", "physics", "typing", "word", "sports", "racing", "2d", "3d", "phone", "controller", "desktop", "multiplayer", "single-player"];
10622
10836
  /** One known label. */
10623
10837
  export declare const GameLabel: z.ZodEnum<{
10624
- racing: "racing";
10625
- typing: "typing";
10626
10838
  multiplayer: "multiplayer";
10627
10839
  board: "board";
10840
+ racing: "racing";
10841
+ typing: "typing";
10628
10842
  cards: "cards";
10629
10843
  puzzle: "puzzle";
10630
10844
  arcade: "arcade";
@@ -10672,8 +10886,8 @@ export declare const LeaderboardDecl: z.ZodObject<{
10672
10886
  }>>;
10673
10887
  showZeros: z.ZodOptional<z.ZodBoolean>;
10674
10888
  source: z.ZodDefault<z.ZodEnum<{
10675
- client: "client";
10676
10889
  server: "server";
10890
+ client: "client";
10677
10891
  }>>;
10678
10892
  }, z.core.$strict>;
10679
10893
  /** `game.leaderboards`: unique keys. */
@@ -10686,8 +10900,8 @@ export declare const GameLeaderboardDecls: z.ZodArray<z.ZodObject<{
10686
10900
  }>>;
10687
10901
  showZeros: z.ZodOptional<z.ZodBoolean>;
10688
10902
  source: z.ZodDefault<z.ZodEnum<{
10689
- client: "client";
10690
10903
  server: "server";
10904
+ client: "client";
10691
10905
  }>>;
10692
10906
  }, z.core.$strict>>;
10693
10907
  //#endregion