@zernio/node 0.2.30 → 0.2.32

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.d.mts CHANGED
@@ -1884,6 +1884,20 @@ type SocialAccount = {
1884
1884
  * Last time follower count was updated (only included if user has analytics add-on)
1885
1885
  */
1886
1886
  followersLastUpdated?: string;
1887
+ /**
1888
+ * Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes:
1889
+ * - `qualityRating`: Phone number quality rating from Meta (`GREEN`, `YELLOW`, `RED`, or `UNKNOWN`)
1890
+ * - `nameStatus`: Display name review status (`APPROVED`, `PENDING_REVIEW`, `DECLINED`, or `NONE`). Messages cannot be sent until the display name is approved by Meta.
1891
+ * - `messagingLimitTier`: Maximum unique business-initiated conversations per 24h rolling window (`TIER_250`, `TIER_1K`, `TIER_10K`, `TIER_100K`, or `TIER_UNLIMITED`). Scales automatically as quality rating improves.
1892
+ * - `verifiedName`: Meta-verified business display name
1893
+ * - `displayPhoneNumber`: Formatted phone number (e.g., "+1 555-123-4567")
1894
+ * - `wabaId`: WhatsApp Business Account ID
1895
+ * - `phoneNumberId`: Meta phone number ID
1896
+ *
1897
+ */
1898
+ metadata?: {
1899
+ [key: string]: unknown;
1900
+ };
1887
1901
  };
1888
1902
  /**
1889
1903
  * Text, images (up to 10), videos (up to 10), and mixed media albums. Captions up to 1024 chars for media, 4096 for text-only.
@@ -3806,6 +3820,10 @@ type UpdatePostMetadataData = {
3806
3820
  * Video privacy setting
3807
3821
  */
3808
3822
  privacyStatus?: 'public' | 'private' | 'unlisted';
3823
+ /**
3824
+ * Public URL of a custom thumbnail image (JPEG, PNG, or GIF, max 2 MB, recommended 1280x720). Works on any video you own, including existing videos not published through Zernio. The channel must be verified (phone verification) to set custom thumbnails.
3825
+ */
3826
+ thumbnailUrl?: string;
3809
3827
  };
3810
3828
  path: {
3811
3829
  /**
@@ -5578,12 +5596,10 @@ type ConnectWhatsAppCredentialsResponse = ({
5578
5596
  */
5579
5597
  displayName?: string;
5580
5598
  isActive?: boolean;
5581
- phoneNumber?: string;
5582
- verifiedName?: string;
5583
5599
  /**
5584
- * GREEN, YELLOW, or RED
5600
+ * The connected phone number
5585
5601
  */
5586
- qualityRating?: string;
5602
+ selectedPhoneNumber?: string;
5587
5603
  };
5588
5604
  });
5589
5605
  type ConnectWhatsAppCredentialsError = (unknown);
package/dist/index.d.ts CHANGED
@@ -1884,6 +1884,20 @@ type SocialAccount = {
1884
1884
  * Last time follower count was updated (only included if user has analytics add-on)
1885
1885
  */
1886
1886
  followersLastUpdated?: string;
1887
+ /**
1888
+ * Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes:
1889
+ * - `qualityRating`: Phone number quality rating from Meta (`GREEN`, `YELLOW`, `RED`, or `UNKNOWN`)
1890
+ * - `nameStatus`: Display name review status (`APPROVED`, `PENDING_REVIEW`, `DECLINED`, or `NONE`). Messages cannot be sent until the display name is approved by Meta.
1891
+ * - `messagingLimitTier`: Maximum unique business-initiated conversations per 24h rolling window (`TIER_250`, `TIER_1K`, `TIER_10K`, `TIER_100K`, or `TIER_UNLIMITED`). Scales automatically as quality rating improves.
1892
+ * - `verifiedName`: Meta-verified business display name
1893
+ * - `displayPhoneNumber`: Formatted phone number (e.g., "+1 555-123-4567")
1894
+ * - `wabaId`: WhatsApp Business Account ID
1895
+ * - `phoneNumberId`: Meta phone number ID
1896
+ *
1897
+ */
1898
+ metadata?: {
1899
+ [key: string]: unknown;
1900
+ };
1887
1901
  };
1888
1902
  /**
1889
1903
  * Text, images (up to 10), videos (up to 10), and mixed media albums. Captions up to 1024 chars for media, 4096 for text-only.
@@ -3806,6 +3820,10 @@ type UpdatePostMetadataData = {
3806
3820
  * Video privacy setting
3807
3821
  */
3808
3822
  privacyStatus?: 'public' | 'private' | 'unlisted';
3823
+ /**
3824
+ * Public URL of a custom thumbnail image (JPEG, PNG, or GIF, max 2 MB, recommended 1280x720). Works on any video you own, including existing videos not published through Zernio. The channel must be verified (phone verification) to set custom thumbnails.
3825
+ */
3826
+ thumbnailUrl?: string;
3809
3827
  };
3810
3828
  path: {
3811
3829
  /**
@@ -5578,12 +5596,10 @@ type ConnectWhatsAppCredentialsResponse = ({
5578
5596
  */
5579
5597
  displayName?: string;
5580
5598
  isActive?: boolean;
5581
- phoneNumber?: string;
5582
- verifiedName?: string;
5583
5599
  /**
5584
- * GREEN, YELLOW, or RED
5600
+ * The connected phone number
5585
5601
  */
5586
- qualityRating?: string;
5602
+ selectedPhoneNumber?: string;
5587
5603
  };
5588
5604
  });
5589
5605
  type ConnectWhatsAppCredentialsError = (unknown);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.30",
3
+ "version": "0.2.32",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1420,6 +1420,20 @@ export type SocialAccount = {
1420
1420
  * Last time follower count was updated (only included if user has analytics add-on)
1421
1421
  */
1422
1422
  followersLastUpdated?: string;
1423
+ /**
1424
+ * Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes:
1425
+ * - `qualityRating`: Phone number quality rating from Meta (`GREEN`, `YELLOW`, `RED`, or `UNKNOWN`)
1426
+ * - `nameStatus`: Display name review status (`APPROVED`, `PENDING_REVIEW`, `DECLINED`, or `NONE`). Messages cannot be sent until the display name is approved by Meta.
1427
+ * - `messagingLimitTier`: Maximum unique business-initiated conversations per 24h rolling window (`TIER_250`, `TIER_1K`, `TIER_10K`, `TIER_100K`, or `TIER_UNLIMITED`). Scales automatically as quality rating improves.
1428
+ * - `verifiedName`: Meta-verified business display name
1429
+ * - `displayPhoneNumber`: Formatted phone number (e.g., "+1 555-123-4567")
1430
+ * - `wabaId`: WhatsApp Business Account ID
1431
+ * - `phoneNumberId`: Meta phone number ID
1432
+ *
1433
+ */
1434
+ metadata?: {
1435
+ [key: string]: unknown;
1436
+ };
1423
1437
  };
1424
1438
 
1425
1439
  /**
@@ -3508,6 +3522,10 @@ export type UpdatePostMetadataData = {
3508
3522
  * Video privacy setting
3509
3523
  */
3510
3524
  privacyStatus?: 'public' | 'private' | 'unlisted';
3525
+ /**
3526
+ * Public URL of a custom thumbnail image (JPEG, PNG, or GIF, max 2 MB, recommended 1280x720). Works on any video you own, including existing videos not published through Zernio. The channel must be verified (phone verification) to set custom thumbnails.
3527
+ */
3528
+ thumbnailUrl?: string;
3511
3529
  };
3512
3530
  path: {
3513
3531
  /**
@@ -5417,12 +5435,10 @@ export type ConnectWhatsAppCredentialsResponse = ({
5417
5435
  */
5418
5436
  displayName?: string;
5419
5437
  isActive?: boolean;
5420
- phoneNumber?: string;
5421
- verifiedName?: string;
5422
5438
  /**
5423
- * GREEN, YELLOW, or RED
5439
+ * The connected phone number
5424
5440
  */
5425
- qualityRating?: string;
5441
+ selectedPhoneNumber?: string;
5426
5442
  };
5427
5443
  });
5428
5444