@wireapp/api-client 27.77.1 → 27.77.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -65,6 +65,12 @@ class BackendErrorMapper {
|
|
|
65
65
|
"[path] 'cnv' invalid: Failed reading: Invalid UUID": e => new conversation_1.ConversationIsUnknownError('Conversation ID is unknown.', e.label, e.code),
|
|
66
66
|
"[path] 'usr' invalid: Failed reading: Invalid UUID": e => new user_1.UserIsUnknownError('User ID is unknown.', e.label, e.code),
|
|
67
67
|
},
|
|
68
|
+
[_1.BackendErrorLabel.MLS_INVALID_LEAF_NODE_SIGNATURE]: {
|
|
69
|
+
'Invalid leaf node signature': e => new conversation_1.MLSInvalidLeafNodeSignatureError('Invalid leaf node signature', e.label, e.code),
|
|
70
|
+
},
|
|
71
|
+
[_1.BackendErrorLabel.MLS_INVALID_LEAF_NODE_INDEX]: {
|
|
72
|
+
'Invalid leaf node index': e => new conversation_1.MLSInvalidLeafNodeIndexError('Invalid leaf node index', e.label, e.code),
|
|
73
|
+
},
|
|
68
74
|
},
|
|
69
75
|
[http_status_codes_1.StatusCodes.FORBIDDEN]: {
|
|
70
76
|
[_1.BackendErrorLabel.INVALID_CREDENTIALS]: {
|
|
@@ -75,12 +81,6 @@ class BackendErrorMapper {
|
|
|
75
81
|
'Token expired': e => new auth_1.TokenExpiredError('Authentication failed because the token is expired.', e.label, e.code),
|
|
76
82
|
'Missing cookie and token': e => new auth_1.MissingCookieAndTokenError('Authentication failed because both cookie and token are missing.', e.label, e.code),
|
|
77
83
|
},
|
|
78
|
-
[_1.BackendErrorLabel.MLS_INVALID_LEAF_NODE_SIGNATURE]: {
|
|
79
|
-
'Invalid leaf node signature': e => new conversation_1.MLSInvalidLeafNodeSignatureError('Invalid leaf node signature', e.label, e.code),
|
|
80
|
-
},
|
|
81
|
-
[_1.BackendErrorLabel.MLS_INVALID_LEAF_NODE_INDEX]: {
|
|
82
|
-
'Invalid leaf node index': e => new conversation_1.MLSInvalidLeafNodeIndexError('Invalid leaf node index', e.label, e.code),
|
|
83
|
-
},
|
|
84
84
|
[_1.BackendErrorLabel.INVALID_OPERATION]: {
|
|
85
85
|
'invalid operation for 1:1 conversations': e => new conversation_1.ConversationOperationError('Cannot leave 1:1 conversation.', e.label, e.code),
|
|
86
86
|
},
|
package/package.json
CHANGED