@manabrew/protocol 4.1.3 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,6 +73,8 @@ export type CombatAssignmentDto = {
73
73
  attackerId: string;
74
74
  };
75
75
  export type DayTime = "neither" | "day" | "night";
76
+ export type EngineKind = "Manabrew" | "Forge" | "Ironsmith";
77
+ export type GameFormat = "Any" | "Standard" | "Pioneer" | "Modern" | "Legacy" | "Vintage" | "Pauper" | "Commander" | "Brawl" | "Oathbreaker" | "Draft" | "Sealed";
76
78
  export type GameViewDto = {
77
79
  gameId: string;
78
80
  turn: number;
@@ -109,6 +111,7 @@ export type PlayerDto = {
109
111
  };
110
112
  commanderDamage: Record<string, number>;
111
113
  hasCityBlessing: boolean;
114
+ hasEnduringStory: boolean;
112
115
  ringLevel: number;
113
116
  speed: number;
114
117
  };
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- // AUTO-GENERATED by `cargo run -p manabrew-protocol --bin gen-protocol`. Do not edit.
17
+ // AUTO-GENERATED by `cargo run -p manabrew-relay-protocol --bin gen-protocol`. Do not edit.
18
18
  __exportStar(require("./prompts"), exports);
19
19
  __exportStar(require("./transport"), exports);
20
20
  __exportStar(require("./version"), exports);
@@ -1,4 +1,6 @@
1
1
  import type { Deck } from "../deck/index";
2
+ import type { EngineKind } from "../game/index";
3
+ import type { GameFormat } from "../game/index";
2
4
  export type DraftConfig = {
3
5
  set_code?: string;
4
6
  cube_id?: string;
@@ -8,8 +10,6 @@ export type DraftConfig = {
8
10
  seed?: number;
9
11
  fill_with_bots: boolean;
10
12
  };
11
- export type EngineKind = "Manabrew" | "Forge" | "Ironsmith";
12
- export type GameFormat = "Any" | "Standard" | "Pioneer" | "Modern" | "Legacy" | "Vintage" | "Pauper" | "Commander" | "Brawl" | "Oathbreaker" | "Draft" | "Sealed";
13
13
  export type PlayerDeckInfo = {
14
14
  username: string;
15
15
  deck_name: string;
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- // AUTO-GENERATED by `cargo run -p manabrew-protocol --bin gen-protocol`. Do not edit.
17
+ // AUTO-GENERATED by `cargo run -p manabrew-relay-protocol --bin gen-protocol`. Do not edit.
18
18
  __exportStar(require("./chooseAction"), exports);
19
19
  __exportStar(require("./chooseAttackers"), exports);
20
20
  __exportStar(require("./chooseBlockers"), exports);
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- // AUTO-GENERATED by `cargo run -p manabrew-protocol --bin gen-protocol`. Do not edit.
17
+ // AUTO-GENERATED by `cargo run -p manabrew-relay-protocol --bin gen-protocol`. Do not edit.
18
18
  __exportStar(require("./messages"), exports);
19
19
  __exportStar(require("./envelope"), exports);
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.1.3";
2
- export declare const PROTOCOL_VERSION = 4;
1
+ export declare const VERSION = "5.0.0";
2
+ export declare const PROTOCOL_VERSION = 5;
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROTOCOL_VERSION = exports.VERSION = void 0;
4
- // AUTO-GENERATED by `cargo run -p manabrew-protocol --bin gen-protocol`. Do not edit.
5
- exports.VERSION = "4.1.3";
6
- exports.PROTOCOL_VERSION = 4;
4
+ // AUTO-GENERATED by `cargo run -p manabrew-relay-protocol --bin gen-protocol`. Do not edit.
5
+ exports.VERSION = "5.0.0";
6
+ exports.PROTOCOL_VERSION = 5;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manabrew/protocol",
3
- "version": "4.1.3",
3
+ "version": "5.0.0",
4
4
  "description": "TypeScript types for the Manabrew wire protocol — the engine↔client message contract for the Manabrew Magic: The Gathering client.",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "repository": {