@bct-app/game-model 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -10
- package/dist/index.d.ts +1172 -30
- package/dist/json-schema/ability-execution-timing.schema.json +8 -0
- package/dist/json-schema/ability.schema.json +2268 -0
- package/dist/json-schema/alignment-enum.schema.json +8 -0
- package/dist/json-schema/base-source.schema.json +64 -0
- package/dist/{schemas → json-schema}/character-basic-kind.schema.json +1 -1
- package/dist/{schemas → json-schema}/character-kind.schema.json +1 -1
- package/dist/json-schema/character.schema.json +123 -0
- package/dist/json-schema/chat-message-content.schema.json +65 -0
- package/dist/json-schema/chat-message-group.schema.json +37 -0
- package/dist/json-schema/chat-message-operation.schema.json +30 -0
- package/dist/json-schema/chat-message.schema.json +133 -0
- package/dist/json-schema/conversation.schema.json +252 -0
- package/dist/{schemas → json-schema}/effect.schema.json +375 -133
- package/dist/{schemas → json-schema}/game.schema.json +3 -16
- package/dist/json-schema/index.json +36 -0
- package/dist/{schemas → json-schema}/input.schema.json +108 -89
- package/dist/{schemas → json-schema}/message.schema.json +259 -35
- package/dist/json-schema/nomination.schema.json +29 -0
- package/dist/json-schema/operation.schema.json +28 -0
- package/dist/json-schema/player-display-format.schema.json +13 -0
- package/dist/json-schema/player-reminder.schema.json +19 -0
- package/dist/json-schema/player.schema.json +104 -0
- package/dist/json-schema/populated-character.schema.json +2344 -0
- package/dist/json-schema/populated-script.schema.json +2397 -0
- package/dist/json-schema/reminder.schema.json +24 -0
- package/dist/json-schema/room-create.schema.json +23 -0
- package/dist/json-schema/room-defaults.schema.json +72 -0
- package/dist/json-schema/room.schema.json +24 -0
- package/dist/json-schema/runtime-game.schema.json +162 -0
- package/dist/json-schema/script.schema.json +57 -0
- package/dist/json-schema/seat-side-enum.schema.json +9 -0
- package/dist/json-schema/special-message-kind.schema.json +7 -0
- package/dist/json-schema/target.schema.json +305 -0
- package/dist/json-schema/timeline.schema.json +87 -0
- package/dist/{schemas → json-schema}/view.schema.json +68 -42
- package/dist/zod.d.mts +4038 -0
- package/dist/zod.d.ts +4038 -0
- package/dist/zod.js +1129 -0
- package/dist/zod.mjs +1058 -0
- package/package.json +30 -15
- package/dist/schemas/index.json +0 -9
package/README.md
CHANGED
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
`@bct-app/game-model` uses Zod models as source of truth and generates:
|
|
4
4
|
|
|
5
|
-
- JSON Schema files in `dist/schemas`
|
|
6
5
|
- Pure declaration output in `dist/index.d.ts`
|
|
6
|
+
- Runtime Zod entry in `dist/zod.mjs` / `dist/zod.js`
|
|
7
|
+
- JSON Schema files in `dist/json-schema`
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
Exports:
|
|
9
10
|
|
|
10
|
-
- `@bct-app/game-model
|
|
11
|
-
- `@bct-app/game-model/schemas
|
|
12
|
-
- `@bct-app/game-model/
|
|
13
|
-
- `@bct-app/game-model/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
- `@bct-app/game-model` -> type-only entry (for `import type`)
|
|
12
|
+
- `@bct-app/game-model/zod` -> runtime Zod schemas
|
|
13
|
+
- `@bct-app/game-model/json-schema` -> schema index map
|
|
14
|
+
- `@bct-app/game-model/json-schema/*` -> individual JSON schema files
|
|
15
|
+
|
|
16
|
+
Usage:
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import type { TGame } from '@bct-app/game-model';
|
|
20
|
+
import { Game } from '@bct-app/game-model/zod';
|
|
21
|
+
```
|
|
18
22
|
|
|
19
23
|
## Build
|
|
20
24
|
|