@unlimited-messaging/sdk 0.1.26 → 0.1.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unlimited-messaging/sdk",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "TypeScript / Node.js SDK for the Unlimited Messaging API — send and receive WhatsApp messages programmatically",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -83,7 +83,7 @@ export declare namespace Accounts {
83
83
  * ```
84
84
  *
85
85
  * Failures answer `422` with `context.code`: `AUTH_FAILED` (wrong password, or an app password is
86
- * required), `OAUTH_REQUIRED`, `HOST_UNREACHABLE`, `TLS_ERROR`; and `409` `EMAIL_ALREADY_CONNECTED`.
86
+ * required), `OAUTH_REQUIRED`, `HOST_UNREACHABLE`, `TLS_ERROR`.
87
87
  * When the password changes, or the server starts refusing it (status `INACTIVE`), send the new one
88
88
  * with `PUT /account/{accountId}/email`.
89
89
  *
@@ -187,7 +187,7 @@ export declare class Accounts {
187
187
  /**
188
188
  * **Protection**: Protected endpoint. Allowed roles: USER, ADMIN. Required scopes: OTHER:READ, OTHER:WRITE
189
189
  *
190
- * Tests the credentials and connects the mailbox as an EMAIL account. There is no QR code or challenge: the account is ACTIVE as soon as this returns. Its id is then the `accountId` to send email from with POST /message, and incoming email arrives as `message.received` webhooks. Gmail, iCloud and Yahoo require an app password. Same error codes as POST /account/email/test, plus EMAIL_ALREADY_CONNECTED (409, with `context.accountId` when the mailbox is already yours: update its password with PUT /account/{accountId}/email instead).
190
+ * Tests the credentials and connects the mailbox as an EMAIL account. There is no QR code or challenge: the account is ACTIVE as soon as this returns. Its id is then the `accountId` to send email from with POST /message, and incoming email arrives as `message.received` webhooks. Gmail, iCloud and Yahoo require an app password. Same error codes as POST /account/email/test. A mailbox already connected elsewhere (on another of your accounts or on another user) connects anyway as its own account; connecting an address you already have reuses that account with the new credentials.
191
191
  *
192
192
  * @param {UnlimitedMessagingApi.AccountConnectEmailRequest} request
193
193
  * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
@@ -116,7 +116,7 @@ const errors = __importStar(require("../../../../errors/index"));
116
116
  * ```
117
117
  *
118
118
  * Failures answer `422` with `context.code`: `AUTH_FAILED` (wrong password, or an app password is
119
- * required), `OAUTH_REQUIRED`, `HOST_UNREACHABLE`, `TLS_ERROR`; and `409` `EMAIL_ALREADY_CONNECTED`.
119
+ * required), `OAUTH_REQUIRED`, `HOST_UNREACHABLE`, `TLS_ERROR`.
120
120
  * When the password changes, or the server starts refusing it (status `INACTIVE`), send the new one
121
121
  * with `PUT /account/{accountId}/email`.
122
122
  *
@@ -481,7 +481,7 @@ class Accounts {
481
481
  /**
482
482
  * **Protection**: Protected endpoint. Allowed roles: USER, ADMIN. Required scopes: OTHER:READ, OTHER:WRITE
483
483
  *
484
- * Tests the credentials and connects the mailbox as an EMAIL account. There is no QR code or challenge: the account is ACTIVE as soon as this returns. Its id is then the `accountId` to send email from with POST /message, and incoming email arrives as `message.received` webhooks. Gmail, iCloud and Yahoo require an app password. Same error codes as POST /account/email/test, plus EMAIL_ALREADY_CONNECTED (409, with `context.accountId` when the mailbox is already yours: update its password with PUT /account/{accountId}/email instead).
484
+ * Tests the credentials and connects the mailbox as an EMAIL account. There is no QR code or challenge: the account is ACTIVE as soon as this returns. Its id is then the `accountId` to send email from with POST /message, and incoming email arrives as `message.received` webhooks. Gmail, iCloud and Yahoo require an app password. Same error codes as POST /account/email/test. A mailbox already connected elsewhere (on another of your accounts or on another user) connects anyway as its own account; connecting an address you already have reuses that account with the new credentials.
485
485
  *
486
486
  * @param {UnlimitedMessagingApi.AccountConnectEmailRequest} request
487
487
  * @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.