@getlatedev/node 0.2.1220 → 0.2.1221

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
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1220",
39
+ version: "0.2.1221",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1220",
8
+ version: "0.2.1221",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1220",
3
+ "version": "0.2.1221",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6951,6 +6951,8 @@ export const updateWhatsAppDisplayName = <ThrowOnError extends boolean = false>(
6951
6951
  * Get business username
6952
6952
  * Fetch the current WhatsApp Business username and its approval status.
6953
6953
  * Username status can be `approved` (active), `reserved` (pending activation), or `none` (no username set).
6954
+ * If Meta has not granted username management for the WhatsApp Business Account, the API returns the
6955
+ * standard error envelope with code `insufficient_permissions`.
6954
6956
  *
6955
6957
  */
6956
6958
  export const getWhatsappBusinessUsername = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWhatsappBusinessUsernameData, ThrowOnError>) => {
@@ -6970,8 +6972,9 @@ export const getWhatsappBusinessUsername = <ThrowOnError extends boolean = false
6970
6972
  * If the desired username is currently held by another account, pass `transferAction: "force_transfer"` to
6971
6973
  * request a transfer. On failure the API returns a standard error envelope with one of these codes:
6972
6974
  * `whatsapp_username_unavailable` (already taken and transfer not requested),
6973
- * `whatsapp_username_ineligible` (account not eligible to claim a username), or
6974
- * `whatsapp_username_transfer_required` (username is held elsewhere; retry with `force_transfer`).
6975
+ * `whatsapp_username_ineligible` (account not eligible to claim a username),
6976
+ * `whatsapp_username_transfer_required` (username is held elsewhere; retry with `force_transfer`), or
6977
+ * `insufficient_permissions` (Meta has not granted username management for this WhatsApp Business Account).
6975
6978
  *
6976
6979
  */
6977
6980
  export const setWhatsappBusinessUsername = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetWhatsappBusinessUsernameData, ThrowOnError>) => {