@wireapp/api-client 27.76.1 → 27.77.0

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.
@@ -17,4 +17,10 @@ export declare class ConversationCodeNotFoundError extends ConversationError {
17
17
  export declare class ConversationFullError extends ConversationError {
18
18
  constructor(message: string, label?: BackendErrorLabel, code?: StatusCode);
19
19
  }
20
+ export declare class MLSInvalidLeafNodeSignatureError extends ConversationError {
21
+ constructor(message: string, label?: BackendErrorLabel, code?: StatusCode);
22
+ }
23
+ export declare class MLSInvalidLeafNodeIndexError extends ConversationError {
24
+ constructor(message: string, label?: BackendErrorLabel, code?: StatusCode);
25
+ }
20
26
  //# sourceMappingURL=ConversationError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConversationError.d.ts","sourceRoot":"","sources":["../../src/conversation/ConversationError.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAErE,qBAAa,iBAAkB,SAAQ,YAAY;gBACrC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,UAAU;CAKxE;AAED,qBAAa,0BAA2B,SAAQ,iBAAiB;gBAE7D,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,iBAAkD,EACzD,IAAI,GAAE,UAAmC;CAM5C;AAED,qBAAa,0BAA2B,SAAQ,iBAAiB;gBAE7D,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,iBAAuD,EAC9D,IAAI,GAAE,UAAiC;CAM1C;AAED,qBAAa,wCAAyC,SAAQ,iBAAiB;gBAE3E,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,iBAAgE,EACvE,IAAI,GAAE,UAA2C;CAMpD;AAED,qBAAa,6BAA8B,SAAQ,iBAAiB;gBAEhE,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,iBAA0D,EACjE,IAAI,GAAE,UAAiC;CAM1C;A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;CAM5C"}
@@ -18,7 +18,7 @@
18
18
  *
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.ConversationFullError = exports.ConversationCodeNotFoundError = exports.ConversationLegalholdMissingConsentError = exports.ConversationOperationError = exports.ConversationIsUnknownError = exports.ConversationError = void 0;
21
+ exports.MLSInvalidLeafNodeIndexError = exports.MLSInvalidLeafNodeSignatureError = exports.ConversationFullError = exports.ConversationCodeNotFoundError = exports.ConversationLegalholdMissingConsentError = exports.ConversationOperationError = exports.ConversationIsUnknownError = exports.ConversationError = void 0;
22
22
  const http_1 = require("../http/");
23
23
  class ConversationError extends http_1.BackendError {
24
24
  constructor(message, label, code) {
@@ -68,3 +68,19 @@ class ConversationFullError extends ConversationError {
68
68
  }
69
69
  }
70
70
  exports.ConversationFullError = ConversationFullError;
71
+ class MLSInvalidLeafNodeSignatureError extends ConversationError {
72
+ constructor(message, label = http_1.BackendErrorLabel.MLS_INVALID_LEAF_NODE_SIGNATURE, code = http_1.StatusCode.BAD_REQUEST) {
73
+ super(message, label, code);
74
+ Object.setPrototypeOf(this, new.target.prototype);
75
+ this.name = 'MLSInvalidLeafNodeSignatureError';
76
+ }
77
+ }
78
+ exports.MLSInvalidLeafNodeSignatureError = MLSInvalidLeafNodeSignatureError;
79
+ class MLSInvalidLeafNodeIndexError extends ConversationError {
80
+ constructor(message, label = http_1.BackendErrorLabel.MLS_INVALID_LEAF_NODE_INDEX, code = http_1.StatusCode.BAD_REQUEST) {
81
+ super(message, label, code);
82
+ Object.setPrototypeOf(this, new.target.prototype);
83
+ this.name = 'MLSInvalidLeafNodeIndexError';
84
+ }
85
+ }
86
+ exports.MLSInvalidLeafNodeIndexError = MLSInvalidLeafNodeIndexError;
@@ -1 +1 @@
1
- {"version":3,"file":"BackendErrorMapper.d.ts","sourceRoot":"","sources":["../../src/http/BackendErrorMapper.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,WAAW,IAAI,UAAU,EAAC,MAAM,mBAAmB,C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c,eAAe,EAAE,oBAAoB,CAuCjD;IAEF;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB,CA6CnC;IAEF,OAAO,CAAC,MAAM,CAAC,WAAW;WAWZ,GAAG,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY;CAqBrD"}
@@ -75,6 +75,12 @@ class BackendErrorMapper {
75
75
  'Token expired': e => new auth_1.TokenExpiredError('Authentication failed because the token is expired.', e.label, e.code),
76
76
  'Missing cookie and token': e => new auth_1.MissingCookieAndTokenError('Authentication failed because both cookie and token are missing.', e.label, e.code),
77
77
  },
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
+ },
78
84
  [_1.BackendErrorLabel.INVALID_OPERATION]: {
79
85
  'invalid operation for 1:1 conversations': e => new conversation_1.ConversationOperationError('Cannot leave 1:1 conversation.', e.label, e.code),
80
86
  },
package/package.json CHANGED
@@ -70,6 +70,6 @@
70
70
  "watch": "webpack serve --config webpack.browser.js",
71
71
  "prepare": "yarn dist"
72
72
  },
73
- "version": "27.76.1",
74
- "gitHead": "9088400e5401ca1246dd4fc981663135276805c3"
73
+ "version": "27.77.0",
74
+ "gitHead": "90f4138a890f47d5527691a1e360df5157c2a8e6"
75
75
  }