@getlatedev/node 0.2.1102 → 0.2.1103

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.1102",
39
+ version: "0.2.1103",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -1800,6 +1800,12 @@ var setConversationThreadControl = (options) => {
1800
1800
  url: "/v1/inbox/conversations/{conversationId}/thread-control"
1801
1801
  });
1802
1802
  };
1803
+ var acceptConversationRequest = (options) => {
1804
+ return (options?.client ?? client).post({
1805
+ ...options,
1806
+ url: "/v1/inbox/conversations/{conversationId}/accept"
1807
+ });
1808
+ };
1803
1809
  var markConversationRead = (options) => {
1804
1810
  return (options?.client ?? client).post({
1805
1811
  ...options,
@@ -1865,6 +1871,42 @@ var deleteMessengerGetStarted = (options) => {
1865
1871
  url: "/v1/accounts/{accountId}/messenger-get-started"
1866
1872
  });
1867
1873
  };
1874
+ var getMessengerGreeting = (options) => {
1875
+ return (options?.client ?? client).get({
1876
+ ...options,
1877
+ url: "/v1/accounts/{accountId}/messenger-greeting"
1878
+ });
1879
+ };
1880
+ var setMessengerGreeting = (options) => {
1881
+ return (options?.client ?? client).put({
1882
+ ...options,
1883
+ url: "/v1/accounts/{accountId}/messenger-greeting"
1884
+ });
1885
+ };
1886
+ var deleteMessengerGreeting = (options) => {
1887
+ return (options?.client ?? client).delete({
1888
+ ...options,
1889
+ url: "/v1/accounts/{accountId}/messenger-greeting"
1890
+ });
1891
+ };
1892
+ var getMessengerIceBreakers = (options) => {
1893
+ return (options?.client ?? client).get({
1894
+ ...options,
1895
+ url: "/v1/accounts/{accountId}/messenger-ice-breakers"
1896
+ });
1897
+ };
1898
+ var setMessengerIceBreakers = (options) => {
1899
+ return (options?.client ?? client).put({
1900
+ ...options,
1901
+ url: "/v1/accounts/{accountId}/messenger-ice-breakers"
1902
+ });
1903
+ };
1904
+ var deleteMessengerIceBreakers = (options) => {
1905
+ return (options?.client ?? client).delete({
1906
+ ...options,
1907
+ url: "/v1/accounts/{accountId}/messenger-ice-breakers"
1908
+ });
1909
+ };
1868
1910
  var getInstagramIceBreakers = (options) => {
1869
1911
  return (options?.client ?? client).get({
1870
1912
  ...options,
@@ -2720,6 +2762,24 @@ var updateWhatsAppCommerceSettings = (options) => {
2720
2762
  url: "/v1/whatsapp/commerce-settings"
2721
2763
  });
2722
2764
  };
2765
+ var getWhatsAppConversationalAutomation = (options) => {
2766
+ return (options?.client ?? client).get({
2767
+ ...options,
2768
+ url: "/v1/whatsapp/conversational-automation"
2769
+ });
2770
+ };
2771
+ var setWhatsAppConversationalAutomation = (options) => {
2772
+ return (options?.client ?? client).post({
2773
+ ...options,
2774
+ url: "/v1/whatsapp/conversational-automation"
2775
+ });
2776
+ };
2777
+ var deleteWhatsAppConversationalAutomation = (options) => {
2778
+ return (options?.client ?? client).delete({
2779
+ ...options,
2780
+ url: "/v1/whatsapp/conversational-automation"
2781
+ });
2782
+ };
2723
2783
  var getWhatsAppBusinessProfile = (options) => {
2724
2784
  return (options?.client ?? client).get({
2725
2785
  ...options,
@@ -3588,6 +3648,12 @@ var triggerWorkflow = (options) => {
3588
3648
  url: "/v1/workflows/{workflowId}/executions"
3589
3649
  });
3590
3650
  };
3651
+ var triggerApiCallWorkflow = (options) => {
3652
+ return (options?.client ?? client).post({
3653
+ ...options,
3654
+ url: "/v1/workflows/{workflowId}/trigger"
3655
+ });
3656
+ };
3591
3657
  var listWorkflowExecutionEvents = (options) => {
3592
3658
  return (options?.client ?? client).get({
3593
3659
  ...options,
@@ -6352,6 +6418,9 @@ var Zernio = class _Zernio {
6352
6418
  unlinkWhatsAppCatalog: this._bind(unlinkWhatsAppCatalog),
6353
6419
  getWhatsAppCommerceSettings: this._bind(getWhatsAppCommerceSettings),
6354
6420
  updateWhatsAppCommerceSettings: this._bind(updateWhatsAppCommerceSettings),
6421
+ getWhatsAppConversationalAutomation: this._bind(getWhatsAppConversationalAutomation),
6422
+ setWhatsAppConversationalAutomation: this._bind(setWhatsAppConversationalAutomation),
6423
+ deleteWhatsAppConversationalAutomation: this._bind(deleteWhatsAppConversationalAutomation),
6355
6424
  getWhatsAppBusinessProfile: this._bind(getWhatsAppBusinessProfile),
6356
6425
  updateWhatsAppBusinessProfile: this._bind(updateWhatsAppBusinessProfile),
6357
6426
  uploadWhatsAppProfilePhoto: this._bind(uploadWhatsAppProfilePhoto),
@@ -6631,6 +6700,7 @@ var Zernio = class _Zernio {
6631
6700
  deleteInboxMessage: this._bind(deleteInboxMessage),
6632
6701
  sendTypingIndicator: this._bind(sendTypingIndicator),
6633
6702
  setConversationThreadControl: this._bind(setConversationThreadControl),
6703
+ acceptConversationRequest: this._bind(acceptConversationRequest),
6634
6704
  markConversationRead: this._bind(markConversationRead),
6635
6705
  addMessageReaction: this._bind(addMessageReaction),
6636
6706
  removeMessageReaction: this._bind(removeMessageReaction),
@@ -6647,6 +6717,12 @@ var Zernio = class _Zernio {
6647
6717
  getMessengerGetStarted: this._bind(getMessengerGetStarted),
6648
6718
  setMessengerGetStarted: this._bind(setMessengerGetStarted),
6649
6719
  deleteMessengerGetStarted: this._bind(deleteMessengerGetStarted),
6720
+ getMessengerGreeting: this._bind(getMessengerGreeting),
6721
+ setMessengerGreeting: this._bind(setMessengerGreeting),
6722
+ deleteMessengerGreeting: this._bind(deleteMessengerGreeting),
6723
+ getMessengerIceBreakers: this._bind(getMessengerIceBreakers),
6724
+ setMessengerIceBreakers: this._bind(setMessengerIceBreakers),
6725
+ deleteMessengerIceBreakers: this._bind(deleteMessengerIceBreakers),
6650
6726
  getInstagramIceBreakers: this._bind(getInstagramIceBreakers),
6651
6727
  setInstagramIceBreakers: this._bind(setInstagramIceBreakers),
6652
6728
  deleteInstagramIceBreakers: this._bind(deleteInstagramIceBreakers),
@@ -6989,6 +7065,7 @@ var Zernio = class _Zernio {
6989
7065
  pauseWorkflow: this._bind(pauseWorkflow),
6990
7066
  listWorkflowExecutions: this._bind(listWorkflowExecutions),
6991
7067
  triggerWorkflow: this._bind(triggerWorkflow),
7068
+ triggerApiCallWorkflow: this._bind(triggerApiCallWorkflow),
6992
7069
  listWorkflowExecutionEvents: this._bind(listWorkflowExecutionEvents),
6993
7070
  duplicateWorkflow: this._bind(duplicateWorkflow),
6994
7071
  listWorkflowVersions: this._bind(listWorkflowVersions),
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.1102",
8
+ version: "0.2.1103",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -1769,6 +1769,12 @@ var setConversationThreadControl = (options) => {
1769
1769
  url: "/v1/inbox/conversations/{conversationId}/thread-control"
1770
1770
  });
1771
1771
  };
1772
+ var acceptConversationRequest = (options) => {
1773
+ return (options?.client ?? client).post({
1774
+ ...options,
1775
+ url: "/v1/inbox/conversations/{conversationId}/accept"
1776
+ });
1777
+ };
1772
1778
  var markConversationRead = (options) => {
1773
1779
  return (options?.client ?? client).post({
1774
1780
  ...options,
@@ -1834,6 +1840,42 @@ var deleteMessengerGetStarted = (options) => {
1834
1840
  url: "/v1/accounts/{accountId}/messenger-get-started"
1835
1841
  });
1836
1842
  };
1843
+ var getMessengerGreeting = (options) => {
1844
+ return (options?.client ?? client).get({
1845
+ ...options,
1846
+ url: "/v1/accounts/{accountId}/messenger-greeting"
1847
+ });
1848
+ };
1849
+ var setMessengerGreeting = (options) => {
1850
+ return (options?.client ?? client).put({
1851
+ ...options,
1852
+ url: "/v1/accounts/{accountId}/messenger-greeting"
1853
+ });
1854
+ };
1855
+ var deleteMessengerGreeting = (options) => {
1856
+ return (options?.client ?? client).delete({
1857
+ ...options,
1858
+ url: "/v1/accounts/{accountId}/messenger-greeting"
1859
+ });
1860
+ };
1861
+ var getMessengerIceBreakers = (options) => {
1862
+ return (options?.client ?? client).get({
1863
+ ...options,
1864
+ url: "/v1/accounts/{accountId}/messenger-ice-breakers"
1865
+ });
1866
+ };
1867
+ var setMessengerIceBreakers = (options) => {
1868
+ return (options?.client ?? client).put({
1869
+ ...options,
1870
+ url: "/v1/accounts/{accountId}/messenger-ice-breakers"
1871
+ });
1872
+ };
1873
+ var deleteMessengerIceBreakers = (options) => {
1874
+ return (options?.client ?? client).delete({
1875
+ ...options,
1876
+ url: "/v1/accounts/{accountId}/messenger-ice-breakers"
1877
+ });
1878
+ };
1837
1879
  var getInstagramIceBreakers = (options) => {
1838
1880
  return (options?.client ?? client).get({
1839
1881
  ...options,
@@ -2689,6 +2731,24 @@ var updateWhatsAppCommerceSettings = (options) => {
2689
2731
  url: "/v1/whatsapp/commerce-settings"
2690
2732
  });
2691
2733
  };
2734
+ var getWhatsAppConversationalAutomation = (options) => {
2735
+ return (options?.client ?? client).get({
2736
+ ...options,
2737
+ url: "/v1/whatsapp/conversational-automation"
2738
+ });
2739
+ };
2740
+ var setWhatsAppConversationalAutomation = (options) => {
2741
+ return (options?.client ?? client).post({
2742
+ ...options,
2743
+ url: "/v1/whatsapp/conversational-automation"
2744
+ });
2745
+ };
2746
+ var deleteWhatsAppConversationalAutomation = (options) => {
2747
+ return (options?.client ?? client).delete({
2748
+ ...options,
2749
+ url: "/v1/whatsapp/conversational-automation"
2750
+ });
2751
+ };
2692
2752
  var getWhatsAppBusinessProfile = (options) => {
2693
2753
  return (options?.client ?? client).get({
2694
2754
  ...options,
@@ -3557,6 +3617,12 @@ var triggerWorkflow = (options) => {
3557
3617
  url: "/v1/workflows/{workflowId}/executions"
3558
3618
  });
3559
3619
  };
3620
+ var triggerApiCallWorkflow = (options) => {
3621
+ return (options?.client ?? client).post({
3622
+ ...options,
3623
+ url: "/v1/workflows/{workflowId}/trigger"
3624
+ });
3625
+ };
3560
3626
  var listWorkflowExecutionEvents = (options) => {
3561
3627
  return (options?.client ?? client).get({
3562
3628
  ...options,
@@ -6321,6 +6387,9 @@ var Zernio = class _Zernio {
6321
6387
  unlinkWhatsAppCatalog: this._bind(unlinkWhatsAppCatalog),
6322
6388
  getWhatsAppCommerceSettings: this._bind(getWhatsAppCommerceSettings),
6323
6389
  updateWhatsAppCommerceSettings: this._bind(updateWhatsAppCommerceSettings),
6390
+ getWhatsAppConversationalAutomation: this._bind(getWhatsAppConversationalAutomation),
6391
+ setWhatsAppConversationalAutomation: this._bind(setWhatsAppConversationalAutomation),
6392
+ deleteWhatsAppConversationalAutomation: this._bind(deleteWhatsAppConversationalAutomation),
6324
6393
  getWhatsAppBusinessProfile: this._bind(getWhatsAppBusinessProfile),
6325
6394
  updateWhatsAppBusinessProfile: this._bind(updateWhatsAppBusinessProfile),
6326
6395
  uploadWhatsAppProfilePhoto: this._bind(uploadWhatsAppProfilePhoto),
@@ -6600,6 +6669,7 @@ var Zernio = class _Zernio {
6600
6669
  deleteInboxMessage: this._bind(deleteInboxMessage),
6601
6670
  sendTypingIndicator: this._bind(sendTypingIndicator),
6602
6671
  setConversationThreadControl: this._bind(setConversationThreadControl),
6672
+ acceptConversationRequest: this._bind(acceptConversationRequest),
6603
6673
  markConversationRead: this._bind(markConversationRead),
6604
6674
  addMessageReaction: this._bind(addMessageReaction),
6605
6675
  removeMessageReaction: this._bind(removeMessageReaction),
@@ -6616,6 +6686,12 @@ var Zernio = class _Zernio {
6616
6686
  getMessengerGetStarted: this._bind(getMessengerGetStarted),
6617
6687
  setMessengerGetStarted: this._bind(setMessengerGetStarted),
6618
6688
  deleteMessengerGetStarted: this._bind(deleteMessengerGetStarted),
6689
+ getMessengerGreeting: this._bind(getMessengerGreeting),
6690
+ setMessengerGreeting: this._bind(setMessengerGreeting),
6691
+ deleteMessengerGreeting: this._bind(deleteMessengerGreeting),
6692
+ getMessengerIceBreakers: this._bind(getMessengerIceBreakers),
6693
+ setMessengerIceBreakers: this._bind(setMessengerIceBreakers),
6694
+ deleteMessengerIceBreakers: this._bind(deleteMessengerIceBreakers),
6619
6695
  getInstagramIceBreakers: this._bind(getInstagramIceBreakers),
6620
6696
  setInstagramIceBreakers: this._bind(setInstagramIceBreakers),
6621
6697
  deleteInstagramIceBreakers: this._bind(deleteInstagramIceBreakers),
@@ -6958,6 +7034,7 @@ var Zernio = class _Zernio {
6958
7034
  pauseWorkflow: this._bind(pauseWorkflow),
6959
7035
  listWorkflowExecutions: this._bind(listWorkflowExecutions),
6960
7036
  triggerWorkflow: this._bind(triggerWorkflow),
7037
+ triggerApiCallWorkflow: this._bind(triggerApiCallWorkflow),
6961
7038
  listWorkflowExecutionEvents: this._bind(listWorkflowExecutionEvents),
6962
7039
  duplicateWorkflow: this._bind(duplicateWorkflow),
6963
7040
  listWorkflowVersions: this._bind(listWorkflowVersions),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1102",
3
+ "version": "0.2.1103",
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
@@ -1,6 +1,7 @@
1
1
  import packageJson from '../package.json';
2
2
  import { createClient, createConfig, type Client } from '@hey-api/client-fetch';
3
3
  import {
4
+ acceptConversationRequest,
4
5
  activateSequence,
5
6
  activateWorkflow,
6
7
  addAccountCallouts,
@@ -219,6 +220,8 @@ import {
219
220
  deleteInboxReviewReply,
220
221
  deleteInstagramIceBreakers,
221
222
  deleteMessengerGetStarted,
223
+ deleteMessengerGreeting,
224
+ deleteMessengerIceBreakers,
222
225
  deleteMessengerMenu,
223
226
  deletePhoneNumberStockWatch,
224
227
  deletePost,
@@ -232,6 +235,7 @@ import {
232
235
  deleteTrackingTagEvent,
233
236
  deleteValueRuleSet,
234
237
  deleteWebhookSettings,
238
+ deleteWhatsAppConversationalAutomation,
235
239
  deleteWhatsAppFlow,
236
240
  deleteWhatsAppGroupChat,
237
241
  deleteWhatsAppSandboxSession,
@@ -405,6 +409,8 @@ import {
405
409
  getMediaPresignedUrl,
406
410
  getMessageAttachment,
407
411
  getMessengerGetStarted,
412
+ getMessengerGreeting,
413
+ getMessengerIceBreakers,
408
414
  getMessengerMenu,
409
415
  getNextQueueSlot,
410
416
  getPageWebhookSubscription,
@@ -465,6 +471,7 @@ import {
465
471
  getWhatsAppCalling,
466
472
  getWhatsAppCallingConfig,
467
473
  getWhatsAppCommerceSettings,
474
+ getWhatsAppConversationalAutomation,
468
475
  getWhatsAppDataset,
469
476
  getWhatsAppDisplayName,
470
477
  getWhatsAppFlow,
@@ -799,10 +806,13 @@ import {
799
806
  setImessageSubscription,
800
807
  setInstagramIceBreakers,
801
808
  setMessengerGetStarted,
809
+ setMessengerGreeting,
810
+ setMessengerIceBreakers,
802
811
  setMessengerMenu,
803
812
  setPartnershipAdPermission,
804
813
  setRedditPostFlair,
805
814
  setTelegramCommands,
815
+ setWhatsAppConversationalAutomation,
806
816
  setWhatsAppFlowsEncryptionKey,
807
817
  setWhatsappBusinessUsername,
808
818
  shareBrandedCallingIdentityForm,
@@ -817,6 +827,7 @@ import {
817
827
  syncExternalPosts,
818
828
  testWebhook,
819
829
  transferVoiceCall,
830
+ triggerApiCallWorkflow,
820
831
  triggerWorkflow,
821
832
  unblockWhatsAppUsers,
822
833
  undoRetweet,
@@ -1266,6 +1277,9 @@ export class Zernio {
1266
1277
  unlinkWhatsAppCatalog: this._bind(unlinkWhatsAppCatalog),
1267
1278
  getWhatsAppCommerceSettings: this._bind(getWhatsAppCommerceSettings),
1268
1279
  updateWhatsAppCommerceSettings: this._bind(updateWhatsAppCommerceSettings),
1280
+ getWhatsAppConversationalAutomation: this._bind(getWhatsAppConversationalAutomation),
1281
+ setWhatsAppConversationalAutomation: this._bind(setWhatsAppConversationalAutomation),
1282
+ deleteWhatsAppConversationalAutomation: this._bind(deleteWhatsAppConversationalAutomation),
1269
1283
  getWhatsAppBusinessProfile: this._bind(getWhatsAppBusinessProfile),
1270
1284
  updateWhatsAppBusinessProfile: this._bind(updateWhatsAppBusinessProfile),
1271
1285
  uploadWhatsAppProfilePhoto: this._bind(uploadWhatsAppProfilePhoto),
@@ -1564,6 +1578,7 @@ export class Zernio {
1564
1578
  deleteInboxMessage: this._bind(deleteInboxMessage),
1565
1579
  sendTypingIndicator: this._bind(sendTypingIndicator),
1566
1580
  setConversationThreadControl: this._bind(setConversationThreadControl),
1581
+ acceptConversationRequest: this._bind(acceptConversationRequest),
1567
1582
  markConversationRead: this._bind(markConversationRead),
1568
1583
  addMessageReaction: this._bind(addMessageReaction),
1569
1584
  removeMessageReaction: this._bind(removeMessageReaction),
@@ -1581,6 +1596,12 @@ export class Zernio {
1581
1596
  getMessengerGetStarted: this._bind(getMessengerGetStarted),
1582
1597
  setMessengerGetStarted: this._bind(setMessengerGetStarted),
1583
1598
  deleteMessengerGetStarted: this._bind(deleteMessengerGetStarted),
1599
+ getMessengerGreeting: this._bind(getMessengerGreeting),
1600
+ setMessengerGreeting: this._bind(setMessengerGreeting),
1601
+ deleteMessengerGreeting: this._bind(deleteMessengerGreeting),
1602
+ getMessengerIceBreakers: this._bind(getMessengerIceBreakers),
1603
+ setMessengerIceBreakers: this._bind(setMessengerIceBreakers),
1604
+ deleteMessengerIceBreakers: this._bind(deleteMessengerIceBreakers),
1584
1605
  getInstagramIceBreakers: this._bind(getInstagramIceBreakers),
1585
1606
  setInstagramIceBreakers: this._bind(setInstagramIceBreakers),
1586
1607
  deleteInstagramIceBreakers: this._bind(deleteInstagramIceBreakers),
@@ -1943,6 +1964,7 @@ export class Zernio {
1943
1964
  pauseWorkflow: this._bind(pauseWorkflow),
1944
1965
  listWorkflowExecutions: this._bind(listWorkflowExecutions),
1945
1966
  triggerWorkflow: this._bind(triggerWorkflow),
1967
+ triggerApiCallWorkflow: this._bind(triggerApiCallWorkflow),
1946
1968
  listWorkflowExecutionEvents: this._bind(listWorkflowExecutionEvents),
1947
1969
  duplicateWorkflow: this._bind(duplicateWorkflow),
1948
1970
  listWorkflowVersions: this._bind(listWorkflowVersions),