@zernio/node 0.2.740 → 0.2.742

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: "@zernio/node",
39
- version: "0.2.740",
39
+ version: "0.2.742",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -4663,6 +4663,36 @@ var checkVerification = (options) => {
4663
4663
  url: "/v1/verify/verifications/{verificationId}/check"
4664
4664
  });
4665
4665
  };
4666
+ var listTikTokAdPixels = (options) => {
4667
+ return (options?.client ?? client).get({
4668
+ ...options,
4669
+ url: "/v1/ads/pixels"
4670
+ });
4671
+ };
4672
+ var listPartnershipAdContent = (options) => {
4673
+ return (options?.client ?? client).get({
4674
+ ...options,
4675
+ url: "/v1/ads/partnership-content"
4676
+ });
4677
+ };
4678
+ var listPartnershipAdPermissions = (options) => {
4679
+ return (options?.client ?? client).get({
4680
+ ...options,
4681
+ url: "/v1/ads/partnership-permissions"
4682
+ });
4683
+ };
4684
+ var setPartnershipAdPermission = (options) => {
4685
+ return (options?.client ?? client).post({
4686
+ ...options,
4687
+ url: "/v1/ads/partnership-permissions"
4688
+ });
4689
+ };
4690
+ var downloadTikTokVideo = (options) => {
4691
+ return (options?.client ?? client).get({
4692
+ ...options,
4693
+ url: "/v1/tools/tiktok/download"
4694
+ });
4695
+ };
4666
4696
 
4667
4697
  // src/errors.ts
4668
4698
  var ZernioApiError = class _ZernioApiError extends Error {
@@ -5591,7 +5621,10 @@ var Zernio = class _Zernio {
5591
5621
  listAdVideos: this._bind(listAdVideos),
5592
5622
  deleteAdVideo: this._bind(deleteAdVideo),
5593
5623
  listAdCatalogs: this._bind(listAdCatalogs),
5594
- listAdCatalogProductSets: this._bind(listAdCatalogProductSets)
5624
+ listAdCatalogProductSets: this._bind(listAdCatalogProductSets),
5625
+ listPartnershipAdContent: this._bind(listPartnershipAdContent),
5626
+ listPartnershipAdPermissions: this._bind(listPartnershipAdPermissions),
5627
+ setPartnershipAdPermission: this._bind(setPartnershipAdPermission)
5595
5628
  };
5596
5629
  /**
5597
5630
  * trackingtags API
@@ -5656,7 +5689,8 @@ var Zernio = class _Zernio {
5656
5689
  getDsaDefaults: this._bind(getDsaDefaults),
5657
5690
  getDsaRecommendations: this._bind(getDsaRecommendations),
5658
5691
  listCustomConversions: this._bind(listCustomConversions),
5659
- createCustomConversion: this._bind(createCustomConversion)
5692
+ createCustomConversion: this._bind(createCustomConversion),
5693
+ listTikTokAdPixels: this._bind(listTikTokAdPixels)
5660
5694
  };
5661
5695
  /**
5662
5696
  * reachandfrequency API
@@ -5817,6 +5851,12 @@ var Zernio = class _Zernio {
5817
5851
  getVerification: this._bind(getVerification),
5818
5852
  checkVerification: this._bind(checkVerification)
5819
5853
  };
5854
+ /**
5855
+ * Tools API - Media download and utilities
5856
+ */
5857
+ this.tools = {
5858
+ downloadTikTokVideo: this._bind(downloadTikTokVideo)
5859
+ };
5820
5860
  /**
5821
5861
  * @deprecated The `ads` namespace has been split. Use one of these instead:
5822
5862
  * zernio.adcampaigns, zernio.adaccounts, zernio.adcreatives, zernio.adaudiences, zernio.adtargeting, zernio.adinsights, zernio.conversions, zernio.messagingads, zernio.reachandfrequency, zernio.leadgen, zernio.trackingtags.
@@ -6007,6 +6047,8 @@ var Zernio = class _Zernio {
6007
6047
  listCustomConversions: this._bind(listCustomConversions),
6008
6048
  /** @deprecated Use `zernio.adaccounts.createCustomConversion` instead. */
6009
6049
  createCustomConversion: this._bind(createCustomConversion),
6050
+ /** @deprecated Use `zernio.adaccounts.listTikTokAdPixels` instead. */
6051
+ listTikTokAdPixels: this._bind(listTikTokAdPixels),
6010
6052
  /** @deprecated Use `zernio.adcreatives.generateAdPreviews` instead. */
6011
6053
  generateAdPreviews: this._bind(generateAdPreviews),
6012
6054
  /** @deprecated Use `zernio.adcreatives.getAdPreviews` instead. */
@@ -6037,6 +6079,12 @@ var Zernio = class _Zernio {
6037
6079
  listAdCatalogs: this._bind(listAdCatalogs),
6038
6080
  /** @deprecated Use `zernio.adcreatives.listAdCatalogProductSets` instead. */
6039
6081
  listAdCatalogProductSets: this._bind(listAdCatalogProductSets),
6082
+ /** @deprecated Use `zernio.adcreatives.listPartnershipAdContent` instead. */
6083
+ listPartnershipAdContent: this._bind(listPartnershipAdContent),
6084
+ /** @deprecated Use `zernio.adcreatives.listPartnershipAdPermissions` instead. */
6085
+ listPartnershipAdPermissions: this._bind(listPartnershipAdPermissions),
6086
+ /** @deprecated Use `zernio.adcreatives.setPartnershipAdPermission` instead. */
6087
+ setPartnershipAdPermission: this._bind(setPartnershipAdPermission),
6040
6088
  /** @deprecated Use `zernio.adaudiences.listAdAudiences` instead. */
6041
6089
  listAdAudiences: this._bind(listAdAudiences),
6042
6090
  /** @deprecated Use `zernio.adaudiences.createAdAudience` instead. */
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: "@zernio/node",
8
- version: "0.2.740",
8
+ version: "0.2.742",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -4632,6 +4632,36 @@ var checkVerification = (options) => {
4632
4632
  url: "/v1/verify/verifications/{verificationId}/check"
4633
4633
  });
4634
4634
  };
4635
+ var listTikTokAdPixels = (options) => {
4636
+ return (options?.client ?? client).get({
4637
+ ...options,
4638
+ url: "/v1/ads/pixels"
4639
+ });
4640
+ };
4641
+ var listPartnershipAdContent = (options) => {
4642
+ return (options?.client ?? client).get({
4643
+ ...options,
4644
+ url: "/v1/ads/partnership-content"
4645
+ });
4646
+ };
4647
+ var listPartnershipAdPermissions = (options) => {
4648
+ return (options?.client ?? client).get({
4649
+ ...options,
4650
+ url: "/v1/ads/partnership-permissions"
4651
+ });
4652
+ };
4653
+ var setPartnershipAdPermission = (options) => {
4654
+ return (options?.client ?? client).post({
4655
+ ...options,
4656
+ url: "/v1/ads/partnership-permissions"
4657
+ });
4658
+ };
4659
+ var downloadTikTokVideo = (options) => {
4660
+ return (options?.client ?? client).get({
4661
+ ...options,
4662
+ url: "/v1/tools/tiktok/download"
4663
+ });
4664
+ };
4635
4665
 
4636
4666
  // src/errors.ts
4637
4667
  var ZernioApiError = class _ZernioApiError extends Error {
@@ -5560,7 +5590,10 @@ var Zernio = class _Zernio {
5560
5590
  listAdVideos: this._bind(listAdVideos),
5561
5591
  deleteAdVideo: this._bind(deleteAdVideo),
5562
5592
  listAdCatalogs: this._bind(listAdCatalogs),
5563
- listAdCatalogProductSets: this._bind(listAdCatalogProductSets)
5593
+ listAdCatalogProductSets: this._bind(listAdCatalogProductSets),
5594
+ listPartnershipAdContent: this._bind(listPartnershipAdContent),
5595
+ listPartnershipAdPermissions: this._bind(listPartnershipAdPermissions),
5596
+ setPartnershipAdPermission: this._bind(setPartnershipAdPermission)
5564
5597
  };
5565
5598
  /**
5566
5599
  * trackingtags API
@@ -5625,7 +5658,8 @@ var Zernio = class _Zernio {
5625
5658
  getDsaDefaults: this._bind(getDsaDefaults),
5626
5659
  getDsaRecommendations: this._bind(getDsaRecommendations),
5627
5660
  listCustomConversions: this._bind(listCustomConversions),
5628
- createCustomConversion: this._bind(createCustomConversion)
5661
+ createCustomConversion: this._bind(createCustomConversion),
5662
+ listTikTokAdPixels: this._bind(listTikTokAdPixels)
5629
5663
  };
5630
5664
  /**
5631
5665
  * reachandfrequency API
@@ -5786,6 +5820,12 @@ var Zernio = class _Zernio {
5786
5820
  getVerification: this._bind(getVerification),
5787
5821
  checkVerification: this._bind(checkVerification)
5788
5822
  };
5823
+ /**
5824
+ * Tools API - Media download and utilities
5825
+ */
5826
+ this.tools = {
5827
+ downloadTikTokVideo: this._bind(downloadTikTokVideo)
5828
+ };
5789
5829
  /**
5790
5830
  * @deprecated The `ads` namespace has been split. Use one of these instead:
5791
5831
  * zernio.adcampaigns, zernio.adaccounts, zernio.adcreatives, zernio.adaudiences, zernio.adtargeting, zernio.adinsights, zernio.conversions, zernio.messagingads, zernio.reachandfrequency, zernio.leadgen, zernio.trackingtags.
@@ -5976,6 +6016,8 @@ var Zernio = class _Zernio {
5976
6016
  listCustomConversions: this._bind(listCustomConversions),
5977
6017
  /** @deprecated Use `zernio.adaccounts.createCustomConversion` instead. */
5978
6018
  createCustomConversion: this._bind(createCustomConversion),
6019
+ /** @deprecated Use `zernio.adaccounts.listTikTokAdPixels` instead. */
6020
+ listTikTokAdPixels: this._bind(listTikTokAdPixels),
5979
6021
  /** @deprecated Use `zernio.adcreatives.generateAdPreviews` instead. */
5980
6022
  generateAdPreviews: this._bind(generateAdPreviews),
5981
6023
  /** @deprecated Use `zernio.adcreatives.getAdPreviews` instead. */
@@ -6006,6 +6048,12 @@ var Zernio = class _Zernio {
6006
6048
  listAdCatalogs: this._bind(listAdCatalogs),
6007
6049
  /** @deprecated Use `zernio.adcreatives.listAdCatalogProductSets` instead. */
6008
6050
  listAdCatalogProductSets: this._bind(listAdCatalogProductSets),
6051
+ /** @deprecated Use `zernio.adcreatives.listPartnershipAdContent` instead. */
6052
+ listPartnershipAdContent: this._bind(listPartnershipAdContent),
6053
+ /** @deprecated Use `zernio.adcreatives.listPartnershipAdPermissions` instead. */
6054
+ listPartnershipAdPermissions: this._bind(listPartnershipAdPermissions),
6055
+ /** @deprecated Use `zernio.adcreatives.setPartnershipAdPermission` instead. */
6056
+ setPartnershipAdPermission: this._bind(setPartnershipAdPermission),
6009
6057
  /** @deprecated Use `zernio.adaudiences.listAdAudiences` instead. */
6010
6058
  listAdAudiences: this._bind(listAdAudiences),
6011
6059
  /** @deprecated Use `zernio.adaudiences.createAdAudience` instead. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.740",
3
+ "version": "0.2.742",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/client.ts CHANGED
@@ -177,6 +177,7 @@ import {
177
177
  disableVoiceOnNumber,
178
178
  disableWhatsAppCalling,
179
179
  disableWhatsAppCallingLegacy,
180
+ downloadTikTokVideo,
180
181
  duplicateAd,
181
182
  duplicateAdCampaign,
182
183
  duplicateAdSet,
@@ -464,6 +465,8 @@ import {
464
465
  listLocalServicesLeads,
465
466
  listLogs,
466
467
  listMetaBusinesses,
468
+ listPartnershipAdContent,
469
+ listPartnershipAdPermissions,
467
470
  listPhoneNumberCountries,
468
471
  listPhoneNumberPortIns,
469
472
  listPhoneNumberStockWatches,
@@ -481,6 +484,7 @@ import {
481
484
  listSmsRegistrations,
482
485
  listSmsSenderIds,
483
486
  listSnapchatProfiles,
487
+ listTikTokAdPixels,
484
488
  listTrackingTagSharedAccounts,
485
489
  listTrackingTags,
486
490
  listUsers,
@@ -598,6 +602,7 @@ import {
598
602
  setConversationThreadControl,
599
603
  setInstagramIceBreakers,
600
604
  setMessengerMenu,
605
+ setPartnershipAdPermission,
601
606
  setRedditPostFlair,
602
607
  setTelegramCommands,
603
608
  setWhatsAppFlowsEncryptionKey,
@@ -1729,6 +1734,9 @@ export class Zernio {
1729
1734
  deleteAdVideo: this._bind(deleteAdVideo),
1730
1735
  listAdCatalogs: this._bind(listAdCatalogs),
1731
1736
  listAdCatalogProductSets: this._bind(listAdCatalogProductSets),
1737
+ listPartnershipAdContent: this._bind(listPartnershipAdContent),
1738
+ listPartnershipAdPermissions: this._bind(listPartnershipAdPermissions),
1739
+ setPartnershipAdPermission: this._bind(setPartnershipAdPermission),
1732
1740
  };
1733
1741
 
1734
1742
  /**
@@ -1796,6 +1804,7 @@ export class Zernio {
1796
1804
  getDsaRecommendations: this._bind(getDsaRecommendations),
1797
1805
  listCustomConversions: this._bind(listCustomConversions),
1798
1806
  createCustomConversion: this._bind(createCustomConversion),
1807
+ listTikTokAdPixels: this._bind(listTikTokAdPixels),
1799
1808
  };
1800
1809
 
1801
1810
  /**
@@ -1967,6 +1976,13 @@ export class Zernio {
1967
1976
  checkVerification: this._bind(checkVerification),
1968
1977
  };
1969
1978
 
1979
+ /**
1980
+ * Tools API - Media download and utilities
1981
+ */
1982
+ tools = {
1983
+ downloadTikTokVideo: this._bind(downloadTikTokVideo),
1984
+ };
1985
+
1970
1986
  /**
1971
1987
  * @deprecated The `ads` namespace has been split. Use one of these instead:
1972
1988
  * zernio.adcampaigns, zernio.adaccounts, zernio.adcreatives, zernio.adaudiences, zernio.adtargeting, zernio.adinsights, zernio.conversions, zernio.messagingads, zernio.reachandfrequency, zernio.leadgen, zernio.trackingtags.
@@ -2157,6 +2173,8 @@ export class Zernio {
2157
2173
  listCustomConversions: this._bind(listCustomConversions),
2158
2174
  /** @deprecated Use `zernio.adaccounts.createCustomConversion` instead. */
2159
2175
  createCustomConversion: this._bind(createCustomConversion),
2176
+ /** @deprecated Use `zernio.adaccounts.listTikTokAdPixels` instead. */
2177
+ listTikTokAdPixels: this._bind(listTikTokAdPixels),
2160
2178
  /** @deprecated Use `zernio.adcreatives.generateAdPreviews` instead. */
2161
2179
  generateAdPreviews: this._bind(generateAdPreviews),
2162
2180
  /** @deprecated Use `zernio.adcreatives.getAdPreviews` instead. */
@@ -2187,6 +2205,12 @@ export class Zernio {
2187
2205
  listAdCatalogs: this._bind(listAdCatalogs),
2188
2206
  /** @deprecated Use `zernio.adcreatives.listAdCatalogProductSets` instead. */
2189
2207
  listAdCatalogProductSets: this._bind(listAdCatalogProductSets),
2208
+ /** @deprecated Use `zernio.adcreatives.listPartnershipAdContent` instead. */
2209
+ listPartnershipAdContent: this._bind(listPartnershipAdContent),
2210
+ /** @deprecated Use `zernio.adcreatives.listPartnershipAdPermissions` instead. */
2211
+ listPartnershipAdPermissions: this._bind(listPartnershipAdPermissions),
2212
+ /** @deprecated Use `zernio.adcreatives.setPartnershipAdPermission` instead. */
2213
+ setPartnershipAdPermission: this._bind(setPartnershipAdPermission),
2190
2214
  /** @deprecated Use `zernio.adaudiences.listAdAudiences` instead. */
2191
2215
  listAdAudiences: this._bind(listAdAudiences),
2192
2216
  /** @deprecated Use `zernio.adaudiences.createAdAudience` instead. */