@mentio-dev/sdk 0.15.1 → 0.16.0

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
@@ -794,6 +794,7 @@ var sdk_gen_exports = {};
794
794
  __export(sdk_gen_exports, {
795
795
  createAlert: () => createAlert,
796
796
  createApiKey: () => createApiKey,
797
+ createAutomation: () => createAutomation,
797
798
  createChannel: () => createChannel,
798
799
  createFeed: () => createFeed,
799
800
  createGroup: () => createGroup,
@@ -803,6 +804,7 @@ __export(sdk_gen_exports, {
803
804
  createTopUp: () => createTopUp,
804
805
  createView: () => createView,
805
806
  deleteAlert: () => deleteAlert,
807
+ deleteAutomation: () => deleteAutomation,
806
808
  deleteChannel: () => deleteChannel,
807
809
  deleteFeed: () => deleteFeed,
808
810
  deleteGroup: () => deleteGroup,
@@ -819,6 +821,7 @@ __export(sdk_gen_exports, {
819
821
  getAnalyticsBreakdown: () => getAnalyticsBreakdown,
820
822
  getAnalyticsSeries: () => getAnalyticsSeries,
821
823
  getAnalyticsSummary: () => getAnalyticsSummary,
824
+ getAutomation: () => getAutomation,
822
825
  getChannel: () => getChannel,
823
826
  getCompany: () => getCompany,
824
827
  getFeed: () => getFeed,
@@ -841,6 +844,7 @@ __export(sdk_gen_exports, {
841
844
  listAlerts: () => listAlerts,
842
845
  listApiKeys: () => listApiKeys,
843
846
  listAttention: () => listAttention,
847
+ listAutomations: () => listAutomations,
844
848
  listChannelDeliveries: () => listChannelDeliveries,
845
849
  listChannels: () => listChannels,
846
850
  listFeeds: () => listFeeds,
@@ -848,6 +852,7 @@ __export(sdk_gen_exports, {
848
852
  listInvitations: () => listInvitations,
849
853
  listInvoices: () => listInvoices,
850
854
  listKeywords: () => listKeywords,
855
+ listLabels: () => listLabels,
851
856
  listLedger: () => listLedger,
852
857
  listMembers: () => listMembers,
853
858
  listMentionComments: () => listMentionComments,
@@ -870,6 +875,7 @@ __export(sdk_gen_exports, {
870
875
  testChannel: () => testChannel,
871
876
  unmuteAlertAuthors: () => unmuteAlertAuthors,
872
877
  updateAlert: () => updateAlert,
878
+ updateAutomation: () => updateAutomation,
873
879
  updateChannel: () => updateChannel,
874
880
  updateCompany: () => updateCompany,
875
881
  updateFeed: () => updateFeed,
@@ -877,6 +883,7 @@ __export(sdk_gen_exports, {
877
883
  updateGroup: () => updateGroup,
878
884
  updateKeyword: () => updateKeyword,
879
885
  updateMention: () => updateMention,
886
+ updateMentions: () => updateMentions,
880
887
  updatePerson: () => updatePerson,
881
888
  updateSegment: () => updateSegment,
882
889
  updateView: () => updateView,
@@ -991,6 +998,15 @@ var updateFilters = (options) => (options.client ?? client).patch({
991
998
  ...options.headers
992
999
  }
993
1000
  });
1001
+ var updateMentions = (options) => (options.client ?? client).post({
1002
+ security: [{ scheme: "bearer", type: "http" }],
1003
+ url: "/v1/mentions/batch",
1004
+ ...options,
1005
+ headers: {
1006
+ "Content-Type": "application/json",
1007
+ ...options.headers
1008
+ }
1009
+ });
994
1010
  var getMention = (options) => (options.client ?? client).get({
995
1011
  security: [{ scheme: "bearer", type: "http" }],
996
1012
  url: "/v1/mentions/{id}",
@@ -1153,6 +1169,44 @@ var updateView = (options) => (options.client ?? client).patch({
1153
1169
  ...options.headers
1154
1170
  }
1155
1171
  });
1172
+ var listAutomations = (options) => (options?.client ?? client).get({
1173
+ security: [{ scheme: "bearer", type: "http" }],
1174
+ url: "/v1/automations",
1175
+ ...options
1176
+ });
1177
+ var createAutomation = (options) => (options.client ?? client).post({
1178
+ security: [{ scheme: "bearer", type: "http" }],
1179
+ url: "/v1/automations",
1180
+ ...options,
1181
+ headers: {
1182
+ "Content-Type": "application/json",
1183
+ ...options.headers
1184
+ }
1185
+ });
1186
+ var deleteAutomation = (options) => (options.client ?? client).delete({
1187
+ security: [{ scheme: "bearer", type: "http" }],
1188
+ url: "/v1/automations/{id}",
1189
+ ...options
1190
+ });
1191
+ var getAutomation = (options) => (options.client ?? client).get({
1192
+ security: [{ scheme: "bearer", type: "http" }],
1193
+ url: "/v1/automations/{id}",
1194
+ ...options
1195
+ });
1196
+ var updateAutomation = (options) => (options.client ?? client).patch({
1197
+ security: [{ scheme: "bearer", type: "http" }],
1198
+ url: "/v1/automations/{id}",
1199
+ ...options,
1200
+ headers: {
1201
+ "Content-Type": "application/json",
1202
+ ...options.headers
1203
+ }
1204
+ });
1205
+ var listLabels = (options) => (options?.client ?? client).get({
1206
+ security: [{ scheme: "bearer", type: "http" }],
1207
+ url: "/v1/labels",
1208
+ ...options
1209
+ });
1156
1210
  var listAttention = (options) => (options?.client ?? client).get({
1157
1211
  security: [{ scheme: "bearer", type: "http" }],
1158
1212
  url: "/v1/attention",
@@ -1460,6 +1514,7 @@ export {
1460
1514
  DEFAULT_BASE_URL,
1461
1515
  createAlert,
1462
1516
  createApiKey,
1517
+ createAutomation,
1463
1518
  createChannel,
1464
1519
  createClient,
1465
1520
  createConfig,
@@ -1472,6 +1527,7 @@ export {
1472
1527
  createTopUp,
1473
1528
  createView,
1474
1529
  deleteAlert,
1530
+ deleteAutomation,
1475
1531
  deleteChannel,
1476
1532
  deleteFeed,
1477
1533
  deleteGroup,
@@ -1488,6 +1544,7 @@ export {
1488
1544
  getAnalyticsBreakdown,
1489
1545
  getAnalyticsSeries,
1490
1546
  getAnalyticsSummary,
1547
+ getAutomation,
1491
1548
  getChannel,
1492
1549
  getCompany,
1493
1550
  getFeed,
@@ -1510,6 +1567,7 @@ export {
1510
1567
  listAlerts,
1511
1568
  listApiKeys,
1512
1569
  listAttention,
1570
+ listAutomations,
1513
1571
  listChannelDeliveries,
1514
1572
  listChannels,
1515
1573
  listFeeds,
@@ -1517,6 +1575,7 @@ export {
1517
1575
  listInvitations,
1518
1576
  listInvoices,
1519
1577
  listKeywords,
1578
+ listLabels,
1520
1579
  listLedger,
1521
1580
  listMembers,
1522
1581
  listMentionComments,
@@ -1539,6 +1598,7 @@ export {
1539
1598
  testChannel,
1540
1599
  unmuteAlertAuthors,
1541
1600
  updateAlert,
1601
+ updateAutomation,
1542
1602
  updateChannel,
1543
1603
  updateCompany,
1544
1604
  updateFeed,
@@ -1546,6 +1606,7 @@ export {
1546
1606
  updateGroup,
1547
1607
  updateKeyword,
1548
1608
  updateMention,
1609
+ updateMentions,
1549
1610
  updatePerson,
1550
1611
  updateSegment,
1551
1612
  updateView,