@getlatedev/node 0.2.333 → 0.2.334

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.333",
39
+ version: "0.2.334",
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.333",
8
+ version: "0.2.334",
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.333",
3
+ "version": "0.2.334",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3973,6 +3973,11 @@ export const updateWhatsAppBusinessProfile = <ThrowOnError extends boolean = fal
3973
3973
  * Uses Meta's resumable upload API under the hood: creates an upload session,
3974
3974
  * uploads the image bytes, then updates the business profile with the resulting handle.
3975
3975
  *
3976
+ * Provide the image either as a binary upload (`multipart/form-data` with `file`)
3977
+ * or as a download URL (`application/json` with `url`) — with a URL we fetch the
3978
+ * image server-side and upload the bytes for you. Meta's profile-photo API is
3979
+ * bytes-only, so there is no direct URL passthrough. JPEG/PNG, max 5MB either way.
3980
+ *
3976
3981
  */
3977
3982
  export const uploadWhatsAppProfilePhoto = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UploadWhatsAppProfilePhotoData, ThrowOnError>) => {
3978
3983
  return (options?.client ?? client).post<UploadWhatsAppProfilePhotoResponse, UploadWhatsAppProfilePhotoError, ThrowOnError>({