@wireapp/api-client 27.80.1 → 27.80.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.
@@ -23,4 +23,7 @@ export declare class MLSInvalidLeafNodeSignatureError extends ConversationError
23
23
  export declare class MLSInvalidLeafNodeIndexError extends ConversationError {
24
24
  constructor(message: string, label?: BackendErrorLabel, code?: StatusCode);
25
25
  }
26
+ export declare class MLSStaleMessageError extends ConversationError {
27
+ constructor(message: string, label?: BackendErrorLabel, code?: StatusCode);
28
+ }
26
29
  //# 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;AAED,qBAAa,qBAAsB,SAAQ,iBAAiB;gBAExD,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,iBAAs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AAE,iBAAqE,EAC5E,IAAI,GAAE,UAAmC;CAM5C;AAED,qBAAa,4BAA6B,SAAQ,iBAAiB;gBAE/D,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,iBAAiE,EACxE,IAAI,GAAE,UAAmC;CAM5C;AAED,qBAAa,oBAAqB,SAAQ,iBAAiB;gBAEvD,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,iBAAuD,EAC9D,IAAI,GAAE,UAAgC;CAMzC"}
@@ -18,7 +18,7 @@
18
18
  *
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.MLSInvalidLeafNodeIndexError = exports.MLSInvalidLeafNodeSignatureError = exports.ConversationFullError = exports.ConversationCodeNotFoundError = exports.ConversationLegalholdMissingConsentError = exports.ConversationOperationError = exports.ConversationIsUnknownError = exports.ConversationError = void 0;
21
+ exports.MLSStaleMessageError = 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) {
@@ -84,3 +84,11 @@ class MLSInvalidLeafNodeIndexError extends ConversationError {
84
84
  }
85
85
  }
86
86
  exports.MLSInvalidLeafNodeIndexError = MLSInvalidLeafNodeIndexError;
87
+ class MLSStaleMessageError extends ConversationError {
88
+ constructor(message, label = http_1.BackendErrorLabel.MLS_STALE_MESSAGE, code = http_1.StatusCode.CONFLICT) {
89
+ super(message, label, code);
90
+ Object.setPrototypeOf(this, new.target.prototype);
91
+ this.name = 'MLSStaleMessageError';
92
+ }
93
+ }
94
+ exports.MLSStaleMessageError = MLSStaleMessageError;
@@ -1 +1 @@
1
- {"version":3,"file":"BackendErrorMapper.d.ts","sourceRoot":"","sources":["../../src/http/BackendErrorMapper.ts"],"names":[],"mappings":"AAmB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C,CAAC;AAMhF,qBAAa,kBAAkB;IAC7B;;OAEG;IACH,OAAc,eAAe,EAAE,oBAAoB,CAwCjD;IAEF;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB,CA6CnC;IAEF,OAAO,CAAC,MAAM,CAAC,WAAW;WAWZ,GAAG,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY;CAqBrD"}
@@ -49,6 +49,7 @@ class BackendErrorMapper {
49
49
  [http_status_codes_1.StatusCodes.CONFLICT]: {
50
50
  [_1.BackendErrorLabel.INVITE_EMAIL_EXISTS]: e => new team_1.InviteEmailInUseError('The given e-mail address is in use.', e.label, e.code),
51
51
  [_1.BackendErrorLabel.KEY_EXISTS]: e => new auth_1.IdentifierExistsError('The given e-mail address is in use.', e.label, e.code),
52
+ [_1.BackendErrorLabel.MLS_STALE_MESSAGE]: e => new conversation_1.MLSStaleMessageError('The conversation epoch in a message is too old', e.label, e.code),
52
53
  },
53
54
  [http_status_codes_1.StatusCodes.NOT_FOUND]: {
54
55
  [_1.BackendErrorLabel.NOT_FOUND]: e => new team_1.ServiceNotFoundError('Service not found', e.label, e.code),
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.80.1",
74
- "gitHead": "1582e013bf633cb240440b285143ccfbb65ac43b"
73
+ "version": "27.80.2",
74
+ "gitHead": "984ba4b7f5e9b10a574e51da70167ff1a74d1988"
75
75
  }