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