ttrpg-engine-dnd 0.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/CONTRIBUTING.md +98 -0
  3. package/DEVELOPMENT.md +70 -0
  4. package/LICENSE +21 -0
  5. package/README.md +247 -0
  6. package/VERSIONING.md +151 -0
  7. package/dist/content/index.d.ts +3 -0
  8. package/dist/content/index.d.ts.map +1 -0
  9. package/dist/content/pack.d.ts +1657 -0
  10. package/dist/content/pack.d.ts.map +1 -0
  11. package/dist/content/packs/starter.d.ts +4 -0
  12. package/dist/content/packs/starter.d.ts.map +1 -0
  13. package/dist/content/validate.d.ts +8 -0
  14. package/dist/content/validate.d.ts.map +1 -0
  15. package/dist/derive/ability-check.d.ts +26 -0
  16. package/dist/derive/ability-check.d.ts.map +1 -0
  17. package/dist/derive/ability.d.ts +9 -0
  18. package/dist/derive/ability.d.ts.map +1 -0
  19. package/dist/derive/ac.d.ts +19 -0
  20. package/dist/derive/ac.d.ts.map +1 -0
  21. package/dist/derive/action-economy.d.ts +17 -0
  22. package/dist/derive/action-economy.d.ts.map +1 -0
  23. package/dist/derive/attack.d.ts +20 -0
  24. package/dist/derive/attack.d.ts.map +1 -0
  25. package/dist/derive/character-view.d.ts +29 -0
  26. package/dist/derive/character-view.d.ts.map +1 -0
  27. package/dist/derive/damage-mitigation.d.ts +18 -0
  28. package/dist/derive/damage-mitigation.d.ts.map +1 -0
  29. package/dist/derive/effect-stack.d.ts +15 -0
  30. package/dist/derive/effect-stack.d.ts.map +1 -0
  31. package/dist/derive/encumbrance.d.ts +17 -0
  32. package/dist/derive/encumbrance.d.ts.map +1 -0
  33. package/dist/derive/index.d.ts +12 -0
  34. package/dist/derive/index.d.ts.map +1 -0
  35. package/dist/derive/save.d.ts +23 -0
  36. package/dist/derive/save.d.ts.map +1 -0
  37. package/dist/derive/spell-dc.d.ts +21 -0
  38. package/dist/derive/spell-dc.d.ts.map +1 -0
  39. package/dist/derive/spell-slots.d.ts +21 -0
  40. package/dist/derive/spell-slots.d.ts.map +1 -0
  41. package/dist/derive/terrain.d.ts +10 -0
  42. package/dist/derive/terrain.d.ts.map +1 -0
  43. package/dist/effects/builder.d.ts +66 -0
  44. package/dist/effects/builder.d.ts.map +1 -0
  45. package/dist/effects/formula.d.ts +12 -0
  46. package/dist/effects/formula.d.ts.map +1 -0
  47. package/dist/effects/index.d.ts +4 -0
  48. package/dist/effects/index.d.ts.map +1 -0
  49. package/dist/effects/predicate.d.ts +12 -0
  50. package/dist/effects/predicate.d.ts.map +1 -0
  51. package/dist/engine/apply.d.ts +5 -0
  52. package/dist/engine/apply.d.ts.map +1 -0
  53. package/dist/engine/commit.d.ts +12 -0
  54. package/dist/engine/commit.d.ts.map +1 -0
  55. package/dist/engine/conveniences.d.ts +7124 -0
  56. package/dist/engine/conveniences.d.ts.map +1 -0
  57. package/dist/engine/ids-utils.d.ts +2 -0
  58. package/dist/engine/ids-utils.d.ts.map +1 -0
  59. package/dist/engine/index.d.ts +107 -0
  60. package/dist/engine/index.d.ts.map +1 -0
  61. package/dist/engine/plan/action-surge.d.ts +10 -0
  62. package/dist/engine/plan/action-surge.d.ts.map +1 -0
  63. package/dist/engine/plan/attack.d.ts +30 -0
  64. package/dist/engine/plan/attack.d.ts.map +1 -0
  65. package/dist/engine/plan/cast-spell.d.ts +18 -0
  66. package/dist/engine/plan/cast-spell.d.ts.map +1 -0
  67. package/dist/engine/plan/checks.d.ts +26 -0
  68. package/dist/engine/plan/checks.d.ts.map +1 -0
  69. package/dist/engine/plan/concentration.d.ts +12 -0
  70. package/dist/engine/plan/concentration.d.ts.map +1 -0
  71. package/dist/engine/plan/contested.d.ts +28 -0
  72. package/dist/engine/plan/contested.d.ts.map +1 -0
  73. package/dist/engine/plan/encounter.d.ts +47 -0
  74. package/dist/engine/plan/encounter.d.ts.map +1 -0
  75. package/dist/engine/plan/falling.d.ts +11 -0
  76. package/dist/engine/plan/falling.d.ts.map +1 -0
  77. package/dist/engine/plan/index.d.ts +20 -0
  78. package/dist/engine/plan/index.d.ts.map +1 -0
  79. package/dist/engine/plan/level-up.d.ts +22 -0
  80. package/dist/engine/plan/level-up.d.ts.map +1 -0
  81. package/dist/engine/plan/movement.d.ts +25 -0
  82. package/dist/engine/plan/movement.d.ts.map +1 -0
  83. package/dist/engine/plan/multiattack.d.ts +12 -0
  84. package/dist/engine/plan/multiattack.d.ts.map +1 -0
  85. package/dist/engine/plan/npc.d.ts +21 -0
  86. package/dist/engine/plan/npc.d.ts.map +1 -0
  87. package/dist/engine/plan/offhand-attack.d.ts +13 -0
  88. package/dist/engine/plan/offhand-attack.d.ts.map +1 -0
  89. package/dist/engine/plan/opportunity-attack.d.ts +14 -0
  90. package/dist/engine/plan/opportunity-attack.d.ts.map +1 -0
  91. package/dist/engine/plan/reactive-spells.d.ts +34 -0
  92. package/dist/engine/plan/reactive-spells.d.ts.map +1 -0
  93. package/dist/engine/plan/rest.d.ts +16 -0
  94. package/dist/engine/plan/rest.d.ts.map +1 -0
  95. package/dist/engine/plan/travel.d.ts +21 -0
  96. package/dist/engine/plan/travel.d.ts.map +1 -0
  97. package/dist/engine/plan/weapon-mastery.d.ts +15 -0
  98. package/dist/engine/plan/weapon-mastery.d.ts.map +1 -0
  99. package/dist/engine/reducers/action-economy.d.ts +12 -0
  100. package/dist/engine/reducers/action-economy.d.ts.map +1 -0
  101. package/dist/engine/reducers/attack.d.ts +6 -0
  102. package/dist/engine/reducers/attack.d.ts.map +1 -0
  103. package/dist/engine/reducers/bastion.d.ts +10 -0
  104. package/dist/engine/reducers/bastion.d.ts.map +1 -0
  105. package/dist/engine/reducers/charges.d.ts +7 -0
  106. package/dist/engine/reducers/charges.d.ts.map +1 -0
  107. package/dist/engine/reducers/checks.d.ts +6 -0
  108. package/dist/engine/reducers/checks.d.ts.map +1 -0
  109. package/dist/engine/reducers/combat.d.ts +12 -0
  110. package/dist/engine/reducers/combat.d.ts.map +1 -0
  111. package/dist/engine/reducers/concentration.d.ts +6 -0
  112. package/dist/engine/reducers/concentration.d.ts.map +1 -0
  113. package/dist/engine/reducers/downtime.d.ts +5 -0
  114. package/dist/engine/reducers/downtime.d.ts.map +1 -0
  115. package/dist/engine/reducers/encounter.d.ts +11 -0
  116. package/dist/engine/reducers/encounter.d.ts.map +1 -0
  117. package/dist/engine/reducers/inventory.d.ts +9 -0
  118. package/dist/engine/reducers/inventory.d.ts.map +1 -0
  119. package/dist/engine/reducers/level-up.d.ts +7 -0
  120. package/dist/engine/reducers/level-up.d.ts.map +1 -0
  121. package/dist/engine/reducers/locations.d.ts +8 -0
  122. package/dist/engine/reducers/locations.d.ts.map +1 -0
  123. package/dist/engine/reducers/mounts-vehicles.d.ts +11 -0
  124. package/dist/engine/reducers/mounts-vehicles.d.ts.map +1 -0
  125. package/dist/engine/reducers/movement.d.ts +7 -0
  126. package/dist/engine/reducers/movement.d.ts.map +1 -0
  127. package/dist/engine/reducers/npc.d.ts +7 -0
  128. package/dist/engine/reducers/npc.d.ts.map +1 -0
  129. package/dist/engine/reducers/party.d.ts +10 -0
  130. package/dist/engine/reducers/party.d.ts.map +1 -0
  131. package/dist/engine/reducers/progression.d.ts +5 -0
  132. package/dist/engine/reducers/progression.d.ts.map +1 -0
  133. package/dist/engine/reducers/quests.d.ts +14 -0
  134. package/dist/engine/reducers/quests.d.ts.map +1 -0
  135. package/dist/engine/reducers/reactive-spells.d.ts +7 -0
  136. package/dist/engine/reducers/reactive-spells.d.ts.map +1 -0
  137. package/dist/engine/reducers/resources.d.ts +7 -0
  138. package/dist/engine/reducers/resources.d.ts.map +1 -0
  139. package/dist/engine/reducers/rest.d.ts +8 -0
  140. package/dist/engine/reducers/rest.d.ts.map +1 -0
  141. package/dist/engine/reducers/resurrection.d.ts +5 -0
  142. package/dist/engine/reducers/resurrection.d.ts.map +1 -0
  143. package/dist/engine/reducers/session.d.ts +8 -0
  144. package/dist/engine/reducers/session.d.ts.map +1 -0
  145. package/dist/engine/reducers/settings.d.ts +5 -0
  146. package/dist/engine/reducers/settings.d.ts.map +1 -0
  147. package/dist/engine/reducers/spellcasting.d.ts +7 -0
  148. package/dist/engine/reducers/spellcasting.d.ts.map +1 -0
  149. package/dist/engine/reducers/transformations.d.ts +8 -0
  150. package/dist/engine/reducers/transformations.d.ts.map +1 -0
  151. package/dist/engine/reducers/travel.d.ts +7 -0
  152. package/dist/engine/reducers/travel.d.ts.map +1 -0
  153. package/dist/engine/reducers/triggers.d.ts +9 -0
  154. package/dist/engine/reducers/triggers.d.ts.map +1 -0
  155. package/dist/engine/reducers/weapon-mastery.d.ts +5 -0
  156. package/dist/engine/reducers/weapon-mastery.d.ts.map +1 -0
  157. package/dist/engine/replay.d.ts +4 -0
  158. package/dist/engine/replay.d.ts.map +1 -0
  159. package/dist/engine/triggers/dispatch.d.ts +13 -0
  160. package/dist/engine/triggers/dispatch.d.ts.map +1 -0
  161. package/dist/engine/undo-redo.d.ts +4 -0
  162. package/dist/engine/undo-redo.d.ts.map +1 -0
  163. package/dist/handlers/context.d.ts +7 -0
  164. package/dist/handlers/context.d.ts.map +1 -0
  165. package/dist/handlers/index.d.ts +12 -0
  166. package/dist/handlers/index.d.ts.map +1 -0
  167. package/dist/ids.d.ts +64 -0
  168. package/dist/ids.d.ts.map +1 -0
  169. package/dist/index.d.ts +72 -0
  170. package/dist/index.d.ts.map +1 -0
  171. package/dist/internal/clock.d.ts +2 -0
  172. package/dist/internal/clock.d.ts.map +1 -0
  173. package/dist/internal/constants.d.ts +6 -0
  174. package/dist/internal/constants.d.ts.map +1 -0
  175. package/dist/internal/immer.d.ts +4 -0
  176. package/dist/internal/immer.d.ts.map +1 -0
  177. package/dist/internal/invariants.d.ts +5 -0
  178. package/dist/internal/invariants.d.ts.map +1 -0
  179. package/dist/migrations/index.d.ts +5 -0
  180. package/dist/migrations/index.d.ts.map +1 -0
  181. package/dist/rng/default.d.ts +6 -0
  182. package/dist/rng/default.d.ts.map +1 -0
  183. package/dist/rng/dice.d.ts +20 -0
  184. package/dist/rng/dice.d.ts.map +1 -0
  185. package/dist/rng/index.d.ts +10 -0
  186. package/dist/rng/index.d.ts.map +1 -0
  187. package/dist/rng/seeded.d.ts +9 -0
  188. package/dist/rng/seeded.d.ts.map +1 -0
  189. package/dist/rng/throw.d.ts +9 -0
  190. package/dist/rng/throw.d.ts.map +1 -0
  191. package/dist/schemas/content/background.d.ts +46 -0
  192. package/dist/schemas/content/background.d.ts.map +1 -0
  193. package/dist/schemas/content/class.d.ts +264 -0
  194. package/dist/schemas/content/class.d.ts.map +1 -0
  195. package/dist/schemas/content/condition.d.ts +90 -0
  196. package/dist/schemas/content/condition.d.ts.map +1 -0
  197. package/dist/schemas/content/feat.d.ts +25 -0
  198. package/dist/schemas/content/feat.d.ts.map +1 -0
  199. package/dist/schemas/content/index.d.ts +9 -0
  200. package/dist/schemas/content/index.d.ts.map +1 -0
  201. package/dist/schemas/content/item.d.ts +602 -0
  202. package/dist/schemas/content/item.d.ts.map +1 -0
  203. package/dist/schemas/content/monster.d.ts +203 -0
  204. package/dist/schemas/content/monster.d.ts.map +1 -0
  205. package/dist/schemas/content/species.d.ts +63 -0
  206. package/dist/schemas/content/species.d.ts.map +1 -0
  207. package/dist/schemas/content/spell.d.ts +253 -0
  208. package/dist/schemas/content/spell.d.ts.map +1 -0
  209. package/dist/schemas/effects.d.ts +175 -0
  210. package/dist/schemas/effects.d.ts.map +1 -0
  211. package/dist/schemas/events/action-economy.d.ts +38 -0
  212. package/dist/schemas/events/action-economy.d.ts.map +1 -0
  213. package/dist/schemas/events/attack.d.ts +139 -0
  214. package/dist/schemas/events/attack.d.ts.map +1 -0
  215. package/dist/schemas/events/bastion.d.ts +227 -0
  216. package/dist/schemas/events/bastion.d.ts.map +1 -0
  217. package/dist/schemas/events/charges.d.ts +110 -0
  218. package/dist/schemas/events/charges.d.ts.map +1 -0
  219. package/dist/schemas/events/checks.d.ts +103 -0
  220. package/dist/schemas/events/checks.d.ts.map +1 -0
  221. package/dist/schemas/events/combat.d.ts +308 -0
  222. package/dist/schemas/events/combat.d.ts.map +1 -0
  223. package/dist/schemas/events/concentration.d.ts +99 -0
  224. package/dist/schemas/events/concentration.d.ts.map +1 -0
  225. package/dist/schemas/events/downtime.d.ts +53 -0
  226. package/dist/schemas/events/downtime.d.ts.map +1 -0
  227. package/dist/schemas/events/encounter.d.ts +260 -0
  228. package/dist/schemas/events/encounter.d.ts.map +1 -0
  229. package/dist/schemas/events/envelope.d.ts +22 -0
  230. package/dist/schemas/events/envelope.d.ts.map +1 -0
  231. package/dist/schemas/events/index.d.ts +4594 -0
  232. package/dist/schemas/events/index.d.ts.map +1 -0
  233. package/dist/schemas/events/inventory.d.ts +253 -0
  234. package/dist/schemas/events/inventory.d.ts.map +1 -0
  235. package/dist/schemas/events/level-up.d.ts +141 -0
  236. package/dist/schemas/events/level-up.d.ts.map +1 -0
  237. package/dist/schemas/events/locations.d.ts +183 -0
  238. package/dist/schemas/events/locations.d.ts.map +1 -0
  239. package/dist/schemas/events/mounts-vehicles.d.ts +233 -0
  240. package/dist/schemas/events/mounts-vehicles.d.ts.map +1 -0
  241. package/dist/schemas/events/movement.d.ts +131 -0
  242. package/dist/schemas/events/movement.d.ts.map +1 -0
  243. package/dist/schemas/events/npc.d.ts +113 -0
  244. package/dist/schemas/events/npc.d.ts.map +1 -0
  245. package/dist/schemas/events/party.d.ts +260 -0
  246. package/dist/schemas/events/party.d.ts.map +1 -0
  247. package/dist/schemas/events/progression.d.ts +698 -0
  248. package/dist/schemas/events/progression.d.ts.map +1 -0
  249. package/dist/schemas/events/quests.d.ts +426 -0
  250. package/dist/schemas/events/quests.d.ts.map +1 -0
  251. package/dist/schemas/events/reactive-spells.d.ts +98 -0
  252. package/dist/schemas/events/reactive-spells.d.ts.map +1 -0
  253. package/dist/schemas/events/resources.d.ts +107 -0
  254. package/dist/schemas/events/resources.d.ts.map +1 -0
  255. package/dist/schemas/events/rest.d.ts +104 -0
  256. package/dist/schemas/events/rest.d.ts.map +1 -0
  257. package/dist/schemas/events/resurrection.d.ts +44 -0
  258. package/dist/schemas/events/resurrection.d.ts.map +1 -0
  259. package/dist/schemas/events/session.d.ts +144 -0
  260. package/dist/schemas/events/session.d.ts.map +1 -0
  261. package/dist/schemas/events/settings.d.ts +47 -0
  262. package/dist/schemas/events/settings.d.ts.map +1 -0
  263. package/dist/schemas/events/spellcasting.d.ts +103 -0
  264. package/dist/schemas/events/spellcasting.d.ts.map +1 -0
  265. package/dist/schemas/events/transformations.d.ts +279 -0
  266. package/dist/schemas/events/transformations.d.ts.map +1 -0
  267. package/dist/schemas/events/travel.d.ts +143 -0
  268. package/dist/schemas/events/travel.d.ts.map +1 -0
  269. package/dist/schemas/events/triggers.d.ts +60 -0
  270. package/dist/schemas/events/triggers.d.ts.map +1 -0
  271. package/dist/schemas/events/weapon-mastery.d.ts +38 -0
  272. package/dist/schemas/events/weapon-mastery.d.ts.map +1 -0
  273. package/dist/schemas/formula.d.ts +103 -0
  274. package/dist/schemas/formula.d.ts.map +1 -0
  275. package/dist/schemas/index.d.ts +8 -0
  276. package/dist/schemas/index.d.ts.map +1 -0
  277. package/dist/schemas/predicate.d.ts +72 -0
  278. package/dist/schemas/predicate.d.ts.map +1 -0
  279. package/dist/schemas/primitives.d.ts +156 -0
  280. package/dist/schemas/primitives.d.ts.map +1 -0
  281. package/dist/schemas/runtime/bastion.d.ts +130 -0
  282. package/dist/schemas/runtime/bastion.d.ts.map +1 -0
  283. package/dist/schemas/runtime/campaign.d.ts +2122 -0
  284. package/dist/schemas/runtime/campaign.d.ts.map +1 -0
  285. package/dist/schemas/runtime/character.d.ts +580 -0
  286. package/dist/schemas/runtime/character.d.ts.map +1 -0
  287. package/dist/schemas/runtime/currency.d.ts +9 -0
  288. package/dist/schemas/runtime/currency.d.ts.map +1 -0
  289. package/dist/schemas/runtime/downtime.d.ts +31 -0
  290. package/dist/schemas/runtime/downtime.d.ts.map +1 -0
  291. package/dist/schemas/runtime/effect-instance.d.ts +65 -0
  292. package/dist/schemas/runtime/effect-instance.d.ts.map +1 -0
  293. package/dist/schemas/runtime/encounter.d.ts +264 -0
  294. package/dist/schemas/runtime/encounter.d.ts.map +1 -0
  295. package/dist/schemas/runtime/in-game-time.d.ts +18 -0
  296. package/dist/schemas/runtime/in-game-time.d.ts.map +1 -0
  297. package/dist/schemas/runtime/index.d.ts +15 -0
  298. package/dist/schemas/runtime/index.d.ts.map +1 -0
  299. package/dist/schemas/runtime/item-instance.d.ts +66 -0
  300. package/dist/schemas/runtime/item-instance.d.ts.map +1 -0
  301. package/dist/schemas/runtime/location.d.ts +111 -0
  302. package/dist/schemas/runtime/location.d.ts.map +1 -0
  303. package/dist/schemas/runtime/party.d.ts +52 -0
  304. package/dist/schemas/runtime/party.d.ts.map +1 -0
  305. package/dist/schemas/runtime/pending-choice.d.ts +77 -0
  306. package/dist/schemas/runtime/pending-choice.d.ts.map +1 -0
  307. package/dist/schemas/runtime/quest.d.ts +207 -0
  308. package/dist/schemas/runtime/quest.d.ts.map +1 -0
  309. package/dist/schemas/runtime/session.d.ts +102 -0
  310. package/dist/schemas/runtime/session.d.ts.map +1 -0
  311. package/dist/schemas/runtime/settings.d.ts +26 -0
  312. package/dist/schemas/runtime/settings.d.ts.map +1 -0
  313. package/dist/schemas/runtime/travel.d.ts +34 -0
  314. package/dist/schemas/runtime/travel.d.ts.map +1 -0
  315. package/dist/schemas/runtime/vehicle.d.ts +49 -0
  316. package/dist/schemas/runtime/vehicle.d.ts.map +1 -0
  317. package/dist/ttrpg-engine-dnd.cjs +6 -0
  318. package/dist/ttrpg-engine-dnd.cjs.map +1 -0
  319. package/dist/ttrpg-engine-dnd.js +10464 -0
  320. package/dist/ttrpg-engine-dnd.js.map +1 -0
  321. package/dist/types/index.d.ts +8 -0
  322. package/dist/types/index.d.ts.map +1 -0
  323. package/dist/version.d.ts +3 -0
  324. package/dist/version.d.ts.map +1 -0
  325. package/docs/api-overview.md +111 -0
  326. package/docs/concepts.md +154 -0
  327. package/docs/getting-started.md +142 -0
  328. package/docs/recipes.md +302 -0
  329. package/package.json +83 -0
@@ -0,0 +1,4594 @@
1
+ import { z } from 'zod';
2
+ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
+ id: z.ZodString;
4
+ at: z.ZodString;
5
+ sessionId: z.ZodOptional<z.ZodString>;
6
+ causedByEventId: z.ZodOptional<z.ZodString>;
7
+ actorId: z.ZodOptional<z.ZodString>;
8
+ } & {
9
+ type: z.ZodLiteral<"CharacterCreated">;
10
+ snapshot: z.ZodObject<{
11
+ id: z.ZodString;
12
+ kind: z.ZodDefault<z.ZodEnum<["pc", "npc", "creature"]>>;
13
+ statblockId: z.ZodOptional<z.ZodString>;
14
+ multiattack: z.ZodOptional<z.ZodObject<{
15
+ name: z.ZodString;
16
+ attacks: z.ZodArray<z.ZodObject<{
17
+ weaponInstanceId: z.ZodString;
18
+ count: z.ZodNumber;
19
+ }, "strip", z.ZodTypeAny, {
20
+ count: number;
21
+ weaponInstanceId: string;
22
+ }, {
23
+ count: number;
24
+ weaponInstanceId: string;
25
+ }>, "many">;
26
+ }, "strip", z.ZodTypeAny, {
27
+ name: string;
28
+ attacks: {
29
+ count: number;
30
+ weaponInstanceId: string;
31
+ }[];
32
+ }, {
33
+ name: string;
34
+ attacks: {
35
+ count: number;
36
+ weaponInstanceId: string;
37
+ }[];
38
+ }>>;
39
+ name: z.ZodString;
40
+ playerId: z.ZodOptional<z.ZodString>;
41
+ speciesId: z.ZodString;
42
+ backgroundId: z.ZodString;
43
+ classes: z.ZodArray<z.ZodObject<{
44
+ classId: z.ZodString;
45
+ subclassId: z.ZodOptional<z.ZodString>;
46
+ level: z.ZodNumber;
47
+ hitDiceRemaining: z.ZodNumber;
48
+ }, "strip", z.ZodTypeAny, {
49
+ level: number;
50
+ classId: string;
51
+ hitDiceRemaining: number;
52
+ subclassId?: string | undefined;
53
+ }, {
54
+ level: number;
55
+ classId: string;
56
+ hitDiceRemaining: number;
57
+ subclassId?: string | undefined;
58
+ }>, "many">;
59
+ abilityScores: z.ZodObject<{
60
+ STR: z.ZodNumber;
61
+ DEX: z.ZodNumber;
62
+ CON: z.ZodNumber;
63
+ INT: z.ZodNumber;
64
+ WIS: z.ZodNumber;
65
+ CHA: z.ZodNumber;
66
+ }, "strip", z.ZodTypeAny, {
67
+ STR: number;
68
+ DEX: number;
69
+ CON: number;
70
+ INT: number;
71
+ WIS: number;
72
+ CHA: number;
73
+ }, {
74
+ STR: number;
75
+ DEX: number;
76
+ CON: number;
77
+ INT: number;
78
+ WIS: number;
79
+ CHA: number;
80
+ }>;
81
+ hp: z.ZodObject<{
82
+ current: z.ZodNumber;
83
+ max: z.ZodNumber;
84
+ temp: z.ZodDefault<z.ZodNumber>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ max: number;
87
+ current: number;
88
+ temp: number;
89
+ }, {
90
+ max: number;
91
+ current: number;
92
+ temp?: number | undefined;
93
+ }>;
94
+ deathSaves: z.ZodDefault<z.ZodObject<{
95
+ successes: z.ZodDefault<z.ZodNumber>;
96
+ failures: z.ZodDefault<z.ZodNumber>;
97
+ stable: z.ZodDefault<z.ZodBoolean>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ successes: number;
100
+ failures: number;
101
+ stable: boolean;
102
+ }, {
103
+ successes?: number | undefined;
104
+ failures?: number | undefined;
105
+ stable?: boolean | undefined;
106
+ }>>;
107
+ exhaustion: z.ZodDefault<z.ZodNumber>;
108
+ speedFeet: z.ZodDefault<z.ZodNumber>;
109
+ inventory: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
110
+ equipped: z.ZodDefault<z.ZodObject<{
111
+ mainHand: z.ZodOptional<z.ZodString>;
112
+ offHand: z.ZodOptional<z.ZodString>;
113
+ armor: z.ZodOptional<z.ZodString>;
114
+ shield: z.ZodOptional<z.ZodString>;
115
+ attuned: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ attuned: string[];
118
+ armor?: string | undefined;
119
+ shield?: string | undefined;
120
+ mainHand?: string | undefined;
121
+ offHand?: string | undefined;
122
+ }, {
123
+ armor?: string | undefined;
124
+ shield?: string | undefined;
125
+ mainHand?: string | undefined;
126
+ offHand?: string | undefined;
127
+ attuned?: string[] | undefined;
128
+ }>>;
129
+ resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
130
+ resourceId: z.ZodString;
131
+ current: z.ZodNumber;
132
+ max: z.ZodNumber;
133
+ }, "strip", z.ZodTypeAny, {
134
+ max: number;
135
+ resourceId: string;
136
+ current: number;
137
+ }, {
138
+ max: number;
139
+ resourceId: string;
140
+ current: number;
141
+ }>, "many">>;
142
+ appliedConditions: z.ZodDefault<z.ZodArray<z.ZodObject<{
143
+ id: z.ZodString;
144
+ conditionId: z.ZodString;
145
+ sourceEventId: z.ZodOptional<z.ZodString>;
146
+ level: z.ZodOptional<z.ZodNumber>;
147
+ expiresOnRound: z.ZodOptional<z.ZodNumber>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ conditionId: string;
150
+ id: string;
151
+ level?: number | undefined;
152
+ sourceEventId?: string | undefined;
153
+ expiresOnRound?: number | undefined;
154
+ }, {
155
+ conditionId: string;
156
+ id: string;
157
+ level?: number | undefined;
158
+ sourceEventId?: string | undefined;
159
+ expiresOnRound?: number | undefined;
160
+ }>, "many">>;
161
+ knownSpells: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
162
+ preparedSpells: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
163
+ spellSlotsUsed: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
164
+ pactSlotsUsed: z.ZodDefault<z.ZodNumber>;
165
+ concentrationEffectId: z.ZodOptional<z.ZodString>;
166
+ triggerCounters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
167
+ firedThisTurn: z.ZodOptional<z.ZodBoolean>;
168
+ firedThisRound: z.ZodOptional<z.ZodBoolean>;
169
+ firedThisShortRest: z.ZodOptional<z.ZodBoolean>;
170
+ firedThisLongRest: z.ZodOptional<z.ZodBoolean>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ firedThisTurn?: boolean | undefined;
173
+ firedThisRound?: boolean | undefined;
174
+ firedThisShortRest?: boolean | undefined;
175
+ firedThisLongRest?: boolean | undefined;
176
+ }, {
177
+ firedThisTurn?: boolean | undefined;
178
+ firedThisRound?: boolean | undefined;
179
+ firedThisShortRest?: boolean | undefined;
180
+ firedThisLongRest?: boolean | undefined;
181
+ }>>>;
182
+ featsTaken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
183
+ pendingChoiceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
184
+ xp: z.ZodDefault<z.ZodNumber>;
185
+ mountedOnId: z.ZodOptional<z.ZodString>;
186
+ attitude: z.ZodOptional<z.ZodEnum<["hostile", "unfriendly", "indifferent", "friendly", "helpful"]>>;
187
+ morale: z.ZodOptional<z.ZodObject<{
188
+ current: z.ZodNumber;
189
+ max: z.ZodNumber;
190
+ }, "strip", z.ZodTypeAny, {
191
+ max: number;
192
+ current: number;
193
+ }, {
194
+ max: number;
195
+ current: number;
196
+ }>>;
197
+ moraleBroken: z.ZodDefault<z.ZodBoolean>;
198
+ polymorphedSnapshot: z.ZodOptional<z.ZodObject<{
199
+ hp: z.ZodObject<{
200
+ current: z.ZodNumber;
201
+ max: z.ZodNumber;
202
+ temp: z.ZodDefault<z.ZodNumber>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ max: number;
205
+ current: number;
206
+ temp: number;
207
+ }, {
208
+ max: number;
209
+ current: number;
210
+ temp?: number | undefined;
211
+ }>;
212
+ abilityScores: z.ZodObject<{
213
+ STR: z.ZodNumber;
214
+ DEX: z.ZodNumber;
215
+ CON: z.ZodNumber;
216
+ INT: z.ZodNumber;
217
+ WIS: z.ZodNumber;
218
+ CHA: z.ZodNumber;
219
+ }, "strip", z.ZodTypeAny, {
220
+ STR: number;
221
+ DEX: number;
222
+ CON: number;
223
+ INT: number;
224
+ WIS: number;
225
+ CHA: number;
226
+ }, {
227
+ STR: number;
228
+ DEX: number;
229
+ CON: number;
230
+ INT: number;
231
+ WIS: number;
232
+ CHA: number;
233
+ }>;
234
+ speedFeet: z.ZodNumber;
235
+ speciesId: z.ZodString;
236
+ kind: z.ZodEnum<["polymorph", "wild-shape", "true-polymorph"]>;
237
+ formName: z.ZodString;
238
+ }, "strip", z.ZodTypeAny, {
239
+ kind: "polymorph" | "wild-shape" | "true-polymorph";
240
+ hp: {
241
+ max: number;
242
+ current: number;
243
+ temp: number;
244
+ };
245
+ abilityScores: {
246
+ STR: number;
247
+ DEX: number;
248
+ CON: number;
249
+ INT: number;
250
+ WIS: number;
251
+ CHA: number;
252
+ };
253
+ speciesId: string;
254
+ speedFeet: number;
255
+ formName: string;
256
+ }, {
257
+ kind: "polymorph" | "wild-shape" | "true-polymorph";
258
+ hp: {
259
+ max: number;
260
+ current: number;
261
+ temp?: number | undefined;
262
+ };
263
+ abilityScores: {
264
+ STR: number;
265
+ DEX: number;
266
+ CON: number;
267
+ INT: number;
268
+ WIS: number;
269
+ CHA: number;
270
+ };
271
+ speciesId: string;
272
+ speedFeet: number;
273
+ formName: string;
274
+ }>>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ kind: "pc" | "npc" | "creature";
277
+ id: string;
278
+ name: string;
279
+ classes: {
280
+ level: number;
281
+ classId: string;
282
+ hitDiceRemaining: number;
283
+ subclassId?: string | undefined;
284
+ }[];
285
+ hp: {
286
+ max: number;
287
+ current: number;
288
+ temp: number;
289
+ };
290
+ abilityScores: {
291
+ STR: number;
292
+ DEX: number;
293
+ CON: number;
294
+ INT: number;
295
+ WIS: number;
296
+ CHA: number;
297
+ };
298
+ xp: number;
299
+ speciesId: string;
300
+ backgroundId: string;
301
+ deathSaves: {
302
+ successes: number;
303
+ failures: number;
304
+ stable: boolean;
305
+ };
306
+ exhaustion: number;
307
+ speedFeet: number;
308
+ inventory: string[];
309
+ equipped: {
310
+ attuned: string[];
311
+ armor?: string | undefined;
312
+ shield?: string | undefined;
313
+ mainHand?: string | undefined;
314
+ offHand?: string | undefined;
315
+ };
316
+ resources: {
317
+ max: number;
318
+ resourceId: string;
319
+ current: number;
320
+ }[];
321
+ appliedConditions: {
322
+ conditionId: string;
323
+ id: string;
324
+ level?: number | undefined;
325
+ sourceEventId?: string | undefined;
326
+ expiresOnRound?: number | undefined;
327
+ }[];
328
+ knownSpells: string[];
329
+ preparedSpells: string[];
330
+ spellSlotsUsed: Record<string, number>;
331
+ pactSlotsUsed: number;
332
+ triggerCounters: Record<string, {
333
+ firedThisTurn?: boolean | undefined;
334
+ firedThisRound?: boolean | undefined;
335
+ firedThisShortRest?: boolean | undefined;
336
+ firedThisLongRest?: boolean | undefined;
337
+ }>;
338
+ featsTaken: string[];
339
+ pendingChoiceIds: string[];
340
+ moraleBroken: boolean;
341
+ statblockId?: string | undefined;
342
+ multiattack?: {
343
+ name: string;
344
+ attacks: {
345
+ count: number;
346
+ weaponInstanceId: string;
347
+ }[];
348
+ } | undefined;
349
+ playerId?: string | undefined;
350
+ concentrationEffectId?: string | undefined;
351
+ mountedOnId?: string | undefined;
352
+ attitude?: "hostile" | "unfriendly" | "indifferent" | "friendly" | "helpful" | undefined;
353
+ morale?: {
354
+ max: number;
355
+ current: number;
356
+ } | undefined;
357
+ polymorphedSnapshot?: {
358
+ kind: "polymorph" | "wild-shape" | "true-polymorph";
359
+ hp: {
360
+ max: number;
361
+ current: number;
362
+ temp: number;
363
+ };
364
+ abilityScores: {
365
+ STR: number;
366
+ DEX: number;
367
+ CON: number;
368
+ INT: number;
369
+ WIS: number;
370
+ CHA: number;
371
+ };
372
+ speciesId: string;
373
+ speedFeet: number;
374
+ formName: string;
375
+ } | undefined;
376
+ }, {
377
+ id: string;
378
+ name: string;
379
+ classes: {
380
+ level: number;
381
+ classId: string;
382
+ hitDiceRemaining: number;
383
+ subclassId?: string | undefined;
384
+ }[];
385
+ hp: {
386
+ max: number;
387
+ current: number;
388
+ temp?: number | undefined;
389
+ };
390
+ abilityScores: {
391
+ STR: number;
392
+ DEX: number;
393
+ CON: number;
394
+ INT: number;
395
+ WIS: number;
396
+ CHA: number;
397
+ };
398
+ speciesId: string;
399
+ backgroundId: string;
400
+ kind?: "pc" | "npc" | "creature" | undefined;
401
+ xp?: number | undefined;
402
+ statblockId?: string | undefined;
403
+ multiattack?: {
404
+ name: string;
405
+ attacks: {
406
+ count: number;
407
+ weaponInstanceId: string;
408
+ }[];
409
+ } | undefined;
410
+ playerId?: string | undefined;
411
+ deathSaves?: {
412
+ successes?: number | undefined;
413
+ failures?: number | undefined;
414
+ stable?: boolean | undefined;
415
+ } | undefined;
416
+ exhaustion?: number | undefined;
417
+ speedFeet?: number | undefined;
418
+ inventory?: string[] | undefined;
419
+ equipped?: {
420
+ armor?: string | undefined;
421
+ shield?: string | undefined;
422
+ mainHand?: string | undefined;
423
+ offHand?: string | undefined;
424
+ attuned?: string[] | undefined;
425
+ } | undefined;
426
+ resources?: {
427
+ max: number;
428
+ resourceId: string;
429
+ current: number;
430
+ }[] | undefined;
431
+ appliedConditions?: {
432
+ conditionId: string;
433
+ id: string;
434
+ level?: number | undefined;
435
+ sourceEventId?: string | undefined;
436
+ expiresOnRound?: number | undefined;
437
+ }[] | undefined;
438
+ knownSpells?: string[] | undefined;
439
+ preparedSpells?: string[] | undefined;
440
+ spellSlotsUsed?: Record<string, number> | undefined;
441
+ pactSlotsUsed?: number | undefined;
442
+ concentrationEffectId?: string | undefined;
443
+ triggerCounters?: Record<string, {
444
+ firedThisTurn?: boolean | undefined;
445
+ firedThisRound?: boolean | undefined;
446
+ firedThisShortRest?: boolean | undefined;
447
+ firedThisLongRest?: boolean | undefined;
448
+ }> | undefined;
449
+ featsTaken?: string[] | undefined;
450
+ pendingChoiceIds?: string[] | undefined;
451
+ mountedOnId?: string | undefined;
452
+ attitude?: "hostile" | "unfriendly" | "indifferent" | "friendly" | "helpful" | undefined;
453
+ morale?: {
454
+ max: number;
455
+ current: number;
456
+ } | undefined;
457
+ moraleBroken?: boolean | undefined;
458
+ polymorphedSnapshot?: {
459
+ kind: "polymorph" | "wild-shape" | "true-polymorph";
460
+ hp: {
461
+ max: number;
462
+ current: number;
463
+ temp?: number | undefined;
464
+ };
465
+ abilityScores: {
466
+ STR: number;
467
+ DEX: number;
468
+ CON: number;
469
+ INT: number;
470
+ WIS: number;
471
+ CHA: number;
472
+ };
473
+ speciesId: string;
474
+ speedFeet: number;
475
+ formName: string;
476
+ } | undefined;
477
+ }>;
478
+ }, "strip", z.ZodTypeAny, {
479
+ at: string;
480
+ type: "CharacterCreated";
481
+ id: string;
482
+ snapshot: {
483
+ kind: "pc" | "npc" | "creature";
484
+ id: string;
485
+ name: string;
486
+ classes: {
487
+ level: number;
488
+ classId: string;
489
+ hitDiceRemaining: number;
490
+ subclassId?: string | undefined;
491
+ }[];
492
+ hp: {
493
+ max: number;
494
+ current: number;
495
+ temp: number;
496
+ };
497
+ abilityScores: {
498
+ STR: number;
499
+ DEX: number;
500
+ CON: number;
501
+ INT: number;
502
+ WIS: number;
503
+ CHA: number;
504
+ };
505
+ xp: number;
506
+ speciesId: string;
507
+ backgroundId: string;
508
+ deathSaves: {
509
+ successes: number;
510
+ failures: number;
511
+ stable: boolean;
512
+ };
513
+ exhaustion: number;
514
+ speedFeet: number;
515
+ inventory: string[];
516
+ equipped: {
517
+ attuned: string[];
518
+ armor?: string | undefined;
519
+ shield?: string | undefined;
520
+ mainHand?: string | undefined;
521
+ offHand?: string | undefined;
522
+ };
523
+ resources: {
524
+ max: number;
525
+ resourceId: string;
526
+ current: number;
527
+ }[];
528
+ appliedConditions: {
529
+ conditionId: string;
530
+ id: string;
531
+ level?: number | undefined;
532
+ sourceEventId?: string | undefined;
533
+ expiresOnRound?: number | undefined;
534
+ }[];
535
+ knownSpells: string[];
536
+ preparedSpells: string[];
537
+ spellSlotsUsed: Record<string, number>;
538
+ pactSlotsUsed: number;
539
+ triggerCounters: Record<string, {
540
+ firedThisTurn?: boolean | undefined;
541
+ firedThisRound?: boolean | undefined;
542
+ firedThisShortRest?: boolean | undefined;
543
+ firedThisLongRest?: boolean | undefined;
544
+ }>;
545
+ featsTaken: string[];
546
+ pendingChoiceIds: string[];
547
+ moraleBroken: boolean;
548
+ statblockId?: string | undefined;
549
+ multiattack?: {
550
+ name: string;
551
+ attacks: {
552
+ count: number;
553
+ weaponInstanceId: string;
554
+ }[];
555
+ } | undefined;
556
+ playerId?: string | undefined;
557
+ concentrationEffectId?: string | undefined;
558
+ mountedOnId?: string | undefined;
559
+ attitude?: "hostile" | "unfriendly" | "indifferent" | "friendly" | "helpful" | undefined;
560
+ morale?: {
561
+ max: number;
562
+ current: number;
563
+ } | undefined;
564
+ polymorphedSnapshot?: {
565
+ kind: "polymorph" | "wild-shape" | "true-polymorph";
566
+ hp: {
567
+ max: number;
568
+ current: number;
569
+ temp: number;
570
+ };
571
+ abilityScores: {
572
+ STR: number;
573
+ DEX: number;
574
+ CON: number;
575
+ INT: number;
576
+ WIS: number;
577
+ CHA: number;
578
+ };
579
+ speciesId: string;
580
+ speedFeet: number;
581
+ formName: string;
582
+ } | undefined;
583
+ };
584
+ sessionId?: string | undefined;
585
+ causedByEventId?: string | undefined;
586
+ actorId?: string | undefined;
587
+ }, {
588
+ at: string;
589
+ type: "CharacterCreated";
590
+ id: string;
591
+ snapshot: {
592
+ id: string;
593
+ name: string;
594
+ classes: {
595
+ level: number;
596
+ classId: string;
597
+ hitDiceRemaining: number;
598
+ subclassId?: string | undefined;
599
+ }[];
600
+ hp: {
601
+ max: number;
602
+ current: number;
603
+ temp?: number | undefined;
604
+ };
605
+ abilityScores: {
606
+ STR: number;
607
+ DEX: number;
608
+ CON: number;
609
+ INT: number;
610
+ WIS: number;
611
+ CHA: number;
612
+ };
613
+ speciesId: string;
614
+ backgroundId: string;
615
+ kind?: "pc" | "npc" | "creature" | undefined;
616
+ xp?: number | undefined;
617
+ statblockId?: string | undefined;
618
+ multiattack?: {
619
+ name: string;
620
+ attacks: {
621
+ count: number;
622
+ weaponInstanceId: string;
623
+ }[];
624
+ } | undefined;
625
+ playerId?: string | undefined;
626
+ deathSaves?: {
627
+ successes?: number | undefined;
628
+ failures?: number | undefined;
629
+ stable?: boolean | undefined;
630
+ } | undefined;
631
+ exhaustion?: number | undefined;
632
+ speedFeet?: number | undefined;
633
+ inventory?: string[] | undefined;
634
+ equipped?: {
635
+ armor?: string | undefined;
636
+ shield?: string | undefined;
637
+ mainHand?: string | undefined;
638
+ offHand?: string | undefined;
639
+ attuned?: string[] | undefined;
640
+ } | undefined;
641
+ resources?: {
642
+ max: number;
643
+ resourceId: string;
644
+ current: number;
645
+ }[] | undefined;
646
+ appliedConditions?: {
647
+ conditionId: string;
648
+ id: string;
649
+ level?: number | undefined;
650
+ sourceEventId?: string | undefined;
651
+ expiresOnRound?: number | undefined;
652
+ }[] | undefined;
653
+ knownSpells?: string[] | undefined;
654
+ preparedSpells?: string[] | undefined;
655
+ spellSlotsUsed?: Record<string, number> | undefined;
656
+ pactSlotsUsed?: number | undefined;
657
+ concentrationEffectId?: string | undefined;
658
+ triggerCounters?: Record<string, {
659
+ firedThisTurn?: boolean | undefined;
660
+ firedThisRound?: boolean | undefined;
661
+ firedThisShortRest?: boolean | undefined;
662
+ firedThisLongRest?: boolean | undefined;
663
+ }> | undefined;
664
+ featsTaken?: string[] | undefined;
665
+ pendingChoiceIds?: string[] | undefined;
666
+ mountedOnId?: string | undefined;
667
+ attitude?: "hostile" | "unfriendly" | "indifferent" | "friendly" | "helpful" | undefined;
668
+ morale?: {
669
+ max: number;
670
+ current: number;
671
+ } | undefined;
672
+ moraleBroken?: boolean | undefined;
673
+ polymorphedSnapshot?: {
674
+ kind: "polymorph" | "wild-shape" | "true-polymorph";
675
+ hp: {
676
+ max: number;
677
+ current: number;
678
+ temp?: number | undefined;
679
+ };
680
+ abilityScores: {
681
+ STR: number;
682
+ DEX: number;
683
+ CON: number;
684
+ INT: number;
685
+ WIS: number;
686
+ CHA: number;
687
+ };
688
+ speciesId: string;
689
+ speedFeet: number;
690
+ formName: string;
691
+ } | undefined;
692
+ };
693
+ sessionId?: string | undefined;
694
+ causedByEventId?: string | undefined;
695
+ actorId?: string | undefined;
696
+ }>, z.ZodObject<{
697
+ id: z.ZodString;
698
+ at: z.ZodString;
699
+ sessionId: z.ZodOptional<z.ZodString>;
700
+ causedByEventId: z.ZodOptional<z.ZodString>;
701
+ actorId: z.ZodOptional<z.ZodString>;
702
+ } & {
703
+ type: z.ZodLiteral<"DamageApplied">;
704
+ targetId: z.ZodString;
705
+ components: z.ZodArray<z.ZodObject<{
706
+ amount: z.ZodNumber;
707
+ type: z.ZodEnum<["acid", "bludgeoning", "cold", "fire", "force", "lightning", "necrotic", "piercing", "poison", "psychic", "radiant", "slashing", "thunder"]>;
708
+ rawAmount: z.ZodOptional<z.ZodNumber>;
709
+ mitigation: z.ZodOptional<z.ZodEnum<["resisted", "immune", "vulnerable"]>>;
710
+ }, "strip", z.ZodTypeAny, {
711
+ type: "acid" | "bludgeoning" | "cold" | "fire" | "force" | "lightning" | "necrotic" | "piercing" | "poison" | "psychic" | "radiant" | "slashing" | "thunder";
712
+ amount: number;
713
+ rawAmount?: number | undefined;
714
+ mitigation?: "resisted" | "immune" | "vulnerable" | undefined;
715
+ }, {
716
+ type: "acid" | "bludgeoning" | "cold" | "fire" | "force" | "lightning" | "necrotic" | "piercing" | "poison" | "psychic" | "radiant" | "slashing" | "thunder";
717
+ amount: number;
718
+ rawAmount?: number | undefined;
719
+ mitigation?: "resisted" | "immune" | "vulnerable" | undefined;
720
+ }>, "many">;
721
+ }, "strip", z.ZodTypeAny, {
722
+ at: string;
723
+ type: "DamageApplied";
724
+ id: string;
725
+ components: {
726
+ type: "acid" | "bludgeoning" | "cold" | "fire" | "force" | "lightning" | "necrotic" | "piercing" | "poison" | "psychic" | "radiant" | "slashing" | "thunder";
727
+ amount: number;
728
+ rawAmount?: number | undefined;
729
+ mitigation?: "resisted" | "immune" | "vulnerable" | undefined;
730
+ }[];
731
+ targetId: string;
732
+ sessionId?: string | undefined;
733
+ causedByEventId?: string | undefined;
734
+ actorId?: string | undefined;
735
+ }, {
736
+ at: string;
737
+ type: "DamageApplied";
738
+ id: string;
739
+ components: {
740
+ type: "acid" | "bludgeoning" | "cold" | "fire" | "force" | "lightning" | "necrotic" | "piercing" | "poison" | "psychic" | "radiant" | "slashing" | "thunder";
741
+ amount: number;
742
+ rawAmount?: number | undefined;
743
+ mitigation?: "resisted" | "immune" | "vulnerable" | undefined;
744
+ }[];
745
+ targetId: string;
746
+ sessionId?: string | undefined;
747
+ causedByEventId?: string | undefined;
748
+ actorId?: string | undefined;
749
+ }>, z.ZodObject<{
750
+ id: z.ZodString;
751
+ at: z.ZodString;
752
+ sessionId: z.ZodOptional<z.ZodString>;
753
+ causedByEventId: z.ZodOptional<z.ZodString>;
754
+ actorId: z.ZodOptional<z.ZodString>;
755
+ } & {
756
+ type: z.ZodLiteral<"Healed">;
757
+ targetId: z.ZodString;
758
+ amount: z.ZodNumber;
759
+ source: z.ZodOptional<z.ZodString>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ at: string;
762
+ type: "Healed";
763
+ amount: number;
764
+ id: string;
765
+ targetId: string;
766
+ source?: string | undefined;
767
+ sessionId?: string | undefined;
768
+ causedByEventId?: string | undefined;
769
+ actorId?: string | undefined;
770
+ }, {
771
+ at: string;
772
+ type: "Healed";
773
+ amount: number;
774
+ id: string;
775
+ targetId: string;
776
+ source?: string | undefined;
777
+ sessionId?: string | undefined;
778
+ causedByEventId?: string | undefined;
779
+ actorId?: string | undefined;
780
+ }>, z.ZodObject<{
781
+ id: z.ZodString;
782
+ at: z.ZodString;
783
+ sessionId: z.ZodOptional<z.ZodString>;
784
+ causedByEventId: z.ZodOptional<z.ZodString>;
785
+ actorId: z.ZodOptional<z.ZodString>;
786
+ } & {
787
+ type: z.ZodLiteral<"TempHPGranted">;
788
+ targetId: z.ZodString;
789
+ amount: z.ZodNumber;
790
+ source: z.ZodOptional<z.ZodString>;
791
+ }, "strip", z.ZodTypeAny, {
792
+ at: string;
793
+ type: "TempHPGranted";
794
+ amount: number;
795
+ id: string;
796
+ targetId: string;
797
+ source?: string | undefined;
798
+ sessionId?: string | undefined;
799
+ causedByEventId?: string | undefined;
800
+ actorId?: string | undefined;
801
+ }, {
802
+ at: string;
803
+ type: "TempHPGranted";
804
+ amount: number;
805
+ id: string;
806
+ targetId: string;
807
+ source?: string | undefined;
808
+ sessionId?: string | undefined;
809
+ causedByEventId?: string | undefined;
810
+ actorId?: string | undefined;
811
+ }>, z.ZodObject<{
812
+ id: z.ZodString;
813
+ at: z.ZodString;
814
+ sessionId: z.ZodOptional<z.ZodString>;
815
+ causedByEventId: z.ZodOptional<z.ZodString>;
816
+ actorId: z.ZodOptional<z.ZodString>;
817
+ } & {
818
+ type: z.ZodLiteral<"ConditionApplied">;
819
+ targetId: z.ZodString;
820
+ conditionId: z.ZodString;
821
+ level: z.ZodOptional<z.ZodNumber>;
822
+ expiresOnRound: z.ZodOptional<z.ZodNumber>;
823
+ appliedConditionId: z.ZodOptional<z.ZodString>;
824
+ }, "strip", z.ZodTypeAny, {
825
+ at: string;
826
+ type: "ConditionApplied";
827
+ conditionId: string;
828
+ id: string;
829
+ targetId: string;
830
+ level?: number | undefined;
831
+ expiresOnRound?: number | undefined;
832
+ appliedConditionId?: string | undefined;
833
+ sessionId?: string | undefined;
834
+ causedByEventId?: string | undefined;
835
+ actorId?: string | undefined;
836
+ }, {
837
+ at: string;
838
+ type: "ConditionApplied";
839
+ conditionId: string;
840
+ id: string;
841
+ targetId: string;
842
+ level?: number | undefined;
843
+ expiresOnRound?: number | undefined;
844
+ appliedConditionId?: string | undefined;
845
+ sessionId?: string | undefined;
846
+ causedByEventId?: string | undefined;
847
+ actorId?: string | undefined;
848
+ }>, z.ZodObject<{
849
+ id: z.ZodString;
850
+ at: z.ZodString;
851
+ sessionId: z.ZodOptional<z.ZodString>;
852
+ causedByEventId: z.ZodOptional<z.ZodString>;
853
+ actorId: z.ZodOptional<z.ZodString>;
854
+ } & {
855
+ type: z.ZodLiteral<"ConditionRemoved">;
856
+ targetId: z.ZodString;
857
+ conditionId: z.ZodString;
858
+ }, "strip", z.ZodTypeAny, {
859
+ at: string;
860
+ type: "ConditionRemoved";
861
+ conditionId: string;
862
+ id: string;
863
+ targetId: string;
864
+ sessionId?: string | undefined;
865
+ causedByEventId?: string | undefined;
866
+ actorId?: string | undefined;
867
+ }, {
868
+ at: string;
869
+ type: "ConditionRemoved";
870
+ conditionId: string;
871
+ id: string;
872
+ targetId: string;
873
+ sessionId?: string | undefined;
874
+ causedByEventId?: string | undefined;
875
+ actorId?: string | undefined;
876
+ }>, z.ZodObject<{
877
+ id: z.ZodString;
878
+ at: z.ZodString;
879
+ sessionId: z.ZodOptional<z.ZodString>;
880
+ causedByEventId: z.ZodOptional<z.ZodString>;
881
+ actorId: z.ZodOptional<z.ZodString>;
882
+ } & {
883
+ type: z.ZodLiteral<"ExhaustionChanged">;
884
+ targetId: z.ZodString;
885
+ fromLevel: z.ZodNumber;
886
+ toLevel: z.ZodNumber;
887
+ }, "strip", z.ZodTypeAny, {
888
+ at: string;
889
+ type: "ExhaustionChanged";
890
+ id: string;
891
+ targetId: string;
892
+ fromLevel: number;
893
+ toLevel: number;
894
+ sessionId?: string | undefined;
895
+ causedByEventId?: string | undefined;
896
+ actorId?: string | undefined;
897
+ }, {
898
+ at: string;
899
+ type: "ExhaustionChanged";
900
+ id: string;
901
+ targetId: string;
902
+ fromLevel: number;
903
+ toLevel: number;
904
+ sessionId?: string | undefined;
905
+ causedByEventId?: string | undefined;
906
+ actorId?: string | undefined;
907
+ }>, z.ZodObject<{
908
+ id: z.ZodString;
909
+ at: z.ZodString;
910
+ sessionId: z.ZodOptional<z.ZodString>;
911
+ causedByEventId: z.ZodOptional<z.ZodString>;
912
+ actorId: z.ZodOptional<z.ZodString>;
913
+ } & {
914
+ type: z.ZodLiteral<"DeathSaveRolled">;
915
+ targetId: z.ZodString;
916
+ d20: z.ZodNumber;
917
+ success: z.ZodBoolean;
918
+ critical: z.ZodDefault<z.ZodBoolean>;
919
+ }, "strip", z.ZodTypeAny, {
920
+ at: string;
921
+ type: "DeathSaveRolled";
922
+ id: string;
923
+ targetId: string;
924
+ success: boolean;
925
+ d20: number;
926
+ critical: boolean;
927
+ sessionId?: string | undefined;
928
+ causedByEventId?: string | undefined;
929
+ actorId?: string | undefined;
930
+ }, {
931
+ at: string;
932
+ type: "DeathSaveRolled";
933
+ id: string;
934
+ targetId: string;
935
+ success: boolean;
936
+ d20: number;
937
+ sessionId?: string | undefined;
938
+ causedByEventId?: string | undefined;
939
+ actorId?: string | undefined;
940
+ critical?: boolean | undefined;
941
+ }>, z.ZodObject<{
942
+ id: z.ZodString;
943
+ at: z.ZodString;
944
+ sessionId: z.ZodOptional<z.ZodString>;
945
+ causedByEventId: z.ZodOptional<z.ZodString>;
946
+ actorId: z.ZodOptional<z.ZodString>;
947
+ } & {
948
+ type: z.ZodLiteral<"Stabilized">;
949
+ targetId: z.ZodString;
950
+ }, "strip", z.ZodTypeAny, {
951
+ at: string;
952
+ type: "Stabilized";
953
+ id: string;
954
+ targetId: string;
955
+ sessionId?: string | undefined;
956
+ causedByEventId?: string | undefined;
957
+ actorId?: string | undefined;
958
+ }, {
959
+ at: string;
960
+ type: "Stabilized";
961
+ id: string;
962
+ targetId: string;
963
+ sessionId?: string | undefined;
964
+ causedByEventId?: string | undefined;
965
+ actorId?: string | undefined;
966
+ }>, z.ZodObject<{
967
+ id: z.ZodString;
968
+ at: z.ZodString;
969
+ sessionId: z.ZodOptional<z.ZodString>;
970
+ causedByEventId: z.ZodOptional<z.ZodString>;
971
+ actorId: z.ZodOptional<z.ZodString>;
972
+ } & {
973
+ type: z.ZodLiteral<"ResourceSpent">;
974
+ characterId: z.ZodString;
975
+ resourceId: z.ZodString;
976
+ amount: z.ZodNumber;
977
+ }, "strip", z.ZodTypeAny, {
978
+ at: string;
979
+ type: "ResourceSpent";
980
+ amount: number;
981
+ resourceId: string;
982
+ id: string;
983
+ characterId: string;
984
+ sessionId?: string | undefined;
985
+ causedByEventId?: string | undefined;
986
+ actorId?: string | undefined;
987
+ }, {
988
+ at: string;
989
+ type: "ResourceSpent";
990
+ amount: number;
991
+ resourceId: string;
992
+ id: string;
993
+ characterId: string;
994
+ sessionId?: string | undefined;
995
+ causedByEventId?: string | undefined;
996
+ actorId?: string | undefined;
997
+ }>, z.ZodObject<{
998
+ id: z.ZodString;
999
+ at: z.ZodString;
1000
+ sessionId: z.ZodOptional<z.ZodString>;
1001
+ causedByEventId: z.ZodOptional<z.ZodString>;
1002
+ actorId: z.ZodOptional<z.ZodString>;
1003
+ } & {
1004
+ type: z.ZodLiteral<"ResourceRestored">;
1005
+ characterId: z.ZodString;
1006
+ resourceId: z.ZodString;
1007
+ amount: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"all">]>;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ at: string;
1010
+ type: "ResourceRestored";
1011
+ amount: number | "all";
1012
+ resourceId: string;
1013
+ id: string;
1014
+ characterId: string;
1015
+ sessionId?: string | undefined;
1016
+ causedByEventId?: string | undefined;
1017
+ actorId?: string | undefined;
1018
+ }, {
1019
+ at: string;
1020
+ type: "ResourceRestored";
1021
+ amount: number | "all";
1022
+ resourceId: string;
1023
+ id: string;
1024
+ characterId: string;
1025
+ sessionId?: string | undefined;
1026
+ causedByEventId?: string | undefined;
1027
+ actorId?: string | undefined;
1028
+ }>, z.ZodObject<{
1029
+ id: z.ZodString;
1030
+ at: z.ZodString;
1031
+ sessionId: z.ZodOptional<z.ZodString>;
1032
+ causedByEventId: z.ZodOptional<z.ZodString>;
1033
+ actorId: z.ZodOptional<z.ZodString>;
1034
+ } & {
1035
+ type: z.ZodLiteral<"HitDieSpent">;
1036
+ characterId: z.ZodString;
1037
+ die: z.ZodUnion<[z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>, z.ZodLiteral<12>]>;
1038
+ rolled: z.ZodNumber;
1039
+ conMod: z.ZodNumber;
1040
+ healed: z.ZodNumber;
1041
+ }, "strip", z.ZodTypeAny, {
1042
+ at: string;
1043
+ type: "HitDieSpent";
1044
+ id: string;
1045
+ characterId: string;
1046
+ die: 6 | 8 | 10 | 12;
1047
+ rolled: number;
1048
+ conMod: number;
1049
+ healed: number;
1050
+ sessionId?: string | undefined;
1051
+ causedByEventId?: string | undefined;
1052
+ actorId?: string | undefined;
1053
+ }, {
1054
+ at: string;
1055
+ type: "HitDieSpent";
1056
+ id: string;
1057
+ characterId: string;
1058
+ die: 6 | 8 | 10 | 12;
1059
+ rolled: number;
1060
+ conMod: number;
1061
+ healed: number;
1062
+ sessionId?: string | undefined;
1063
+ causedByEventId?: string | undefined;
1064
+ actorId?: string | undefined;
1065
+ }>, z.ZodObject<{
1066
+ id: z.ZodString;
1067
+ at: z.ZodString;
1068
+ sessionId: z.ZodOptional<z.ZodString>;
1069
+ causedByEventId: z.ZodOptional<z.ZodString>;
1070
+ actorId: z.ZodOptional<z.ZodString>;
1071
+ } & {
1072
+ type: z.ZodLiteral<"ShortRestStarted">;
1073
+ participantIds: z.ZodArray<z.ZodString, "many">;
1074
+ }, "strip", z.ZodTypeAny, {
1075
+ at: string;
1076
+ type: "ShortRestStarted";
1077
+ id: string;
1078
+ participantIds: string[];
1079
+ sessionId?: string | undefined;
1080
+ causedByEventId?: string | undefined;
1081
+ actorId?: string | undefined;
1082
+ }, {
1083
+ at: string;
1084
+ type: "ShortRestStarted";
1085
+ id: string;
1086
+ participantIds: string[];
1087
+ sessionId?: string | undefined;
1088
+ causedByEventId?: string | undefined;
1089
+ actorId?: string | undefined;
1090
+ }>, z.ZodObject<{
1091
+ id: z.ZodString;
1092
+ at: z.ZodString;
1093
+ sessionId: z.ZodOptional<z.ZodString>;
1094
+ causedByEventId: z.ZodOptional<z.ZodString>;
1095
+ actorId: z.ZodOptional<z.ZodString>;
1096
+ } & {
1097
+ type: z.ZodLiteral<"ShortRestEnded">;
1098
+ }, "strip", z.ZodTypeAny, {
1099
+ at: string;
1100
+ type: "ShortRestEnded";
1101
+ id: string;
1102
+ sessionId?: string | undefined;
1103
+ causedByEventId?: string | undefined;
1104
+ actorId?: string | undefined;
1105
+ }, {
1106
+ at: string;
1107
+ type: "ShortRestEnded";
1108
+ id: string;
1109
+ sessionId?: string | undefined;
1110
+ causedByEventId?: string | undefined;
1111
+ actorId?: string | undefined;
1112
+ }>, z.ZodObject<{
1113
+ id: z.ZodString;
1114
+ at: z.ZodString;
1115
+ sessionId: z.ZodOptional<z.ZodString>;
1116
+ causedByEventId: z.ZodOptional<z.ZodString>;
1117
+ actorId: z.ZodOptional<z.ZodString>;
1118
+ } & {
1119
+ type: z.ZodLiteral<"LongRestStarted">;
1120
+ participantIds: z.ZodArray<z.ZodString, "many">;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ at: string;
1123
+ type: "LongRestStarted";
1124
+ id: string;
1125
+ participantIds: string[];
1126
+ sessionId?: string | undefined;
1127
+ causedByEventId?: string | undefined;
1128
+ actorId?: string | undefined;
1129
+ }, {
1130
+ at: string;
1131
+ type: "LongRestStarted";
1132
+ id: string;
1133
+ participantIds: string[];
1134
+ sessionId?: string | undefined;
1135
+ causedByEventId?: string | undefined;
1136
+ actorId?: string | undefined;
1137
+ }>, z.ZodObject<{
1138
+ id: z.ZodString;
1139
+ at: z.ZodString;
1140
+ sessionId: z.ZodOptional<z.ZodString>;
1141
+ causedByEventId: z.ZodOptional<z.ZodString>;
1142
+ actorId: z.ZodOptional<z.ZodString>;
1143
+ } & {
1144
+ type: z.ZodLiteral<"LongRestEnded">;
1145
+ }, "strip", z.ZodTypeAny, {
1146
+ at: string;
1147
+ type: "LongRestEnded";
1148
+ id: string;
1149
+ sessionId?: string | undefined;
1150
+ causedByEventId?: string | undefined;
1151
+ actorId?: string | undefined;
1152
+ }, {
1153
+ at: string;
1154
+ type: "LongRestEnded";
1155
+ id: string;
1156
+ sessionId?: string | undefined;
1157
+ causedByEventId?: string | undefined;
1158
+ actorId?: string | undefined;
1159
+ }>, z.ZodObject<{
1160
+ id: z.ZodString;
1161
+ at: z.ZodString;
1162
+ sessionId: z.ZodOptional<z.ZodString>;
1163
+ causedByEventId: z.ZodOptional<z.ZodString>;
1164
+ actorId: z.ZodOptional<z.ZodString>;
1165
+ } & {
1166
+ type: z.ZodLiteral<"EncounterCreated">;
1167
+ encounterId: z.ZodString;
1168
+ name: z.ZodOptional<z.ZodString>;
1169
+ combatantIds: z.ZodArray<z.ZodString, "many">;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ at: string;
1172
+ type: "EncounterCreated";
1173
+ id: string;
1174
+ encounterId: string;
1175
+ combatantIds: string[];
1176
+ name?: string | undefined;
1177
+ sessionId?: string | undefined;
1178
+ causedByEventId?: string | undefined;
1179
+ actorId?: string | undefined;
1180
+ }, {
1181
+ at: string;
1182
+ type: "EncounterCreated";
1183
+ id: string;
1184
+ encounterId: string;
1185
+ combatantIds: string[];
1186
+ name?: string | undefined;
1187
+ sessionId?: string | undefined;
1188
+ causedByEventId?: string | undefined;
1189
+ actorId?: string | undefined;
1190
+ }>, z.ZodObject<{
1191
+ id: z.ZodString;
1192
+ at: z.ZodString;
1193
+ sessionId: z.ZodOptional<z.ZodString>;
1194
+ causedByEventId: z.ZodOptional<z.ZodString>;
1195
+ actorId: z.ZodOptional<z.ZodString>;
1196
+ } & {
1197
+ type: z.ZodLiteral<"EncounterStarted">;
1198
+ encounterId: z.ZodString;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ at: string;
1201
+ type: "EncounterStarted";
1202
+ id: string;
1203
+ encounterId: string;
1204
+ sessionId?: string | undefined;
1205
+ causedByEventId?: string | undefined;
1206
+ actorId?: string | undefined;
1207
+ }, {
1208
+ at: string;
1209
+ type: "EncounterStarted";
1210
+ id: string;
1211
+ encounterId: string;
1212
+ sessionId?: string | undefined;
1213
+ causedByEventId?: string | undefined;
1214
+ actorId?: string | undefined;
1215
+ }>, z.ZodObject<{
1216
+ id: z.ZodString;
1217
+ at: z.ZodString;
1218
+ sessionId: z.ZodOptional<z.ZodString>;
1219
+ causedByEventId: z.ZodOptional<z.ZodString>;
1220
+ actorId: z.ZodOptional<z.ZodString>;
1221
+ } & {
1222
+ type: z.ZodLiteral<"InitiativeRolled">;
1223
+ encounterId: z.ZodString;
1224
+ rolls: z.ZodArray<z.ZodObject<{
1225
+ combatantId: z.ZodString;
1226
+ d20: z.ZodNumber;
1227
+ modifier: z.ZodNumber;
1228
+ total: z.ZodNumber;
1229
+ }, "strip", z.ZodTypeAny, {
1230
+ combatantId: string;
1231
+ d20: number;
1232
+ modifier: number;
1233
+ total: number;
1234
+ }, {
1235
+ combatantId: string;
1236
+ d20: number;
1237
+ modifier: number;
1238
+ total: number;
1239
+ }>, "many">;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ at: string;
1242
+ type: "InitiativeRolled";
1243
+ id: string;
1244
+ encounterId: string;
1245
+ rolls: {
1246
+ combatantId: string;
1247
+ d20: number;
1248
+ modifier: number;
1249
+ total: number;
1250
+ }[];
1251
+ sessionId?: string | undefined;
1252
+ causedByEventId?: string | undefined;
1253
+ actorId?: string | undefined;
1254
+ }, {
1255
+ at: string;
1256
+ type: "InitiativeRolled";
1257
+ id: string;
1258
+ encounterId: string;
1259
+ rolls: {
1260
+ combatantId: string;
1261
+ d20: number;
1262
+ modifier: number;
1263
+ total: number;
1264
+ }[];
1265
+ sessionId?: string | undefined;
1266
+ causedByEventId?: string | undefined;
1267
+ actorId?: string | undefined;
1268
+ }>, z.ZodObject<{
1269
+ id: z.ZodString;
1270
+ at: z.ZodString;
1271
+ sessionId: z.ZodOptional<z.ZodString>;
1272
+ causedByEventId: z.ZodOptional<z.ZodString>;
1273
+ actorId: z.ZodOptional<z.ZodString>;
1274
+ } & {
1275
+ type: z.ZodLiteral<"TurnStarted">;
1276
+ encounterId: z.ZodString;
1277
+ combatantId: z.ZodString;
1278
+ round: z.ZodNumber;
1279
+ }, "strip", z.ZodTypeAny, {
1280
+ at: string;
1281
+ type: "TurnStarted";
1282
+ round: number;
1283
+ id: string;
1284
+ combatantId: string;
1285
+ encounterId: string;
1286
+ sessionId?: string | undefined;
1287
+ causedByEventId?: string | undefined;
1288
+ actorId?: string | undefined;
1289
+ }, {
1290
+ at: string;
1291
+ type: "TurnStarted";
1292
+ round: number;
1293
+ id: string;
1294
+ combatantId: string;
1295
+ encounterId: string;
1296
+ sessionId?: string | undefined;
1297
+ causedByEventId?: string | undefined;
1298
+ actorId?: string | undefined;
1299
+ }>, z.ZodObject<{
1300
+ id: z.ZodString;
1301
+ at: z.ZodString;
1302
+ sessionId: z.ZodOptional<z.ZodString>;
1303
+ causedByEventId: z.ZodOptional<z.ZodString>;
1304
+ actorId: z.ZodOptional<z.ZodString>;
1305
+ } & {
1306
+ type: z.ZodLiteral<"TurnEnded">;
1307
+ encounterId: z.ZodString;
1308
+ combatantId: z.ZodString;
1309
+ round: z.ZodNumber;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ at: string;
1312
+ type: "TurnEnded";
1313
+ round: number;
1314
+ id: string;
1315
+ combatantId: string;
1316
+ encounterId: string;
1317
+ sessionId?: string | undefined;
1318
+ causedByEventId?: string | undefined;
1319
+ actorId?: string | undefined;
1320
+ }, {
1321
+ at: string;
1322
+ type: "TurnEnded";
1323
+ round: number;
1324
+ id: string;
1325
+ combatantId: string;
1326
+ encounterId: string;
1327
+ sessionId?: string | undefined;
1328
+ causedByEventId?: string | undefined;
1329
+ actorId?: string | undefined;
1330
+ }>, z.ZodObject<{
1331
+ id: z.ZodString;
1332
+ at: z.ZodString;
1333
+ sessionId: z.ZodOptional<z.ZodString>;
1334
+ causedByEventId: z.ZodOptional<z.ZodString>;
1335
+ actorId: z.ZodOptional<z.ZodString>;
1336
+ } & {
1337
+ type: z.ZodLiteral<"RoundEnded">;
1338
+ encounterId: z.ZodString;
1339
+ round: z.ZodNumber;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ at: string;
1342
+ type: "RoundEnded";
1343
+ round: number;
1344
+ id: string;
1345
+ encounterId: string;
1346
+ sessionId?: string | undefined;
1347
+ causedByEventId?: string | undefined;
1348
+ actorId?: string | undefined;
1349
+ }, {
1350
+ at: string;
1351
+ type: "RoundEnded";
1352
+ round: number;
1353
+ id: string;
1354
+ encounterId: string;
1355
+ sessionId?: string | undefined;
1356
+ causedByEventId?: string | undefined;
1357
+ actorId?: string | undefined;
1358
+ }>, z.ZodObject<{
1359
+ id: z.ZodString;
1360
+ at: z.ZodString;
1361
+ sessionId: z.ZodOptional<z.ZodString>;
1362
+ causedByEventId: z.ZodOptional<z.ZodString>;
1363
+ actorId: z.ZodOptional<z.ZodString>;
1364
+ } & {
1365
+ type: z.ZodLiteral<"EncounterEnded">;
1366
+ encounterId: z.ZodString;
1367
+ outcome: z.ZodEnum<["victory", "defeat", "fled", "parley"]>;
1368
+ }, "strip", z.ZodTypeAny, {
1369
+ at: string;
1370
+ type: "EncounterEnded";
1371
+ id: string;
1372
+ outcome: "victory" | "defeat" | "fled" | "parley";
1373
+ encounterId: string;
1374
+ sessionId?: string | undefined;
1375
+ causedByEventId?: string | undefined;
1376
+ actorId?: string | undefined;
1377
+ }, {
1378
+ at: string;
1379
+ type: "EncounterEnded";
1380
+ id: string;
1381
+ outcome: "victory" | "defeat" | "fled" | "parley";
1382
+ encounterId: string;
1383
+ sessionId?: string | undefined;
1384
+ causedByEventId?: string | undefined;
1385
+ actorId?: string | undefined;
1386
+ }>, z.ZodObject<{
1387
+ id: z.ZodString;
1388
+ at: z.ZodString;
1389
+ sessionId: z.ZodOptional<z.ZodString>;
1390
+ causedByEventId: z.ZodOptional<z.ZodString>;
1391
+ actorId: z.ZodOptional<z.ZodString>;
1392
+ } & {
1393
+ type: z.ZodLiteral<"AttackRolled">;
1394
+ attackerId: z.ZodString;
1395
+ targetId: z.ZodString;
1396
+ weaponInstanceId: z.ZodString;
1397
+ d20: z.ZodArray<z.ZodNumber, "many">;
1398
+ used: z.ZodEnum<["none", "advantage", "disadvantage"]>;
1399
+ attackBonus: z.ZodNumber;
1400
+ total: z.ZodNumber;
1401
+ targetAC: z.ZodNumber;
1402
+ hit: z.ZodBoolean;
1403
+ critical: z.ZodBoolean;
1404
+ }, "strip", z.ZodTypeAny, {
1405
+ at: string;
1406
+ type: "AttackRolled";
1407
+ id: string;
1408
+ weaponInstanceId: string;
1409
+ targetId: string;
1410
+ d20: number[];
1411
+ critical: boolean;
1412
+ total: number;
1413
+ attackerId: string;
1414
+ used: "none" | "advantage" | "disadvantage";
1415
+ attackBonus: number;
1416
+ targetAC: number;
1417
+ hit: boolean;
1418
+ sessionId?: string | undefined;
1419
+ causedByEventId?: string | undefined;
1420
+ actorId?: string | undefined;
1421
+ }, {
1422
+ at: string;
1423
+ type: "AttackRolled";
1424
+ id: string;
1425
+ weaponInstanceId: string;
1426
+ targetId: string;
1427
+ d20: number[];
1428
+ critical: boolean;
1429
+ total: number;
1430
+ attackerId: string;
1431
+ used: "none" | "advantage" | "disadvantage";
1432
+ attackBonus: number;
1433
+ targetAC: number;
1434
+ hit: boolean;
1435
+ sessionId?: string | undefined;
1436
+ causedByEventId?: string | undefined;
1437
+ actorId?: string | undefined;
1438
+ }>, z.ZodObject<{
1439
+ id: z.ZodString;
1440
+ at: z.ZodString;
1441
+ sessionId: z.ZodOptional<z.ZodString>;
1442
+ causedByEventId: z.ZodOptional<z.ZodString>;
1443
+ actorId: z.ZodOptional<z.ZodString>;
1444
+ } & {
1445
+ type: z.ZodLiteral<"DamageRolled">;
1446
+ attackerId: z.ZodString;
1447
+ targetId: z.ZodString;
1448
+ weaponInstanceId: z.ZodString;
1449
+ rolls: z.ZodArray<z.ZodObject<{
1450
+ expression: z.ZodString;
1451
+ rolls: z.ZodArray<z.ZodNumber, "many">;
1452
+ modifier: z.ZodNumber;
1453
+ type: z.ZodEnum<["acid", "bludgeoning", "cold", "fire", "force", "lightning", "necrotic", "piercing", "poison", "psychic", "radiant", "slashing", "thunder"]>;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ type: "acid" | "bludgeoning" | "cold" | "fire" | "force" | "lightning" | "necrotic" | "piercing" | "poison" | "psychic" | "radiant" | "slashing" | "thunder";
1456
+ expression: string;
1457
+ modifier: number;
1458
+ rolls: number[];
1459
+ }, {
1460
+ type: "acid" | "bludgeoning" | "cold" | "fire" | "force" | "lightning" | "necrotic" | "piercing" | "poison" | "psychic" | "radiant" | "slashing" | "thunder";
1461
+ expression: string;
1462
+ modifier: number;
1463
+ rolls: number[];
1464
+ }>, "many">;
1465
+ critical: z.ZodBoolean;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ at: string;
1468
+ type: "DamageRolled";
1469
+ id: string;
1470
+ weaponInstanceId: string;
1471
+ targetId: string;
1472
+ critical: boolean;
1473
+ rolls: {
1474
+ type: "acid" | "bludgeoning" | "cold" | "fire" | "force" | "lightning" | "necrotic" | "piercing" | "poison" | "psychic" | "radiant" | "slashing" | "thunder";
1475
+ expression: string;
1476
+ modifier: number;
1477
+ rolls: number[];
1478
+ }[];
1479
+ attackerId: string;
1480
+ sessionId?: string | undefined;
1481
+ causedByEventId?: string | undefined;
1482
+ actorId?: string | undefined;
1483
+ }, {
1484
+ at: string;
1485
+ type: "DamageRolled";
1486
+ id: string;
1487
+ weaponInstanceId: string;
1488
+ targetId: string;
1489
+ critical: boolean;
1490
+ rolls: {
1491
+ type: "acid" | "bludgeoning" | "cold" | "fire" | "force" | "lightning" | "necrotic" | "piercing" | "poison" | "psychic" | "radiant" | "slashing" | "thunder";
1492
+ expression: string;
1493
+ modifier: number;
1494
+ rolls: number[];
1495
+ }[];
1496
+ attackerId: string;
1497
+ sessionId?: string | undefined;
1498
+ causedByEventId?: string | undefined;
1499
+ actorId?: string | undefined;
1500
+ }>, z.ZodObject<{
1501
+ id: z.ZodString;
1502
+ at: z.ZodString;
1503
+ sessionId: z.ZodOptional<z.ZodString>;
1504
+ causedByEventId: z.ZodOptional<z.ZodString>;
1505
+ actorId: z.ZodOptional<z.ZodString>;
1506
+ } & {
1507
+ type: z.ZodLiteral<"ItemAcquired">;
1508
+ instance: z.ZodObject<{
1509
+ id: z.ZodString;
1510
+ definitionId: z.ZodString;
1511
+ customName: z.ZodOptional<z.ZodString>;
1512
+ quantity: z.ZodDefault<z.ZodNumber>;
1513
+ chargesRemaining: z.ZodOptional<z.ZodNumber>;
1514
+ attuned: z.ZodDefault<z.ZodBoolean>;
1515
+ attunedTo: z.ZodOptional<z.ZodString>;
1516
+ equippedBy: z.ZodOptional<z.ZodString>;
1517
+ containerId: z.ZodOptional<z.ZodString>;
1518
+ acquiredAtEventId: z.ZodOptional<z.ZodString>;
1519
+ identifiedByCharacterIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1520
+ maxCharges: z.ZodOptional<z.ZodNumber>;
1521
+ sentient: z.ZodOptional<z.ZodObject<{
1522
+ ego: z.ZodNumber;
1523
+ alignment: z.ZodString;
1524
+ personality: z.ZodOptional<z.ZodString>;
1525
+ }, "strip", z.ZodTypeAny, {
1526
+ alignment: string;
1527
+ ego: number;
1528
+ personality?: string | undefined;
1529
+ }, {
1530
+ alignment: string;
1531
+ ego: number;
1532
+ personality?: string | undefined;
1533
+ }>>;
1534
+ }, "strip", z.ZodTypeAny, {
1535
+ id: string;
1536
+ attuned: boolean;
1537
+ definitionId: string;
1538
+ quantity: number;
1539
+ identifiedByCharacterIds: string[];
1540
+ customName?: string | undefined;
1541
+ chargesRemaining?: number | undefined;
1542
+ attunedTo?: string | undefined;
1543
+ equippedBy?: string | undefined;
1544
+ containerId?: string | undefined;
1545
+ acquiredAtEventId?: string | undefined;
1546
+ maxCharges?: number | undefined;
1547
+ sentient?: {
1548
+ alignment: string;
1549
+ ego: number;
1550
+ personality?: string | undefined;
1551
+ } | undefined;
1552
+ }, {
1553
+ id: string;
1554
+ definitionId: string;
1555
+ attuned?: boolean | undefined;
1556
+ customName?: string | undefined;
1557
+ quantity?: number | undefined;
1558
+ chargesRemaining?: number | undefined;
1559
+ attunedTo?: string | undefined;
1560
+ equippedBy?: string | undefined;
1561
+ containerId?: string | undefined;
1562
+ acquiredAtEventId?: string | undefined;
1563
+ identifiedByCharacterIds?: string[] | undefined;
1564
+ maxCharges?: number | undefined;
1565
+ sentient?: {
1566
+ alignment: string;
1567
+ ego: number;
1568
+ personality?: string | undefined;
1569
+ } | undefined;
1570
+ }>;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ at: string;
1573
+ type: "ItemAcquired";
1574
+ id: string;
1575
+ instance: {
1576
+ id: string;
1577
+ attuned: boolean;
1578
+ definitionId: string;
1579
+ quantity: number;
1580
+ identifiedByCharacterIds: string[];
1581
+ customName?: string | undefined;
1582
+ chargesRemaining?: number | undefined;
1583
+ attunedTo?: string | undefined;
1584
+ equippedBy?: string | undefined;
1585
+ containerId?: string | undefined;
1586
+ acquiredAtEventId?: string | undefined;
1587
+ maxCharges?: number | undefined;
1588
+ sentient?: {
1589
+ alignment: string;
1590
+ ego: number;
1591
+ personality?: string | undefined;
1592
+ } | undefined;
1593
+ };
1594
+ sessionId?: string | undefined;
1595
+ causedByEventId?: string | undefined;
1596
+ actorId?: string | undefined;
1597
+ }, {
1598
+ at: string;
1599
+ type: "ItemAcquired";
1600
+ id: string;
1601
+ instance: {
1602
+ id: string;
1603
+ definitionId: string;
1604
+ attuned?: boolean | undefined;
1605
+ customName?: string | undefined;
1606
+ quantity?: number | undefined;
1607
+ chargesRemaining?: number | undefined;
1608
+ attunedTo?: string | undefined;
1609
+ equippedBy?: string | undefined;
1610
+ containerId?: string | undefined;
1611
+ acquiredAtEventId?: string | undefined;
1612
+ identifiedByCharacterIds?: string[] | undefined;
1613
+ maxCharges?: number | undefined;
1614
+ sentient?: {
1615
+ alignment: string;
1616
+ ego: number;
1617
+ personality?: string | undefined;
1618
+ } | undefined;
1619
+ };
1620
+ sessionId?: string | undefined;
1621
+ causedByEventId?: string | undefined;
1622
+ actorId?: string | undefined;
1623
+ }>, z.ZodObject<{
1624
+ id: z.ZodString;
1625
+ at: z.ZodString;
1626
+ sessionId: z.ZodOptional<z.ZodString>;
1627
+ causedByEventId: z.ZodOptional<z.ZodString>;
1628
+ actorId: z.ZodOptional<z.ZodString>;
1629
+ } & {
1630
+ type: z.ZodLiteral<"LevelUpResolved">;
1631
+ characterId: z.ZodString;
1632
+ classId: z.ZodString;
1633
+ newClassLevel: z.ZodNumber;
1634
+ hpStrategy: z.ZodEnum<["roll", "average"]>;
1635
+ hpRoll: z.ZodOptional<z.ZodNumber>;
1636
+ hpGained: z.ZodNumber;
1637
+ }, "strip", z.ZodTypeAny, {
1638
+ at: string;
1639
+ type: "LevelUpResolved";
1640
+ classId: string;
1641
+ id: string;
1642
+ characterId: string;
1643
+ newClassLevel: number;
1644
+ hpStrategy: "average" | "roll";
1645
+ hpGained: number;
1646
+ sessionId?: string | undefined;
1647
+ causedByEventId?: string | undefined;
1648
+ actorId?: string | undefined;
1649
+ hpRoll?: number | undefined;
1650
+ }, {
1651
+ at: string;
1652
+ type: "LevelUpResolved";
1653
+ classId: string;
1654
+ id: string;
1655
+ characterId: string;
1656
+ newClassLevel: number;
1657
+ hpStrategy: "average" | "roll";
1658
+ hpGained: number;
1659
+ sessionId?: string | undefined;
1660
+ causedByEventId?: string | undefined;
1661
+ actorId?: string | undefined;
1662
+ hpRoll?: number | undefined;
1663
+ }>, z.ZodObject<{
1664
+ id: z.ZodString;
1665
+ at: z.ZodString;
1666
+ sessionId: z.ZodOptional<z.ZodString>;
1667
+ causedByEventId: z.ZodOptional<z.ZodString>;
1668
+ actorId: z.ZodOptional<z.ZodString>;
1669
+ } & {
1670
+ type: z.ZodLiteral<"ChoiceRequired">;
1671
+ choiceId: z.ZodString;
1672
+ characterId: z.ZodString;
1673
+ promptKey: z.ZodString;
1674
+ prompt: z.ZodString;
1675
+ options: z.ZodArray<z.ZodObject<{
1676
+ id: z.ZodString;
1677
+ label: z.ZodString;
1678
+ effects: z.ZodDefault<z.ZodArray<z.ZodType<import("../effects.js").Effect, z.ZodTypeDef, import("../effects.js").Effect>, "many">>;
1679
+ }, "strip", z.ZodTypeAny, {
1680
+ id: string;
1681
+ label: string;
1682
+ effects: import("../effects.js").Effect[];
1683
+ }, {
1684
+ id: string;
1685
+ label: string;
1686
+ effects?: import("../effects.js").Effect[] | undefined;
1687
+ }>, "many">;
1688
+ oneOf: z.ZodNumber;
1689
+ }, "strip", z.ZodTypeAny, {
1690
+ at: string;
1691
+ options: {
1692
+ id: string;
1693
+ label: string;
1694
+ effects: import("../effects.js").Effect[];
1695
+ }[];
1696
+ type: "ChoiceRequired";
1697
+ id: string;
1698
+ choiceId: string;
1699
+ prompt: string;
1700
+ oneOf: number;
1701
+ characterId: string;
1702
+ promptKey: string;
1703
+ sessionId?: string | undefined;
1704
+ causedByEventId?: string | undefined;
1705
+ actorId?: string | undefined;
1706
+ }, {
1707
+ at: string;
1708
+ options: {
1709
+ id: string;
1710
+ label: string;
1711
+ effects?: import("../effects.js").Effect[] | undefined;
1712
+ }[];
1713
+ type: "ChoiceRequired";
1714
+ id: string;
1715
+ choiceId: string;
1716
+ prompt: string;
1717
+ oneOf: number;
1718
+ characterId: string;
1719
+ promptKey: string;
1720
+ sessionId?: string | undefined;
1721
+ causedByEventId?: string | undefined;
1722
+ actorId?: string | undefined;
1723
+ }>, z.ZodObject<{
1724
+ id: z.ZodString;
1725
+ at: z.ZodString;
1726
+ sessionId: z.ZodOptional<z.ZodString>;
1727
+ causedByEventId: z.ZodOptional<z.ZodString>;
1728
+ actorId: z.ZodOptional<z.ZodString>;
1729
+ } & {
1730
+ type: z.ZodLiteral<"ChoiceResolved">;
1731
+ choiceId: z.ZodString;
1732
+ characterId: z.ZodString;
1733
+ selectedOptionIds: z.ZodArray<z.ZodString, "many">;
1734
+ }, "strip", z.ZodTypeAny, {
1735
+ at: string;
1736
+ type: "ChoiceResolved";
1737
+ id: string;
1738
+ choiceId: string;
1739
+ selectedOptionIds: string[];
1740
+ characterId: string;
1741
+ sessionId?: string | undefined;
1742
+ causedByEventId?: string | undefined;
1743
+ actorId?: string | undefined;
1744
+ }, {
1745
+ at: string;
1746
+ type: "ChoiceResolved";
1747
+ id: string;
1748
+ choiceId: string;
1749
+ selectedOptionIds: string[];
1750
+ characterId: string;
1751
+ sessionId?: string | undefined;
1752
+ causedByEventId?: string | undefined;
1753
+ actorId?: string | undefined;
1754
+ }>, z.ZodObject<{
1755
+ id: z.ZodString;
1756
+ at: z.ZodString;
1757
+ sessionId: z.ZodOptional<z.ZodString>;
1758
+ causedByEventId: z.ZodOptional<z.ZodString>;
1759
+ actorId: z.ZodOptional<z.ZodString>;
1760
+ } & {
1761
+ type: z.ZodLiteral<"SaveRolled">;
1762
+ targetId: z.ZodString;
1763
+ ability: z.ZodEnum<["STR", "DEX", "CON", "INT", "WIS", "CHA"]>;
1764
+ dc: z.ZodNumber;
1765
+ d20: z.ZodArray<z.ZodNumber, "many">;
1766
+ used: z.ZodEnum<["none", "advantage", "disadvantage"]>;
1767
+ bonus: z.ZodNumber;
1768
+ total: z.ZodNumber;
1769
+ success: z.ZodBoolean;
1770
+ }, "strip", z.ZodTypeAny, {
1771
+ at: string;
1772
+ type: "SaveRolled";
1773
+ ability: "STR" | "DEX" | "CON" | "INT" | "WIS" | "CHA";
1774
+ id: string;
1775
+ dc: number;
1776
+ targetId: string;
1777
+ success: boolean;
1778
+ d20: number[];
1779
+ total: number;
1780
+ used: "none" | "advantage" | "disadvantage";
1781
+ bonus: number;
1782
+ sessionId?: string | undefined;
1783
+ causedByEventId?: string | undefined;
1784
+ actorId?: string | undefined;
1785
+ }, {
1786
+ at: string;
1787
+ type: "SaveRolled";
1788
+ ability: "STR" | "DEX" | "CON" | "INT" | "WIS" | "CHA";
1789
+ id: string;
1790
+ dc: number;
1791
+ targetId: string;
1792
+ success: boolean;
1793
+ d20: number[];
1794
+ total: number;
1795
+ used: "none" | "advantage" | "disadvantage";
1796
+ bonus: number;
1797
+ sessionId?: string | undefined;
1798
+ causedByEventId?: string | undefined;
1799
+ actorId?: string | undefined;
1800
+ }>, z.ZodObject<{
1801
+ id: z.ZodString;
1802
+ at: z.ZodString;
1803
+ sessionId: z.ZodOptional<z.ZodString>;
1804
+ causedByEventId: z.ZodOptional<z.ZodString>;
1805
+ actorId: z.ZodOptional<z.ZodString>;
1806
+ } & {
1807
+ type: z.ZodLiteral<"AbilityCheckRolled">;
1808
+ characterId: z.ZodString;
1809
+ ability: z.ZodEnum<["STR", "DEX", "CON", "INT", "WIS", "CHA"]>;
1810
+ skill: z.ZodOptional<z.ZodEnum<["acrobatics", "animal-handling", "arcana", "athletics", "deception", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "religion", "sleight-of-hand", "stealth", "survival"]>>;
1811
+ dc: z.ZodOptional<z.ZodNumber>;
1812
+ d20: z.ZodArray<z.ZodNumber, "many">;
1813
+ used: z.ZodEnum<["none", "advantage", "disadvantage"]>;
1814
+ bonus: z.ZodNumber;
1815
+ total: z.ZodNumber;
1816
+ success: z.ZodOptional<z.ZodBoolean>;
1817
+ }, "strip", z.ZodTypeAny, {
1818
+ at: string;
1819
+ type: "AbilityCheckRolled";
1820
+ ability: "STR" | "DEX" | "CON" | "INT" | "WIS" | "CHA";
1821
+ id: string;
1822
+ characterId: string;
1823
+ d20: number[];
1824
+ total: number;
1825
+ used: "none" | "advantage" | "disadvantage";
1826
+ bonus: number;
1827
+ skill?: "acrobatics" | "animal-handling" | "arcana" | "athletics" | "deception" | "history" | "insight" | "intimidation" | "investigation" | "medicine" | "nature" | "perception" | "performance" | "persuasion" | "religion" | "sleight-of-hand" | "stealth" | "survival" | undefined;
1828
+ dc?: number | undefined;
1829
+ sessionId?: string | undefined;
1830
+ causedByEventId?: string | undefined;
1831
+ actorId?: string | undefined;
1832
+ success?: boolean | undefined;
1833
+ }, {
1834
+ at: string;
1835
+ type: "AbilityCheckRolled";
1836
+ ability: "STR" | "DEX" | "CON" | "INT" | "WIS" | "CHA";
1837
+ id: string;
1838
+ characterId: string;
1839
+ d20: number[];
1840
+ total: number;
1841
+ used: "none" | "advantage" | "disadvantage";
1842
+ bonus: number;
1843
+ skill?: "acrobatics" | "animal-handling" | "arcana" | "athletics" | "deception" | "history" | "insight" | "intimidation" | "investigation" | "medicine" | "nature" | "perception" | "performance" | "persuasion" | "religion" | "sleight-of-hand" | "stealth" | "survival" | undefined;
1844
+ dc?: number | undefined;
1845
+ sessionId?: string | undefined;
1846
+ causedByEventId?: string | undefined;
1847
+ actorId?: string | undefined;
1848
+ success?: boolean | undefined;
1849
+ }>, z.ZodObject<{
1850
+ id: z.ZodString;
1851
+ at: z.ZodString;
1852
+ sessionId: z.ZodOptional<z.ZodString>;
1853
+ causedByEventId: z.ZodOptional<z.ZodString>;
1854
+ actorId: z.ZodOptional<z.ZodString>;
1855
+ } & {
1856
+ type: z.ZodLiteral<"SpellCastDeclared">;
1857
+ characterId: z.ZodString;
1858
+ spellId: z.ZodString;
1859
+ slotLevel: z.ZodNumber;
1860
+ slotSource: z.ZodEnum<["standard", "pact"]>;
1861
+ targetIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1862
+ castAsRitual: z.ZodDefault<z.ZodBoolean>;
1863
+ }, "strip", z.ZodTypeAny, {
1864
+ at: string;
1865
+ type: "SpellCastDeclared";
1866
+ id: string;
1867
+ spellId: string;
1868
+ targetIds: string[];
1869
+ characterId: string;
1870
+ slotLevel: number;
1871
+ slotSource: "pact" | "standard";
1872
+ castAsRitual: boolean;
1873
+ sessionId?: string | undefined;
1874
+ causedByEventId?: string | undefined;
1875
+ actorId?: string | undefined;
1876
+ }, {
1877
+ at: string;
1878
+ type: "SpellCastDeclared";
1879
+ id: string;
1880
+ spellId: string;
1881
+ characterId: string;
1882
+ slotLevel: number;
1883
+ slotSource: "pact" | "standard";
1884
+ targetIds?: string[] | undefined;
1885
+ sessionId?: string | undefined;
1886
+ causedByEventId?: string | undefined;
1887
+ actorId?: string | undefined;
1888
+ castAsRitual?: boolean | undefined;
1889
+ }>, z.ZodObject<{
1890
+ id: z.ZodString;
1891
+ at: z.ZodString;
1892
+ sessionId: z.ZodOptional<z.ZodString>;
1893
+ causedByEventId: z.ZodOptional<z.ZodString>;
1894
+ actorId: z.ZodOptional<z.ZodString>;
1895
+ } & {
1896
+ type: z.ZodLiteral<"SpellSlotConsumed">;
1897
+ characterId: z.ZodString;
1898
+ slotLevel: z.ZodNumber;
1899
+ }, "strip", z.ZodTypeAny, {
1900
+ at: string;
1901
+ type: "SpellSlotConsumed";
1902
+ id: string;
1903
+ characterId: string;
1904
+ slotLevel: number;
1905
+ sessionId?: string | undefined;
1906
+ causedByEventId?: string | undefined;
1907
+ actorId?: string | undefined;
1908
+ }, {
1909
+ at: string;
1910
+ type: "SpellSlotConsumed";
1911
+ id: string;
1912
+ characterId: string;
1913
+ slotLevel: number;
1914
+ sessionId?: string | undefined;
1915
+ causedByEventId?: string | undefined;
1916
+ actorId?: string | undefined;
1917
+ }>, z.ZodObject<{
1918
+ id: z.ZodString;
1919
+ at: z.ZodString;
1920
+ sessionId: z.ZodOptional<z.ZodString>;
1921
+ causedByEventId: z.ZodOptional<z.ZodString>;
1922
+ actorId: z.ZodOptional<z.ZodString>;
1923
+ } & {
1924
+ type: z.ZodLiteral<"PactSlotConsumed">;
1925
+ characterId: z.ZodString;
1926
+ }, "strip", z.ZodTypeAny, {
1927
+ at: string;
1928
+ type: "PactSlotConsumed";
1929
+ id: string;
1930
+ characterId: string;
1931
+ sessionId?: string | undefined;
1932
+ causedByEventId?: string | undefined;
1933
+ actorId?: string | undefined;
1934
+ }, {
1935
+ at: string;
1936
+ type: "PactSlotConsumed";
1937
+ id: string;
1938
+ characterId: string;
1939
+ sessionId?: string | undefined;
1940
+ causedByEventId?: string | undefined;
1941
+ actorId?: string | undefined;
1942
+ }>, z.ZodObject<{
1943
+ id: z.ZodString;
1944
+ at: z.ZodString;
1945
+ sessionId: z.ZodOptional<z.ZodString>;
1946
+ causedByEventId: z.ZodOptional<z.ZodString>;
1947
+ actorId: z.ZodOptional<z.ZodString>;
1948
+ } & {
1949
+ type: z.ZodLiteral<"ConcentrationStarted">;
1950
+ effectInstanceId: z.ZodString;
1951
+ casterId: z.ZodString;
1952
+ spellId: z.ZodString;
1953
+ targetIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1954
+ conditionsApplied: z.ZodDefault<z.ZodArray<z.ZodObject<{
1955
+ targetId: z.ZodString;
1956
+ conditionId: z.ZodString;
1957
+ appliedConditionId: z.ZodString;
1958
+ }, "strip", z.ZodTypeAny, {
1959
+ conditionId: string;
1960
+ targetId: string;
1961
+ appliedConditionId: string;
1962
+ }, {
1963
+ conditionId: string;
1964
+ targetId: string;
1965
+ appliedConditionId: string;
1966
+ }>, "many">>;
1967
+ durationRounds: z.ZodOptional<z.ZodNumber>;
1968
+ }, "strip", z.ZodTypeAny, {
1969
+ at: string;
1970
+ type: "ConcentrationStarted";
1971
+ id: string;
1972
+ spellId: string;
1973
+ casterId: string;
1974
+ targetIds: string[];
1975
+ conditionsApplied: {
1976
+ conditionId: string;
1977
+ targetId: string;
1978
+ appliedConditionId: string;
1979
+ }[];
1980
+ effectInstanceId: string;
1981
+ durationRounds?: number | undefined;
1982
+ sessionId?: string | undefined;
1983
+ causedByEventId?: string | undefined;
1984
+ actorId?: string | undefined;
1985
+ }, {
1986
+ at: string;
1987
+ type: "ConcentrationStarted";
1988
+ id: string;
1989
+ spellId: string;
1990
+ casterId: string;
1991
+ effectInstanceId: string;
1992
+ durationRounds?: number | undefined;
1993
+ targetIds?: string[] | undefined;
1994
+ conditionsApplied?: {
1995
+ conditionId: string;
1996
+ targetId: string;
1997
+ appliedConditionId: string;
1998
+ }[] | undefined;
1999
+ sessionId?: string | undefined;
2000
+ causedByEventId?: string | undefined;
2001
+ actorId?: string | undefined;
2002
+ }>, z.ZodObject<{
2003
+ id: z.ZodString;
2004
+ at: z.ZodString;
2005
+ sessionId: z.ZodOptional<z.ZodString>;
2006
+ causedByEventId: z.ZodOptional<z.ZodString>;
2007
+ actorId: z.ZodOptional<z.ZodString>;
2008
+ } & {
2009
+ type: z.ZodLiteral<"ConcentrationBroken">;
2010
+ effectInstanceId: z.ZodString;
2011
+ casterId: z.ZodString;
2012
+ reason: z.ZodEnum<["failedSave", "newConcentrationSpell", "voluntary", "incapacitated", "dead", "durationEnded"]>;
2013
+ }, "strip", z.ZodTypeAny, {
2014
+ at: string;
2015
+ type: "ConcentrationBroken";
2016
+ id: string;
2017
+ casterId: string;
2018
+ reason: "failedSave" | "newConcentrationSpell" | "voluntary" | "incapacitated" | "dead" | "durationEnded";
2019
+ effectInstanceId: string;
2020
+ sessionId?: string | undefined;
2021
+ causedByEventId?: string | undefined;
2022
+ actorId?: string | undefined;
2023
+ }, {
2024
+ at: string;
2025
+ type: "ConcentrationBroken";
2026
+ id: string;
2027
+ casterId: string;
2028
+ reason: "failedSave" | "newConcentrationSpell" | "voluntary" | "incapacitated" | "dead" | "durationEnded";
2029
+ effectInstanceId: string;
2030
+ sessionId?: string | undefined;
2031
+ causedByEventId?: string | undefined;
2032
+ actorId?: string | undefined;
2033
+ }>, z.ZodObject<{
2034
+ id: z.ZodString;
2035
+ at: z.ZodString;
2036
+ sessionId: z.ZodOptional<z.ZodString>;
2037
+ causedByEventId: z.ZodOptional<z.ZodString>;
2038
+ actorId: z.ZodOptional<z.ZodString>;
2039
+ } & {
2040
+ type: z.ZodLiteral<"TriggerFired">;
2041
+ characterId: z.ZodString;
2042
+ triggerId: z.ZodString;
2043
+ cadence: z.ZodDefault<z.ZodObject<{
2044
+ firedThisTurn: z.ZodOptional<z.ZodBoolean>;
2045
+ firedThisRound: z.ZodOptional<z.ZodBoolean>;
2046
+ firedThisShortRest: z.ZodOptional<z.ZodBoolean>;
2047
+ firedThisLongRest: z.ZodOptional<z.ZodBoolean>;
2048
+ }, "strip", z.ZodTypeAny, {
2049
+ firedThisTurn?: boolean | undefined;
2050
+ firedThisRound?: boolean | undefined;
2051
+ firedThisShortRest?: boolean | undefined;
2052
+ firedThisLongRest?: boolean | undefined;
2053
+ }, {
2054
+ firedThisTurn?: boolean | undefined;
2055
+ firedThisRound?: boolean | undefined;
2056
+ firedThisShortRest?: boolean | undefined;
2057
+ firedThisLongRest?: boolean | undefined;
2058
+ }>>;
2059
+ }, "strip", z.ZodTypeAny, {
2060
+ at: string;
2061
+ type: "TriggerFired";
2062
+ id: string;
2063
+ characterId: string;
2064
+ triggerId: string;
2065
+ cadence: {
2066
+ firedThisTurn?: boolean | undefined;
2067
+ firedThisRound?: boolean | undefined;
2068
+ firedThisShortRest?: boolean | undefined;
2069
+ firedThisLongRest?: boolean | undefined;
2070
+ };
2071
+ sessionId?: string | undefined;
2072
+ causedByEventId?: string | undefined;
2073
+ actorId?: string | undefined;
2074
+ }, {
2075
+ at: string;
2076
+ type: "TriggerFired";
2077
+ id: string;
2078
+ characterId: string;
2079
+ triggerId: string;
2080
+ sessionId?: string | undefined;
2081
+ causedByEventId?: string | undefined;
2082
+ actorId?: string | undefined;
2083
+ cadence?: {
2084
+ firedThisTurn?: boolean | undefined;
2085
+ firedThisRound?: boolean | undefined;
2086
+ firedThisShortRest?: boolean | undefined;
2087
+ firedThisLongRest?: boolean | undefined;
2088
+ } | undefined;
2089
+ }>, z.ZodObject<{
2090
+ id: z.ZodString;
2091
+ at: z.ZodString;
2092
+ sessionId: z.ZodOptional<z.ZodString>;
2093
+ causedByEventId: z.ZodOptional<z.ZodString>;
2094
+ actorId: z.ZodOptional<z.ZodString>;
2095
+ } & {
2096
+ type: z.ZodLiteral<"ActionEconomyConsumed">;
2097
+ encounterId: z.ZodString;
2098
+ combatantId: z.ZodString;
2099
+ kind: z.ZodEnum<["action", "bonusAction", "reaction", "attack"]>;
2100
+ }, "strip", z.ZodTypeAny, {
2101
+ at: string;
2102
+ type: "ActionEconomyConsumed";
2103
+ kind: "attack" | "action" | "bonusAction" | "reaction";
2104
+ id: string;
2105
+ combatantId: string;
2106
+ encounterId: string;
2107
+ sessionId?: string | undefined;
2108
+ causedByEventId?: string | undefined;
2109
+ actorId?: string | undefined;
2110
+ }, {
2111
+ at: string;
2112
+ type: "ActionEconomyConsumed";
2113
+ kind: "attack" | "action" | "bonusAction" | "reaction";
2114
+ id: string;
2115
+ combatantId: string;
2116
+ encounterId: string;
2117
+ sessionId?: string | undefined;
2118
+ causedByEventId?: string | undefined;
2119
+ actorId?: string | undefined;
2120
+ }>, z.ZodObject<{
2121
+ id: z.ZodString;
2122
+ at: z.ZodString;
2123
+ sessionId: z.ZodOptional<z.ZodString>;
2124
+ causedByEventId: z.ZodOptional<z.ZodString>;
2125
+ actorId: z.ZodOptional<z.ZodString>;
2126
+ } & {
2127
+ type: z.ZodLiteral<"CombatantMoved">;
2128
+ encounterId: z.ZodString;
2129
+ combatantId: z.ZodString;
2130
+ fromPosition: z.ZodOptional<z.ZodObject<{
2131
+ x: z.ZodNumber;
2132
+ y: z.ZodNumber;
2133
+ }, "strip", z.ZodTypeAny, {
2134
+ x: number;
2135
+ y: number;
2136
+ }, {
2137
+ x: number;
2138
+ y: number;
2139
+ }>>;
2140
+ toPosition: z.ZodObject<{
2141
+ x: z.ZodNumber;
2142
+ y: z.ZodNumber;
2143
+ }, "strip", z.ZodTypeAny, {
2144
+ x: number;
2145
+ y: number;
2146
+ }, {
2147
+ x: number;
2148
+ y: number;
2149
+ }>;
2150
+ feetTraveled: z.ZodNumber;
2151
+ }, "strip", z.ZodTypeAny, {
2152
+ at: string;
2153
+ type: "CombatantMoved";
2154
+ id: string;
2155
+ combatantId: string;
2156
+ encounterId: string;
2157
+ toPosition: {
2158
+ x: number;
2159
+ y: number;
2160
+ };
2161
+ feetTraveled: number;
2162
+ sessionId?: string | undefined;
2163
+ causedByEventId?: string | undefined;
2164
+ actorId?: string | undefined;
2165
+ fromPosition?: {
2166
+ x: number;
2167
+ y: number;
2168
+ } | undefined;
2169
+ }, {
2170
+ at: string;
2171
+ type: "CombatantMoved";
2172
+ id: string;
2173
+ combatantId: string;
2174
+ encounterId: string;
2175
+ toPosition: {
2176
+ x: number;
2177
+ y: number;
2178
+ };
2179
+ feetTraveled: number;
2180
+ sessionId?: string | undefined;
2181
+ causedByEventId?: string | undefined;
2182
+ actorId?: string | undefined;
2183
+ fromPosition?: {
2184
+ x: number;
2185
+ y: number;
2186
+ } | undefined;
2187
+ }>, z.ZodObject<{
2188
+ id: z.ZodString;
2189
+ at: z.ZodString;
2190
+ sessionId: z.ZodOptional<z.ZodString>;
2191
+ causedByEventId: z.ZodOptional<z.ZodString>;
2192
+ actorId: z.ZodOptional<z.ZodString>;
2193
+ } & {
2194
+ type: z.ZodLiteral<"Dashed">;
2195
+ encounterId: z.ZodString;
2196
+ combatantId: z.ZodString;
2197
+ }, "strip", z.ZodTypeAny, {
2198
+ at: string;
2199
+ type: "Dashed";
2200
+ id: string;
2201
+ combatantId: string;
2202
+ encounterId: string;
2203
+ sessionId?: string | undefined;
2204
+ causedByEventId?: string | undefined;
2205
+ actorId?: string | undefined;
2206
+ }, {
2207
+ at: string;
2208
+ type: "Dashed";
2209
+ id: string;
2210
+ combatantId: string;
2211
+ encounterId: string;
2212
+ sessionId?: string | undefined;
2213
+ causedByEventId?: string | undefined;
2214
+ actorId?: string | undefined;
2215
+ }>, z.ZodObject<{
2216
+ id: z.ZodString;
2217
+ at: z.ZodString;
2218
+ sessionId: z.ZodOptional<z.ZodString>;
2219
+ causedByEventId: z.ZodOptional<z.ZodString>;
2220
+ actorId: z.ZodOptional<z.ZodString>;
2221
+ } & {
2222
+ type: z.ZodLiteral<"Disengaged">;
2223
+ encounterId: z.ZodString;
2224
+ combatantId: z.ZodString;
2225
+ }, "strip", z.ZodTypeAny, {
2226
+ at: string;
2227
+ type: "Disengaged";
2228
+ id: string;
2229
+ combatantId: string;
2230
+ encounterId: string;
2231
+ sessionId?: string | undefined;
2232
+ causedByEventId?: string | undefined;
2233
+ actorId?: string | undefined;
2234
+ }, {
2235
+ at: string;
2236
+ type: "Disengaged";
2237
+ id: string;
2238
+ combatantId: string;
2239
+ encounterId: string;
2240
+ sessionId?: string | undefined;
2241
+ causedByEventId?: string | undefined;
2242
+ actorId?: string | undefined;
2243
+ }>, z.ZodObject<{
2244
+ id: z.ZodString;
2245
+ at: z.ZodString;
2246
+ sessionId: z.ZodOptional<z.ZodString>;
2247
+ causedByEventId: z.ZodOptional<z.ZodString>;
2248
+ actorId: z.ZodOptional<z.ZodString>;
2249
+ } & {
2250
+ type: z.ZodLiteral<"ItemEquipped">;
2251
+ characterId: z.ZodString;
2252
+ instanceId: z.ZodString;
2253
+ slot: z.ZodEnum<["mainHand", "offHand", "armor", "shield"]>;
2254
+ }, "strip", z.ZodTypeAny, {
2255
+ at: string;
2256
+ type: "ItemEquipped";
2257
+ id: string;
2258
+ characterId: string;
2259
+ instanceId: string;
2260
+ slot: "armor" | "shield" | "mainHand" | "offHand";
2261
+ sessionId?: string | undefined;
2262
+ causedByEventId?: string | undefined;
2263
+ actorId?: string | undefined;
2264
+ }, {
2265
+ at: string;
2266
+ type: "ItemEquipped";
2267
+ id: string;
2268
+ characterId: string;
2269
+ instanceId: string;
2270
+ slot: "armor" | "shield" | "mainHand" | "offHand";
2271
+ sessionId?: string | undefined;
2272
+ causedByEventId?: string | undefined;
2273
+ actorId?: string | undefined;
2274
+ }>, z.ZodObject<{
2275
+ id: z.ZodString;
2276
+ at: z.ZodString;
2277
+ sessionId: z.ZodOptional<z.ZodString>;
2278
+ causedByEventId: z.ZodOptional<z.ZodString>;
2279
+ actorId: z.ZodOptional<z.ZodString>;
2280
+ } & {
2281
+ type: z.ZodLiteral<"ItemUnequipped">;
2282
+ characterId: z.ZodString;
2283
+ slot: z.ZodEnum<["mainHand", "offHand", "armor", "shield"]>;
2284
+ }, "strip", z.ZodTypeAny, {
2285
+ at: string;
2286
+ type: "ItemUnequipped";
2287
+ id: string;
2288
+ characterId: string;
2289
+ slot: "armor" | "shield" | "mainHand" | "offHand";
2290
+ sessionId?: string | undefined;
2291
+ causedByEventId?: string | undefined;
2292
+ actorId?: string | undefined;
2293
+ }, {
2294
+ at: string;
2295
+ type: "ItemUnequipped";
2296
+ id: string;
2297
+ characterId: string;
2298
+ slot: "armor" | "shield" | "mainHand" | "offHand";
2299
+ sessionId?: string | undefined;
2300
+ causedByEventId?: string | undefined;
2301
+ actorId?: string | undefined;
2302
+ }>, z.ZodObject<{
2303
+ id: z.ZodString;
2304
+ at: z.ZodString;
2305
+ sessionId: z.ZodOptional<z.ZodString>;
2306
+ causedByEventId: z.ZodOptional<z.ZodString>;
2307
+ actorId: z.ZodOptional<z.ZodString>;
2308
+ } & {
2309
+ type: z.ZodLiteral<"ItemAttuned">;
2310
+ characterId: z.ZodString;
2311
+ instanceId: z.ZodString;
2312
+ }, "strip", z.ZodTypeAny, {
2313
+ at: string;
2314
+ type: "ItemAttuned";
2315
+ id: string;
2316
+ characterId: string;
2317
+ instanceId: string;
2318
+ sessionId?: string | undefined;
2319
+ causedByEventId?: string | undefined;
2320
+ actorId?: string | undefined;
2321
+ }, {
2322
+ at: string;
2323
+ type: "ItemAttuned";
2324
+ id: string;
2325
+ characterId: string;
2326
+ instanceId: string;
2327
+ sessionId?: string | undefined;
2328
+ causedByEventId?: string | undefined;
2329
+ actorId?: string | undefined;
2330
+ }>, z.ZodObject<{
2331
+ id: z.ZodString;
2332
+ at: z.ZodString;
2333
+ sessionId: z.ZodOptional<z.ZodString>;
2334
+ causedByEventId: z.ZodOptional<z.ZodString>;
2335
+ actorId: z.ZodOptional<z.ZodString>;
2336
+ } & {
2337
+ type: z.ZodLiteral<"ItemUnattuned">;
2338
+ characterId: z.ZodString;
2339
+ instanceId: z.ZodString;
2340
+ }, "strip", z.ZodTypeAny, {
2341
+ at: string;
2342
+ type: "ItemUnattuned";
2343
+ id: string;
2344
+ characterId: string;
2345
+ instanceId: string;
2346
+ sessionId?: string | undefined;
2347
+ causedByEventId?: string | undefined;
2348
+ actorId?: string | undefined;
2349
+ }, {
2350
+ at: string;
2351
+ type: "ItemUnattuned";
2352
+ id: string;
2353
+ characterId: string;
2354
+ instanceId: string;
2355
+ sessionId?: string | undefined;
2356
+ causedByEventId?: string | undefined;
2357
+ actorId?: string | undefined;
2358
+ }>, z.ZodObject<{
2359
+ id: z.ZodString;
2360
+ at: z.ZodString;
2361
+ sessionId: z.ZodOptional<z.ZodString>;
2362
+ causedByEventId: z.ZodOptional<z.ZodString>;
2363
+ actorId: z.ZodOptional<z.ZodString>;
2364
+ } & {
2365
+ type: z.ZodLiteral<"PartyCreated">;
2366
+ partyId: z.ZodString;
2367
+ name: z.ZodString;
2368
+ memberIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2369
+ }, "strip", z.ZodTypeAny, {
2370
+ at: string;
2371
+ type: "PartyCreated";
2372
+ id: string;
2373
+ name: string;
2374
+ memberIds: string[];
2375
+ partyId: string;
2376
+ sessionId?: string | undefined;
2377
+ causedByEventId?: string | undefined;
2378
+ actorId?: string | undefined;
2379
+ }, {
2380
+ at: string;
2381
+ type: "PartyCreated";
2382
+ id: string;
2383
+ name: string;
2384
+ partyId: string;
2385
+ memberIds?: string[] | undefined;
2386
+ sessionId?: string | undefined;
2387
+ causedByEventId?: string | undefined;
2388
+ actorId?: string | undefined;
2389
+ }>, z.ZodObject<{
2390
+ id: z.ZodString;
2391
+ at: z.ZodString;
2392
+ sessionId: z.ZodOptional<z.ZodString>;
2393
+ causedByEventId: z.ZodOptional<z.ZodString>;
2394
+ actorId: z.ZodOptional<z.ZodString>;
2395
+ } & {
2396
+ type: z.ZodLiteral<"PartyMembersChanged">;
2397
+ partyId: z.ZodString;
2398
+ added: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2399
+ removed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2400
+ }, "strip", z.ZodTypeAny, {
2401
+ at: string;
2402
+ type: "PartyMembersChanged";
2403
+ id: string;
2404
+ partyId: string;
2405
+ added: string[];
2406
+ removed: string[];
2407
+ sessionId?: string | undefined;
2408
+ causedByEventId?: string | undefined;
2409
+ actorId?: string | undefined;
2410
+ }, {
2411
+ at: string;
2412
+ type: "PartyMembersChanged";
2413
+ id: string;
2414
+ partyId: string;
2415
+ sessionId?: string | undefined;
2416
+ causedByEventId?: string | undefined;
2417
+ actorId?: string | undefined;
2418
+ added?: string[] | undefined;
2419
+ removed?: string[] | undefined;
2420
+ }>, z.ZodObject<{
2421
+ id: z.ZodString;
2422
+ at: z.ZodString;
2423
+ sessionId: z.ZodOptional<z.ZodString>;
2424
+ causedByEventId: z.ZodOptional<z.ZodString>;
2425
+ actorId: z.ZodOptional<z.ZodString>;
2426
+ } & {
2427
+ type: z.ZodLiteral<"CurrencyAcquired">;
2428
+ partyId: z.ZodString;
2429
+ amounts: z.ZodObject<{
2430
+ cp: z.ZodDefault<z.ZodNumber>;
2431
+ sp: z.ZodDefault<z.ZodNumber>;
2432
+ ep: z.ZodDefault<z.ZodNumber>;
2433
+ gp: z.ZodDefault<z.ZodNumber>;
2434
+ pp: z.ZodDefault<z.ZodNumber>;
2435
+ }, "strip", z.ZodTypeAny, {
2436
+ cp: number;
2437
+ sp: number;
2438
+ ep: number;
2439
+ gp: number;
2440
+ pp: number;
2441
+ }, {
2442
+ cp?: number | undefined;
2443
+ sp?: number | undefined;
2444
+ ep?: number | undefined;
2445
+ gp?: number | undefined;
2446
+ pp?: number | undefined;
2447
+ }>;
2448
+ source: z.ZodOptional<z.ZodString>;
2449
+ }, "strip", z.ZodTypeAny, {
2450
+ at: string;
2451
+ type: "CurrencyAcquired";
2452
+ id: string;
2453
+ partyId: string;
2454
+ amounts: {
2455
+ cp: number;
2456
+ sp: number;
2457
+ ep: number;
2458
+ gp: number;
2459
+ pp: number;
2460
+ };
2461
+ source?: string | undefined;
2462
+ sessionId?: string | undefined;
2463
+ causedByEventId?: string | undefined;
2464
+ actorId?: string | undefined;
2465
+ }, {
2466
+ at: string;
2467
+ type: "CurrencyAcquired";
2468
+ id: string;
2469
+ partyId: string;
2470
+ amounts: {
2471
+ cp?: number | undefined;
2472
+ sp?: number | undefined;
2473
+ ep?: number | undefined;
2474
+ gp?: number | undefined;
2475
+ pp?: number | undefined;
2476
+ };
2477
+ source?: string | undefined;
2478
+ sessionId?: string | undefined;
2479
+ causedByEventId?: string | undefined;
2480
+ actorId?: string | undefined;
2481
+ }>, z.ZodObject<{
2482
+ id: z.ZodString;
2483
+ at: z.ZodString;
2484
+ sessionId: z.ZodOptional<z.ZodString>;
2485
+ causedByEventId: z.ZodOptional<z.ZodString>;
2486
+ actorId: z.ZodOptional<z.ZodString>;
2487
+ } & {
2488
+ type: z.ZodLiteral<"CurrencySpent">;
2489
+ partyId: z.ZodString;
2490
+ amounts: z.ZodObject<{
2491
+ cp: z.ZodDefault<z.ZodNumber>;
2492
+ sp: z.ZodDefault<z.ZodNumber>;
2493
+ ep: z.ZodDefault<z.ZodNumber>;
2494
+ gp: z.ZodDefault<z.ZodNumber>;
2495
+ pp: z.ZodDefault<z.ZodNumber>;
2496
+ }, "strip", z.ZodTypeAny, {
2497
+ cp: number;
2498
+ sp: number;
2499
+ ep: number;
2500
+ gp: number;
2501
+ pp: number;
2502
+ }, {
2503
+ cp?: number | undefined;
2504
+ sp?: number | undefined;
2505
+ ep?: number | undefined;
2506
+ gp?: number | undefined;
2507
+ pp?: number | undefined;
2508
+ }>;
2509
+ purpose: z.ZodOptional<z.ZodString>;
2510
+ }, "strip", z.ZodTypeAny, {
2511
+ at: string;
2512
+ type: "CurrencySpent";
2513
+ id: string;
2514
+ partyId: string;
2515
+ amounts: {
2516
+ cp: number;
2517
+ sp: number;
2518
+ ep: number;
2519
+ gp: number;
2520
+ pp: number;
2521
+ };
2522
+ sessionId?: string | undefined;
2523
+ causedByEventId?: string | undefined;
2524
+ actorId?: string | undefined;
2525
+ purpose?: string | undefined;
2526
+ }, {
2527
+ at: string;
2528
+ type: "CurrencySpent";
2529
+ id: string;
2530
+ partyId: string;
2531
+ amounts: {
2532
+ cp?: number | undefined;
2533
+ sp?: number | undefined;
2534
+ ep?: number | undefined;
2535
+ gp?: number | undefined;
2536
+ pp?: number | undefined;
2537
+ };
2538
+ sessionId?: string | undefined;
2539
+ causedByEventId?: string | undefined;
2540
+ actorId?: string | undefined;
2541
+ purpose?: string | undefined;
2542
+ }>, z.ZodObject<{
2543
+ id: z.ZodString;
2544
+ at: z.ZodString;
2545
+ sessionId: z.ZodOptional<z.ZodString>;
2546
+ causedByEventId: z.ZodOptional<z.ZodString>;
2547
+ actorId: z.ZodOptional<z.ZodString>;
2548
+ } & {
2549
+ type: z.ZodLiteral<"ItemDepositedToParty">;
2550
+ partyId: z.ZodString;
2551
+ itemInstanceId: z.ZodString;
2552
+ sourceCharacterId: z.ZodOptional<z.ZodString>;
2553
+ }, "strip", z.ZodTypeAny, {
2554
+ at: string;
2555
+ type: "ItemDepositedToParty";
2556
+ id: string;
2557
+ partyId: string;
2558
+ itemInstanceId: string;
2559
+ sessionId?: string | undefined;
2560
+ causedByEventId?: string | undefined;
2561
+ actorId?: string | undefined;
2562
+ sourceCharacterId?: string | undefined;
2563
+ }, {
2564
+ at: string;
2565
+ type: "ItemDepositedToParty";
2566
+ id: string;
2567
+ partyId: string;
2568
+ itemInstanceId: string;
2569
+ sessionId?: string | undefined;
2570
+ causedByEventId?: string | undefined;
2571
+ actorId?: string | undefined;
2572
+ sourceCharacterId?: string | undefined;
2573
+ }>, z.ZodObject<{
2574
+ id: z.ZodString;
2575
+ at: z.ZodString;
2576
+ sessionId: z.ZodOptional<z.ZodString>;
2577
+ causedByEventId: z.ZodOptional<z.ZodString>;
2578
+ actorId: z.ZodOptional<z.ZodString>;
2579
+ } & {
2580
+ type: z.ZodLiteral<"ItemWithdrawnFromParty">;
2581
+ partyId: z.ZodString;
2582
+ itemInstanceId: z.ZodString;
2583
+ recipientCharacterId: z.ZodOptional<z.ZodString>;
2584
+ }, "strip", z.ZodTypeAny, {
2585
+ at: string;
2586
+ type: "ItemWithdrawnFromParty";
2587
+ id: string;
2588
+ partyId: string;
2589
+ itemInstanceId: string;
2590
+ sessionId?: string | undefined;
2591
+ causedByEventId?: string | undefined;
2592
+ actorId?: string | undefined;
2593
+ recipientCharacterId?: string | undefined;
2594
+ }, {
2595
+ at: string;
2596
+ type: "ItemWithdrawnFromParty";
2597
+ id: string;
2598
+ partyId: string;
2599
+ itemInstanceId: string;
2600
+ sessionId?: string | undefined;
2601
+ causedByEventId?: string | undefined;
2602
+ actorId?: string | undefined;
2603
+ recipientCharacterId?: string | undefined;
2604
+ }>, z.ZodObject<{
2605
+ id: z.ZodString;
2606
+ at: z.ZodString;
2607
+ causedByEventId: z.ZodOptional<z.ZodString>;
2608
+ actorId: z.ZodOptional<z.ZodString>;
2609
+ } & {
2610
+ type: z.ZodLiteral<"SessionStarted">;
2611
+ sessionId: z.ZodString;
2612
+ name: z.ZodString;
2613
+ inGameStart: z.ZodOptional<z.ZodObject<{
2614
+ totalMinutes: z.ZodDefault<z.ZodNumber>;
2615
+ }, "strip", z.ZodTypeAny, {
2616
+ totalMinutes: number;
2617
+ }, {
2618
+ totalMinutes?: number | undefined;
2619
+ }>>;
2620
+ }, "strip", z.ZodTypeAny, {
2621
+ at: string;
2622
+ type: "SessionStarted";
2623
+ id: string;
2624
+ name: string;
2625
+ sessionId: string;
2626
+ inGameStart?: {
2627
+ totalMinutes: number;
2628
+ } | undefined;
2629
+ causedByEventId?: string | undefined;
2630
+ actorId?: string | undefined;
2631
+ }, {
2632
+ at: string;
2633
+ type: "SessionStarted";
2634
+ id: string;
2635
+ name: string;
2636
+ sessionId: string;
2637
+ inGameStart?: {
2638
+ totalMinutes?: number | undefined;
2639
+ } | undefined;
2640
+ causedByEventId?: string | undefined;
2641
+ actorId?: string | undefined;
2642
+ }>, z.ZodObject<{
2643
+ id: z.ZodString;
2644
+ at: z.ZodString;
2645
+ causedByEventId: z.ZodOptional<z.ZodString>;
2646
+ actorId: z.ZodOptional<z.ZodString>;
2647
+ } & {
2648
+ type: z.ZodLiteral<"SessionEnded">;
2649
+ sessionId: z.ZodString;
2650
+ summary: z.ZodOptional<z.ZodString>;
2651
+ }, "strip", z.ZodTypeAny, {
2652
+ at: string;
2653
+ type: "SessionEnded";
2654
+ id: string;
2655
+ sessionId: string;
2656
+ summary?: string | undefined;
2657
+ causedByEventId?: string | undefined;
2658
+ actorId?: string | undefined;
2659
+ }, {
2660
+ at: string;
2661
+ type: "SessionEnded";
2662
+ id: string;
2663
+ sessionId: string;
2664
+ summary?: string | undefined;
2665
+ causedByEventId?: string | undefined;
2666
+ actorId?: string | undefined;
2667
+ }>, z.ZodObject<{
2668
+ id: z.ZodString;
2669
+ at: z.ZodString;
2670
+ causedByEventId: z.ZodOptional<z.ZodString>;
2671
+ actorId: z.ZodOptional<z.ZodString>;
2672
+ } & {
2673
+ type: z.ZodLiteral<"JournalEntryAdded">;
2674
+ entryId: z.ZodString;
2675
+ sessionId: z.ZodOptional<z.ZodString>;
2676
+ authorKind: z.ZodEnum<["player", "dm"]>;
2677
+ authorCharacterId: z.ZodOptional<z.ZodString>;
2678
+ visibility: z.ZodEnum<["party", "dm-only", "character"]>;
2679
+ visibleToCharacterIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2680
+ title: z.ZodString;
2681
+ body: z.ZodString;
2682
+ }, "strip", z.ZodTypeAny, {
2683
+ at: string;
2684
+ type: "JournalEntryAdded";
2685
+ id: string;
2686
+ authorKind: "player" | "dm";
2687
+ visibility: "party" | "dm-only" | "character";
2688
+ visibleToCharacterIds: string[];
2689
+ title: string;
2690
+ body: string;
2691
+ entryId: string;
2692
+ sessionId?: string | undefined;
2693
+ authorCharacterId?: string | undefined;
2694
+ causedByEventId?: string | undefined;
2695
+ actorId?: string | undefined;
2696
+ }, {
2697
+ at: string;
2698
+ type: "JournalEntryAdded";
2699
+ id: string;
2700
+ authorKind: "player" | "dm";
2701
+ visibility: "party" | "dm-only" | "character";
2702
+ title: string;
2703
+ body: string;
2704
+ entryId: string;
2705
+ sessionId?: string | undefined;
2706
+ authorCharacterId?: string | undefined;
2707
+ visibleToCharacterIds?: string[] | undefined;
2708
+ causedByEventId?: string | undefined;
2709
+ actorId?: string | undefined;
2710
+ }>, z.ZodObject<{
2711
+ id: z.ZodString;
2712
+ at: z.ZodString;
2713
+ sessionId: z.ZodOptional<z.ZodString>;
2714
+ causedByEventId: z.ZodOptional<z.ZodString>;
2715
+ actorId: z.ZodOptional<z.ZodString>;
2716
+ } & {
2717
+ type: z.ZodLiteral<"InGameTimeAdvanced">;
2718
+ minutes: z.ZodNumber;
2719
+ reason: z.ZodOptional<z.ZodString>;
2720
+ }, "strip", z.ZodTypeAny, {
2721
+ at: string;
2722
+ type: "InGameTimeAdvanced";
2723
+ id: string;
2724
+ minutes: number;
2725
+ sessionId?: string | undefined;
2726
+ causedByEventId?: string | undefined;
2727
+ actorId?: string | undefined;
2728
+ reason?: string | undefined;
2729
+ }, {
2730
+ at: string;
2731
+ type: "InGameTimeAdvanced";
2732
+ id: string;
2733
+ minutes: number;
2734
+ sessionId?: string | undefined;
2735
+ causedByEventId?: string | undefined;
2736
+ actorId?: string | undefined;
2737
+ reason?: string | undefined;
2738
+ }>, z.ZodObject<{
2739
+ id: z.ZodString;
2740
+ at: z.ZodString;
2741
+ sessionId: z.ZodOptional<z.ZodString>;
2742
+ causedByEventId: z.ZodOptional<z.ZodString>;
2743
+ actorId: z.ZodOptional<z.ZodString>;
2744
+ } & {
2745
+ type: z.ZodLiteral<"LocationCreated">;
2746
+ locationId: z.ZodString;
2747
+ name: z.ZodString;
2748
+ description: z.ZodOptional<z.ZodString>;
2749
+ parentLocationId: z.ZodOptional<z.ZodString>;
2750
+ map: z.ZodOptional<z.ZodObject<{
2751
+ widthCells: z.ZodNumber;
2752
+ heightCells: z.ZodNumber;
2753
+ cellSizeFeet: z.ZodDefault<z.ZodNumber>;
2754
+ terrain: z.ZodArray<z.ZodArray<z.ZodEnum<["normal", "difficult", "impassable", "water"]>, "many">, "many">;
2755
+ }, "strip", z.ZodTypeAny, {
2756
+ widthCells: number;
2757
+ heightCells: number;
2758
+ cellSizeFeet: number;
2759
+ terrain: ("normal" | "difficult" | "impassable" | "water")[][];
2760
+ }, {
2761
+ widthCells: number;
2762
+ heightCells: number;
2763
+ terrain: ("normal" | "difficult" | "impassable" | "water")[][];
2764
+ cellSizeFeet?: number | undefined;
2765
+ }>>;
2766
+ }, "strip", z.ZodTypeAny, {
2767
+ at: string;
2768
+ type: "LocationCreated";
2769
+ id: string;
2770
+ name: string;
2771
+ locationId: string;
2772
+ map?: {
2773
+ widthCells: number;
2774
+ heightCells: number;
2775
+ cellSizeFeet: number;
2776
+ terrain: ("normal" | "difficult" | "impassable" | "water")[][];
2777
+ } | undefined;
2778
+ description?: string | undefined;
2779
+ sessionId?: string | undefined;
2780
+ parentLocationId?: string | undefined;
2781
+ causedByEventId?: string | undefined;
2782
+ actorId?: string | undefined;
2783
+ }, {
2784
+ at: string;
2785
+ type: "LocationCreated";
2786
+ id: string;
2787
+ name: string;
2788
+ locationId: string;
2789
+ map?: {
2790
+ widthCells: number;
2791
+ heightCells: number;
2792
+ terrain: ("normal" | "difficult" | "impassable" | "water")[][];
2793
+ cellSizeFeet?: number | undefined;
2794
+ } | undefined;
2795
+ description?: string | undefined;
2796
+ sessionId?: string | undefined;
2797
+ parentLocationId?: string | undefined;
2798
+ causedByEventId?: string | undefined;
2799
+ actorId?: string | undefined;
2800
+ }>, z.ZodObject<{
2801
+ id: z.ZodString;
2802
+ at: z.ZodString;
2803
+ sessionId: z.ZodOptional<z.ZodString>;
2804
+ causedByEventId: z.ZodOptional<z.ZodString>;
2805
+ actorId: z.ZodOptional<z.ZodString>;
2806
+ } & {
2807
+ type: z.ZodLiteral<"DoorAdded">;
2808
+ doorId: z.ZodString;
2809
+ locationId: z.ZodString;
2810
+ name: z.ZodOptional<z.ZodString>;
2811
+ position: z.ZodObject<{
2812
+ x: z.ZodNumber;
2813
+ y: z.ZodNumber;
2814
+ }, "strip", z.ZodTypeAny, {
2815
+ x: number;
2816
+ y: number;
2817
+ }, {
2818
+ x: number;
2819
+ y: number;
2820
+ }>;
2821
+ state: z.ZodEnum<["open", "closed", "locked"]>;
2822
+ }, "strip", z.ZodTypeAny, {
2823
+ at: string;
2824
+ type: "DoorAdded";
2825
+ id: string;
2826
+ position: {
2827
+ x: number;
2828
+ y: number;
2829
+ };
2830
+ locationId: string;
2831
+ state: "open" | "closed" | "locked";
2832
+ doorId: string;
2833
+ name?: string | undefined;
2834
+ sessionId?: string | undefined;
2835
+ causedByEventId?: string | undefined;
2836
+ actorId?: string | undefined;
2837
+ }, {
2838
+ at: string;
2839
+ type: "DoorAdded";
2840
+ id: string;
2841
+ position: {
2842
+ x: number;
2843
+ y: number;
2844
+ };
2845
+ locationId: string;
2846
+ state: "open" | "closed" | "locked";
2847
+ doorId: string;
2848
+ name?: string | undefined;
2849
+ sessionId?: string | undefined;
2850
+ causedByEventId?: string | undefined;
2851
+ actorId?: string | undefined;
2852
+ }>, z.ZodObject<{
2853
+ id: z.ZodString;
2854
+ at: z.ZodString;
2855
+ sessionId: z.ZodOptional<z.ZodString>;
2856
+ causedByEventId: z.ZodOptional<z.ZodString>;
2857
+ actorId: z.ZodOptional<z.ZodString>;
2858
+ } & {
2859
+ type: z.ZodLiteral<"DoorStateChanged">;
2860
+ doorId: z.ZodString;
2861
+ toState: z.ZodEnum<["open", "closed", "locked"]>;
2862
+ byCharacterId: z.ZodOptional<z.ZodString>;
2863
+ }, "strip", z.ZodTypeAny, {
2864
+ at: string;
2865
+ type: "DoorStateChanged";
2866
+ id: string;
2867
+ doorId: string;
2868
+ toState: "open" | "closed" | "locked";
2869
+ sessionId?: string | undefined;
2870
+ causedByEventId?: string | undefined;
2871
+ actorId?: string | undefined;
2872
+ byCharacterId?: string | undefined;
2873
+ }, {
2874
+ at: string;
2875
+ type: "DoorStateChanged";
2876
+ id: string;
2877
+ doorId: string;
2878
+ toState: "open" | "closed" | "locked";
2879
+ sessionId?: string | undefined;
2880
+ causedByEventId?: string | undefined;
2881
+ actorId?: string | undefined;
2882
+ byCharacterId?: string | undefined;
2883
+ }>, z.ZodObject<{
2884
+ id: z.ZodString;
2885
+ at: z.ZodString;
2886
+ sessionId: z.ZodOptional<z.ZodString>;
2887
+ causedByEventId: z.ZodOptional<z.ZodString>;
2888
+ actorId: z.ZodOptional<z.ZodString>;
2889
+ } & {
2890
+ type: z.ZodLiteral<"CharacterLocationChanged">;
2891
+ characterId: z.ZodString;
2892
+ toLocationId: z.ZodOptional<z.ZodString>;
2893
+ }, "strip", z.ZodTypeAny, {
2894
+ at: string;
2895
+ type: "CharacterLocationChanged";
2896
+ id: string;
2897
+ characterId: string;
2898
+ sessionId?: string | undefined;
2899
+ causedByEventId?: string | undefined;
2900
+ actorId?: string | undefined;
2901
+ toLocationId?: string | undefined;
2902
+ }, {
2903
+ at: string;
2904
+ type: "CharacterLocationChanged";
2905
+ id: string;
2906
+ characterId: string;
2907
+ sessionId?: string | undefined;
2908
+ causedByEventId?: string | undefined;
2909
+ actorId?: string | undefined;
2910
+ toLocationId?: string | undefined;
2911
+ }>, z.ZodObject<{
2912
+ id: z.ZodString;
2913
+ at: z.ZodString;
2914
+ sessionId: z.ZodOptional<z.ZodString>;
2915
+ causedByEventId: z.ZodOptional<z.ZodString>;
2916
+ actorId: z.ZodOptional<z.ZodString>;
2917
+ } & {
2918
+ type: z.ZodLiteral<"QuestStarted">;
2919
+ questId: z.ZodString;
2920
+ title: z.ZodString;
2921
+ description: z.ZodOptional<z.ZodString>;
2922
+ partyId: z.ZodOptional<z.ZodString>;
2923
+ objectives: z.ZodDefault<z.ZodArray<z.ZodObject<{
2924
+ id: z.ZodString;
2925
+ description: z.ZodString;
2926
+ status: z.ZodDefault<z.ZodEnum<["pending", "completed", "failed"]>>;
2927
+ optional: z.ZodDefault<z.ZodBoolean>;
2928
+ progress: z.ZodDefault<z.ZodNumber>;
2929
+ required: z.ZodOptional<z.ZodNumber>;
2930
+ }, "strip", z.ZodTypeAny, {
2931
+ status: "completed" | "failed" | "pending";
2932
+ id: string;
2933
+ description: string;
2934
+ optional: boolean;
2935
+ progress: number;
2936
+ required?: number | undefined;
2937
+ }, {
2938
+ id: string;
2939
+ description: string;
2940
+ status?: "completed" | "failed" | "pending" | undefined;
2941
+ required?: number | undefined;
2942
+ optional?: boolean | undefined;
2943
+ progress?: number | undefined;
2944
+ }>, "many">>;
2945
+ reward: z.ZodOptional<z.ZodObject<{
2946
+ xpPerCharacter: z.ZodDefault<z.ZodNumber>;
2947
+ currency: z.ZodDefault<z.ZodObject<{
2948
+ cp: z.ZodDefault<z.ZodNumber>;
2949
+ sp: z.ZodDefault<z.ZodNumber>;
2950
+ ep: z.ZodDefault<z.ZodNumber>;
2951
+ gp: z.ZodDefault<z.ZodNumber>;
2952
+ pp: z.ZodDefault<z.ZodNumber>;
2953
+ }, "strip", z.ZodTypeAny, {
2954
+ cp: number;
2955
+ sp: number;
2956
+ ep: number;
2957
+ gp: number;
2958
+ pp: number;
2959
+ }, {
2960
+ cp?: number | undefined;
2961
+ sp?: number | undefined;
2962
+ ep?: number | undefined;
2963
+ gp?: number | undefined;
2964
+ pp?: number | undefined;
2965
+ }>>;
2966
+ itemDefinitionIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2967
+ }, "strip", z.ZodTypeAny, {
2968
+ currency: {
2969
+ cp: number;
2970
+ sp: number;
2971
+ ep: number;
2972
+ gp: number;
2973
+ pp: number;
2974
+ };
2975
+ xpPerCharacter: number;
2976
+ itemDefinitionIds: string[];
2977
+ }, {
2978
+ currency?: {
2979
+ cp?: number | undefined;
2980
+ sp?: number | undefined;
2981
+ ep?: number | undefined;
2982
+ gp?: number | undefined;
2983
+ pp?: number | undefined;
2984
+ } | undefined;
2985
+ xpPerCharacter?: number | undefined;
2986
+ itemDefinitionIds?: string[] | undefined;
2987
+ }>>;
2988
+ }, "strip", z.ZodTypeAny, {
2989
+ at: string;
2990
+ type: "QuestStarted";
2991
+ id: string;
2992
+ title: string;
2993
+ objectives: {
2994
+ status: "completed" | "failed" | "pending";
2995
+ id: string;
2996
+ description: string;
2997
+ optional: boolean;
2998
+ progress: number;
2999
+ required?: number | undefined;
3000
+ }[];
3001
+ questId: string;
3002
+ description?: string | undefined;
3003
+ sessionId?: string | undefined;
3004
+ partyId?: string | undefined;
3005
+ reward?: {
3006
+ currency: {
3007
+ cp: number;
3008
+ sp: number;
3009
+ ep: number;
3010
+ gp: number;
3011
+ pp: number;
3012
+ };
3013
+ xpPerCharacter: number;
3014
+ itemDefinitionIds: string[];
3015
+ } | undefined;
3016
+ causedByEventId?: string | undefined;
3017
+ actorId?: string | undefined;
3018
+ }, {
3019
+ at: string;
3020
+ type: "QuestStarted";
3021
+ id: string;
3022
+ title: string;
3023
+ questId: string;
3024
+ description?: string | undefined;
3025
+ sessionId?: string | undefined;
3026
+ partyId?: string | undefined;
3027
+ objectives?: {
3028
+ id: string;
3029
+ description: string;
3030
+ status?: "completed" | "failed" | "pending" | undefined;
3031
+ required?: number | undefined;
3032
+ optional?: boolean | undefined;
3033
+ progress?: number | undefined;
3034
+ }[] | undefined;
3035
+ reward?: {
3036
+ currency?: {
3037
+ cp?: number | undefined;
3038
+ sp?: number | undefined;
3039
+ ep?: number | undefined;
3040
+ gp?: number | undefined;
3041
+ pp?: number | undefined;
3042
+ } | undefined;
3043
+ xpPerCharacter?: number | undefined;
3044
+ itemDefinitionIds?: string[] | undefined;
3045
+ } | undefined;
3046
+ causedByEventId?: string | undefined;
3047
+ actorId?: string | undefined;
3048
+ }>, z.ZodObject<{
3049
+ id: z.ZodString;
3050
+ at: z.ZodString;
3051
+ sessionId: z.ZodOptional<z.ZodString>;
3052
+ causedByEventId: z.ZodOptional<z.ZodString>;
3053
+ actorId: z.ZodOptional<z.ZodString>;
3054
+ } & {
3055
+ type: z.ZodLiteral<"ObjectiveProgressed">;
3056
+ questId: z.ZodString;
3057
+ objectiveId: z.ZodString;
3058
+ delta: z.ZodDefault<z.ZodNumber>;
3059
+ }, "strip", z.ZodTypeAny, {
3060
+ at: string;
3061
+ type: "ObjectiveProgressed";
3062
+ id: string;
3063
+ questId: string;
3064
+ objectiveId: string;
3065
+ delta: number;
3066
+ sessionId?: string | undefined;
3067
+ causedByEventId?: string | undefined;
3068
+ actorId?: string | undefined;
3069
+ }, {
3070
+ at: string;
3071
+ type: "ObjectiveProgressed";
3072
+ id: string;
3073
+ questId: string;
3074
+ objectiveId: string;
3075
+ sessionId?: string | undefined;
3076
+ causedByEventId?: string | undefined;
3077
+ actorId?: string | undefined;
3078
+ delta?: number | undefined;
3079
+ }>, z.ZodObject<{
3080
+ id: z.ZodString;
3081
+ at: z.ZodString;
3082
+ sessionId: z.ZodOptional<z.ZodString>;
3083
+ causedByEventId: z.ZodOptional<z.ZodString>;
3084
+ actorId: z.ZodOptional<z.ZodString>;
3085
+ } & {
3086
+ type: z.ZodLiteral<"ObjectiveCompleted">;
3087
+ questId: z.ZodString;
3088
+ objectiveId: z.ZodString;
3089
+ }, "strip", z.ZodTypeAny, {
3090
+ at: string;
3091
+ type: "ObjectiveCompleted";
3092
+ id: string;
3093
+ questId: string;
3094
+ objectiveId: string;
3095
+ sessionId?: string | undefined;
3096
+ causedByEventId?: string | undefined;
3097
+ actorId?: string | undefined;
3098
+ }, {
3099
+ at: string;
3100
+ type: "ObjectiveCompleted";
3101
+ id: string;
3102
+ questId: string;
3103
+ objectiveId: string;
3104
+ sessionId?: string | undefined;
3105
+ causedByEventId?: string | undefined;
3106
+ actorId?: string | undefined;
3107
+ }>, z.ZodObject<{
3108
+ id: z.ZodString;
3109
+ at: z.ZodString;
3110
+ sessionId: z.ZodOptional<z.ZodString>;
3111
+ causedByEventId: z.ZodOptional<z.ZodString>;
3112
+ actorId: z.ZodOptional<z.ZodString>;
3113
+ } & {
3114
+ type: z.ZodLiteral<"ObjectiveFailed">;
3115
+ questId: z.ZodString;
3116
+ objectiveId: z.ZodString;
3117
+ }, "strip", z.ZodTypeAny, {
3118
+ at: string;
3119
+ type: "ObjectiveFailed";
3120
+ id: string;
3121
+ questId: string;
3122
+ objectiveId: string;
3123
+ sessionId?: string | undefined;
3124
+ causedByEventId?: string | undefined;
3125
+ actorId?: string | undefined;
3126
+ }, {
3127
+ at: string;
3128
+ type: "ObjectiveFailed";
3129
+ id: string;
3130
+ questId: string;
3131
+ objectiveId: string;
3132
+ sessionId?: string | undefined;
3133
+ causedByEventId?: string | undefined;
3134
+ actorId?: string | undefined;
3135
+ }>, z.ZodObject<{
3136
+ id: z.ZodString;
3137
+ at: z.ZodString;
3138
+ sessionId: z.ZodOptional<z.ZodString>;
3139
+ causedByEventId: z.ZodOptional<z.ZodString>;
3140
+ actorId: z.ZodOptional<z.ZodString>;
3141
+ } & {
3142
+ type: z.ZodLiteral<"QuestCompleted">;
3143
+ questId: z.ZodString;
3144
+ }, "strip", z.ZodTypeAny, {
3145
+ at: string;
3146
+ type: "QuestCompleted";
3147
+ id: string;
3148
+ questId: string;
3149
+ sessionId?: string | undefined;
3150
+ causedByEventId?: string | undefined;
3151
+ actorId?: string | undefined;
3152
+ }, {
3153
+ at: string;
3154
+ type: "QuestCompleted";
3155
+ id: string;
3156
+ questId: string;
3157
+ sessionId?: string | undefined;
3158
+ causedByEventId?: string | undefined;
3159
+ actorId?: string | undefined;
3160
+ }>, z.ZodObject<{
3161
+ id: z.ZodString;
3162
+ at: z.ZodString;
3163
+ sessionId: z.ZodOptional<z.ZodString>;
3164
+ causedByEventId: z.ZodOptional<z.ZodString>;
3165
+ actorId: z.ZodOptional<z.ZodString>;
3166
+ } & {
3167
+ type: z.ZodLiteral<"QuestFailed">;
3168
+ questId: z.ZodString;
3169
+ reason: z.ZodOptional<z.ZodString>;
3170
+ }, "strip", z.ZodTypeAny, {
3171
+ at: string;
3172
+ type: "QuestFailed";
3173
+ id: string;
3174
+ questId: string;
3175
+ sessionId?: string | undefined;
3176
+ causedByEventId?: string | undefined;
3177
+ actorId?: string | undefined;
3178
+ reason?: string | undefined;
3179
+ }, {
3180
+ at: string;
3181
+ type: "QuestFailed";
3182
+ id: string;
3183
+ questId: string;
3184
+ sessionId?: string | undefined;
3185
+ causedByEventId?: string | undefined;
3186
+ actorId?: string | undefined;
3187
+ reason?: string | undefined;
3188
+ }>, z.ZodObject<{
3189
+ id: z.ZodString;
3190
+ at: z.ZodString;
3191
+ sessionId: z.ZodOptional<z.ZodString>;
3192
+ causedByEventId: z.ZodOptional<z.ZodString>;
3193
+ actorId: z.ZodOptional<z.ZodString>;
3194
+ } & {
3195
+ type: z.ZodLiteral<"QuestAbandoned">;
3196
+ questId: z.ZodString;
3197
+ reason: z.ZodOptional<z.ZodString>;
3198
+ }, "strip", z.ZodTypeAny, {
3199
+ at: string;
3200
+ type: "QuestAbandoned";
3201
+ id: string;
3202
+ questId: string;
3203
+ sessionId?: string | undefined;
3204
+ causedByEventId?: string | undefined;
3205
+ actorId?: string | undefined;
3206
+ reason?: string | undefined;
3207
+ }, {
3208
+ at: string;
3209
+ type: "QuestAbandoned";
3210
+ id: string;
3211
+ questId: string;
3212
+ sessionId?: string | undefined;
3213
+ causedByEventId?: string | undefined;
3214
+ actorId?: string | undefined;
3215
+ reason?: string | undefined;
3216
+ }>, z.ZodObject<{
3217
+ id: z.ZodString;
3218
+ at: z.ZodString;
3219
+ sessionId: z.ZodOptional<z.ZodString>;
3220
+ causedByEventId: z.ZodOptional<z.ZodString>;
3221
+ actorId: z.ZodOptional<z.ZodString>;
3222
+ } & {
3223
+ type: z.ZodLiteral<"QuestRewardClaimed">;
3224
+ questId: z.ZodString;
3225
+ beneficiaryCharacterIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3226
+ }, "strip", z.ZodTypeAny, {
3227
+ at: string;
3228
+ type: "QuestRewardClaimed";
3229
+ id: string;
3230
+ questId: string;
3231
+ beneficiaryCharacterIds: string[];
3232
+ sessionId?: string | undefined;
3233
+ causedByEventId?: string | undefined;
3234
+ actorId?: string | undefined;
3235
+ }, {
3236
+ at: string;
3237
+ type: "QuestRewardClaimed";
3238
+ id: string;
3239
+ questId: string;
3240
+ sessionId?: string | undefined;
3241
+ causedByEventId?: string | undefined;
3242
+ actorId?: string | undefined;
3243
+ beneficiaryCharacterIds?: string[] | undefined;
3244
+ }>, z.ZodObject<{
3245
+ id: z.ZodString;
3246
+ at: z.ZodString;
3247
+ sessionId: z.ZodOptional<z.ZodString>;
3248
+ causedByEventId: z.ZodOptional<z.ZodString>;
3249
+ actorId: z.ZodOptional<z.ZodString>;
3250
+ } & {
3251
+ type: z.ZodLiteral<"XPAwarded">;
3252
+ characterId: z.ZodString;
3253
+ amount: z.ZodNumber;
3254
+ source: z.ZodOptional<z.ZodString>;
3255
+ questId: z.ZodOptional<z.ZodString>;
3256
+ }, "strip", z.ZodTypeAny, {
3257
+ at: string;
3258
+ type: "XPAwarded";
3259
+ amount: number;
3260
+ id: string;
3261
+ characterId: string;
3262
+ source?: string | undefined;
3263
+ sessionId?: string | undefined;
3264
+ causedByEventId?: string | undefined;
3265
+ actorId?: string | undefined;
3266
+ questId?: string | undefined;
3267
+ }, {
3268
+ at: string;
3269
+ type: "XPAwarded";
3270
+ amount: number;
3271
+ id: string;
3272
+ characterId: string;
3273
+ source?: string | undefined;
3274
+ sessionId?: string | undefined;
3275
+ causedByEventId?: string | undefined;
3276
+ actorId?: string | undefined;
3277
+ questId?: string | undefined;
3278
+ }>, z.ZodObject<{
3279
+ id: z.ZodString;
3280
+ at: z.ZodString;
3281
+ sessionId: z.ZodOptional<z.ZodString>;
3282
+ causedByEventId: z.ZodOptional<z.ZodString>;
3283
+ actorId: z.ZodOptional<z.ZodString>;
3284
+ } & {
3285
+ type: z.ZodLiteral<"MilestoneAwarded">;
3286
+ kind: z.ZodEnum<["minor", "major", "campaign"]>;
3287
+ title: z.ZodString;
3288
+ partyId: z.ZodOptional<z.ZodString>;
3289
+ questId: z.ZodOptional<z.ZodString>;
3290
+ }, "strip", z.ZodTypeAny, {
3291
+ at: string;
3292
+ type: "MilestoneAwarded";
3293
+ kind: "minor" | "major" | "campaign";
3294
+ id: string;
3295
+ title: string;
3296
+ sessionId?: string | undefined;
3297
+ partyId?: string | undefined;
3298
+ causedByEventId?: string | undefined;
3299
+ actorId?: string | undefined;
3300
+ questId?: string | undefined;
3301
+ }, {
3302
+ at: string;
3303
+ type: "MilestoneAwarded";
3304
+ kind: "minor" | "major" | "campaign";
3305
+ id: string;
3306
+ title: string;
3307
+ sessionId?: string | undefined;
3308
+ partyId?: string | undefined;
3309
+ causedByEventId?: string | undefined;
3310
+ actorId?: string | undefined;
3311
+ questId?: string | undefined;
3312
+ }>, z.ZodObject<{
3313
+ id: z.ZodString;
3314
+ at: z.ZodString;
3315
+ sessionId: z.ZodOptional<z.ZodString>;
3316
+ causedByEventId: z.ZodOptional<z.ZodString>;
3317
+ actorId: z.ZodOptional<z.ZodString>;
3318
+ } & {
3319
+ type: z.ZodLiteral<"SpellCountered">;
3320
+ originalSpellEventId: z.ZodString;
3321
+ counterCasterId: z.ZodString;
3322
+ targetCasterId: z.ZodString;
3323
+ spellId: z.ZodString;
3324
+ }, "strip", z.ZodTypeAny, {
3325
+ at: string;
3326
+ type: "SpellCountered";
3327
+ id: string;
3328
+ spellId: string;
3329
+ originalSpellEventId: string;
3330
+ counterCasterId: string;
3331
+ targetCasterId: string;
3332
+ sessionId?: string | undefined;
3333
+ causedByEventId?: string | undefined;
3334
+ actorId?: string | undefined;
3335
+ }, {
3336
+ at: string;
3337
+ type: "SpellCountered";
3338
+ id: string;
3339
+ spellId: string;
3340
+ originalSpellEventId: string;
3341
+ counterCasterId: string;
3342
+ targetCasterId: string;
3343
+ sessionId?: string | undefined;
3344
+ causedByEventId?: string | undefined;
3345
+ actorId?: string | undefined;
3346
+ }>, z.ZodObject<{
3347
+ id: z.ZodString;
3348
+ at: z.ZodString;
3349
+ sessionId: z.ZodOptional<z.ZodString>;
3350
+ causedByEventId: z.ZodOptional<z.ZodString>;
3351
+ actorId: z.ZodOptional<z.ZodString>;
3352
+ } & {
3353
+ type: z.ZodLiteral<"SpellDispelled">;
3354
+ effectInstanceId: z.ZodString;
3355
+ dispelledByCharacterId: z.ZodString;
3356
+ }, "strip", z.ZodTypeAny, {
3357
+ at: string;
3358
+ type: "SpellDispelled";
3359
+ id: string;
3360
+ effectInstanceId: string;
3361
+ dispelledByCharacterId: string;
3362
+ sessionId?: string | undefined;
3363
+ causedByEventId?: string | undefined;
3364
+ actorId?: string | undefined;
3365
+ }, {
3366
+ at: string;
3367
+ type: "SpellDispelled";
3368
+ id: string;
3369
+ effectInstanceId: string;
3370
+ dispelledByCharacterId: string;
3371
+ sessionId?: string | undefined;
3372
+ causedByEventId?: string | undefined;
3373
+ actorId?: string | undefined;
3374
+ }>, z.ZodObject<{
3375
+ id: z.ZodString;
3376
+ at: z.ZodString;
3377
+ sessionId: z.ZodOptional<z.ZodString>;
3378
+ causedByEventId: z.ZodOptional<z.ZodString>;
3379
+ actorId: z.ZodOptional<z.ZodString>;
3380
+ } & {
3381
+ type: z.ZodLiteral<"ItemIdentified">;
3382
+ itemInstanceId: z.ZodString;
3383
+ identifiedByCharacterId: z.ZodString;
3384
+ }, "strip", z.ZodTypeAny, {
3385
+ at: string;
3386
+ type: "ItemIdentified";
3387
+ id: string;
3388
+ itemInstanceId: string;
3389
+ identifiedByCharacterId: string;
3390
+ sessionId?: string | undefined;
3391
+ causedByEventId?: string | undefined;
3392
+ actorId?: string | undefined;
3393
+ }, {
3394
+ at: string;
3395
+ type: "ItemIdentified";
3396
+ id: string;
3397
+ itemInstanceId: string;
3398
+ identifiedByCharacterId: string;
3399
+ sessionId?: string | undefined;
3400
+ causedByEventId?: string | undefined;
3401
+ actorId?: string | undefined;
3402
+ }>, z.ZodObject<{
3403
+ id: z.ZodString;
3404
+ at: z.ZodString;
3405
+ sessionId: z.ZodOptional<z.ZodString>;
3406
+ causedByEventId: z.ZodOptional<z.ZodString>;
3407
+ actorId: z.ZodOptional<z.ZodString>;
3408
+ } & {
3409
+ type: z.ZodLiteral<"WeaponMasteryActivated">;
3410
+ mastery: z.ZodEnum<["Vex", "Topple", "Sap", "Nick", "Push", "Slow", "Cleave", "Graze", "Flex"]>;
3411
+ attackerId: z.ZodString;
3412
+ targetId: z.ZodOptional<z.ZodString>;
3413
+ weaponInstanceId: z.ZodString;
3414
+ }, "strip", z.ZodTypeAny, {
3415
+ at: string;
3416
+ type: "WeaponMasteryActivated";
3417
+ id: string;
3418
+ mastery: "Vex" | "Topple" | "Sap" | "Nick" | "Push" | "Slow" | "Cleave" | "Graze" | "Flex";
3419
+ weaponInstanceId: string;
3420
+ attackerId: string;
3421
+ targetId?: string | undefined;
3422
+ sessionId?: string | undefined;
3423
+ causedByEventId?: string | undefined;
3424
+ actorId?: string | undefined;
3425
+ }, {
3426
+ at: string;
3427
+ type: "WeaponMasteryActivated";
3428
+ id: string;
3429
+ mastery: "Vex" | "Topple" | "Sap" | "Nick" | "Push" | "Slow" | "Cleave" | "Graze" | "Flex";
3430
+ weaponInstanceId: string;
3431
+ attackerId: string;
3432
+ targetId?: string | undefined;
3433
+ sessionId?: string | undefined;
3434
+ causedByEventId?: string | undefined;
3435
+ actorId?: string | undefined;
3436
+ }>, z.ZodObject<{
3437
+ id: z.ZodString;
3438
+ at: z.ZodString;
3439
+ sessionId: z.ZodOptional<z.ZodString>;
3440
+ causedByEventId: z.ZodOptional<z.ZodString>;
3441
+ actorId: z.ZodOptional<z.ZodString>;
3442
+ } & {
3443
+ type: z.ZodLiteral<"Mounted">;
3444
+ riderId: z.ZodString;
3445
+ mountId: z.ZodString;
3446
+ }, "strip", z.ZodTypeAny, {
3447
+ at: string;
3448
+ type: "Mounted";
3449
+ id: string;
3450
+ riderId: string;
3451
+ mountId: string;
3452
+ sessionId?: string | undefined;
3453
+ causedByEventId?: string | undefined;
3454
+ actorId?: string | undefined;
3455
+ }, {
3456
+ at: string;
3457
+ type: "Mounted";
3458
+ id: string;
3459
+ riderId: string;
3460
+ mountId: string;
3461
+ sessionId?: string | undefined;
3462
+ causedByEventId?: string | undefined;
3463
+ actorId?: string | undefined;
3464
+ }>, z.ZodObject<{
3465
+ id: z.ZodString;
3466
+ at: z.ZodString;
3467
+ sessionId: z.ZodOptional<z.ZodString>;
3468
+ causedByEventId: z.ZodOptional<z.ZodString>;
3469
+ actorId: z.ZodOptional<z.ZodString>;
3470
+ } & {
3471
+ type: z.ZodLiteral<"Dismounted">;
3472
+ riderId: z.ZodString;
3473
+ mountId: z.ZodString;
3474
+ voluntary: z.ZodDefault<z.ZodBoolean>;
3475
+ }, "strip", z.ZodTypeAny, {
3476
+ at: string;
3477
+ type: "Dismounted";
3478
+ id: string;
3479
+ voluntary: boolean;
3480
+ riderId: string;
3481
+ mountId: string;
3482
+ sessionId?: string | undefined;
3483
+ causedByEventId?: string | undefined;
3484
+ actorId?: string | undefined;
3485
+ }, {
3486
+ at: string;
3487
+ type: "Dismounted";
3488
+ id: string;
3489
+ riderId: string;
3490
+ mountId: string;
3491
+ sessionId?: string | undefined;
3492
+ causedByEventId?: string | undefined;
3493
+ actorId?: string | undefined;
3494
+ voluntary?: boolean | undefined;
3495
+ }>, z.ZodObject<{
3496
+ id: z.ZodString;
3497
+ at: z.ZodString;
3498
+ sessionId: z.ZodOptional<z.ZodString>;
3499
+ causedByEventId: z.ZodOptional<z.ZodString>;
3500
+ actorId: z.ZodOptional<z.ZodString>;
3501
+ } & {
3502
+ type: z.ZodLiteral<"VehicleAcquired">;
3503
+ vehicleId: z.ZodString;
3504
+ name: z.ZodString;
3505
+ kind: z.ZodEnum<["land", "water", "air"]>;
3506
+ speedFeet: z.ZodNumber;
3507
+ ac: z.ZodNumber;
3508
+ maxHp: z.ZodNumber;
3509
+ capacity: z.ZodNumber;
3510
+ }, "strip", z.ZodTypeAny, {
3511
+ at: string;
3512
+ type: "VehicleAcquired";
3513
+ kind: "water" | "land" | "air";
3514
+ ac: number;
3515
+ id: string;
3516
+ name: string;
3517
+ speedFeet: number;
3518
+ capacity: number;
3519
+ vehicleId: string;
3520
+ maxHp: number;
3521
+ sessionId?: string | undefined;
3522
+ causedByEventId?: string | undefined;
3523
+ actorId?: string | undefined;
3524
+ }, {
3525
+ at: string;
3526
+ type: "VehicleAcquired";
3527
+ kind: "water" | "land" | "air";
3528
+ ac: number;
3529
+ id: string;
3530
+ name: string;
3531
+ speedFeet: number;
3532
+ capacity: number;
3533
+ vehicleId: string;
3534
+ maxHp: number;
3535
+ sessionId?: string | undefined;
3536
+ causedByEventId?: string | undefined;
3537
+ actorId?: string | undefined;
3538
+ }>, z.ZodObject<{
3539
+ id: z.ZodString;
3540
+ at: z.ZodString;
3541
+ sessionId: z.ZodOptional<z.ZodString>;
3542
+ causedByEventId: z.ZodOptional<z.ZodString>;
3543
+ actorId: z.ZodOptional<z.ZodString>;
3544
+ } & {
3545
+ type: z.ZodLiteral<"VehicleBoarded">;
3546
+ vehicleId: z.ZodString;
3547
+ characterId: z.ZodString;
3548
+ }, "strip", z.ZodTypeAny, {
3549
+ at: string;
3550
+ type: "VehicleBoarded";
3551
+ id: string;
3552
+ characterId: string;
3553
+ vehicleId: string;
3554
+ sessionId?: string | undefined;
3555
+ causedByEventId?: string | undefined;
3556
+ actorId?: string | undefined;
3557
+ }, {
3558
+ at: string;
3559
+ type: "VehicleBoarded";
3560
+ id: string;
3561
+ characterId: string;
3562
+ vehicleId: string;
3563
+ sessionId?: string | undefined;
3564
+ causedByEventId?: string | undefined;
3565
+ actorId?: string | undefined;
3566
+ }>, z.ZodObject<{
3567
+ id: z.ZodString;
3568
+ at: z.ZodString;
3569
+ sessionId: z.ZodOptional<z.ZodString>;
3570
+ causedByEventId: z.ZodOptional<z.ZodString>;
3571
+ actorId: z.ZodOptional<z.ZodString>;
3572
+ } & {
3573
+ type: z.ZodLiteral<"VehicleDeparted">;
3574
+ vehicleId: z.ZodString;
3575
+ characterId: z.ZodString;
3576
+ }, "strip", z.ZodTypeAny, {
3577
+ at: string;
3578
+ type: "VehicleDeparted";
3579
+ id: string;
3580
+ characterId: string;
3581
+ vehicleId: string;
3582
+ sessionId?: string | undefined;
3583
+ causedByEventId?: string | undefined;
3584
+ actorId?: string | undefined;
3585
+ }, {
3586
+ at: string;
3587
+ type: "VehicleDeparted";
3588
+ id: string;
3589
+ characterId: string;
3590
+ vehicleId: string;
3591
+ sessionId?: string | undefined;
3592
+ causedByEventId?: string | undefined;
3593
+ actorId?: string | undefined;
3594
+ }>, z.ZodObject<{
3595
+ id: z.ZodString;
3596
+ at: z.ZodString;
3597
+ sessionId: z.ZodOptional<z.ZodString>;
3598
+ causedByEventId: z.ZodOptional<z.ZodString>;
3599
+ actorId: z.ZodOptional<z.ZodString>;
3600
+ } & {
3601
+ type: z.ZodLiteral<"VehicleDamaged">;
3602
+ vehicleId: z.ZodString;
3603
+ amount: z.ZodNumber;
3604
+ source: z.ZodOptional<z.ZodString>;
3605
+ }, "strip", z.ZodTypeAny, {
3606
+ at: string;
3607
+ type: "VehicleDamaged";
3608
+ amount: number;
3609
+ id: string;
3610
+ vehicleId: string;
3611
+ source?: string | undefined;
3612
+ sessionId?: string | undefined;
3613
+ causedByEventId?: string | undefined;
3614
+ actorId?: string | undefined;
3615
+ }, {
3616
+ at: string;
3617
+ type: "VehicleDamaged";
3618
+ amount: number;
3619
+ id: string;
3620
+ vehicleId: string;
3621
+ source?: string | undefined;
3622
+ sessionId?: string | undefined;
3623
+ causedByEventId?: string | undefined;
3624
+ actorId?: string | undefined;
3625
+ }>, z.ZodObject<{
3626
+ id: z.ZodString;
3627
+ at: z.ZodString;
3628
+ sessionId: z.ZodOptional<z.ZodString>;
3629
+ causedByEventId: z.ZodOptional<z.ZodString>;
3630
+ actorId: z.ZodOptional<z.ZodString>;
3631
+ } & {
3632
+ type: z.ZodLiteral<"VehicleRepaired">;
3633
+ vehicleId: z.ZodString;
3634
+ amount: z.ZodNumber;
3635
+ }, "strip", z.ZodTypeAny, {
3636
+ at: string;
3637
+ type: "VehicleRepaired";
3638
+ amount: number;
3639
+ id: string;
3640
+ vehicleId: string;
3641
+ sessionId?: string | undefined;
3642
+ causedByEventId?: string | undefined;
3643
+ actorId?: string | undefined;
3644
+ }, {
3645
+ at: string;
3646
+ type: "VehicleRepaired";
3647
+ amount: number;
3648
+ id: string;
3649
+ vehicleId: string;
3650
+ sessionId?: string | undefined;
3651
+ causedByEventId?: string | undefined;
3652
+ actorId?: string | undefined;
3653
+ }>, z.ZodObject<{
3654
+ id: z.ZodString;
3655
+ at: z.ZodString;
3656
+ sessionId: z.ZodOptional<z.ZodString>;
3657
+ causedByEventId: z.ZodOptional<z.ZodString>;
3658
+ actorId: z.ZodOptional<z.ZodString>;
3659
+ } & {
3660
+ type: z.ZodLiteral<"TravelLegCompleted">;
3661
+ partyId: z.ZodString;
3662
+ pace: z.ZodEnum<["slow", "normal", "fast"]>;
3663
+ hours: z.ZodNumber;
3664
+ miles: z.ZodNumber;
3665
+ fromLocationId: z.ZodOptional<z.ZodString>;
3666
+ toLocationId: z.ZodOptional<z.ZodString>;
3667
+ notes: z.ZodOptional<z.ZodString>;
3668
+ }, "strip", z.ZodTypeAny, {
3669
+ at: string;
3670
+ type: "TravelLegCompleted";
3671
+ id: string;
3672
+ hours: number;
3673
+ partyId: string;
3674
+ pace: "normal" | "slow" | "fast";
3675
+ miles: number;
3676
+ sessionId?: string | undefined;
3677
+ causedByEventId?: string | undefined;
3678
+ actorId?: string | undefined;
3679
+ fromLocationId?: string | undefined;
3680
+ toLocationId?: string | undefined;
3681
+ notes?: string | undefined;
3682
+ }, {
3683
+ at: string;
3684
+ type: "TravelLegCompleted";
3685
+ id: string;
3686
+ hours: number;
3687
+ partyId: string;
3688
+ pace: "normal" | "slow" | "fast";
3689
+ miles: number;
3690
+ sessionId?: string | undefined;
3691
+ causedByEventId?: string | undefined;
3692
+ actorId?: string | undefined;
3693
+ fromLocationId?: string | undefined;
3694
+ toLocationId?: string | undefined;
3695
+ notes?: string | undefined;
3696
+ }>, z.ZodObject<{
3697
+ id: z.ZodString;
3698
+ at: z.ZodString;
3699
+ sessionId: z.ZodOptional<z.ZodString>;
3700
+ causedByEventId: z.ZodOptional<z.ZodString>;
3701
+ actorId: z.ZodOptional<z.ZodString>;
3702
+ } & {
3703
+ type: z.ZodLiteral<"NavigationCheckRolled">;
3704
+ partyId: z.ZodString;
3705
+ navigatorId: z.ZodString;
3706
+ d20: z.ZodNumber;
3707
+ bonus: z.ZodNumber;
3708
+ total: z.ZodNumber;
3709
+ dc: z.ZodNumber;
3710
+ success: z.ZodBoolean;
3711
+ }, "strip", z.ZodTypeAny, {
3712
+ at: string;
3713
+ type: "NavigationCheckRolled";
3714
+ id: string;
3715
+ dc: number;
3716
+ partyId: string;
3717
+ success: boolean;
3718
+ d20: number;
3719
+ total: number;
3720
+ bonus: number;
3721
+ navigatorId: string;
3722
+ sessionId?: string | undefined;
3723
+ causedByEventId?: string | undefined;
3724
+ actorId?: string | undefined;
3725
+ }, {
3726
+ at: string;
3727
+ type: "NavigationCheckRolled";
3728
+ id: string;
3729
+ dc: number;
3730
+ partyId: string;
3731
+ success: boolean;
3732
+ d20: number;
3733
+ total: number;
3734
+ bonus: number;
3735
+ navigatorId: string;
3736
+ sessionId?: string | undefined;
3737
+ causedByEventId?: string | undefined;
3738
+ actorId?: string | undefined;
3739
+ }>, z.ZodObject<{
3740
+ id: z.ZodString;
3741
+ at: z.ZodString;
3742
+ sessionId: z.ZodOptional<z.ZodString>;
3743
+ causedByEventId: z.ZodOptional<z.ZodString>;
3744
+ actorId: z.ZodOptional<z.ZodString>;
3745
+ } & {
3746
+ type: z.ZodLiteral<"ForagedFor">;
3747
+ partyId: z.ZodString;
3748
+ foragerId: z.ZodString;
3749
+ d20: z.ZodNumber;
3750
+ bonus: z.ZodNumber;
3751
+ total: z.ZodNumber;
3752
+ dc: z.ZodNumber;
3753
+ success: z.ZodBoolean;
3754
+ foodPounds: z.ZodDefault<z.ZodNumber>;
3755
+ waterPounds: z.ZodDefault<z.ZodNumber>;
3756
+ }, "strip", z.ZodTypeAny, {
3757
+ at: string;
3758
+ type: "ForagedFor";
3759
+ id: string;
3760
+ dc: number;
3761
+ partyId: string;
3762
+ success: boolean;
3763
+ d20: number;
3764
+ total: number;
3765
+ bonus: number;
3766
+ foragerId: string;
3767
+ foodPounds: number;
3768
+ waterPounds: number;
3769
+ sessionId?: string | undefined;
3770
+ causedByEventId?: string | undefined;
3771
+ actorId?: string | undefined;
3772
+ }, {
3773
+ at: string;
3774
+ type: "ForagedFor";
3775
+ id: string;
3776
+ dc: number;
3777
+ partyId: string;
3778
+ success: boolean;
3779
+ d20: number;
3780
+ total: number;
3781
+ bonus: number;
3782
+ foragerId: string;
3783
+ sessionId?: string | undefined;
3784
+ causedByEventId?: string | undefined;
3785
+ actorId?: string | undefined;
3786
+ foodPounds?: number | undefined;
3787
+ waterPounds?: number | undefined;
3788
+ }>, z.ZodObject<{
3789
+ id: z.ZodString;
3790
+ at: z.ZodString;
3791
+ sessionId: z.ZodOptional<z.ZodString>;
3792
+ causedByEventId: z.ZodOptional<z.ZodString>;
3793
+ actorId: z.ZodOptional<z.ZodString>;
3794
+ } & {
3795
+ type: z.ZodLiteral<"AttitudeChanged">;
3796
+ characterId: z.ZodString;
3797
+ fromAttitude: z.ZodOptional<z.ZodEnum<["hostile", "unfriendly", "indifferent", "friendly", "helpful"]>>;
3798
+ toAttitude: z.ZodEnum<["hostile", "unfriendly", "indifferent", "friendly", "helpful"]>;
3799
+ cause: z.ZodOptional<z.ZodString>;
3800
+ }, "strip", z.ZodTypeAny, {
3801
+ at: string;
3802
+ type: "AttitudeChanged";
3803
+ id: string;
3804
+ characterId: string;
3805
+ toAttitude: "hostile" | "unfriendly" | "indifferent" | "friendly" | "helpful";
3806
+ sessionId?: string | undefined;
3807
+ causedByEventId?: string | undefined;
3808
+ actorId?: string | undefined;
3809
+ fromAttitude?: "hostile" | "unfriendly" | "indifferent" | "friendly" | "helpful" | undefined;
3810
+ cause?: string | undefined;
3811
+ }, {
3812
+ at: string;
3813
+ type: "AttitudeChanged";
3814
+ id: string;
3815
+ characterId: string;
3816
+ toAttitude: "hostile" | "unfriendly" | "indifferent" | "friendly" | "helpful";
3817
+ sessionId?: string | undefined;
3818
+ causedByEventId?: string | undefined;
3819
+ actorId?: string | undefined;
3820
+ fromAttitude?: "hostile" | "unfriendly" | "indifferent" | "friendly" | "helpful" | undefined;
3821
+ cause?: string | undefined;
3822
+ }>, z.ZodObject<{
3823
+ id: z.ZodString;
3824
+ at: z.ZodString;
3825
+ sessionId: z.ZodOptional<z.ZodString>;
3826
+ causedByEventId: z.ZodOptional<z.ZodString>;
3827
+ actorId: z.ZodOptional<z.ZodString>;
3828
+ } & {
3829
+ type: z.ZodLiteral<"MoraleCheckRolled">;
3830
+ characterId: z.ZodString;
3831
+ d20: z.ZodNumber;
3832
+ bonus: z.ZodNumber;
3833
+ total: z.ZodNumber;
3834
+ dc: z.ZodNumber;
3835
+ success: z.ZodBoolean;
3836
+ }, "strip", z.ZodTypeAny, {
3837
+ at: string;
3838
+ type: "MoraleCheckRolled";
3839
+ id: string;
3840
+ dc: number;
3841
+ characterId: string;
3842
+ success: boolean;
3843
+ d20: number;
3844
+ total: number;
3845
+ bonus: number;
3846
+ sessionId?: string | undefined;
3847
+ causedByEventId?: string | undefined;
3848
+ actorId?: string | undefined;
3849
+ }, {
3850
+ at: string;
3851
+ type: "MoraleCheckRolled";
3852
+ id: string;
3853
+ dc: number;
3854
+ characterId: string;
3855
+ success: boolean;
3856
+ d20: number;
3857
+ total: number;
3858
+ bonus: number;
3859
+ sessionId?: string | undefined;
3860
+ causedByEventId?: string | undefined;
3861
+ actorId?: string | undefined;
3862
+ }>, z.ZodObject<{
3863
+ id: z.ZodString;
3864
+ at: z.ZodString;
3865
+ sessionId: z.ZodOptional<z.ZodString>;
3866
+ causedByEventId: z.ZodOptional<z.ZodString>;
3867
+ actorId: z.ZodOptional<z.ZodString>;
3868
+ } & {
3869
+ type: z.ZodLiteral<"MoraleBroken">;
3870
+ characterId: z.ZodString;
3871
+ action: z.ZodEnum<["flee", "surrender"]>;
3872
+ }, "strip", z.ZodTypeAny, {
3873
+ at: string;
3874
+ type: "MoraleBroken";
3875
+ action: "flee" | "surrender";
3876
+ id: string;
3877
+ characterId: string;
3878
+ sessionId?: string | undefined;
3879
+ causedByEventId?: string | undefined;
3880
+ actorId?: string | undefined;
3881
+ }, {
3882
+ at: string;
3883
+ type: "MoraleBroken";
3884
+ action: "flee" | "surrender";
3885
+ id: string;
3886
+ characterId: string;
3887
+ sessionId?: string | undefined;
3888
+ causedByEventId?: string | undefined;
3889
+ actorId?: string | undefined;
3890
+ }>, z.ZodObject<{
3891
+ id: z.ZodString;
3892
+ at: z.ZodString;
3893
+ sessionId: z.ZodOptional<z.ZodString>;
3894
+ causedByEventId: z.ZodOptional<z.ZodString>;
3895
+ actorId: z.ZodOptional<z.ZodString>;
3896
+ } & {
3897
+ type: z.ZodLiteral<"DowntimeActivityResolved">;
3898
+ characterId: z.ZodString;
3899
+ kind: z.ZodEnum<["crafting", "training", "recuperating", "research", "work", "other"]>;
3900
+ days: z.ZodNumber;
3901
+ outcome: z.ZodEnum<["success", "partial", "failure"]>;
3902
+ summary: z.ZodString;
3903
+ producedItemDefinitionId: z.ZodOptional<z.ZodString>;
3904
+ toolProficiencyGained: z.ZodOptional<z.ZodString>;
3905
+ }, "strip", z.ZodTypeAny, {
3906
+ at: string;
3907
+ type: "DowntimeActivityResolved";
3908
+ kind: "other" | "crafting" | "training" | "recuperating" | "research" | "work";
3909
+ id: string;
3910
+ outcome: "partial" | "success" | "failure";
3911
+ days: number;
3912
+ summary: string;
3913
+ characterId: string;
3914
+ sessionId?: string | undefined;
3915
+ causedByEventId?: string | undefined;
3916
+ actorId?: string | undefined;
3917
+ producedItemDefinitionId?: string | undefined;
3918
+ toolProficiencyGained?: string | undefined;
3919
+ }, {
3920
+ at: string;
3921
+ type: "DowntimeActivityResolved";
3922
+ kind: "other" | "crafting" | "training" | "recuperating" | "research" | "work";
3923
+ id: string;
3924
+ outcome: "partial" | "success" | "failure";
3925
+ days: number;
3926
+ summary: string;
3927
+ characterId: string;
3928
+ sessionId?: string | undefined;
3929
+ causedByEventId?: string | undefined;
3930
+ actorId?: string | undefined;
3931
+ producedItemDefinitionId?: string | undefined;
3932
+ toolProficiencyGained?: string | undefined;
3933
+ }>, z.ZodObject<{
3934
+ id: z.ZodString;
3935
+ at: z.ZodString;
3936
+ sessionId: z.ZodOptional<z.ZodString>;
3937
+ causedByEventId: z.ZodOptional<z.ZodString>;
3938
+ actorId: z.ZodOptional<z.ZodString>;
3939
+ } & {
3940
+ type: z.ZodLiteral<"ItemChargeConsumed">;
3941
+ itemInstanceId: z.ZodString;
3942
+ amount: z.ZodNumber;
3943
+ byCharacterId: z.ZodOptional<z.ZodString>;
3944
+ forEffect: z.ZodOptional<z.ZodString>;
3945
+ }, "strip", z.ZodTypeAny, {
3946
+ at: string;
3947
+ type: "ItemChargeConsumed";
3948
+ amount: number;
3949
+ id: string;
3950
+ itemInstanceId: string;
3951
+ sessionId?: string | undefined;
3952
+ causedByEventId?: string | undefined;
3953
+ actorId?: string | undefined;
3954
+ byCharacterId?: string | undefined;
3955
+ forEffect?: string | undefined;
3956
+ }, {
3957
+ at: string;
3958
+ type: "ItemChargeConsumed";
3959
+ amount: number;
3960
+ id: string;
3961
+ itemInstanceId: string;
3962
+ sessionId?: string | undefined;
3963
+ causedByEventId?: string | undefined;
3964
+ actorId?: string | undefined;
3965
+ byCharacterId?: string | undefined;
3966
+ forEffect?: string | undefined;
3967
+ }>, z.ZodObject<{
3968
+ id: z.ZodString;
3969
+ at: z.ZodString;
3970
+ sessionId: z.ZodOptional<z.ZodString>;
3971
+ causedByEventId: z.ZodOptional<z.ZodString>;
3972
+ actorId: z.ZodOptional<z.ZodString>;
3973
+ } & {
3974
+ type: z.ZodLiteral<"ItemRecharged">;
3975
+ itemInstanceId: z.ZodString;
3976
+ amount: z.ZodNumber;
3977
+ cadence: z.ZodEnum<["dawn", "dusk", "shortRest", "longRest", "manual"]>;
3978
+ }, "strip", z.ZodTypeAny, {
3979
+ at: string;
3980
+ type: "ItemRecharged";
3981
+ amount: number;
3982
+ id: string;
3983
+ cadence: "shortRest" | "longRest" | "dawn" | "dusk" | "manual";
3984
+ itemInstanceId: string;
3985
+ sessionId?: string | undefined;
3986
+ causedByEventId?: string | undefined;
3987
+ actorId?: string | undefined;
3988
+ }, {
3989
+ at: string;
3990
+ type: "ItemRecharged";
3991
+ amount: number;
3992
+ id: string;
3993
+ cadence: "shortRest" | "longRest" | "dawn" | "dusk" | "manual";
3994
+ itemInstanceId: string;
3995
+ sessionId?: string | undefined;
3996
+ causedByEventId?: string | undefined;
3997
+ actorId?: string | undefined;
3998
+ }>, z.ZodObject<{
3999
+ id: z.ZodString;
4000
+ at: z.ZodString;
4001
+ sessionId: z.ZodOptional<z.ZodString>;
4002
+ causedByEventId: z.ZodOptional<z.ZodString>;
4003
+ actorId: z.ZodOptional<z.ZodString>;
4004
+ } & {
4005
+ type: z.ZodLiteral<"SentientItemConflict">;
4006
+ itemInstanceId: z.ZodString;
4007
+ wielderId: z.ZodString;
4008
+ winner: z.ZodEnum<["item", "wielder"]>;
4009
+ description: z.ZodOptional<z.ZodString>;
4010
+ }, "strip", z.ZodTypeAny, {
4011
+ at: string;
4012
+ type: "SentientItemConflict";
4013
+ id: string;
4014
+ itemInstanceId: string;
4015
+ wielderId: string;
4016
+ winner: "item" | "wielder";
4017
+ description?: string | undefined;
4018
+ sessionId?: string | undefined;
4019
+ causedByEventId?: string | undefined;
4020
+ actorId?: string | undefined;
4021
+ }, {
4022
+ at: string;
4023
+ type: "SentientItemConflict";
4024
+ id: string;
4025
+ itemInstanceId: string;
4026
+ wielderId: string;
4027
+ winner: "item" | "wielder";
4028
+ description?: string | undefined;
4029
+ sessionId?: string | undefined;
4030
+ causedByEventId?: string | undefined;
4031
+ actorId?: string | undefined;
4032
+ }>, z.ZodObject<{
4033
+ id: z.ZodString;
4034
+ at: z.ZodString;
4035
+ sessionId: z.ZodOptional<z.ZodString>;
4036
+ causedByEventId: z.ZodOptional<z.ZodString>;
4037
+ actorId: z.ZodOptional<z.ZodString>;
4038
+ } & {
4039
+ type: z.ZodLiteral<"BastionFounded">;
4040
+ bastionId: z.ZodString;
4041
+ name: z.ZodString;
4042
+ ownerCharacterId: z.ZodString;
4043
+ locationId: z.ZodOptional<z.ZodString>;
4044
+ level: z.ZodDefault<z.ZodNumber>;
4045
+ hpMax: z.ZodDefault<z.ZodNumber>;
4046
+ }, "strip", z.ZodTypeAny, {
4047
+ at: string;
4048
+ type: "BastionFounded";
4049
+ level: number;
4050
+ hpMax: number;
4051
+ id: string;
4052
+ name: string;
4053
+ ownerCharacterId: string;
4054
+ bastionId: string;
4055
+ sessionId?: string | undefined;
4056
+ locationId?: string | undefined;
4057
+ causedByEventId?: string | undefined;
4058
+ actorId?: string | undefined;
4059
+ }, {
4060
+ at: string;
4061
+ type: "BastionFounded";
4062
+ id: string;
4063
+ name: string;
4064
+ ownerCharacterId: string;
4065
+ bastionId: string;
4066
+ level?: number | undefined;
4067
+ hpMax?: number | undefined;
4068
+ sessionId?: string | undefined;
4069
+ locationId?: string | undefined;
4070
+ causedByEventId?: string | undefined;
4071
+ actorId?: string | undefined;
4072
+ }>, z.ZodObject<{
4073
+ id: z.ZodString;
4074
+ at: z.ZodString;
4075
+ sessionId: z.ZodOptional<z.ZodString>;
4076
+ causedByEventId: z.ZodOptional<z.ZodString>;
4077
+ actorId: z.ZodOptional<z.ZodString>;
4078
+ } & {
4079
+ type: z.ZodLiteral<"BastionFacilityAdded">;
4080
+ bastionId: z.ZodString;
4081
+ facilityId: z.ZodString;
4082
+ name: z.ZodString;
4083
+ kind: z.ZodEnum<["basic", "special"]>;
4084
+ space: z.ZodEnum<["cramped", "roomy", "vast"]>;
4085
+ description: z.ZodOptional<z.ZodString>;
4086
+ }, "strip", z.ZodTypeAny, {
4087
+ at: string;
4088
+ type: "BastionFacilityAdded";
4089
+ kind: "special" | "basic";
4090
+ id: string;
4091
+ name: string;
4092
+ space: "cramped" | "roomy" | "vast";
4093
+ bastionId: string;
4094
+ facilityId: string;
4095
+ description?: string | undefined;
4096
+ sessionId?: string | undefined;
4097
+ causedByEventId?: string | undefined;
4098
+ actorId?: string | undefined;
4099
+ }, {
4100
+ at: string;
4101
+ type: "BastionFacilityAdded";
4102
+ kind: "special" | "basic";
4103
+ id: string;
4104
+ name: string;
4105
+ space: "cramped" | "roomy" | "vast";
4106
+ bastionId: string;
4107
+ facilityId: string;
4108
+ description?: string | undefined;
4109
+ sessionId?: string | undefined;
4110
+ causedByEventId?: string | undefined;
4111
+ actorId?: string | undefined;
4112
+ }>, z.ZodObject<{
4113
+ id: z.ZodString;
4114
+ at: z.ZodString;
4115
+ sessionId: z.ZodOptional<z.ZodString>;
4116
+ causedByEventId: z.ZodOptional<z.ZodString>;
4117
+ actorId: z.ZodOptional<z.ZodString>;
4118
+ } & {
4119
+ type: z.ZodLiteral<"BastionHirelingAdded">;
4120
+ bastionId: z.ZodString;
4121
+ hirelingId: z.ZodString;
4122
+ name: z.ZodString;
4123
+ role: z.ZodString;
4124
+ }, "strip", z.ZodTypeAny, {
4125
+ at: string;
4126
+ type: "BastionHirelingAdded";
4127
+ id: string;
4128
+ name: string;
4129
+ role: string;
4130
+ bastionId: string;
4131
+ hirelingId: string;
4132
+ sessionId?: string | undefined;
4133
+ causedByEventId?: string | undefined;
4134
+ actorId?: string | undefined;
4135
+ }, {
4136
+ at: string;
4137
+ type: "BastionHirelingAdded";
4138
+ id: string;
4139
+ name: string;
4140
+ role: string;
4141
+ bastionId: string;
4142
+ hirelingId: string;
4143
+ sessionId?: string | undefined;
4144
+ causedByEventId?: string | undefined;
4145
+ actorId?: string | undefined;
4146
+ }>, z.ZodObject<{
4147
+ id: z.ZodString;
4148
+ at: z.ZodString;
4149
+ sessionId: z.ZodOptional<z.ZodString>;
4150
+ causedByEventId: z.ZodOptional<z.ZodString>;
4151
+ actorId: z.ZodOptional<z.ZodString>;
4152
+ } & {
4153
+ type: z.ZodLiteral<"BastionTurnTaken">;
4154
+ bastionId: z.ZodString;
4155
+ order: z.ZodEnum<["maintain", "craft", "recruit", "research", "trade", "empower"]>;
4156
+ treasuryDeltaGp: z.ZodDefault<z.ZodNumber>;
4157
+ summary: z.ZodOptional<z.ZodString>;
4158
+ }, "strip", z.ZodTypeAny, {
4159
+ at: string;
4160
+ type: "BastionTurnTaken";
4161
+ id: string;
4162
+ bastionId: string;
4163
+ order: "research" | "maintain" | "craft" | "recruit" | "trade" | "empower";
4164
+ treasuryDeltaGp: number;
4165
+ summary?: string | undefined;
4166
+ sessionId?: string | undefined;
4167
+ causedByEventId?: string | undefined;
4168
+ actorId?: string | undefined;
4169
+ }, {
4170
+ at: string;
4171
+ type: "BastionTurnTaken";
4172
+ id: string;
4173
+ bastionId: string;
4174
+ order: "research" | "maintain" | "craft" | "recruit" | "trade" | "empower";
4175
+ summary?: string | undefined;
4176
+ sessionId?: string | undefined;
4177
+ causedByEventId?: string | undefined;
4178
+ actorId?: string | undefined;
4179
+ treasuryDeltaGp?: number | undefined;
4180
+ }>, z.ZodObject<{
4181
+ id: z.ZodString;
4182
+ at: z.ZodString;
4183
+ sessionId: z.ZodOptional<z.ZodString>;
4184
+ causedByEventId: z.ZodOptional<z.ZodString>;
4185
+ actorId: z.ZodOptional<z.ZodString>;
4186
+ } & {
4187
+ type: z.ZodLiteral<"BastionDamaged">;
4188
+ bastionId: z.ZodString;
4189
+ amount: z.ZodNumber;
4190
+ source: z.ZodOptional<z.ZodString>;
4191
+ }, "strip", z.ZodTypeAny, {
4192
+ at: string;
4193
+ type: "BastionDamaged";
4194
+ amount: number;
4195
+ id: string;
4196
+ bastionId: string;
4197
+ source?: string | undefined;
4198
+ sessionId?: string | undefined;
4199
+ causedByEventId?: string | undefined;
4200
+ actorId?: string | undefined;
4201
+ }, {
4202
+ at: string;
4203
+ type: "BastionDamaged";
4204
+ amount: number;
4205
+ id: string;
4206
+ bastionId: string;
4207
+ source?: string | undefined;
4208
+ sessionId?: string | undefined;
4209
+ causedByEventId?: string | undefined;
4210
+ actorId?: string | undefined;
4211
+ }>, z.ZodObject<{
4212
+ id: z.ZodString;
4213
+ at: z.ZodString;
4214
+ sessionId: z.ZodOptional<z.ZodString>;
4215
+ causedByEventId: z.ZodOptional<z.ZodString>;
4216
+ actorId: z.ZodOptional<z.ZodString>;
4217
+ } & {
4218
+ type: z.ZodLiteral<"BastionLevelChanged">;
4219
+ bastionId: z.ZodString;
4220
+ fromLevel: z.ZodNumber;
4221
+ toLevel: z.ZodNumber;
4222
+ }, "strip", z.ZodTypeAny, {
4223
+ at: string;
4224
+ type: "BastionLevelChanged";
4225
+ id: string;
4226
+ fromLevel: number;
4227
+ toLevel: number;
4228
+ bastionId: string;
4229
+ sessionId?: string | undefined;
4230
+ causedByEventId?: string | undefined;
4231
+ actorId?: string | undefined;
4232
+ }, {
4233
+ at: string;
4234
+ type: "BastionLevelChanged";
4235
+ id: string;
4236
+ fromLevel: number;
4237
+ toLevel: number;
4238
+ bastionId: string;
4239
+ sessionId?: string | undefined;
4240
+ causedByEventId?: string | undefined;
4241
+ actorId?: string | undefined;
4242
+ }>, z.ZodObject<{
4243
+ id: z.ZodString;
4244
+ at: z.ZodString;
4245
+ sessionId: z.ZodOptional<z.ZodString>;
4246
+ causedByEventId: z.ZodOptional<z.ZodString>;
4247
+ actorId: z.ZodOptional<z.ZodString>;
4248
+ } & {
4249
+ type: z.ZodLiteral<"CharacterResurrected">;
4250
+ characterId: z.ZodString;
4251
+ spell: z.ZodEnum<["revivify", "raise-dead", "reincarnate", "resurrection", "true-resurrection"]>;
4252
+ byCharacterId: z.ZodOptional<z.ZodString>;
4253
+ hpAfter: z.ZodNumber;
4254
+ newSpeciesId: z.ZodOptional<z.ZodString>;
4255
+ }, "strip", z.ZodTypeAny, {
4256
+ at: string;
4257
+ type: "CharacterResurrected";
4258
+ id: string;
4259
+ characterId: string;
4260
+ spell: "revivify" | "raise-dead" | "reincarnate" | "resurrection" | "true-resurrection";
4261
+ hpAfter: number;
4262
+ sessionId?: string | undefined;
4263
+ causedByEventId?: string | undefined;
4264
+ actorId?: string | undefined;
4265
+ byCharacterId?: string | undefined;
4266
+ newSpeciesId?: string | undefined;
4267
+ }, {
4268
+ at: string;
4269
+ type: "CharacterResurrected";
4270
+ id: string;
4271
+ characterId: string;
4272
+ spell: "revivify" | "raise-dead" | "reincarnate" | "resurrection" | "true-resurrection";
4273
+ hpAfter: number;
4274
+ sessionId?: string | undefined;
4275
+ causedByEventId?: string | undefined;
4276
+ actorId?: string | undefined;
4277
+ byCharacterId?: string | undefined;
4278
+ newSpeciesId?: string | undefined;
4279
+ }>, z.ZodObject<{
4280
+ id: z.ZodString;
4281
+ at: z.ZodString;
4282
+ sessionId: z.ZodOptional<z.ZodString>;
4283
+ causedByEventId: z.ZodOptional<z.ZodString>;
4284
+ actorId: z.ZodOptional<z.ZodString>;
4285
+ } & {
4286
+ type: z.ZodLiteral<"PolymorphApplied">;
4287
+ targetId: z.ZodString;
4288
+ casterId: z.ZodOptional<z.ZodString>;
4289
+ kind: z.ZodEnum<["polymorph", "wild-shape", "true-polymorph"]>;
4290
+ form: z.ZodObject<{
4291
+ name: z.ZodString;
4292
+ hp: z.ZodNumber;
4293
+ ac: z.ZodNumber;
4294
+ abilityScores: z.ZodObject<{
4295
+ STR: z.ZodNumber;
4296
+ DEX: z.ZodNumber;
4297
+ CON: z.ZodNumber;
4298
+ INT: z.ZodNumber;
4299
+ WIS: z.ZodNumber;
4300
+ CHA: z.ZodNumber;
4301
+ }, "strip", z.ZodTypeAny, {
4302
+ STR: number;
4303
+ DEX: number;
4304
+ CON: number;
4305
+ INT: number;
4306
+ WIS: number;
4307
+ CHA: number;
4308
+ }, {
4309
+ STR: number;
4310
+ DEX: number;
4311
+ CON: number;
4312
+ INT: number;
4313
+ WIS: number;
4314
+ CHA: number;
4315
+ }>;
4316
+ speedFeet: z.ZodNumber;
4317
+ speciesId: z.ZodOptional<z.ZodString>;
4318
+ }, "strip", z.ZodTypeAny, {
4319
+ ac: number;
4320
+ name: string;
4321
+ hp: number;
4322
+ abilityScores: {
4323
+ STR: number;
4324
+ DEX: number;
4325
+ CON: number;
4326
+ INT: number;
4327
+ WIS: number;
4328
+ CHA: number;
4329
+ };
4330
+ speedFeet: number;
4331
+ speciesId?: string | undefined;
4332
+ }, {
4333
+ ac: number;
4334
+ name: string;
4335
+ hp: number;
4336
+ abilityScores: {
4337
+ STR: number;
4338
+ DEX: number;
4339
+ CON: number;
4340
+ INT: number;
4341
+ WIS: number;
4342
+ CHA: number;
4343
+ };
4344
+ speedFeet: number;
4345
+ speciesId?: string | undefined;
4346
+ }>;
4347
+ }, "strip", z.ZodTypeAny, {
4348
+ at: string;
4349
+ type: "PolymorphApplied";
4350
+ kind: "polymorph" | "wild-shape" | "true-polymorph";
4351
+ id: string;
4352
+ targetId: string;
4353
+ form: {
4354
+ ac: number;
4355
+ name: string;
4356
+ hp: number;
4357
+ abilityScores: {
4358
+ STR: number;
4359
+ DEX: number;
4360
+ CON: number;
4361
+ INT: number;
4362
+ WIS: number;
4363
+ CHA: number;
4364
+ };
4365
+ speedFeet: number;
4366
+ speciesId?: string | undefined;
4367
+ };
4368
+ casterId?: string | undefined;
4369
+ sessionId?: string | undefined;
4370
+ causedByEventId?: string | undefined;
4371
+ actorId?: string | undefined;
4372
+ }, {
4373
+ at: string;
4374
+ type: "PolymorphApplied";
4375
+ kind: "polymorph" | "wild-shape" | "true-polymorph";
4376
+ id: string;
4377
+ targetId: string;
4378
+ form: {
4379
+ ac: number;
4380
+ name: string;
4381
+ hp: number;
4382
+ abilityScores: {
4383
+ STR: number;
4384
+ DEX: number;
4385
+ CON: number;
4386
+ INT: number;
4387
+ WIS: number;
4388
+ CHA: number;
4389
+ };
4390
+ speedFeet: number;
4391
+ speciesId?: string | undefined;
4392
+ };
4393
+ casterId?: string | undefined;
4394
+ sessionId?: string | undefined;
4395
+ causedByEventId?: string | undefined;
4396
+ actorId?: string | undefined;
4397
+ }>, z.ZodObject<{
4398
+ id: z.ZodString;
4399
+ at: z.ZodString;
4400
+ sessionId: z.ZodOptional<z.ZodString>;
4401
+ causedByEventId: z.ZodOptional<z.ZodString>;
4402
+ actorId: z.ZodOptional<z.ZodString>;
4403
+ } & {
4404
+ type: z.ZodLiteral<"PolymorphReverted">;
4405
+ targetId: z.ZodString;
4406
+ reason: z.ZodDefault<z.ZodEnum<["voluntary", "forced-zero-hp", "duration-expired"]>>;
4407
+ }, "strip", z.ZodTypeAny, {
4408
+ at: string;
4409
+ type: "PolymorphReverted";
4410
+ id: string;
4411
+ targetId: string;
4412
+ reason: "voluntary" | "forced-zero-hp" | "duration-expired";
4413
+ sessionId?: string | undefined;
4414
+ causedByEventId?: string | undefined;
4415
+ actorId?: string | undefined;
4416
+ }, {
4417
+ at: string;
4418
+ type: "PolymorphReverted";
4419
+ id: string;
4420
+ targetId: string;
4421
+ sessionId?: string | undefined;
4422
+ causedByEventId?: string | undefined;
4423
+ actorId?: string | undefined;
4424
+ reason?: "voluntary" | "forced-zero-hp" | "duration-expired" | undefined;
4425
+ }>, z.ZodObject<{
4426
+ id: z.ZodString;
4427
+ at: z.ZodString;
4428
+ sessionId: z.ZodOptional<z.ZodString>;
4429
+ causedByEventId: z.ZodOptional<z.ZodString>;
4430
+ actorId: z.ZodOptional<z.ZodString>;
4431
+ } & {
4432
+ type: z.ZodLiteral<"SimulacrumCreated">;
4433
+ simulacrumId: z.ZodString;
4434
+ originalId: z.ZodString;
4435
+ hpMax: z.ZodNumber;
4436
+ }, "strip", z.ZodTypeAny, {
4437
+ at: string;
4438
+ type: "SimulacrumCreated";
4439
+ hpMax: number;
4440
+ id: string;
4441
+ simulacrumId: string;
4442
+ originalId: string;
4443
+ sessionId?: string | undefined;
4444
+ causedByEventId?: string | undefined;
4445
+ actorId?: string | undefined;
4446
+ }, {
4447
+ at: string;
4448
+ type: "SimulacrumCreated";
4449
+ hpMax: number;
4450
+ id: string;
4451
+ simulacrumId: string;
4452
+ originalId: string;
4453
+ sessionId?: string | undefined;
4454
+ causedByEventId?: string | undefined;
4455
+ actorId?: string | undefined;
4456
+ }>, z.ZodObject<{
4457
+ id: z.ZodString;
4458
+ at: z.ZodString;
4459
+ sessionId: z.ZodOptional<z.ZodString>;
4460
+ causedByEventId: z.ZodOptional<z.ZodString>;
4461
+ actorId: z.ZodOptional<z.ZodString>;
4462
+ } & {
4463
+ type: z.ZodLiteral<"WishGranted">;
4464
+ granterId: z.ZodString;
4465
+ description: z.ZodString;
4466
+ stressApplied: z.ZodDefault<z.ZodBoolean>;
4467
+ }, "strip", z.ZodTypeAny, {
4468
+ at: string;
4469
+ type: "WishGranted";
4470
+ id: string;
4471
+ description: string;
4472
+ granterId: string;
4473
+ stressApplied: boolean;
4474
+ sessionId?: string | undefined;
4475
+ causedByEventId?: string | undefined;
4476
+ actorId?: string | undefined;
4477
+ }, {
4478
+ at: string;
4479
+ type: "WishGranted";
4480
+ id: string;
4481
+ description: string;
4482
+ granterId: string;
4483
+ sessionId?: string | undefined;
4484
+ causedByEventId?: string | undefined;
4485
+ actorId?: string | undefined;
4486
+ stressApplied?: boolean | undefined;
4487
+ }>, z.ZodObject<{
4488
+ id: z.ZodString;
4489
+ at: z.ZodString;
4490
+ sessionId: z.ZodOptional<z.ZodString>;
4491
+ causedByEventId: z.ZodOptional<z.ZodString>;
4492
+ actorId: z.ZodOptional<z.ZodString>;
4493
+ } & {
4494
+ type: z.ZodLiteral<"CampaignSettingsChanged">;
4495
+ grittyRest: z.ZodOptional<z.ZodBoolean>;
4496
+ heroPoints: z.ZodOptional<z.ZodBoolean>;
4497
+ sanity: z.ZodOptional<z.ZodBoolean>;
4498
+ massCombat: z.ZodOptional<z.ZodBoolean>;
4499
+ feaCharacterFlaws: z.ZodOptional<z.ZodBoolean>;
4500
+ customHouserulesAdd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4501
+ customHouserulesRemove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4502
+ }, "strip", z.ZodTypeAny, {
4503
+ at: string;
4504
+ type: "CampaignSettingsChanged";
4505
+ id: string;
4506
+ sessionId?: string | undefined;
4507
+ causedByEventId?: string | undefined;
4508
+ actorId?: string | undefined;
4509
+ grittyRest?: boolean | undefined;
4510
+ heroPoints?: boolean | undefined;
4511
+ sanity?: boolean | undefined;
4512
+ massCombat?: boolean | undefined;
4513
+ feaCharacterFlaws?: boolean | undefined;
4514
+ customHouserulesAdd?: string[] | undefined;
4515
+ customHouserulesRemove?: string[] | undefined;
4516
+ }, {
4517
+ at: string;
4518
+ type: "CampaignSettingsChanged";
4519
+ id: string;
4520
+ sessionId?: string | undefined;
4521
+ causedByEventId?: string | undefined;
4522
+ actorId?: string | undefined;
4523
+ grittyRest?: boolean | undefined;
4524
+ heroPoints?: boolean | undefined;
4525
+ sanity?: boolean | undefined;
4526
+ massCombat?: boolean | undefined;
4527
+ feaCharacterFlaws?: boolean | undefined;
4528
+ customHouserulesAdd?: string[] | undefined;
4529
+ customHouserulesRemove?: string[] | undefined;
4530
+ }>]>;
4531
+ export type Event = z.infer<typeof EventSchema>;
4532
+ export type EventType = Event['type'];
4533
+ export declare const EVENT_TYPES: readonly ["CharacterCreated", "DamageApplied", "Healed", "TempHPGranted", "ConditionApplied", "ConditionRemoved", "ExhaustionChanged", "DeathSaveRolled", "Stabilized", "ResourceSpent", "ResourceRestored", "HitDieSpent", "ShortRestStarted", "ShortRestEnded", "LongRestStarted", "LongRestEnded", "EncounterCreated", "EncounterStarted", "InitiativeRolled", "TurnStarted", "TurnEnded", "RoundEnded", "EncounterEnded", "AttackRolled", "DamageRolled", "ItemAcquired", "LevelUpResolved", "ChoiceRequired", "ChoiceResolved", "SaveRolled", "AbilityCheckRolled", "SpellCastDeclared", "SpellSlotConsumed", "PactSlotConsumed", "ConcentrationStarted", "ConcentrationBroken", "TriggerFired", "ActionEconomyConsumed", "CombatantMoved", "Dashed", "Disengaged", "ItemEquipped", "ItemUnequipped", "ItemAttuned", "ItemUnattuned", "PartyCreated", "PartyMembersChanged", "CurrencyAcquired", "CurrencySpent", "ItemDepositedToParty", "ItemWithdrawnFromParty", "SessionStarted", "SessionEnded", "JournalEntryAdded", "InGameTimeAdvanced", "LocationCreated", "DoorAdded", "DoorStateChanged", "CharacterLocationChanged", "QuestStarted", "ObjectiveProgressed", "ObjectiveCompleted", "ObjectiveFailed", "QuestCompleted", "QuestFailed", "QuestAbandoned", "QuestRewardClaimed", "XPAwarded", "MilestoneAwarded", "SpellCountered", "SpellDispelled", "ItemIdentified", "WeaponMasteryActivated", "Mounted", "Dismounted", "VehicleAcquired", "VehicleBoarded", "VehicleDeparted", "VehicleDamaged", "VehicleRepaired", "TravelLegCompleted", "NavigationCheckRolled", "ForagedFor", "AttitudeChanged", "MoraleCheckRolled", "MoraleBroken", "DowntimeActivityResolved", "ItemChargeConsumed", "ItemRecharged", "SentientItemConflict", "BastionFounded", "BastionFacilityAdded", "BastionHirelingAdded", "BastionTurnTaken", "BastionDamaged", "BastionLevelChanged", "CharacterResurrected", "PolymorphApplied", "PolymorphReverted", "SimulacrumCreated", "WishGranted", "CampaignSettingsChanged"];
4534
+ export type { DamageAppliedEvent, DamageComponent, HealedEvent, TempHPGrantedEvent, ConditionAppliedEvent, ConditionRemovedEvent, ExhaustionChangedEvent, DeathSaveRolledEvent, StabilizedEvent, } from './combat.js';
4535
+ export type { ResourceSpentEvent, ResourceRestoredEvent, HitDieSpentEvent, } from './resources.js';
4536
+ export type { ShortRestStartedEvent, ShortRestEndedEvent, LongRestStartedEvent, LongRestEndedEvent, } from './rest.js';
4537
+ export type { CharacterCreatedEvent } from './progression.js';
4538
+ export type { EventEnvelope } from './envelope.js';
4539
+ export type { EncounterCreatedEvent, EncounterStartedEvent, InitiativeRolledEvent, InitiativeRoll, TurnStartedEvent, TurnEndedEvent, RoundEndedEvent, EncounterEndedEvent, } from './encounter.js';
4540
+ export type { AttackRolledEvent, DamageRolledEvent, DamageRoll, AttackAdvantage, } from './attack.js';
4541
+ export { DamageAppliedEventSchema, HealedEventSchema, TempHPGrantedEventSchema, ConditionAppliedEventSchema, ConditionRemovedEventSchema, ExhaustionChangedEventSchema, DeathSaveRolledEventSchema, StabilizedEventSchema, } from './combat.js';
4542
+ export { ResourceSpentEventSchema, ResourceRestoredEventSchema, HitDieSpentEventSchema, } from './resources.js';
4543
+ export { ShortRestStartedEventSchema, ShortRestEndedEventSchema, LongRestStartedEventSchema, LongRestEndedEventSchema, } from './rest.js';
4544
+ export { CharacterCreatedEventSchema } from './progression.js';
4545
+ export { EventEnvelopeSchema } from './envelope.js';
4546
+ export { EncounterCreatedEventSchema, EncounterStartedEventSchema, InitiativeRolledEventSchema, InitiativeRollSchema, TurnStartedEventSchema, TurnEndedEventSchema, RoundEndedEventSchema, EncounterEndedEventSchema, } from './encounter.js';
4547
+ export { AttackRolledEventSchema, DamageRolledEventSchema, DamageRollSchema, AttackAdvantageSchema, } from './attack.js';
4548
+ export { ItemAcquiredEventSchema, ItemEquippedEventSchema, ItemUnequippedEventSchema, ItemAttunedEventSchema, ItemUnattunedEventSchema, EquipSlotSchema, EQUIP_SLOTS, } from './inventory.js';
4549
+ export type { ItemAcquiredEvent, ItemEquippedEvent, ItemUnequippedEvent, ItemAttunedEvent, ItemUnattunedEvent, EquipSlot, } from './inventory.js';
4550
+ export { LevelUpResolvedEventSchema, ChoiceRequiredEventSchema, ChoiceResolvedEventSchema, HPStrategySchema, } from './level-up.js';
4551
+ export type { LevelUpResolvedEvent, ChoiceRequiredEvent, ChoiceResolvedEvent, HPStrategy, } from './level-up.js';
4552
+ export { SaveRolledEventSchema, AbilityCheckRolledEventSchema, CheckAdvantageSchema, } from './checks.js';
4553
+ export type { SaveRolledEvent, AbilityCheckRolledEvent, CheckAdvantage, } from './checks.js';
4554
+ export { SpellCastDeclaredEventSchema, SpellSlotConsumedEventSchema, PactSlotConsumedEventSchema, SpellSlotSourceSchema, } from './spellcasting.js';
4555
+ export type { SpellCastDeclaredEvent, SpellSlotConsumedEvent, PactSlotConsumedEvent, SpellSlotSource, } from './spellcasting.js';
4556
+ export { ConcentrationStartedEventSchema, ConcentrationBrokenEventSchema, ConcentrationBrokenReasonSchema, } from './concentration.js';
4557
+ export type { ConcentrationStartedEvent, ConcentrationBrokenEvent, ConcentrationBrokenReason, } from './concentration.js';
4558
+ export { TriggerFiredEventSchema } from './triggers.js';
4559
+ export type { TriggerFiredEvent } from './triggers.js';
4560
+ export { ActionEconomyConsumedEventSchema, ActionEconomyKindSchema, ACTION_ECONOMY_KINDS, } from './action-economy.js';
4561
+ export type { ActionEconomyConsumedEvent, ActionEconomyKind } from './action-economy.js';
4562
+ export { CombatantMovedEventSchema, DashedEventSchema, DisengagedEventSchema, } from './movement.js';
4563
+ export type { CombatantMovedEvent, DashedEvent, DisengagedEvent, } from './movement.js';
4564
+ export { PartyCreatedEventSchema, PartyMembersChangedEventSchema, CurrencyAcquiredEventSchema, CurrencySpentEventSchema, ItemDepositedToPartyEventSchema, ItemWithdrawnFromPartyEventSchema, } from './party.js';
4565
+ export type { PartyCreatedEvent, PartyMembersChangedEvent, CurrencyAcquiredEvent, CurrencySpentEvent, ItemDepositedToPartyEvent, ItemWithdrawnFromPartyEvent, } from './party.js';
4566
+ export { SessionStartedEventSchema, SessionEndedEventSchema, JournalEntryAddedEventSchema, InGameTimeAdvancedEventSchema, } from './session.js';
4567
+ export type { SessionStartedEvent, SessionEndedEvent, JournalEntryAddedEvent, InGameTimeAdvancedEvent, } from './session.js';
4568
+ export { LocationCreatedEventSchema, DoorAddedEventSchema, DoorStateChangedEventSchema, CharacterLocationChangedEventSchema, } from './locations.js';
4569
+ export type { LocationCreatedEvent, DoorAddedEvent, DoorStateChangedEvent, CharacterLocationChangedEvent, } from './locations.js';
4570
+ export { QuestStartedEventSchema, ObjectiveProgressedEventSchema, ObjectiveCompletedEventSchema, ObjectiveFailedEventSchema, QuestCompletedEventSchema, QuestFailedEventSchema, QuestAbandonedEventSchema, QuestRewardClaimedEventSchema, XPAwardedEventSchema, MilestoneAwardedEventSchema, MilestoneKindSchema, MILESTONE_KINDS, } from './quests.js';
4571
+ export type { QuestStartedEvent, ObjectiveProgressedEvent, ObjectiveCompletedEvent, ObjectiveFailedEvent, QuestCompletedEvent, QuestFailedEvent, QuestAbandonedEvent, QuestRewardClaimedEvent, XPAwardedEvent, MilestoneAwardedEvent, MilestoneKind, } from './quests.js';
4572
+ export { SpellCounteredEventSchema, SpellDispelledEventSchema, ItemIdentifiedEventSchema, } from './reactive-spells.js';
4573
+ export type { SpellCounteredEvent, SpellDispelledEvent, ItemIdentifiedEvent, } from './reactive-spells.js';
4574
+ export { WeaponMasteryActivatedEventSchema } from './weapon-mastery.js';
4575
+ export type { WeaponMasteryActivatedEvent } from './weapon-mastery.js';
4576
+ export { MountedEventSchema, DismountedEventSchema, VehicleAcquiredEventSchema, VehicleBoardedEventSchema, VehicleDepartedEventSchema, VehicleDamagedEventSchema, VehicleRepairedEventSchema, } from './mounts-vehicles.js';
4577
+ export type { MountedEvent, DismountedEvent, VehicleAcquiredEvent, VehicleBoardedEvent, VehicleDepartedEvent, VehicleDamagedEvent, VehicleRepairedEvent, } from './mounts-vehicles.js';
4578
+ export { TravelLegCompletedEventSchema, NavigationCheckRolledEventSchema, ForagedForEventSchema, } from './travel.js';
4579
+ export type { TravelLegCompletedEvent, NavigationCheckRolledEvent, ForagedForEvent, } from './travel.js';
4580
+ export { AttitudeChangedEventSchema, MoraleCheckRolledEventSchema, MoraleBrokenEventSchema, AttitudeSchema, ATTITUDES, } from './npc.js';
4581
+ export type { AttitudeChangedEvent, MoraleCheckRolledEvent, MoraleBrokenEvent, Attitude, } from './npc.js';
4582
+ export { DowntimeActivityResolvedEventSchema, DowntimeKindSchema, DowntimeOutcomeSchema, DOWNTIME_KINDS, DOWNTIME_OUTCOMES, } from './downtime.js';
4583
+ export type { DowntimeActivityResolvedEvent, DowntimeKind, DowntimeOutcome, } from './downtime.js';
4584
+ export { ItemChargeConsumedEventSchema, ItemRechargedEventSchema, SentientItemConflictEventSchema, RechargeCadenceSchema, RECHARGE_CADENCES, } from './charges.js';
4585
+ export type { ItemChargeConsumedEvent, ItemRechargedEvent, SentientItemConflictEvent, RechargeCadence, } from './charges.js';
4586
+ export { BastionFoundedEventSchema, BastionFacilityAddedEventSchema, BastionHirelingAddedEventSchema, BastionTurnTakenEventSchema, BastionDamagedEventSchema, BastionLevelChangedEventSchema, BastionTurnOrderSchema, BASTION_TURN_ORDERS, } from './bastion.js';
4587
+ export type { BastionFoundedEvent, BastionFacilityAddedEvent, BastionHirelingAddedEvent, BastionTurnTakenEvent, BastionDamagedEvent, BastionLevelChangedEvent, BastionTurnOrder, } from './bastion.js';
4588
+ export { CampaignSettingsChangedEventSchema } from './settings.js';
4589
+ export type { CampaignSettingsChangedEvent } from './settings.js';
4590
+ export { CharacterResurrectedEventSchema, ResurrectionSpellSchema, RESURRECTION_SPELLS, } from './resurrection.js';
4591
+ export type { CharacterResurrectedEvent, ResurrectionSpell, } from './resurrection.js';
4592
+ export { PolymorphAppliedEventSchema, PolymorphRevertedEventSchema, SimulacrumCreatedEventSchema, WishGrantedEventSchema, PolymorphFormSchema, PolymorphKindSchema, POLYMORPH_KINDS, } from './transformations.js';
4593
+ export type { PolymorphAppliedEvent, PolymorphRevertedEvent, SimulacrumCreatedEvent, WishGrantedEvent, PolymorphForm, PolymorphKind, } from './transformations.js';
4594
+ //# sourceMappingURL=index.d.ts.map