@funnelchat-hq/sdk 0.2.1 → 0.2.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.
package/dist/index.js CHANGED
@@ -919,8 +919,8 @@ var Devices = class extends Resource {
919
919
  /**
920
920
  * `POST /api/v1/devices`: creates a number that connects by QR code (`connection: 'qr'`), with
921
921
  * `connected: false`. Then show its QR with `qr`, or send your customer a connect link
922
- * (`connectLinks.create`). Needs **WhatsApp numbers → Create, connect and delete**
923
- * (`accounts:operate`). It takes a slot of the plan, with the panel's
922
+ * (`connectLinks.create`). Needs **WhatsApp numbers → Create, connect and delete**.
923
+ * It takes a slot of the plan, with the panel's
924
924
  * rejections: `403 numbers_not_included`, `403 number_limit_reached`, `422 qr_requires_coexistence`
925
925
  * and `422 method_already_present` (`same_number_as` adds QR to a number in coexistence instead).
926
926
  * An account has at most one QR number waiting to be scanned: another one is `409
@@ -941,8 +941,8 @@ var Devices = class extends Resource {
941
941
  /**
942
942
  * `DELETE /api/v1/devices/{device}`: deletes the number and frees its slot of the plan. An
943
943
  * official number stops receiving through Funnelchat but stays registered with Meta; a QR one
944
- * logs out. Irreversible; needs **WhatsApp numbers → Create, connect and delete**
945
- * (`accounts:operate`). Sends `device.deleted`.
944
+ * logs out. Irreversible; needs **WhatsApp numbers → Create, connect and delete**.
945
+ * Sends `device.deleted`.
946
946
  */
947
947
  delete(device, options) {
948
948
  return this.client.request("DELETE", "/api/v1/devices/{device}", { ...options, path: { device } });
@@ -957,7 +957,7 @@ var Devices = class extends Resource {
957
957
  * 0 once connected) and have it scanned right away: WhatsApp changes the code every few seconds and
958
958
  * an old one no longer links, so show the latest and never store or forward a QR. Only for QR
959
959
  * numbers (an official one is `422 provider_unsupported`); needs
960
- * **WhatsApp numbers → Create, connect and delete** (`accounts:operate`), since scanning it gives
960
+ * **WhatsApp numbers → Create, connect and delete**, since scanning it gives
961
961
  * control of a WhatsApp. A number that cannot connect now
962
962
  * answers `409` (`trial_number_blocked`, `number_suspended_by_plan`, `device_inactive`…).
963
963
  */
@@ -1383,7 +1383,7 @@ var Webhooks = class extends Resource {
1383
1383
  };
1384
1384
 
1385
1385
  // src/version.ts
1386
- var VERSION = "0.2.1";
1386
+ var VERSION = "0.2.2";
1387
1387
 
1388
1388
  // src/client.ts
1389
1389
  var BASE_URLS = {