{"allOf":[{"description":"Base type for all events in the system","allOf":[{"type":"object","description":"Base message type that all commands and events inherit from","required":["id"],"properties":{"id":{"type":"string","description":"Unique identifier for the message, typically a UUID","default":"UUID generated string","x-parser-schema-id":"<anonymous-schema-1>"}},"x-parser-schema-id":"Message"}],"x-parser-schema-id":"Event"},{"type":"object","description":"Event published by the invitation-acceptance workflow when linking the user to the organisation could not be completed","required":["userId","invitationId","failure"],"properties":{"userId":{"type":"string","description":"The identifier of the user for whom the link attempt failed","x-parser-schema-id":"<anonymous-schema-57>"},"invitationId":{"type":"string","description":"The identifier of the invitation being processed","x-parser-schema-id":"<anonymous-schema-58>"},"teamId":{"type":"string","description":"The identifier of the team the invitation was for; optional if the link failed before team lookup","x-parser-schema-id":"<anonymous-schema-59>"},"teamName":{"type":"string","description":"The name of the team the invitation was for; optional","x-parser-schema-id":"<anonymous-schema-60>"},"organisationName":{"type":"string","description":"The name of the organisation the invitation was for; optional","x-parser-schema-id":"<anonymous-schema-61>"},"failure":{"type":"object","description":"Represents a failure condition with error code and reason","required":["code","reason"],"properties":{"code":{"type":"string","description":"The error code identifying the type of failure","x-parser-schema-id":"<anonymous-schema-43>"},"reason":{"type":"string","description":"Human-readable description of the failure reason","x-parser-schema-id":"<anonymous-schema-44>"}},"x-parser-schema-id":"Failure"}},"x-parser-schema-id":"<anonymous-schema-56>"}],"x-parser-schema-id":"LinkUserToOrganisationFailed"}