For convenience you might want add an alias to the docker compose command, the rest of the document will abbreviate it as dc, also docker compose run --rm will be abbreviated as dcr.
# in ~/.bash_aliases
alias dc="docker compose"
alias dcr="docker compose run --rm"Some types are managed using JSON Type Definitions and jtd-codegen.
dcr jtd jtd-codegen src/payload/session-state/session-state.jtd.json --typescript-out src/payload/session-state/