@takeal/cusfront-sdk 0.8.0 → 0.8.1

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.
package/dist/telegram.js CHANGED
@@ -833,10 +833,12 @@ var AuthResource = class {
833
833
  await Promise.resolve(this.tokens.set(resp.access_token));
834
834
  return resp;
835
835
  }
836
- /** Attach the first real email to a Telegram-made account (and clear
837
- * `email_pending`). 409 if taken. An account that already has a real
838
- * address gets 409 `email_change_needs_code`: change it with
839
- * {@link requestEmailChange} and {@link confirmEmailChange}. */
836
+ /** Always answers 409 `email_change_needs_code` on platform 0.8.1 and
837
+ * newer: an address is attached only after a code sent to it comes back.
838
+ * For the first real email of a Telegram-made account use
839
+ * {@link requestEmailChange} and {@link confirmEmailChange}; they clear
840
+ * `email_pending` too.
841
+ * @deprecated Use {@link requestEmailChange} and {@link confirmEmailChange}. */
840
842
  async linkEmail(input) {
841
843
  return this.http.post("/me/email", { body: { email: input.email } });
842
844
  }
@@ -1714,7 +1716,7 @@ var FundingOptionsResource = class {
1714
1716
  };
1715
1717
 
1716
1718
  // src/version.ts
1717
- var SDK_VERSION = "0.8.0";
1719
+ var SDK_VERSION = "0.8.1";
1718
1720
 
1719
1721
  // src/client-platform.ts
1720
1722
  var CLIENT_HEADER = "X-Takeal-Client";