refactor(schema): isolate v1 contracts (#33769)

This commit is contained in:
Kit Langton
2026-06-25 17:26:47 +00:00
committed by GitHub
parent ecabab49a7
commit a267222080
9 changed files with 858 additions and 826 deletions
+1 -18
View File
@@ -1,18 +1 @@
export * as LegacyEvent from "./legacy-event"
import { Schema } from "effect"
import { define, inventory } from "./event"
import { SessionID } from "./session-id"
import { SessionV1 } from "./session-v1"
export const CommandExecuted = define({
type: "command.executed",
schema: {
name: Schema.String,
sessionID: SessionID,
arguments: Schema.String,
messageID: SessionV1.MessageID,
},
})
export const Definitions = inventory(CommandExecuted)
export * from "./v1/legacy-event"