@zernio/node 0.2.954 → 0.2.955

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.954",
39
+ version: "0.2.955",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -2339,6 +2339,96 @@ var deleteSmsSenderId = (options) => {
2339
2339
  url: "/v1/sms/sender-ids/{id}"
2340
2340
  });
2341
2341
  };
2342
+ var createBrandedCallingEnterprise = (options) => {
2343
+ return (options?.client ?? client).post({
2344
+ ...options,
2345
+ url: "/v1/branded-calling/enterprises"
2346
+ });
2347
+ };
2348
+ var listBrandedCallingEnterprises = (options) => {
2349
+ return (options?.client ?? client).get({
2350
+ ...options,
2351
+ url: "/v1/branded-calling/enterprises"
2352
+ });
2353
+ };
2354
+ var getBrandedCallingEnterprise = (options) => {
2355
+ return (options?.client ?? client).get({
2356
+ ...options,
2357
+ url: "/v1/branded-calling/enterprises/{id}"
2358
+ });
2359
+ };
2360
+ var deleteBrandedCallingEnterprise = (options) => {
2361
+ return (options?.client ?? client).delete({
2362
+ ...options,
2363
+ url: "/v1/branded-calling/enterprises/{id}"
2364
+ });
2365
+ };
2366
+ var listBrandedCallingCallReasons = (options) => {
2367
+ return (options?.client ?? client).get({
2368
+ ...options,
2369
+ url: "/v1/branded-calling/call-reasons"
2370
+ });
2371
+ };
2372
+ var createBrandedCallingIdentity = (options) => {
2373
+ return (options?.client ?? client).post({
2374
+ ...options,
2375
+ url: "/v1/branded-calling/identities"
2376
+ });
2377
+ };
2378
+ var listBrandedCallingIdentities = (options) => {
2379
+ return (options?.client ?? client).get({
2380
+ ...options,
2381
+ url: "/v1/branded-calling/identities"
2382
+ });
2383
+ };
2384
+ var getBrandedCallingIdentity = (options) => {
2385
+ return (options?.client ?? client).get({
2386
+ ...options,
2387
+ url: "/v1/branded-calling/identities/{id}"
2388
+ });
2389
+ };
2390
+ var updateBrandedCallingIdentity = (options) => {
2391
+ return (options?.client ?? client).patch({
2392
+ ...options,
2393
+ url: "/v1/branded-calling/identities/{id}"
2394
+ });
2395
+ };
2396
+ var deleteBrandedCallingIdentity = (options) => {
2397
+ return (options?.client ?? client).delete({
2398
+ ...options,
2399
+ url: "/v1/branded-calling/identities/{id}"
2400
+ });
2401
+ };
2402
+ var resendBrandedCallingAuthorizerCode = (options) => {
2403
+ return (options?.client ?? client).post({
2404
+ ...options,
2405
+ url: "/v1/branded-calling/identities/{id}/verify-email"
2406
+ });
2407
+ };
2408
+ var confirmBrandedCallingAuthorizerEmail = (options) => {
2409
+ return (options?.client ?? client).post({
2410
+ ...options,
2411
+ url: "/v1/branded-calling/identities/{id}/verify-email/confirm"
2412
+ });
2413
+ };
2414
+ var listBrandedCallingIdentityNumbers = (options) => {
2415
+ return (options?.client ?? client).get({
2416
+ ...options,
2417
+ url: "/v1/branded-calling/identities/{id}/numbers"
2418
+ });
2419
+ };
2420
+ var attachBrandedCallingNumbers = (options) => {
2421
+ return (options?.client ?? client).post({
2422
+ ...options,
2423
+ url: "/v1/branded-calling/identities/{id}/numbers"
2424
+ });
2425
+ };
2426
+ var detachBrandedCallingNumbers = (options) => {
2427
+ return (options?.client ?? client).delete({
2428
+ ...options,
2429
+ url: "/v1/branded-calling/identities/{id}/numbers"
2430
+ });
2431
+ };
2342
2432
  var startSmsRegistration = (options) => {
2343
2433
  return (options?.client ?? client).post({
2344
2434
  ...options,
@@ -5936,6 +6026,26 @@ var Zernio = class _Zernio {
5936
6026
  disableSmsOnNumber: this._bind(disableSmsOnNumber),
5937
6027
  reuseSmsRegistrationForNumber: this._bind(reuseSmsRegistrationForNumber)
5938
6028
  };
6029
+ /**
6030
+ * brandedcalling API
6031
+ */
6032
+ this.brandedcalling = {
6033
+ createBrandedCallingEnterprise: this._bind(createBrandedCallingEnterprise),
6034
+ listBrandedCallingEnterprises: this._bind(listBrandedCallingEnterprises),
6035
+ getBrandedCallingEnterprise: this._bind(getBrandedCallingEnterprise),
6036
+ deleteBrandedCallingEnterprise: this._bind(deleteBrandedCallingEnterprise),
6037
+ listBrandedCallingCallReasons: this._bind(listBrandedCallingCallReasons),
6038
+ createBrandedCallingIdentity: this._bind(createBrandedCallingIdentity),
6039
+ listBrandedCallingIdentities: this._bind(listBrandedCallingIdentities),
6040
+ getBrandedCallingIdentity: this._bind(getBrandedCallingIdentity),
6041
+ updateBrandedCallingIdentity: this._bind(updateBrandedCallingIdentity),
6042
+ deleteBrandedCallingIdentity: this._bind(deleteBrandedCallingIdentity),
6043
+ resendBrandedCallingAuthorizerCode: this._bind(resendBrandedCallingAuthorizerCode),
6044
+ confirmBrandedCallingAuthorizerEmail: this._bind(confirmBrandedCallingAuthorizerEmail),
6045
+ listBrandedCallingIdentityNumbers: this._bind(listBrandedCallingIdentityNumbers),
6046
+ attachBrandedCallingNumbers: this._bind(attachBrandedCallingNumbers),
6047
+ detachBrandedCallingNumbers: this._bind(detachBrandedCallingNumbers)
6048
+ };
5939
6049
  /**
5940
6050
  * whatsapptemplates API
5941
6051
  */
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.954",
8
+ version: "0.2.955",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -2308,6 +2308,96 @@ var deleteSmsSenderId = (options) => {
2308
2308
  url: "/v1/sms/sender-ids/{id}"
2309
2309
  });
2310
2310
  };
2311
+ var createBrandedCallingEnterprise = (options) => {
2312
+ return (options?.client ?? client).post({
2313
+ ...options,
2314
+ url: "/v1/branded-calling/enterprises"
2315
+ });
2316
+ };
2317
+ var listBrandedCallingEnterprises = (options) => {
2318
+ return (options?.client ?? client).get({
2319
+ ...options,
2320
+ url: "/v1/branded-calling/enterprises"
2321
+ });
2322
+ };
2323
+ var getBrandedCallingEnterprise = (options) => {
2324
+ return (options?.client ?? client).get({
2325
+ ...options,
2326
+ url: "/v1/branded-calling/enterprises/{id}"
2327
+ });
2328
+ };
2329
+ var deleteBrandedCallingEnterprise = (options) => {
2330
+ return (options?.client ?? client).delete({
2331
+ ...options,
2332
+ url: "/v1/branded-calling/enterprises/{id}"
2333
+ });
2334
+ };
2335
+ var listBrandedCallingCallReasons = (options) => {
2336
+ return (options?.client ?? client).get({
2337
+ ...options,
2338
+ url: "/v1/branded-calling/call-reasons"
2339
+ });
2340
+ };
2341
+ var createBrandedCallingIdentity = (options) => {
2342
+ return (options?.client ?? client).post({
2343
+ ...options,
2344
+ url: "/v1/branded-calling/identities"
2345
+ });
2346
+ };
2347
+ var listBrandedCallingIdentities = (options) => {
2348
+ return (options?.client ?? client).get({
2349
+ ...options,
2350
+ url: "/v1/branded-calling/identities"
2351
+ });
2352
+ };
2353
+ var getBrandedCallingIdentity = (options) => {
2354
+ return (options?.client ?? client).get({
2355
+ ...options,
2356
+ url: "/v1/branded-calling/identities/{id}"
2357
+ });
2358
+ };
2359
+ var updateBrandedCallingIdentity = (options) => {
2360
+ return (options?.client ?? client).patch({
2361
+ ...options,
2362
+ url: "/v1/branded-calling/identities/{id}"
2363
+ });
2364
+ };
2365
+ var deleteBrandedCallingIdentity = (options) => {
2366
+ return (options?.client ?? client).delete({
2367
+ ...options,
2368
+ url: "/v1/branded-calling/identities/{id}"
2369
+ });
2370
+ };
2371
+ var resendBrandedCallingAuthorizerCode = (options) => {
2372
+ return (options?.client ?? client).post({
2373
+ ...options,
2374
+ url: "/v1/branded-calling/identities/{id}/verify-email"
2375
+ });
2376
+ };
2377
+ var confirmBrandedCallingAuthorizerEmail = (options) => {
2378
+ return (options?.client ?? client).post({
2379
+ ...options,
2380
+ url: "/v1/branded-calling/identities/{id}/verify-email/confirm"
2381
+ });
2382
+ };
2383
+ var listBrandedCallingIdentityNumbers = (options) => {
2384
+ return (options?.client ?? client).get({
2385
+ ...options,
2386
+ url: "/v1/branded-calling/identities/{id}/numbers"
2387
+ });
2388
+ };
2389
+ var attachBrandedCallingNumbers = (options) => {
2390
+ return (options?.client ?? client).post({
2391
+ ...options,
2392
+ url: "/v1/branded-calling/identities/{id}/numbers"
2393
+ });
2394
+ };
2395
+ var detachBrandedCallingNumbers = (options) => {
2396
+ return (options?.client ?? client).delete({
2397
+ ...options,
2398
+ url: "/v1/branded-calling/identities/{id}/numbers"
2399
+ });
2400
+ };
2311
2401
  var startSmsRegistration = (options) => {
2312
2402
  return (options?.client ?? client).post({
2313
2403
  ...options,
@@ -5905,6 +5995,26 @@ var Zernio = class _Zernio {
5905
5995
  disableSmsOnNumber: this._bind(disableSmsOnNumber),
5906
5996
  reuseSmsRegistrationForNumber: this._bind(reuseSmsRegistrationForNumber)
5907
5997
  };
5998
+ /**
5999
+ * brandedcalling API
6000
+ */
6001
+ this.brandedcalling = {
6002
+ createBrandedCallingEnterprise: this._bind(createBrandedCallingEnterprise),
6003
+ listBrandedCallingEnterprises: this._bind(listBrandedCallingEnterprises),
6004
+ getBrandedCallingEnterprise: this._bind(getBrandedCallingEnterprise),
6005
+ deleteBrandedCallingEnterprise: this._bind(deleteBrandedCallingEnterprise),
6006
+ listBrandedCallingCallReasons: this._bind(listBrandedCallingCallReasons),
6007
+ createBrandedCallingIdentity: this._bind(createBrandedCallingIdentity),
6008
+ listBrandedCallingIdentities: this._bind(listBrandedCallingIdentities),
6009
+ getBrandedCallingIdentity: this._bind(getBrandedCallingIdentity),
6010
+ updateBrandedCallingIdentity: this._bind(updateBrandedCallingIdentity),
6011
+ deleteBrandedCallingIdentity: this._bind(deleteBrandedCallingIdentity),
6012
+ resendBrandedCallingAuthorizerCode: this._bind(resendBrandedCallingAuthorizerCode),
6013
+ confirmBrandedCallingAuthorizerEmail: this._bind(confirmBrandedCallingAuthorizerEmail),
6014
+ listBrandedCallingIdentityNumbers: this._bind(listBrandedCallingIdentityNumbers),
6015
+ attachBrandedCallingNumbers: this._bind(attachBrandedCallingNumbers),
6016
+ detachBrandedCallingNumbers: this._bind(detachBrandedCallingNumbers)
6017
+ };
5908
6018
  /**
5909
6019
  * whatsapptemplates API
5910
6020
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.954",
3
+ "version": "0.2.955",
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
@@ -25,6 +25,7 @@ import {
25
25
  assignGoogleBusinessLocation,
26
26
  attachAdGroupAssets,
27
27
  attachAdLabel,
28
+ attachBrandedCallingNumbers,
28
29
  attachCampaignAssets,
29
30
  attachNumberToSipTrunk,
30
31
  batchAdCatalogProducts,
@@ -49,6 +50,7 @@ import {
49
50
  completeTelegramConnect,
50
51
  completeWhatsAppPhoneSelection,
51
52
  configureTikTokAdsBrandIdentity,
53
+ confirmBrandedCallingAuthorizerEmail,
52
54
  connectAds,
53
55
  connectBlueskyCredentials,
54
56
  connectDiscordChannel,
@@ -76,6 +78,8 @@ import {
76
78
  createBidStrategy,
77
79
  createBlog,
78
80
  createBlogArticle,
81
+ createBrandedCallingEnterprise,
82
+ createBrandedCallingIdentity,
79
83
  createBroadcast,
80
84
  createBusinessAgentConnector,
81
85
  createBusinessAgentConnectorTool,
@@ -150,6 +154,8 @@ import {
150
154
  deleteApiKey,
151
155
  deleteBlog,
152
156
  deleteBlogArticle,
157
+ deleteBrandedCallingEnterprise,
158
+ deleteBrandedCallingIdentity,
153
159
  deleteBroadcast,
154
160
  deleteBusinessAgentConnector,
155
161
  deleteBusinessAgentConnectorTool,
@@ -193,6 +199,7 @@ import {
193
199
  deleteWorkflow,
194
200
  deprecateWhatsAppFlow,
195
201
  detachAdLabel,
202
+ detachBrandedCallingNumbers,
196
203
  detachNumberFromSipTrunk,
197
204
  dialVoiceWebCall,
198
205
  disableSmsOnNumber,
@@ -253,6 +260,8 @@ import {
253
260
  getBlog,
254
261
  getBlogArticle,
255
262
  getBlueskySettings,
263
+ getBrandedCallingEnterprise,
264
+ getBrandedCallingIdentity,
256
265
  getBroadcast,
257
266
  getBusinessAgentBudget,
258
267
  getBusinessAgentBusinessInformation,
@@ -465,6 +474,10 @@ import {
465
474
  listBidStrategies,
466
475
  listBlogArticles,
467
476
  listBlogs,
477
+ listBrandedCallingCallReasons,
478
+ listBrandedCallingEnterprises,
479
+ listBrandedCallingIdentities,
480
+ listBrandedCallingIdentityNumbers,
468
481
  listBroadcastRecipients,
469
482
  listBroadcasts,
470
483
  listBusinessAgentAllowlist,
@@ -621,6 +634,7 @@ import {
621
634
  replyToPhoneNumberReviewer,
622
635
  requestSmsSenderIdLimitIncrease,
623
636
  requestWhatsAppVerificationCode,
637
+ resendBrandedCallingAuthorizerCode,
624
638
  resendSmsRegistrationOtp,
625
639
  reserveImessageAvailableNumber,
626
640
  reserveRfPrediction,
@@ -727,6 +741,7 @@ import {
727
741
  updateBlog,
728
742
  updateBlogArticle,
729
743
  updateBlueskySettings,
744
+ updateBrandedCallingIdentity,
730
745
  updateBroadcast,
731
746
  updateBusinessAgentConnector,
732
747
  updateBusinessAgentConnectorTool,
@@ -1595,6 +1610,27 @@ export class Zernio {
1595
1610
  reuseSmsRegistrationForNumber: this._bind(reuseSmsRegistrationForNumber),
1596
1611
  };
1597
1612
 
1613
+ /**
1614
+ * brandedcalling API
1615
+ */
1616
+ brandedcalling = {
1617
+ createBrandedCallingEnterprise: this._bind(createBrandedCallingEnterprise),
1618
+ listBrandedCallingEnterprises: this._bind(listBrandedCallingEnterprises),
1619
+ getBrandedCallingEnterprise: this._bind(getBrandedCallingEnterprise),
1620
+ deleteBrandedCallingEnterprise: this._bind(deleteBrandedCallingEnterprise),
1621
+ listBrandedCallingCallReasons: this._bind(listBrandedCallingCallReasons),
1622
+ createBrandedCallingIdentity: this._bind(createBrandedCallingIdentity),
1623
+ listBrandedCallingIdentities: this._bind(listBrandedCallingIdentities),
1624
+ getBrandedCallingIdentity: this._bind(getBrandedCallingIdentity),
1625
+ updateBrandedCallingIdentity: this._bind(updateBrandedCallingIdentity),
1626
+ deleteBrandedCallingIdentity: this._bind(deleteBrandedCallingIdentity),
1627
+ resendBrandedCallingAuthorizerCode: this._bind(resendBrandedCallingAuthorizerCode),
1628
+ confirmBrandedCallingAuthorizerEmail: this._bind(confirmBrandedCallingAuthorizerEmail),
1629
+ listBrandedCallingIdentityNumbers: this._bind(listBrandedCallingIdentityNumbers),
1630
+ attachBrandedCallingNumbers: this._bind(attachBrandedCallingNumbers),
1631
+ detachBrandedCallingNumbers: this._bind(detachBrandedCallingNumbers),
1632
+ };
1633
+
1598
1634
  /**
1599
1635
  * whatsapptemplates API
1600
1636
  */