@zernio/node 0.2.55 → 0.2.56

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
@@ -1032,7 +1032,7 @@ type ConnectionLog = {
1032
1032
  * The social account ID (present on successful connections and disconnects)
1033
1033
  */
1034
1034
  accountId?: string;
1035
- platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
1035
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
1036
1036
  /**
1037
1037
  * Type of connection event: connect_success, connect_failed, disconnect, reconnect_success, reconnect_failed
1038
1038
  */
@@ -1101,7 +1101,7 @@ type ConnectionLog = {
1101
1101
  };
1102
1102
  createdAt?: string;
1103
1103
  };
1104
- type platform2 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
1104
+ type platform2 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
1105
1105
  /**
1106
1106
  * Type of connection event: connect_success, connect_failed, disconnect, reconnect_success, reconnect_failed
1107
1107
  */
@@ -1841,7 +1841,7 @@ type PostLog = {
1841
1841
  });
1842
1842
  userId?: string;
1843
1843
  profileId?: string;
1844
- platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
1844
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
1845
1845
  accountId?: string;
1846
1846
  accountUsername?: string;
1847
1847
  /**
@@ -2197,7 +2197,7 @@ type SnapchatPlatformData = {
2197
2197
  type contentType3 = 'story' | 'saved_story' | 'spotlight';
2198
2198
  type SocialAccount = {
2199
2199
  _id?: string;
2200
- platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
2200
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
2201
2201
  profileId?: (string | Profile);
2202
2202
  username?: string;
2203
2203
  displayName?: string;
@@ -2256,7 +2256,7 @@ type SocialAccount = {
2256
2256
  [key: string]: unknown;
2257
2257
  };
2258
2258
  };
2259
- type platform4 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
2259
+ type platform4 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
2260
2260
  /**
2261
2261
  * **Deprecated.** With the new ads account model, ads accounts are separate SocialAccount
2262
2262
  * documents. Check for accounts with ads platform values (metaads, linkedinads, pinterestads,
@@ -3288,7 +3288,7 @@ type ValidatePostData = {
3288
3288
  * Target platforms (same format as POST /v1/posts)
3289
3289
  */
3290
3290
  platforms: Array<{
3291
- platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness';
3291
+ platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness' | 'discord';
3292
3292
  customContent?: string;
3293
3293
  platformSpecificData?: {
3294
3294
  [key: string]: unknown;
@@ -4650,7 +4650,7 @@ type GetAllAccountsHealthData = {
4650
4650
  /**
4651
4651
  * Filter by platform
4652
4652
  */
4653
- platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
4653
+ platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
4654
4654
  /**
4655
4655
  * Filter by profile ID
4656
4656
  */
@@ -4908,7 +4908,7 @@ type GetConnectUrlData = {
4908
4908
  /**
4909
4909
  * Social media platform to connect
4910
4910
  */
4911
- platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'reddit' | 'pinterest' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
4911
+ platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'reddit' | 'pinterest' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
4912
4912
  };
4913
4913
  query: {
4914
4914
  /**
package/dist/index.d.ts CHANGED
@@ -1032,7 +1032,7 @@ type ConnectionLog = {
1032
1032
  * The social account ID (present on successful connections and disconnects)
1033
1033
  */
1034
1034
  accountId?: string;
1035
- platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
1035
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
1036
1036
  /**
1037
1037
  * Type of connection event: connect_success, connect_failed, disconnect, reconnect_success, reconnect_failed
1038
1038
  */
@@ -1101,7 +1101,7 @@ type ConnectionLog = {
1101
1101
  };
1102
1102
  createdAt?: string;
1103
1103
  };
1104
- type platform2 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
1104
+ type platform2 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
1105
1105
  /**
1106
1106
  * Type of connection event: connect_success, connect_failed, disconnect, reconnect_success, reconnect_failed
1107
1107
  */
@@ -1841,7 +1841,7 @@ type PostLog = {
1841
1841
  });
1842
1842
  userId?: string;
1843
1843
  profileId?: string;
1844
- platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
1844
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
1845
1845
  accountId?: string;
1846
1846
  accountUsername?: string;
1847
1847
  /**
@@ -2197,7 +2197,7 @@ type SnapchatPlatformData = {
2197
2197
  type contentType3 = 'story' | 'saved_story' | 'spotlight';
2198
2198
  type SocialAccount = {
2199
2199
  _id?: string;
2200
- platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
2200
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
2201
2201
  profileId?: (string | Profile);
2202
2202
  username?: string;
2203
2203
  displayName?: string;
@@ -2256,7 +2256,7 @@ type SocialAccount = {
2256
2256
  [key: string]: unknown;
2257
2257
  };
2258
2258
  };
2259
- type platform4 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
2259
+ type platform4 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
2260
2260
  /**
2261
2261
  * **Deprecated.** With the new ads account model, ads accounts are separate SocialAccount
2262
2262
  * documents. Check for accounts with ads platform values (metaads, linkedinads, pinterestads,
@@ -3288,7 +3288,7 @@ type ValidatePostData = {
3288
3288
  * Target platforms (same format as POST /v1/posts)
3289
3289
  */
3290
3290
  platforms: Array<{
3291
- platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness';
3291
+ platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness' | 'discord';
3292
3292
  customContent?: string;
3293
3293
  platformSpecificData?: {
3294
3294
  [key: string]: unknown;
@@ -4650,7 +4650,7 @@ type GetAllAccountsHealthData = {
4650
4650
  /**
4651
4651
  * Filter by platform
4652
4652
  */
4653
- platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
4653
+ platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
4654
4654
  /**
4655
4655
  * Filter by profile ID
4656
4656
  */
@@ -4908,7 +4908,7 @@ type GetConnectUrlData = {
4908
4908
  /**
4909
4909
  * Social media platform to connect
4910
4910
  */
4911
- platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'reddit' | 'pinterest' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
4911
+ platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'reddit' | 'pinterest' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
4912
4912
  };
4913
4913
  query: {
4914
4914
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.55",
3
+ "version": "0.2.56",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -456,7 +456,7 @@ export type ConnectionLog = {
456
456
  * The social account ID (present on successful connections and disconnects)
457
457
  */
458
458
  accountId?: string;
459
- platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
459
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
460
460
  /**
461
461
  * Type of connection event: connect_success, connect_failed, disconnect, reconnect_success, reconnect_failed
462
462
  */
@@ -526,7 +526,7 @@ export type ConnectionLog = {
526
526
  createdAt?: string;
527
527
  };
528
528
 
529
- export type platform2 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
529
+ export type platform2 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
530
530
 
531
531
  /**
532
532
  * Type of connection event: connect_success, connect_failed, disconnect, reconnect_success, reconnect_failed
@@ -1321,7 +1321,7 @@ export type PostLog = {
1321
1321
  });
1322
1322
  userId?: string;
1323
1323
  profileId?: string;
1324
- platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
1324
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
1325
1325
  accountId?: string;
1326
1326
  accountUsername?: string;
1327
1327
  /**
@@ -1703,7 +1703,7 @@ export type contentType3 = 'story' | 'saved_story' | 'spotlight';
1703
1703
 
1704
1704
  export type SocialAccount = {
1705
1705
  _id?: string;
1706
- platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
1706
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
1707
1707
  profileId?: (string | Profile);
1708
1708
  username?: string;
1709
1709
  displayName?: string;
@@ -1763,7 +1763,7 @@ export type SocialAccount = {
1763
1763
  };
1764
1764
  };
1765
1765
 
1766
- export type platform4 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
1766
+ export type platform4 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
1767
1767
 
1768
1768
  /**
1769
1769
  * **Deprecated.** With the new ads account model, ads accounts are separate SocialAccount
@@ -2857,7 +2857,7 @@ export type ValidatePostData = {
2857
2857
  * Target platforms (same format as POST /v1/posts)
2858
2858
  */
2859
2859
  platforms: Array<{
2860
- platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness';
2860
+ platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness' | 'discord';
2861
2861
  customContent?: string;
2862
2862
  platformSpecificData?: {
2863
2863
  [key: string]: unknown;
@@ -4351,7 +4351,7 @@ export type GetAllAccountsHealthData = {
4351
4351
  /**
4352
4352
  * Filter by platform
4353
4353
  */
4354
- platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
4354
+ platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
4355
4355
  /**
4356
4356
  * Filter by profile ID
4357
4357
  */
@@ -4629,7 +4629,7 @@ export type GetConnectUrlData = {
4629
4629
  /**
4630
4630
  * Social media platform to connect
4631
4631
  */
4632
- platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'reddit' | 'pinterest' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
4632
+ platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'reddit' | 'pinterest' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
4633
4633
  };
4634
4634
  query: {
4635
4635
  /**