@axinom/mosaic-video-messages
This library contains the TypeScript definitions of all events and commands that are exposed by the Mosaic Video Service.
All message Types are exposed from the root of the library. You can import them like this:
import {
VideoServiceMultiTenantMessagingSettings,
EnsureVideoExistsCommand,
} from "@axinom/mosaic-video-messages";
In addition to the TypeScript definitions, the library also contains the JSON
schema definitions of the messages. These are located in the
./dist/generated/schemas/payloads
sub-folders grouped by service. For example,
the JSON schema definition of the EnsureVideoExistsCommand
is located in
./dist/generated/schemas/payloads/video/commands/ensure-video-exists-command.json
.
This can be useful if you want to generate types or mappings for the programming
language you are working with or implement additional validations.
For more information on message formats, code generation, conventions, etc. please refer to Messaging Usage.
For the full list of exported types, please refer to Typedocs.