@wireapp/api-client 27.1.1 → 27.2.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.
Files changed (48) hide show
  1. package/lib/auth/AuthAPI.d.ts +1 -9
  2. package/lib/auth/AuthAPI.d.ts.map +1 -1
  3. package/lib/auth/AuthAPI.js +0 -37
  4. package/lib/auth/AuthenticationError.d.ts +0 -6
  5. package/lib/auth/AuthenticationError.d.ts.map +1 -1
  6. package/lib/auth/AuthenticationError.js +1 -17
  7. package/lib/auth/LoginData.d.ts +0 -1
  8. package/lib/auth/LoginData.d.ts.map +1 -1
  9. package/lib/auth/RegisterData.d.ts +0 -3
  10. package/lib/auth/RegisterData.d.ts.map +1 -1
  11. package/lib/auth/index.d.ts +0 -1
  12. package/lib/auth/index.d.ts.map +1 -1
  13. package/lib/auth/index.js +0 -1
  14. package/lib/http/BackendErrorLabel.d.ts +0 -5
  15. package/lib/http/BackendErrorLabel.d.ts.map +1 -1
  16. package/lib/http/BackendErrorLabel.js +0 -5
  17. package/lib/http/BackendErrorMapper.d.ts.map +1 -1
  18. package/lib/http/BackendErrorMapper.js +1 -1
  19. package/lib/self/Self.d.ts +0 -1
  20. package/lib/self/Self.d.ts.map +1 -1
  21. package/lib/self/SelfAPI.d.ts +0 -14
  22. package/lib/self/SelfAPI.d.ts.map +1 -1
  23. package/lib/self/SelfAPI.js +0 -25
  24. package/lib/team/invitation/InvitationError.d.ts +0 -6
  25. package/lib/team/invitation/InvitationError.d.ts.map +1 -1
  26. package/lib/team/invitation/InvitationError.js +1 -17
  27. package/lib/team/invitation/NewTeamInvitation.d.ts +0 -1
  28. package/lib/team/invitation/NewTeamInvitation.d.ts.map +1 -1
  29. package/lib/team/invitation/TeamInvitation.d.ts +0 -1
  30. package/lib/team/invitation/TeamInvitation.d.ts.map +1 -1
  31. package/lib/team/invitation/TeamInvitationAPI.d.ts.map +1 -1
  32. package/lib/team/invitation/TeamInvitationAPI.js +0 -6
  33. package/lib/user/Activate.d.ts +0 -2
  34. package/lib/user/Activate.d.ts.map +1 -1
  35. package/lib/user/ActivationResponse.d.ts +0 -1
  36. package/lib/user/ActivationResponse.d.ts.map +1 -1
  37. package/lib/user/CompletePasswordReset.d.ts +0 -1
  38. package/lib/user/CompletePasswordReset.d.ts.map +1 -1
  39. package/lib/user/NewPasswordReset.d.ts +0 -1
  40. package/lib/user/NewPasswordReset.d.ts.map +1 -1
  41. package/lib/user/SendActivationCode.d.ts +0 -4
  42. package/lib/user/SendActivationCode.d.ts.map +1 -1
  43. package/lib/user/UserAPI.d.ts +3 -3
  44. package/lib/user/UserAPI.js +3 -3
  45. package/package.json +2 -2
  46. package/lib/auth/SendLoginCode.d.ts +0 -6
  47. package/lib/auth/SendLoginCode.d.ts.map +0 -1
  48. package/lib/auth/SendLoginCode.js +0 -20
@@ -1,8 +1,7 @@
1
1
  import { AxiosResponse } from 'axios';
2
2
  import { CookieList } from './CookieList';
3
- import { LoginCodeResponse } from './LoginCodeResponse';
4
3
  import { RegisterData } from './RegisterData';
5
- import { AccessTokenData, LoginData, SendLoginCode } from '../auth/';
4
+ import { AccessTokenData, LoginData } from '../auth/';
6
5
  import { HttpClient } from '../http/';
7
6
  import { User } from '../user/';
8
7
  export declare class AuthAPI {
@@ -24,13 +23,6 @@ export declare class AuthAPI {
24
23
  getCookies(labels?: string[]): Promise<AxiosResponse<CookieList>>;
25
24
  postCookiesRemove(password: string, labels?: string[], ids?: string[]): Promise<void>;
26
25
  postLogin(loginData: LoginData): Promise<AccessTokenData>;
27
- /**
28
- * This operation generates and sends a login code. A login code can be used only once and times out after 10
29
- * minutes. Only one login code may be pending at a time.
30
- * @param loginRequest Phone number to use for login SMS or voice call.
31
- * @see https://staging-nginz-https.zinfra.io/swagger-ui/tab.html#!/sendLoginCode
32
- */
33
- postLoginSend(loginRequest: SendLoginCode): Promise<LoginCodeResponse>;
34
26
  postLogout(): Promise<void>;
35
27
  postRegister(userAccount: RegisterData): Promise<User>;
36
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: true });
21
21
  exports.AuthAPI = void 0;
22
- const AuthenticationError_1 = require("./AuthenticationError");
23
22
  const client_1 = require("../client/");
24
- const http_1 = require("../http/");
25
23
  const cookie_1 = require("../shims/node/cookie");
26
24
  class AuthAPI {
27
25
  client;
@@ -85,41 +83,6 @@ class AuthAPI {
85
83
  const response = await this.client.sendJSON(config);
86
84
  return (0, cookie_1.retrieveCookie)(response);
87
85
  }
88
- /**
89
- * This operation generates and sends a login code. A login code can be used only once and times out after 10
90
- * minutes. Only one login code may be pending at a time.
91
- * @param loginRequest Phone number to use for login SMS or voice call.
92
- * @see https://staging-nginz-https.zinfra.io/swagger-ui/tab.html#!/sendLoginCode
93
- */
94
- async postLoginSend(loginRequest) {
95
- // https://github.com/zinfra/backend-issues/issues/974
96
- const defaultLoginRequest = { force: false };
97
- const config = {
98
- data: { ...defaultLoginRequest, ...loginRequest },
99
- method: 'post',
100
- url: `${AuthAPI.URL.LOGIN}/${AuthAPI.URL.SEND}`,
101
- };
102
- try {
103
- const response = await this.client.sendJSON(config);
104
- return response.data;
105
- }
106
- catch (error) {
107
- const backendError = error;
108
- switch (backendError.label) {
109
- case http_1.BackendErrorLabel.BAD_REQUEST: {
110
- throw new AuthenticationError_1.InvalidPhoneNumberError(backendError.message);
111
- }
112
- case http_1.BackendErrorLabel.INVALID_PHONE:
113
- case http_1.BackendErrorLabel.UNAUTHORIZED: {
114
- throw new AuthenticationError_1.ForbiddenPhoneNumberError(backendError.message);
115
- }
116
- case http_1.BackendErrorLabel.PASSWORD_EXISTS: {
117
- throw new AuthenticationError_1.PasswordExistsError(backendError.message);
118
- }
119
- }
120
- throw error;
121
- }
122
- }
123
86
  async postLogout() {
124
87
  const config = {
125
88
  method: 'post',
@@ -23,12 +23,6 @@ export declare class InvalidTokenError extends AuthenticationError {
23
23
  export declare class MissingCookieError extends AuthenticationError {
24
24
  constructor(message: string, label?: BackendErrorLabel, code?: StatusCode);
25
25
  }
26
- export declare class InvalidPhoneNumberError extends AuthenticationError {
27
- constructor(message: string, label?: SyntheticErrorLabel, code?: StatusCode);
28
- }
29
- export declare class ForbiddenPhoneNumberError extends AuthenticationError {
30
- constructor(message: string, label?: SyntheticErrorLabel, code?: StatusCode);
31
- }
32
26
  export declare class PasswordExistsError extends AuthenticationError {
33
27
  constructor(message: string, label?: BackendErrorLabel, code?: StatusCode);
34
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AuthenticationError.d.ts","sourceRoot":"","sources":["../../src/auth/AuthenticationError.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAE1F,qBAAa,mBAAoB,SAAQ,YAAY;gBACvC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,GAAG,mBAAmB,EAAE,IAAI,EAAE,UAAU;CAK9F;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;gBAChD,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAiC,EAAE,IAAI,aAA+B;CAKzG;AAED,qBAAa,uBAAwB,SAAQ,mBAAmB;gBAClD,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAwC,EAAE,IAAI,aAAuB;CAKxG;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;gBAChD,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAsC,EAAE,IAAI,aAAuB;CAKtG;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;gBAChD,OAAO,EAAE,MAAM,EAAE,KAAK,oBAA+B,EAAE,IAAI,aAAsB;CAK9F;AAED,qBAAa,iBAAkB,SAAQ,mBAAmB;gBAC5C,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAwC,EAAE,IAAI,aAAuB;CAKxG;AAED,qBAAa,iBAAkB,SAAQ,mBAAmB;gBAC5C,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAwC,EAAE,IAAI,aAAuB;CAKxG;AAED,qBAAa,kBAAmB,SAAQ,mBAAmB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,IAAI,aAAuB;CAKxG;AAED,qBAAa,iBAAkB,SAAQ,mBAAmB;gBAC5C,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAwC,EAAE,IAAI,aAAuB;CAKxG;AAED,qBAAa,kBAAmB,SAAQ,mBAAmB;gBAC7C,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAwC,EAAE,IAAI,aAAuB;CAKxG;AAED,qBAAa,mBAAoB,SAAQ,mBAAmB;gBAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAoC,EAAE,IAAI,aAA0B;CAKvG"}
@@ -18,7 +18,7 @@
18
18
  *
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.PasswordExistsError = exports.ForbiddenPhoneNumberError = exports.InvalidPhoneNumberError = exports.MissingCookieError = exports.InvalidTokenError = exports.TokenExpiredError = exports.IdentifierExistsError = exports.SuspendedAccountError = exports.InvalidCredentialsError = exports.LoginTooFrequentError = exports.AuthenticationError = void 0;
21
+ exports.PasswordExistsError = exports.MissingCookieError = exports.InvalidTokenError = exports.TokenExpiredError = exports.IdentifierExistsError = exports.SuspendedAccountError = exports.InvalidCredentialsError = exports.LoginTooFrequentError = exports.AuthenticationError = void 0;
22
22
  const http_1 = require("../http/");
23
23
  class AuthenticationError extends http_1.BackendError {
24
24
  constructor(message, label, code) {
@@ -84,22 +84,6 @@ class MissingCookieError extends AuthenticationError {
84
84
  }
85
85
  }
86
86
  exports.MissingCookieError = MissingCookieError;
87
- class InvalidPhoneNumberError extends AuthenticationError {
88
- constructor(message, label = http_1.SyntheticErrorLabel.INVALID_PHONE_NUMBER, code = http_1.StatusCode.BAD_REQUEST) {
89
- super(message, label, code);
90
- Object.setPrototypeOf(this, new.target.prototype);
91
- this.name = 'InvalidPhoneNumberError';
92
- }
93
- }
94
- exports.InvalidPhoneNumberError = InvalidPhoneNumberError;
95
- class ForbiddenPhoneNumberError extends AuthenticationError {
96
- constructor(message, label = http_1.SyntheticErrorLabel.FORBIDDEN_PHONE_NUMBER, code = http_1.StatusCode.FORBIDDEN) {
97
- super(message, label, code);
98
- Object.setPrototypeOf(this, new.target.prototype);
99
- this.name = 'ForbiddenPhoneNumberError';
100
- }
101
- }
102
- exports.ForbiddenPhoneNumberError = ForbiddenPhoneNumberError;
103
87
  class PasswordExistsError extends AuthenticationError {
104
88
  constructor(message, label = http_1.BackendErrorLabel.PASSWORD_EXISTS, code = http_1.StatusCode.UNAUTHORIZED) {
105
89
  super(message, label, code);
@@ -5,7 +5,6 @@ export interface LoginData {
5
5
  email?: string;
6
6
  handle?: string;
7
7
  password?: number | string;
8
- phone?: string;
9
8
  verificationCode?: string;
10
9
  }
11
10
  //# sourceMappingURL=LoginData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoginData.d.ts","sourceRoot":"","sources":["../../src/auth/LoginData.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
1
+ {"version":3,"file":"LoginData.d.ts","sourceRoot":"","sources":["../../src/auth/LoginData.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
@@ -10,9 +10,6 @@ export type RegisterData = Pick<User, 'accent_id' | 'assets' | 'email' | 'name'>
10
10
  label?: string;
11
11
  locale?: string;
12
12
  password?: string;
13
- phone?: string;
14
- /** Phone activation code */
15
- phone_code?: string;
16
13
  /** Data for new team account creation */
17
14
  team?: TeamData;
18
15
  /** Team invitation code for joining an existing team. Mutually exclusive with `invitation_code` */
@@ -1 +1 @@
1
- {"version":3,"file":"RegisterData.d.ts","sourceRoot":"","sources":["../../src/auth/RegisterData.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAC,IAAI,EAAC,MAAM,UAAU,CAAC;AAE9B,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,EAAE,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC,GAAG;IACjF,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,mGAAmG;IACnG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"RegisterData.d.ts","sourceRoot":"","sources":["../../src/auth/RegisterData.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAC,IAAI,EAAC,MAAM,UAAU,CAAC;AAE9B,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,EAAE,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC,GAAG;IACjF,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,mGAAmG;IACnG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -14,5 +14,4 @@ export * from './LoginData';
14
14
  export * from './PreKey';
15
15
  export * from './PreKeyBundle';
16
16
  export * from './RegisterData';
17
- export * from './SendLoginCode';
18
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,qBAAqB,iBAAiB,CAAC;AACpD,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAEhD,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,qBAAqB,iBAAiB,CAAC;AACpD,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAEhD,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
package/lib/auth/index.js CHANGED
@@ -49,4 +49,3 @@ __exportStar(require("./LoginData"), exports);
49
49
  __exportStar(require("./PreKey"), exports);
50
50
  __exportStar(require("./PreKeyBundle"), exports);
51
51
  __exportStar(require("./RegisterData"), exports);
52
- __exportStar(require("./SendLoginCode"), exports);
@@ -18,14 +18,11 @@ export declare enum BackendErrorLabel {
18
18
  QUEUE_FULL = "queue-full",
19
19
  UNAUTHORIZED = "unauthorized",
20
20
  BLACKLISTED_EMAIL = "blacklisted-email",
21
- BLACKLISTED_PHONE = "blacklisted-phone",
22
21
  DOMAIN_BLOCKED_FOR_REGISTRATION = "domain-blocked-for-registration",
23
22
  INVALID_CODE = "invalid-code",
24
23
  INVALID_CREDENTIALS = "invalid-credentials",
25
24
  INVALID_EMAIL = "invalid-email",
26
25
  INVALID_INVITATION_CODE = "invalid-invitation-code",
27
- INVALID_PHONE = "invalid-phone",
28
- PHONE_EXISTS = "phone-exists",
29
26
  KEY_EXISTS = "key-exists",
30
27
  MISSING_AUTH = "missing-auth",
31
28
  PASSWORD_EXISTS = "password-exists",
@@ -91,9 +88,7 @@ export declare enum BackendErrorLabel {
91
88
  }
92
89
  export declare enum SyntheticErrorLabel {
93
90
  ALREADY_INVITED = "already-invited",
94
- FORBIDDEN_PHONE_NUMBER = "forbidden-phone-number",
95
91
  HANDLE_TOO_SHORT = "handle-too-short",
96
- INVALID_PHONE_NUMBER = "invalid-phone-number",
97
92
  REQUEST_CANCELLED = "request-cancelled",
98
93
  SERVICE_NOT_FOUND = "service-not-found",
99
94
  SSO_GENERIC_ERROR = "generic-sso-error",
@@ -1 +1 @@
1
- {"version":3,"file":"BackendErrorLabel.d.ts","sourceRoot":"","sources":["../../src/http/BackendErrorLabel.ts"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,wBAAwB,6BAA6B;IACrD,cAAc,mBAAmB;IACjC,iBAAiB,eAAe;IAChC,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;IAC3C,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAG7B,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;IACvC,+BAA+B,oCAAoC;IACnE,YAAY,iBAAiB;IAC7B,mBAAmB,wBAAwB;IAC3C,aAAa,kBAAkB;IAC/B,uBAAuB,4BAA4B;IACnD,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,eAAe,oBAAoB;IACnC,kBAAkB,uBAAuB;IACzC,aAAa,kBAAkB;IAC/B,iBAAiB,cAAc;IAC/B,4BAA4B,iCAAiC;IAC7D,0BAA0B,+BAA+B;IACzD,8BAA8B,mCAAmC;IAGjE,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,yBAAyB,qCAAqC;IAG9D,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,oBAAoB,yBAAyB;IAC7C,aAAa,kBAAkB;IAC/B,6B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BAAiB,sBAAsB;IACvC,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,qBAAqB,0BAA0B;IAC/C,mBAAmB,iBAAiB;IACpC,kBAAkB;IAClB,cAAc,mBAAmB;IACjC,kBAAkB;IAClB,YAAY,iBAAiB;IAC7B,kBAAkB;IAClB,gBAAgB,qBAAqB;IACrC,kBAAkB;IAClB,wBAAwB,6BAA6B;IACrD,0BAA0B,+BAA+B;IACzD,uBAAuB,yBAAyB;IAChD,iBAAiB,sBAAsB;IACvC,iBAAiB,cAAc;IAG/B,cAAc,mBAAmB;IACjC,wBAAwB,+BAA+B;IAGvD,YAAY,iBAAiB;IAG7B,wBAAwB,6BAA6B;IAGrD,0BAA0B,8BAA8B;IACxD,8BAA8B,0BAA0B;IAGxD,gBAAgB,qBAAqB;IACrC,iBAAiB,kBAAkB;IAGnC,sBAAsB,sBAAsB;IAC5C,wBAAwB,6BAA6B;IACrD,4BAA4B,yBAAyB;IACrD,uBAAuB,4BAA4B;IACnD,oBAAoB,yBAAyB;IAG7C,aAAa,cAAc;IAC3B,4BAA4B,yBAAyB;IACrD,4BAA4B,yBAAyB;IACrD,oBAAoB,iBAAiB;IACrC,oBAAoB,iBAAiB;IACrC,oBAAoB,yBAAyB;IAC7C,oBAAoB,kCAAkC;CACvD;AAED,oBAAY,mBAAmB;IAC7B,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;IACvC,eAAe,sBAAsB;IACrC,wBAAwB,6BAA6B;IACrD,oBAAoB,yBAAyB;IAC7C,yBAAyB,8BAA8B;IACvD,OAAO,kBAAkB;IACzB,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;CAC1C"}
@@ -41,14 +41,11 @@ var BackendErrorLabel;
41
41
  BackendErrorLabel["UNAUTHORIZED"] = "unauthorized";
42
42
  // Authentication errors
43
43
  BackendErrorLabel["BLACKLISTED_EMAIL"] = "blacklisted-email";
44
- BackendErrorLabel["BLACKLISTED_PHONE"] = "blacklisted-phone";
45
44
  BackendErrorLabel["DOMAIN_BLOCKED_FOR_REGISTRATION"] = "domain-blocked-for-registration";
46
45
  BackendErrorLabel["INVALID_CODE"] = "invalid-code";
47
46
  BackendErrorLabel["INVALID_CREDENTIALS"] = "invalid-credentials";
48
47
  BackendErrorLabel["INVALID_EMAIL"] = "invalid-email";
49
48
  BackendErrorLabel["INVALID_INVITATION_CODE"] = "invalid-invitation-code";
50
- BackendErrorLabel["INVALID_PHONE"] = "invalid-phone";
51
- BackendErrorLabel["PHONE_EXISTS"] = "phone-exists";
52
49
  BackendErrorLabel["KEY_EXISTS"] = "key-exists";
53
50
  BackendErrorLabel["MISSING_AUTH"] = "missing-auth";
54
51
  BackendErrorLabel["PASSWORD_EXISTS"] = "password-exists";
@@ -126,9 +123,7 @@ var BackendErrorLabel;
126
123
  var SyntheticErrorLabel;
127
124
  (function (SyntheticErrorLabel) {
128
125
  SyntheticErrorLabel["ALREADY_INVITED"] = "already-invited";
129
- SyntheticErrorLabel["FORBIDDEN_PHONE_NUMBER"] = "forbidden-phone-number";
130
126
  SyntheticErrorLabel["HANDLE_TOO_SHORT"] = "handle-too-short";
131
- SyntheticErrorLabel["INVALID_PHONE_NUMBER"] = "invalid-phone-number";
132
127
  SyntheticErrorLabel["REQUEST_CANCELLED"] = "request-cancelled";
133
128
  SyntheticErrorLabel["SERVICE_NOT_FOUND"] = "service-not-found";
134
129
  SyntheticErrorLabel["SSO_GENERIC_ERROR"] = "generic-sso-error";
@@ -1 +1 @@
1
- {"version":3,"file":"BackendErrorMapper.d.ts","sourceRoot":"","sources":["../../src/http/BackendErrorMapper.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAC,YAAY,EAAgC,MAAM,IAAI,CAAC;AAE/D,qBAAa,kBAAkB;IAC7B,WAAkB,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAsDvF;WAEa,GAAG,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY;CAYrD"}
1
+ {"version":3,"file":"BackendErrorMapper.d.ts","sourceRoot":"","sources":["../../src/http/BackendErrorMapper.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAC,YAAY,EAAgC,MAAM,IAAI,CAAC;AAE/D,qBAAa,kBAAkB;IAC7B,WAAkB,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAoDvF;WAEa,GAAG,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY;CAYrD"}
@@ -64,7 +64,7 @@ class BackendErrorMapper {
64
64
  'The given e-mail address is in use.': new team_1.InviteEmailInUseError('The given e-mail address is in use.'),
65
65
  },
66
66
  [_1.BackendErrorLabel.KEY_EXISTS]: {
67
- 'The given e-mail address or phone number is in use.': new auth_1.IdentifierExistsError('The given e-mail address or phone number is in use.'),
67
+ 'The given e-mail address is in use.': new auth_1.IdentifierExistsError('The given e-mail address is in use.'),
68
68
  },
69
69
  },
70
70
  [_1.StatusCode.NOT_FOUND]: {
@@ -7,7 +7,6 @@ export interface Self extends User {
7
7
  * then the profile can't be edited via normal means.
8
8
  */
9
9
  managed_by?: ManagedSource;
10
- phone?: string;
11
10
  sso_id?: SSOSignature;
12
11
  }
13
12
  //# sourceMappingURL=Self.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Self.d.ts","sourceRoot":"","sources":["../../src/self/Self.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,aAAa,EAAE,IAAI,EAAC,MAAM,UAAU,CAAC;AAE7C,MAAM,WAAW,IAAK,SAAQ,IAAI;IAChC,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB"}
1
+ {"version":3,"file":"Self.d.ts","sourceRoot":"","sources":["../../src/self/Self.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,aAAa,EAAE,IAAI,EAAC,MAAM,UAAU,CAAC;AAE7C,MAAM,WAAW,IAAK,SAAQ,IAAI;IAChC,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB"}
@@ -13,7 +13,6 @@ export declare class SelfAPI {
13
13
  LOCALE: string;
14
14
  NAME: string;
15
15
  PASSWORD: string;
16
- PHONE: string;
17
16
  SUPPORTED_PROTOCOLS: string;
18
17
  SELF: string;
19
18
  };
@@ -22,11 +21,6 @@ export declare class SelfAPI {
22
21
  * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/removeEmail
23
22
  */
24
23
  deleteEmail(): Promise<void>;
25
- /**
26
- * Remove your phone number.
27
- * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/removePhone
28
- */
29
- deletePhone(): Promise<void>;
30
24
  /**
31
25
  * Initiate account deletion.
32
26
  * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/deleteUser
@@ -74,14 +68,6 @@ export declare class SelfAPI {
74
68
  * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/changePassword
75
69
  */
76
70
  putPassword(passwordData: ChangePassword): Promise<void>;
77
- /**
78
- * Change your phone number.
79
- * @param phoneData The new phone number (E.164 format)
80
- * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/changePhone
81
- */
82
- putPhone(phoneData: {
83
- phone: string;
84
- }): Promise<void>;
85
71
  /**
86
72
  * Update your profile.
87
73
  * @param profileData The new profile data
@@ -1 +1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AAG,OAAO,CAAC,IAAI,CAAC;IAUxD;;;OAGG;IACU,OAAO,CAAC,WAAW,GAAE,UAAU,EAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAanE;;;;OAIG;IACU,SAAS,CAAC,UAAU,EAAE;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAUnE;;;;OAIG;IACU,SAAS,CAAC,UAAU,EAAE;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAUnE;;;;OAIG;IACU,WAAW,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAUrE;;;;OAIG;IACU,OAAO,CAAC,WAAW,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAU5D;;;OAGG;IACU,qBAAqB,CAAC,kBAAkB,EAAE,oBAAoB,EAAE;IAU7E;;OAEG;IACI,YAAY,IAAI,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;CAQpD"}
@@ -31,7 +31,6 @@ class SelfAPI {
31
31
  LOCALE: 'locale',
32
32
  NAME: 'name',
33
33
  PASSWORD: 'password',
34
- PHONE: 'phone',
35
34
  SUPPORTED_PROTOCOLS: 'supported-protocols',
36
35
  SELF: '/self',
37
36
  };
@@ -46,17 +45,6 @@ class SelfAPI {
46
45
  };
47
46
  await this.client.sendJSON(config);
48
47
  }
49
- /**
50
- * Remove your phone number.
51
- * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/removePhone
52
- */
53
- async deletePhone() {
54
- const config = {
55
- method: 'delete',
56
- url: `${SelfAPI.URL.SELF}/${SelfAPI.URL.PHONE}`,
57
- };
58
- await this.client.sendJSON(config);
59
- }
60
48
  /**
61
49
  * Initiate account deletion.
62
50
  * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/deleteUser
@@ -160,19 +148,6 @@ class SelfAPI {
160
148
  };
161
149
  await this.client.sendJSON(config);
162
150
  }
163
- /**
164
- * Change your phone number.
165
- * @param phoneData The new phone number (E.164 format)
166
- * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/changePhone
167
- */
168
- async putPhone(phoneData) {
169
- const config = {
170
- data: phoneData,
171
- method: 'put',
172
- url: `${SelfAPI.URL.SELF}/${SelfAPI.URL.PHONE}`,
173
- };
174
- await this.client.sendJSON(config);
175
- }
176
151
  /**
177
152
  * Update your profile.
178
153
  * @param profileData The new profile data
@@ -5,15 +5,9 @@ export declare class InvitationError extends BackendError {
5
5
  export declare class InvitationInvalidEmailError extends InvitationError {
6
6
  constructor(message: string, label?: BackendErrorLabel, code?: StatusCode);
7
7
  }
8
- export declare class InvitationInvalidPhoneError extends InvitationError {
9
- constructor(message: string, label?: BackendErrorLabel, code?: StatusCode);
10
- }
11
8
  export declare class InvitationEmailExistsError extends InvitationError {
12
9
  constructor(message: string, label?: BackendErrorLabel, code?: StatusCode);
13
10
  }
14
- export declare class InvitationPhoneExistsError extends InvitationError {
15
- constructor(message: string, label?: BackendErrorLabel, code?: StatusCode);
16
- }
17
11
  export declare class InvitationNotFoundError extends InvitationError {
18
12
  constructor(message: string, label?: SyntheticErrorLabel, code?: StatusCode);
19
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InvitationError.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/InvitationError.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,mBAAmB,EAAC,MAAM,YAAY,CAAC;AAE5F,qBAAa,eAAgB,SAAQ,YAAY;gBACnC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,GAAG,mBAAmB,EAAE,IAAI,EAAE,UAAU;CAK9F;AAED,qBAAa,2BAA4B,SAAQ,eAAe;gBAClD,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAkC,EAAE,IAAI,aAAyB;CAKpG;AAED,qBAAa,2BAA4B,SAAQ,eAAe;gBAClD,OAAO,EAAE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 @@
18
18
  *
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.InvitationMultipleError = exports.InvitationNotFoundError = exports.InvitationPhoneExistsError = exports.InvitationEmailExistsError = exports.InvitationInvalidPhoneError = exports.InvitationInvalidEmailError = exports.InvitationError = void 0;
21
+ exports.InvitationMultipleError = exports.InvitationNotFoundError = exports.InvitationEmailExistsError = exports.InvitationInvalidEmailError = exports.InvitationError = void 0;
22
22
  const http_1 = require("../../http");
23
23
  class InvitationError extends http_1.BackendError {
24
24
  constructor(message, label, code) {
@@ -36,14 +36,6 @@ class InvitationInvalidEmailError extends InvitationError {
36
36
  }
37
37
  }
38
38
  exports.InvitationInvalidEmailError = InvitationInvalidEmailError;
39
- class InvitationInvalidPhoneError extends InvitationError {
40
- constructor(message, label = http_1.BackendErrorLabel.INVALID_PHONE, code = http_1.StatusCode.BAD_REQUEST) {
41
- super(message, label, code);
42
- Object.setPrototypeOf(this, new.target.prototype);
43
- this.name = 'InvitationInvalidPhoneError';
44
- }
45
- }
46
- exports.InvitationInvalidPhoneError = InvitationInvalidPhoneError;
47
39
  class InvitationEmailExistsError extends InvitationError {
48
40
  constructor(message, label = http_1.BackendErrorLabel.INVITE_EMAIL_EXISTS, code = http_1.StatusCode.BAD_REQUEST) {
49
41
  super(message, label, code);
@@ -52,14 +44,6 @@ class InvitationEmailExistsError extends InvitationError {
52
44
  }
53
45
  }
54
46
  exports.InvitationEmailExistsError = InvitationEmailExistsError;
55
- class InvitationPhoneExistsError extends InvitationError {
56
- constructor(message, label = http_1.BackendErrorLabel.PHONE_EXISTS, code = http_1.StatusCode.CONFLICT) {
57
- super(message, label, code);
58
- Object.setPrototypeOf(this, new.target.prototype);
59
- this.name = 'InvitationPhoneExistsError';
60
- }
61
- }
62
- exports.InvitationPhoneExistsError = InvitationPhoneExistsError;
63
47
  class InvitationNotFoundError extends InvitationError {
64
48
  constructor(message, label = http_1.SyntheticErrorLabel.INVITATION_NOT_FOUND, code = http_1.StatusCode.NOT_FOUND) {
65
49
  super(message, label, code);
@@ -4,7 +4,6 @@ export interface NewTeamInvitation {
4
4
  inviter_name: string;
5
5
  locale: string;
6
6
  name?: string;
7
- phone?: string;
8
7
  role: Role;
9
8
  }
10
9
  //# sourceMappingURL=NewTeamInvitation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NewTeamInvitation.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/NewTeamInvitation.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;CACZ"}
1
+ {"version":3,"file":"NewTeamInvitation.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/NewTeamInvitation.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;CACZ"}
@@ -5,7 +5,6 @@ export interface TeamInvitation {
5
5
  email: string;
6
6
  id: string;
7
7
  name?: string;
8
- phone?: string;
9
8
  role: Role;
10
9
  team: string;
11
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TeamInvitation.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/TeamInvitation.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd"}
1
+ {"version":3,"file":"TeamInvitation.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/TeamInvitation.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1 +1 @@
1
- {"version":3,"file":"TeamInvitationAPI.d.ts","sourceRoot":"","sources":["../../../src/team/invitation/TeamInvitationAPI.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAC,UAAU,EAAkC,MAAM,aAAa,CAAC;AACxE,OAAO,EAAC,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AAGtF,qBAAa,iBAAiB;IAQhB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAPnC,gBAAuB,cAAc,OAAO;IAC5C,gBAAuB,GAAG;;;;MAIxB;gBAE2B,MAAM,EAAE,UAAU;IAElC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAU5E,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAgB5D,cAAc,CACzB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,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AAE,UAAU,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC;IAwBtF,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;CAYpF"}
@@ -120,15 +120,9 @@ class TeamInvitationAPI {
120
120
  case http_1.BackendErrorLabel.INVITE_EMAIL_EXISTS: {
121
121
  throw new InvitationError_1.InvitationEmailExistsError(backendError.message);
122
122
  }
123
- case http_1.BackendErrorLabel.BAD_REQUEST: {
124
- throw new InvitationError_1.InvitationInvalidPhoneError(backendError.message);
125
- }
126
123
  case http_1.BackendErrorLabel.INVALID_EMAIL: {
127
124
  throw new InvitationError_1.InvitationInvalidEmailError(backendError.message);
128
125
  }
129
- case http_1.BackendErrorLabel.PHONE_EXISTS: {
130
- throw new InvitationError_1.InvitationPhoneExistsError(backendError.message);
131
- }
132
126
  }
133
127
  throw error;
134
128
  }
@@ -19,7 +19,5 @@ export interface Activate {
19
19
  * account activation
20
20
  */
21
21
  label?: string;
22
- /** A known phone number to activate. */
23
- phone?: string;
24
22
  }
25
23
  //# sourceMappingURL=Activate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Activate.d.ts","sourceRoot":"","sources":["../../src/user/Activate.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,QAAQ;IACvB,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,4DAA4D;IAC5D,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"Activate.d.ts","sourceRoot":"","sources":["../../src/user/Activate.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,QAAQ;IACvB,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,4DAA4D;IAC5D,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1,6 +1,5 @@
1
1
  export interface ActivationResponse {
2
2
  email?: string;
3
3
  first: boolean;
4
- phone?: string;
5
4
  }
6
5
  //# sourceMappingURL=ActivationResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActivationResponse.d.ts","sourceRoot":"","sources":["../../src/user/ActivationResponse.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"ActivationResponse.d.ts","sourceRoot":"","sources":["../../src/user/ActivationResponse.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB"}
@@ -3,6 +3,5 @@ export interface CompletePasswordReset {
3
3
  email?: string;
4
4
  key?: string;
5
5
  password: string;
6
- phone?: string;
7
6
  }
8
7
  //# sourceMappingURL=CompletePasswordReset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CompletePasswordReset.d.ts","sourceRoot":"","sources":["../../src/user/CompletePasswordReset.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"CompletePasswordReset.d.ts","sourceRoot":"","sources":["../../src/user/CompletePasswordReset.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -1,5 +1,4 @@
1
1
  export interface NewPasswordReset {
2
2
  email?: string;
3
- phone?: string;
4
3
  }
5
4
  //# sourceMappingURL=NewPasswordReset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NewPasswordReset.d.ts","sourceRoot":"","sources":["../../src/user/NewPasswordReset.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"NewPasswordReset.d.ts","sourceRoot":"","sources":["../../src/user/NewPasswordReset.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -3,9 +3,5 @@ export interface SendActivationCode {
3
3
  email?: string;
4
4
  /** Locale to use for the activation code template. */
5
5
  locale?: string;
6
- /** E.164 phone number to send the code to. */
7
- phone?: string;
8
- /** Request the code with a call instead (default is SMS). */
9
- voice_call?: boolean;
10
6
  }
11
7
  //# sourceMappingURL=SendActivationCode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SendActivationCode.d.ts","sourceRoot":"","sources":["../../src/user/SendActivationCode.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,kBAAkB;IACjC,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
1
+ {"version":3,"file":"SendActivationCode.d.ts","sourceRoot":"","sources":["../../src/user/SendActivationCode.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,kBAAkB;IACjC,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -58,7 +58,7 @@ export declare class UserAPI {
58
58
  */
59
59
  deleteProperty(propertyKey: string): Promise<void>;
60
60
  /**
61
- * Activate (i.e. confirm) an email address or phone number.
61
+ * Activate (i.e. confirm) an email address.
62
62
  * @param activationCode Activation code
63
63
  * @param activationKey Activation key
64
64
  * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/activate
@@ -147,14 +147,14 @@ export declare class UserAPI {
147
147
  */
148
148
  headUsers(userId: string | QualifiedId): Promise<void>;
149
149
  /**
150
- * Activate (i.e. confirm) an email address or phone number.
150
+ * Activate (i.e. confirm) an email address.
151
151
  * Note: Activation only succeeds once and the number of failed attempts for a valid key is limited.
152
152
  * @param activationData Data to activate an account
153
153
  * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/activate_0
154
154
  */
155
155
  postActivation(activationData: Activate): Promise<ActivationResponse>;
156
156
  /**
157
- * Send (or resend) an email or phone activation code.
157
+ * Send (or resend) an email activation code.
158
158
  * @param activationCodeData Data to send an activation code
159
159
  * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/sendActivationCode
160
160
  */
@@ -89,7 +89,7 @@ class UserAPI {
89
89
  await this.client.sendJSON(config);
90
90
  }
91
91
  /**
92
- * Activate (i.e. confirm) an email address or phone number.
92
+ * Activate (i.e. confirm) an email address.
93
93
  * @param activationCode Activation code
94
94
  * @param activationKey Activation key
95
95
  * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/activate
@@ -337,7 +337,7 @@ class UserAPI {
337
337
  await this.client.sendJSON(config);
338
338
  }
339
339
  /**
340
- * Activate (i.e. confirm) an email address or phone number.
340
+ * Activate (i.e. confirm) an email address.
341
341
  * Note: Activation only succeeds once and the number of failed attempts for a valid key is limited.
342
342
  * @param activationData Data to activate an account
343
343
  * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/activate_0
@@ -352,7 +352,7 @@ class UserAPI {
352
352
  return response.data;
353
353
  }
354
354
  /**
355
- * Send (or resend) an email or phone activation code.
355
+ * Send (or resend) an email activation code.
356
356
  * @param activationCodeData Data to send an activation code
357
357
  * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/sendActivationCode
358
358
  */
package/package.json CHANGED
@@ -66,6 +66,6 @@
66
66
  "watch": "webpack serve --config webpack.browser.js",
67
67
  "prepare": "yarn dist"
68
68
  },
69
- "version": "27.1.1",
70
- "gitHead": "5d109252d88716335632f0e71f3dc4a4fb66135c"
69
+ "version": "27.2.0",
70
+ "gitHead": "9ed690af9f72cfca152724e50c78feffa9a7ef3b"
71
71
  }
@@ -1,6 +0,0 @@
1
- import { SendActivationCode } from '../user';
2
- export type SendLoginCode = Partial<Pick<SendActivationCode, 'phone' | 'voice_call'>> & {
3
- /** Forces validation via SMS/voice call code */
4
- force?: boolean;
5
- };
6
- //# sourceMappingURL=SendLoginCode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SendLoginCode.d.ts","sourceRoot":"","sources":["../../src/auth/SendLoginCode.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,YAAY,CAAC,CAAC,GAAG;IACtF,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2019 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
- Object.defineProperty(exports, "__esModule", { value: true });