@@ -503,6 +503,7 @@ jsonEncCmd_Login val =
503503type Cmd =
504504 Copy String
505505 | CreateCipher FullCipher
506+ | DeleteCipher FullCipher
506507 | GeneratePassword PasswordGeneratorConfig
507508 | Init
508509 | Login Cmd_Login
@@ -519,6 +520,7 @@ jsonDecCmd =
519520 let jsonDecDictCmd = Dict.fromList
520521 [ ("Copy", Json.Decode.lazy (\_ -> Json.Decode.map Copy (Json.Decode.string)))
521522 , ("CreateCipher", Json.Decode.lazy (\_ -> Json.Decode.map CreateCipher (jsonDecFullCipher)))
523+ , ("DeleteCipher", Json.Decode.lazy (\_ -> Json.Decode.map DeleteCipher (jsonDecFullCipher)))
522524 , ("GeneratePassword", Json.Decode.lazy (\_ -> Json.Decode.map GeneratePassword (jsonDecPasswordGeneratorConfig)))
523525 , ("Init", Json.Decode.lazy (\_ -> Json.Decode.succeed Init))
524526 , ("Login", Json.Decode.lazy (\_ -> Json.Decode.map Login (jsonDecCmd_Login)))
@@ -538,6 +540,7 @@ jsonEncCmd val =
538540 let keyval v = case v of
539541 Copy v1 -> ("Copy", encodeValue (Json.Encode.string v1))
540542 CreateCipher v1 -> ("CreateCipher", encodeValue (jsonEncFullCipher v1))
543+ DeleteCipher v1 -> ("DeleteCipher", encodeValue (jsonEncFullCipher v1))
541544 GeneratePassword v1 -> ("GeneratePassword", encodeValue (jsonEncPasswordGeneratorConfig v1))
542545 Init -> ("Init", encodeValue (Json.Encode.list identity []))
543546 Login v1 -> ("Login", encodeValue (jsonEncCmd_Login v1))
@@ -700,6 +703,7 @@ jsonEncSub_NeedsMasterPassword val =
700703type Sub =
701704 CaptchaDone
702705 | CipherChanged FullCipher
706+ | CipherDeleted FullCipher
703707 | Error String
704708 | GeneratedPassword String
705709 | LoadCipher FullCipher
@@ -717,6 +721,7 @@ jsonDecSub =
717721 let jsonDecDictSub = Dict.fromList
718722 [ ("CaptchaDone", Json.Decode.lazy (\_ -> Json.Decode.succeed CaptchaDone))
719723 , ("CipherChanged", Json.Decode.lazy (\_ -> Json.Decode.map CipherChanged (jsonDecFullCipher)))
724+ , ("CipherDeleted", Json.Decode.lazy (\_ -> Json.Decode.map CipherDeleted (jsonDecFullCipher)))
720725 , ("Error", Json.Decode.lazy (\_ -> Json.Decode.map Error (Json.Decode.string)))
721726 , ("GeneratedPassword", Json.Decode.lazy (\_ -> Json.Decode.map GeneratedPassword (Json.Decode.string)))
722727 , ("LoadCipher", Json.Decode.lazy (\_ -> Json.Decode.map LoadCipher (jsonDecFullCipher)))
@@ -737,6 +742,7 @@ jsonEncSub val =
737742 let keyval v = case v of
738743 CaptchaDone -> ("CaptchaDone", encodeValue (Json.Encode.list identity []))
739744 CipherChanged v1 -> ("CipherChanged", encodeValue (jsonEncFullCipher v1))
745+ CipherDeleted v1 -> ("CipherDeleted", encodeValue (jsonEncFullCipher v1))
740746 Error v1 -> ("Error", encodeValue (Json.Encode.string v1))
741747 GeneratedPassword v1 -> ("GeneratedPassword", encodeValue (Json.Encode.string v1))
742748 LoadCipher v1 -> ("LoadCipher", encodeValue (jsonEncFullCipher v1))