fix(types): avoid panic on unknown notification level

NotificationLevelValue.String indexed notificationLevelNames without a bounds check, so marshaling an out-of-range level panicked. Unknown levels now map to "disabled", matching how UnmarshalJSON treats unknown names.

Also drop the notificationLevelTypes map, which duplicated notificationLevelNames, and look names up with slices.Index instead.

Merge request reports

Loading
Loading